@quandis/qbo4.ui-bridge 4.0.1-CI-20241017-213800 → 4.0.1-CI-20241019-181546

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,7 +80,7 @@ var e={630:(e,t,o)=>{var r;!function(e){!function(){var t="object"==typeof globa
80
80
  ${e}
81
81
  </qbo-popover>
82
82
  </div>
83
- </slot>`}};Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"aDropdownClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"buttonPrimaryClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"buttonPrimaryDropdownClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"buttonType",void 0),Tt([ut({type:Object,attribute:!1}),Mt("design:type",Object)],Dt.prototype,"data",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"divButtonGroupClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"divFormActionClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"divSectionHeaderClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"dropdownToggle",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"editLabel",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"helpIcon",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"helpText",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"historyIcon",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"historyText",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"infoButtonClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"infoIconClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"infoTitle",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"popoverClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"spanEditClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"ulDropdownClass",void 0),Tt([ut(),Mt("design:type",Object)],Dt.prototype,"type",void 0),Tt([ut({type:Boolean}),Mt("design:type",Object)],Dt.prototype,"renderInHost",void 0),Dt=Tt([pt("qbo-form-edit")],Dt);var It,Pt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ht=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Bt=class extends dt{static{It=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=e=>{const t=e.target;t.matches("input, select, textarea")&&t.name&&!t.assignedSlot&&(this.value.set(`${this.name}${t.name}`,t.value),console.trace(`${this.name}${t.name} was set to ${t.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=e=>{if(e.stopPropagation(),console.log(e),e instanceof CustomEvent&&e.detail.formData instanceof FormData)for(let[t,o]of e.detail.formData.entries())this.value.set(t,o),console.log(`Added ${t}=${o} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=M(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(e){super.updated(e),this.establishFormData()}render(){return We`<slot></slot>`}establishFormData(){const e=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!e||0===e?.length)return;const t=Array.from(e).filter((e=>!e.assignedSlot&&(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof It)&&e.name));t.forEach((e=>{const t=e;if(t instanceof HTMLSelectElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof HTMLTextAreaElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof It)for(let[e,o]of t.value.entries())this.value.set(`${this.name}${e}`,o);else t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type?t.checked&&this.value.set(`${this.name}${t.name}`,t.value):this.value.set(`${this.name}${t.name}`,t.value))})),this.internals.setFormValue(this.value),console.trace(`Set ${this.name} values to `,this.value)}};Pt([ut({type:FormData}),Ht("design:type",FormData)],Bt.prototype,"value",void 0),Pt([ut({type:String}),Ht("design:type",Object)],Bt.prototype,"template",void 0),Pt([ut({type:String}),Ht("design:type",Object)],Bt.prototype,"name",void 0),Pt([ut({type:Object}),Ht("design:type",Object)],Bt.prototype,"data",void 0),Bt=It=Pt([pt("qbo-form-element"),Ht("design:paramtypes",[])],Bt);const Nt=new Map;Nt.set("arrow-left",Xe`<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>`),Nt.set("arrow-left-circle",Xe`<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Nt.set("arrow-left-circle-fill",Xe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Nt.set("arrow-right",Xe`<path fill-rule="evenodd" d="M5 8a.5.5 0 0 1 .5-.5h11.293L13.646 4.354a.5.5 0 1 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L16.793 8.5H5.5A.5.5 0 0 1 5 8z"/>`),Nt.set("arrow-right-circle",Xe`<path fill-rule="evenodd" d="M16 8a8 8 0 1 0-16 0 8 8 0 0 0 16 0zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.854 8.354a.5.5 0 0 1-.708 0L8.5 8.707V11a.5.5 0 0 1-1 0V8.707L5.854 9.354a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708z"/>`),Nt.set("arrow-right-circle-fill",Xe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.5 8.5a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 8.5H11.5a.5.5 0 0 1 .5.5z"/>`),Nt.set("arrow-up",Xe` <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>`),Nt.set("arrow-up-circle",Xe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm-.5 10a.5.5 0 0 1 1 0V5.707L10.646 7.854a.5.5 0 1 1-.708.708l-3-3a.5.5 0 0 1 0-.708l-3 3a.5.5 0 0 1-.708-.708L7.293 5.707V11z"/>`),Nt.set("arrow-up-circle-fill",Xe`<path d="M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0zM7.5 4a.5.5 0 0 1 1 0v5.793L9.854 7.854a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 .708-.708L7.5 9.793V4z"/>`),Nt.set("arrow-down",Xe` <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>`),Nt.set("arrow-down-circle",Xe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm.5 10a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11z"/>`),Nt.set("folder",Xe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5zM2.5 3a.5.5 0 0 0-.5.5V6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3zM14 7H2v5.5a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5z"/>`),Nt.set("folder-open",Xe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v.64c.57.265.94.876.856 1.546l-.64 5.124A2.5 2.5 0 0 1 12.733 15H3.266a2.5 2.5 0 0 1-2.481-2.19l-.64-5.124A1.5 1.5 0 0 1 1 6.14zM2 6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3H2.5a.5.5 0 0 0-.5.5zm-.367 1a.5.5 0 0 0-.496.562l.64 5.124A1.5 1.5 0 0 0 3.266 14h9.468a1.5 1.5 0 0 0 1.489-1.314l.64-5.124A.5.5 0 0 0 14.367 7z"/>`),Nt.set("spreadsheet",Xe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V9H3V2a1 1 0 0 1 1-1h5.5zM3 12v-2h2v2zm0 1h2v2H4a1 1 0 0 1-1-1zm3 2v-2h3v2zm4 0v-2h3v1a1 1 0 0 1-1 1zm3-3h-3v-2h3zm-7 0v-2h3v2z"/>`),Nt.set("pdf",Xe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/><path d="M4.603 14.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.7 11.7 0 0 0-1.997.406 11.3 11.3 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.245.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 7.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z"/>`),Nt.set("image",Xe`<path d="M6.502 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"/><path d="M14 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zM4 1a1 1 0 0 0-1 1v10l2.224-2.224a.5.5 0 0 1 .61-.075L8 11l2.157-3.02a.5.5 0 0 1 .76-.063L13 10V4.5h-2A1.5 1.5 0 0 1 9.5 3V1z"/>`),Nt.set("document",Xe`<path d="M5.485 6.879a.5.5 0 1 0-.97.242l1.5 6a.5.5 0 0 0 .967.01L8 9.402l1.018 3.73a.5.5 0 0 0 .967-.01l1.5-6a.5.5 0 0 0-.97-.242l-1.036 4.144-.997-3.655a.5.5 0 0 0-.964 0l-.997 3.655L5.485 6.88z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Nt.set("audio",Xe`<path d="M11 6.64a1 1 0 0 0-1.243-.97l-1 .25A1 1 0 0 0 8 6.89v4.306A2.6 2.6 0 0 0 7 11c-.5 0-.974.134-1.338.377-.36.24-.662.628-.662 1.123s.301.883.662 1.123c.364.243.839.377 1.338.377s.974-.134 1.338-.377c.36-.24.662-.628.662-1.123V8.89l2-.5z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Nt.set("video",Xe`<path fill-rule="evenodd" d="M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/>`),Nt.set("upload",Xe` <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"/>`),Nt.set("download",Xe`<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>`),Nt.set("text",Xe`<path d="M5 4a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5M5 8a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm0 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm10-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"/>`),Nt.set("pin",Xe`<path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A6 6 0 0 1 5 6.708V2.277a3 3 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354m1.58 1.408-.002-.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a5 5 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a5 5 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.8 1.8 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14q.091.15.214.271a1.8 1.8 0 0 0 .37.282"/>`),Nt.set("pin-angle",Xe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>`),Nt.set("pin-angle-fill",Xe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146" />`),Nt.set("check-square",Xe` <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>`),Nt.set("check-square-fill",Xe` <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm10.03 4.97a.75.75 0 0 1 .011 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.75.75 0 0 1 1.08-.022z"/>`),Nt.set("square",Xe`<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" />`),Nt.set("square-fill",Xe` <path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2z"/>`),Nt.set("minus-square",Xe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.5 8a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Nt.set("minus-square-fill",Xe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM4 7.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Nt.set("plus-square",Xe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Nt.set("plus-square-fill",Xe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Nt.set("square-half",Xe`<path d="M8 14V2H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6z"/><path d="M8 1H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-1zM2 0h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z"/>`),Nt.set("x-square",Xe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>`),Nt.set("x-square-fill",Xe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM9.854 10.146a.5.5 0 0 1-.708 0L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 1 1 .708-.708L8 8.293l1.146-1.147a.5.5 0 0 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1 0 .708z"/>`),Nt.set("cut",Xe`<path d="M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"/>`),Nt.set("copy",Xe`<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"/>`),Nt.set("paste",Xe`<path d="M9.5 0a.5.5 0 0 1 .5.5.5.5 0 0 0 .5.5.5.5 0 0 1 .5.5V2a.5.5 0 0 1-.5.5h-5A.5.5 0 0 1 5 2v-.5a.5.5 0 0 1 .5-.5.5.5 0 0 0 .5-.5.5.5 0 0 1 .5-.5z"/><path d="M3 2.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 0 0-1h-.5A1.5 1.5 0 0 0 2 2.5v12A1.5 1.5 0 0 0 3.5 16h9a1.5 1.5 0 0 0 1.5-1.5v-12A1.5 1.5 0 0 0 12.5 1H12a.5.5 0 0 0 0 1h.5a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5z"/><path d="M8.5 6.5a.5.5 0 0 0-1 0V8H6a.5.5 0 0 0 0 1h1.5v1.5a.5.5 0 0 0 1 0V9H10a.5.5 0 0 0 0-1H8.5z"/>`),Nt.set("delete",Xe` <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>`),Nt.set("refresh",Xe`<path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9"/><path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z"/>`),Nt.set("error",Xe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>`),Nt.set("warning",Xe`<path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"/><path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/>`),Nt.set("info",Xe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>`),Nt.set("debug",Xe`<path d="M4.355.522a.5.5 0 0 1 .623.333l.291.956A5 5 0 0 1 8 1c1.007 0 1.946.298 2.731.811l.29-.956a.5.5 0 1 1 .957.29l-.41 1.352A5 5 0 0 1 13 6h.5a.5.5 0 0 0 .5-.5V5a.5.5 0 0 1 1 0v.5A1.5 1.5 0 0 1 13.5 7H13v1h1.5a.5.5 0 0 1 0 1H13v1h.5a1.5 1.5 0 0 1 1.5 1.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 0-.5-.5H13a5 5 0 0 1-10 0h-.5a.5.5 0 0 0-.5.5v.5a.5.5 0 1 1-1 0v-.5A1.5 1.5 0 0 1 2.5 10H3V9H1.5a.5.5 0 0 1 0-1H3V7h-.5A1.5 1.5 0 0 1 1 5.5V5a.5.5 0 0 1 1 0v.5a.5.5 0 0 0 .5.5H3c0-1.364.547-2.601 1.432-3.503l-.41-1.352a.5.5 0 0 1 .333-.623M4 7v4a4 4 0 0 0 3.5 3.97V7zm4.5 0v7.97A4 4 0 0 0 12 11V7zM12 6a4 4 0 0 0-1.334-2.982A3.98 3.98 0 0 0 8 2a3.98 3.98 0 0 0-2.667 1.018A4 4 0 0 0 4 6z"/>`),Nt.set("trace",Xe`<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>`),Nt.set("qbo",Xe`<svg height="16" width="16" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="10" r="10" /><circle cx="17" cy="32" r="10" /><circle cx="43" cy="32" r="10" /></svg>`);var Vt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Gt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ft=class extends dt{constructor(){super(...arguments),this.type="icon",this.icon=null,this.height=16,this.width=16,this.viewbox="0 0 16 16",this.fill="currentColor",this.backgroundColor=null,this.unknown="warning",this.disabled=!1,this.renderInHost=!0}connectedCallback(){this.type??="icon",super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}renderAll(e){return We`<div class="container">
83
+ </slot>`}};Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"aDropdownClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"buttonPrimaryClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"buttonPrimaryDropdownClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"buttonType",void 0),Tt([ut({type:Object,attribute:!1}),Mt("design:type",Object)],Dt.prototype,"data",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"divButtonGroupClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"divFormActionClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"divSectionHeaderClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"dropdownToggle",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"editLabel",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"helpIcon",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"helpText",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"historyIcon",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"historyText",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"infoButtonClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"infoIconClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"infoTitle",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"popoverClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"spanEditClass",void 0),Tt([ut({type:String}),Mt("design:type",Object)],Dt.prototype,"ulDropdownClass",void 0),Tt([ut(),Mt("design:type",Object)],Dt.prototype,"type",void 0),Tt([ut({type:Boolean}),Mt("design:type",Object)],Dt.prototype,"renderInHost",void 0),Dt=Tt([pt("qbo-form-edit")],Dt);var It,Pt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ht=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Bt=class extends dt{static{It=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=e=>{const t=e.target;t.matches("input, select, textarea")&&t.name&&!t.assignedSlot&&(this.value.set(`${this.name}${t.name}`,t.value),console.trace(`${this.name}${t.name} was set to ${t.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=e=>{if(e.stopPropagation(),console.log(e),e instanceof CustomEvent&&e.detail.formData instanceof FormData)for(let[t,o]of e.detail.formData.entries())this.value.set(t,o),console.log(`Added ${t}=${o} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=M(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(e){super.updated(e),this.establishFormData()}render(){return We`<slot></slot>`}establishFormData(){const e=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!e||0===e?.length)return;const t=Array.from(e).filter((e=>!e.assignedSlot&&(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof It)&&e.name));t.forEach((e=>{const t=e;if(t instanceof HTMLSelectElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof HTMLTextAreaElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof It)for(let[e,o]of t.value.entries())this.value.set(`${this.name}${e}`,o);else t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type?t.checked&&this.value.set(`${this.name}${t.name}`,t.value):this.value.set(`${this.name}${t.name}`,t.value))})),this.internals.setFormValue(this.value),console.trace(`Set ${this.name} values to `,this.value)}};Pt([ut({type:FormData}),Ht("design:type",FormData)],Bt.prototype,"value",void 0),Pt([ut({type:String}),Ht("design:type",Object)],Bt.prototype,"template",void 0),Pt([ut({type:String}),Ht("design:type",Object)],Bt.prototype,"name",void 0),Pt([ut({type:Object}),Ht("design:type",Object)],Bt.prototype,"data",void 0),Bt=It=Pt([pt("qbo-form-element"),Ht("design:paramtypes",[])],Bt);const Nt=new Map;Nt.set("arrow-left",Xe`<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>`),Nt.set("arrow-left-circle",Xe`<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Nt.set("arrow-left-circle-fill",Xe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Nt.set("arrow-right",Xe`<path fill-rule="evenodd" d="M5 8a.5.5 0 0 1 .5-.5h11.293L13.646 4.354a.5.5 0 1 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L16.793 8.5H5.5A.5.5 0 0 1 5 8z"/>`),Nt.set("arrow-right-circle",Xe`<path fill-rule="evenodd" d="M16 8a8 8 0 1 0-16 0 8 8 0 0 0 16 0zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.854 8.354a.5.5 0 0 1-.708 0L8.5 8.707V11a.5.5 0 0 1-1 0V8.707L5.854 9.354a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708z"/>`),Nt.set("arrow-right-circle-fill",Xe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.5 8.5a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 8.5H11.5a.5.5 0 0 1 .5.5z"/>`),Nt.set("arrow-up",Xe` <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>`),Nt.set("arrow-up-circle",Xe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm-.5 10a.5.5 0 0 1 1 0V5.707L10.646 7.854a.5.5 0 1 1-.708.708l-3-3a.5.5 0 0 1 0-.708l-3 3a.5.5 0 0 1-.708-.708L7.293 5.707V11z"/>`),Nt.set("arrow-up-circle-fill",Xe`<path d="M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0zM7.5 4a.5.5 0 0 1 1 0v5.793L9.854 7.854a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 .708-.708L7.5 9.793V4z"/>`),Nt.set("arrow-down",Xe` <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>`),Nt.set("arrow-down-circle",Xe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm.5 10a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11z"/>`),Nt.set("folder",Xe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5zM2.5 3a.5.5 0 0 0-.5.5V6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3zM14 7H2v5.5a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5z"/>`),Nt.set("folder-open",Xe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v.64c.57.265.94.876.856 1.546l-.64 5.124A2.5 2.5 0 0 1 12.733 15H3.266a2.5 2.5 0 0 1-2.481-2.19l-.64-5.124A1.5 1.5 0 0 1 1 6.14zM2 6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3H2.5a.5.5 0 0 0-.5.5zm-.367 1a.5.5 0 0 0-.496.562l.64 5.124A1.5 1.5 0 0 0 3.266 14h9.468a1.5 1.5 0 0 0 1.489-1.314l.64-5.124A.5.5 0 0 0 14.367 7z"/>`),Nt.set("spreadsheet",Xe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V9H3V2a1 1 0 0 1 1-1h5.5zM3 12v-2h2v2zm0 1h2v2H4a1 1 0 0 1-1-1zm3 2v-2h3v2zm4 0v-2h3v1a1 1 0 0 1-1 1zm3-3h-3v-2h3zm-7 0v-2h3v2z"/>`),Nt.set("pdf",Xe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/><path d="M4.603 14.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.7 11.7 0 0 0-1.997.406 11.3 11.3 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.245.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 7.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z"/>`),Nt.set("image",Xe`<path d="M6.502 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"/><path d="M14 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zM4 1a1 1 0 0 0-1 1v10l2.224-2.224a.5.5 0 0 1 .61-.075L8 11l2.157-3.02a.5.5 0 0 1 .76-.063L13 10V4.5h-2A1.5 1.5 0 0 1 9.5 3V1z"/>`),Nt.set("document",Xe`<path d="M5.485 6.879a.5.5 0 1 0-.97.242l1.5 6a.5.5 0 0 0 .967.01L8 9.402l1.018 3.73a.5.5 0 0 0 .967-.01l1.5-6a.5.5 0 0 0-.97-.242l-1.036 4.144-.997-3.655a.5.5 0 0 0-.964 0l-.997 3.655L5.485 6.88z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Nt.set("audio",Xe`<path d="M11 6.64a1 1 0 0 0-1.243-.97l-1 .25A1 1 0 0 0 8 6.89v4.306A2.6 2.6 0 0 0 7 11c-.5 0-.974.134-1.338.377-.36.24-.662.628-.662 1.123s.301.883.662 1.123c.364.243.839.377 1.338.377s.974-.134 1.338-.377c.36-.24.662-.628.662-1.123V8.89l2-.5z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Nt.set("video",Xe`<path fill-rule="evenodd" d="M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/>`),Nt.set("upload",Xe` <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"/>`),Nt.set("download",Xe`<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>`),Nt.set("text",Xe`<path d="M5 4a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5M5 8a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm0 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm10-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"/>`),Nt.set("pin",Xe`<path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A6 6 0 0 1 5 6.708V2.277a3 3 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354m1.58 1.408-.002-.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a5 5 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a5 5 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.8 1.8 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14q.091.15.214.271a1.8 1.8 0 0 0 .37.282"/>`),Nt.set("pin-angle",Xe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>`),Nt.set("pin-angle-fill",Xe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146" />`),Nt.set("headset",Xe`<path d="M8 1a5 5 0 0 0-5 5v1h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a6 6 0 1 1 12 0v6a2.5 2.5 0 0 1-2.5 2.5H9.366a1 1 0 0 1-.866.5h-1a1 1 0 1 1 0-2h1a1 1 0 0 1 .866.5H11.5A1.5 1.5 0 0 0 13 12h-1a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1V6a5 5 0 0 0-5-5"/>`),Nt.set("check-square",Xe` <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>`),Nt.set("check-square-fill",Xe` <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm10.03 4.97a.75.75 0 0 1 .011 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.75.75 0 0 1 1.08-.022z"/>`),Nt.set("square",Xe`<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" />`),Nt.set("square-fill",Xe` <path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2z"/>`),Nt.set("minus-square",Xe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.5 8a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Nt.set("minus-square-fill",Xe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM4 7.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Nt.set("plus-square",Xe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Nt.set("plus-square-fill",Xe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Nt.set("square-half",Xe`<path d="M8 14V2H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6z"/><path d="M8 1H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-1zM2 0h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z"/>`),Nt.set("x-square",Xe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>`),Nt.set("x-square-fill",Xe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM9.854 10.146a.5.5 0 0 1-.708 0L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 1 1 .708-.708L8 8.293l1.146-1.147a.5.5 0 0 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1 0 .708z"/>`),Nt.set("cut",Xe`<path d="M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"/>`),Nt.set("copy",Xe`<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"/>`),Nt.set("paste",Xe`<path d="M9.5 0a.5.5 0 0 1 .5.5.5.5 0 0 0 .5.5.5.5 0 0 1 .5.5V2a.5.5 0 0 1-.5.5h-5A.5.5 0 0 1 5 2v-.5a.5.5 0 0 1 .5-.5.5.5 0 0 0 .5-.5.5.5 0 0 1 .5-.5z"/><path d="M3 2.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 0 0-1h-.5A1.5 1.5 0 0 0 2 2.5v12A1.5 1.5 0 0 0 3.5 16h9a1.5 1.5 0 0 0 1.5-1.5v-12A1.5 1.5 0 0 0 12.5 1H12a.5.5 0 0 0 0 1h.5a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5z"/><path d="M8.5 6.5a.5.5 0 0 0-1 0V8H6a.5.5 0 0 0 0 1h1.5v1.5a.5.5 0 0 0 1 0V9H10a.5.5 0 0 0 0-1H8.5z"/>`),Nt.set("delete",Xe` <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>`),Nt.set("refresh",Xe`<path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9"/><path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z"/>`),Nt.set("error",Xe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>`),Nt.set("warning",Xe`<path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"/><path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/>`),Nt.set("info",Xe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>`),Nt.set("debug",Xe`<path d="M4.355.522a.5.5 0 0 1 .623.333l.291.956A5 5 0 0 1 8 1c1.007 0 1.946.298 2.731.811l.29-.956a.5.5 0 1 1 .957.29l-.41 1.352A5 5 0 0 1 13 6h.5a.5.5 0 0 0 .5-.5V5a.5.5 0 0 1 1 0v.5A1.5 1.5 0 0 1 13.5 7H13v1h1.5a.5.5 0 0 1 0 1H13v1h.5a1.5 1.5 0 0 1 1.5 1.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 0-.5-.5H13a5 5 0 0 1-10 0h-.5a.5.5 0 0 0-.5.5v.5a.5.5 0 1 1-1 0v-.5A1.5 1.5 0 0 1 2.5 10H3V9H1.5a.5.5 0 0 1 0-1H3V7h-.5A1.5 1.5 0 0 1 1 5.5V5a.5.5 0 0 1 1 0v.5a.5.5 0 0 0 .5.5H3c0-1.364.547-2.601 1.432-3.503l-.41-1.352a.5.5 0 0 1 .333-.623M4 7v4a4 4 0 0 0 3.5 3.97V7zm4.5 0v7.97A4 4 0 0 0 12 11V7zM12 6a4 4 0 0 0-1.334-2.982A3.98 3.98 0 0 0 8 2a3.98 3.98 0 0 0-2.667 1.018A4 4 0 0 0 4 6z"/>`),Nt.set("trace",Xe`<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>`),Nt.set("qbo",Xe`<svg height="16" width="16" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="10" r="10" /><circle cx="17" cy="32" r="10" /><circle cx="43" cy="32" r="10" /></svg>`);var Vt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Gt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ft=class extends dt{constructor(){super(...arguments),this.type="icon",this.icon=null,this.height=16,this.width=16,this.viewbox="0 0 16 16",this.fill="currentColor",this.backgroundColor=null,this.unknown="warning",this.disabled=!1,this.renderInHost=!0}connectedCallback(){this.type??="icon",super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}renderAll(e){return We`<div class="container">
84
84
  <div class="row">
85
85
  ${Array.from(Nt.keys()).map((t=>We`
86
86
  <div class="col-md-4"> <!-- Divides into 3 columns on medium screens and larger -->
@@ -97,7 +97,7 @@ var e={630:(e,t,o)=>{var r;!function(e){!function(){var t="object"==typeof globa
97
97
  </div>
98
98
  `))}
99
99
  </div>
100
- </div>`}renderIcon(e){return null==e.icon&&(console.warn("qbo-icon: icon attribute is required"),e.icon=e.unknown),Nt.has(e.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Nt.keys()).join(" ")}`),e.icon=e.unknown),We`<svg width="${e.width}" height="${e.width}" fill="${e.fill}" ?class=${e.getAttribute("class")} viewBox="${e.viewbox}">${e.backgroundColor?Xe`<rect width="${e.width}" height="${e.height}" fill="${e.backgroundColor}" />`:Xe``}${Nt.get(e.icon)}</svg>`}renderButton(e){return We`<button type="button" ?disabled=${e.disabled}>${e.renderIcon(e)}</button>`}render(){switch(this.type){case"icon":default:return this.renderIcon(this);case"button":return this.renderButton(this);case"all":return this.renderAll(this)}}};Vt([ut(),Gt("design:type",String)],Ft.prototype,"type",void 0),Vt([ut(),Gt("design:type",Object)],Ft.prototype,"icon",void 0),Vt([ut(),Gt("design:type",Number)],Ft.prototype,"height",void 0),Vt([ut(),Gt("design:type",Number)],Ft.prototype,"width",void 0),Vt([ut(),Gt("design:type",String)],Ft.prototype,"viewbox",void 0),Vt([ut(),Gt("design:type",String)],Ft.prototype,"fill",void 0),Vt([ut(),Gt("design:type",Object)],Ft.prototype,"backgroundColor",void 0),Vt([ut(),Gt("design:type",String)],Ft.prototype,"unknown",void 0),Vt([ut(),Gt("design:type",Boolean)],Ft.prototype,"disabled",void 0),Vt([ut({type:Boolean,reflect:!0}),Gt("design:type",Object)],Ft.prototype,"renderInHost",void 0),Ft=Vt([pt("qbo-icon")],Ft);var Ut,Wt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Xt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Yt=class extends dt{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{Ut=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=this.continuous,e.interimResults=this.interimResults,e.maxAlternatives=this.maxAlternatives,e.onresult=e=>{this.onResult(e)},e.onspeechend=e=>{this.stop(e)},e.onerror=e=>{this.error(e)},this._recognition=e,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(e){const t=e.results[e.results.length-1][0].transcript;if(console.log("Result: "+t),null==this.target)return;const o=this.target;if(o instanceof HTMLInputElement)"radio"===o.type?o.value===t&&(o.checked=!0):this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLTextAreaElement)this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLSelectElement)for(let e=0;e<o.options.length;e++)if(o.options[e].value===t||o.options[e].text===t){o.selectedIndex=e;break}}listen(e){this.listening?this.stop(e):this.start()}start(){this.listening=!0,Ut.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(e){this.listening=!1,Ut.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(e){console.log("Error during speech recognition:",e)}render(){return We`<slot></slot>`}};Wt([ut({type:Boolean}),Xt("design:type",Object)],Yt.prototype,"renderInHost",void 0),Wt([ut({type:Boolean}),Xt("design:type",Object)],Yt.prototype,"continuous",void 0),Wt([ut({type:Boolean}),Xt("design:type",Object)],Yt.prototype,"interimResults",void 0),Wt([ut({type:Number}),Xt("design:type",Object)],Yt.prototype,"maxAlternatives",void 0),Wt([ut({type:String}),Xt("design:type",Object)],Yt.prototype,"for",void 0),Wt([ut({type:String}),Xt("design:type",Object)],Yt.prototype,"class",void 0),Wt([ut({type:String}),Xt("design:type",Object)],Yt.prototype,"activeClass",void 0),Yt=Ut=Wt([pt("qbo-microphone")],Yt);var Kt="top",Qt="bottom",Jt="right",Zt="left",eo="auto",to=[Kt,Qt,Jt,Zt],oo="start",ro="end",no="clippingParents",io="viewport",ao="popper",lo="reference",so=to.reduce((function(e,t){return e.concat([t+"-"+oo,t+"-"+ro])}),[]),bo=[].concat(to,[eo]).reduce((function(e,t){return e.concat([t,t+"-"+oo,t+"-"+ro])}),[]),co="beforeRead",fo="read",po="afterRead",mo="beforeMain",go="main",uo="afterMain",ho="beforeWrite",vo="write",xo="afterWrite",wo=[co,fo,po,mo,go,uo,ho,vo,xo];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function ko(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _o(e){return e instanceof ko(e).Element||e instanceof Element}function qo(e){return e instanceof ko(e).HTMLElement||e instanceof HTMLElement}function jo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ko(e).ShadowRoot||e instanceof ShadowRoot)}const zo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},n=t.elements[e];qo(n)&&yo(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){var t=r[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});qo(r)&&yo(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Co(e){return e.split("-")[0]}var $o=Math.max,So=Math.min,Ao=Math.round;function Oo(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Eo(){return!/^((?!chrome|android).)*safari/i.test(Oo())}function Ro(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),n=1,i=1;t&&qo(e)&&(n=e.offsetWidth>0&&Ao(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ao(r.height)/e.offsetHeight||1);var a=(_o(e)?ko(e):window).visualViewport,l=!Eo()&&o,s=(r.left+(l&&a?a.offsetLeft:0))/n,b=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/n,d=r.height/i;return{width:c,height:d,top:b,right:s+c,bottom:b+d,left:s,x:s,y:b}}function To(e){var t=Ro(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Mo(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&jo(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lo(e){return ko(e).getComputedStyle(e)}function Do(e){return["table","td","th"].indexOf(yo(e))>=0}function Io(e){return((_o(e)?e.ownerDocument:e.document)||window.document).documentElement}function Po(e){return"html"===yo(e)?e:e.assignedSlot||e.parentNode||(jo(e)?e.host:null)||Io(e)}function Ho(e){return qo(e)&&"fixed"!==Lo(e).position?e.offsetParent:null}function Bo(e){for(var t=ko(e),o=Ho(e);o&&Do(o)&&"static"===Lo(o).position;)o=Ho(o);return o&&("html"===yo(o)||"body"===yo(o)&&"static"===Lo(o).position)?t:o||function(e){var t=/firefox/i.test(Oo());if(/Trident/i.test(Oo())&&qo(e)&&"fixed"===Lo(e).position)return null;var o=Po(e);for(jo(o)&&(o=o.host);qo(o)&&["html","body"].indexOf(yo(o))<0;){var r=Lo(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function No(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vo(e,t,o){return $o(e,So(t,o))}function Go(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fo(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}const Uo={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,r=e.name,n=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=Co(o.placement),s=No(l),b=[Zt,Jt].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Go("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fo(e,to))}(n.padding,o),d=To(i),f="y"===s?Kt:Zt,p="y"===s?Qt:Jt,m=o.rects.reference[b]+o.rects.reference[s]-a[s]-o.rects.popper[b],g=a[s]-o.rects.reference[s],u=Bo(i),h=u?"y"===s?u.clientHeight||0:u.clientWidth||0:0,v=m/2-g/2,x=c[f],w=h-d[b]-c[p],y=h/2-d[b]/2+v,k=Vo(x,y,w),_=s;o.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-y,t)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Mo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wo(e){return e.split("-")[1]}var Xo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yo(e){var t,o=e.popper,r=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,b=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,g=void 0===m?0:m,u="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=u.x,g=u.y;var h=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=Zt,w=Kt,y=window;if(b){var k=Bo(o),_="clientHeight",q="clientWidth";k===ko(o)&&"static"!==Lo(k=Io(o)).position&&"absolute"===l&&(_="scrollHeight",q="scrollWidth"),(n===Kt||(n===Zt||n===Jt)&&i===ro)&&(w=Qt,g-=(d&&k===y&&y.visualViewport?y.visualViewport.height:k[_])-r.height,g*=s?1:-1),n!==Zt&&(n!==Kt&&n!==Qt||i!==ro)||(x=Jt,p-=(d&&k===y&&y.visualViewport?y.visualViewport.width:k[q])-r.width,p*=s?1:-1)}var j,z=Object.assign({position:l},b&&Xo),C=!0===c?function(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:Ao(o*n)/n||0,y:Ao(r*n)/n||0}}({x:p,y:g},ko(o)):{x:p,y:g};return p=C.x,g=C.y,s?Object.assign({},z,((j={})[w]=v?"0":"",j[x]=h?"0":"",j.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",j)):Object.assign({},z,((t={})[w]=v?g+"px":"",t[x]=h?p+"px":"",t.transform="",t))}const Ko={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=void 0===r||r,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,b={placement:Co(t.placement),variation:Wo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yo(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yo(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qo={passive:!0};const Jo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,i=void 0===n||n,a=r.resize,l=void 0===a||a,s=ko(t.elements.popper),b=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&b.forEach((function(e){e.addEventListener("scroll",o.update,Qo)})),l&&s.addEventListener("resize",o.update,Qo),function(){i&&b.forEach((function(e){e.removeEventListener("scroll",o.update,Qo)})),l&&s.removeEventListener("resize",o.update,Qo)}},data:{}};var Zo={left:"right",right:"left",bottom:"top",top:"bottom"};function er(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zo[e]}))}var tr={start:"end",end:"start"};function or(e){return e.replace(/start|end/g,(function(e){return tr[e]}))}function rr(e){var t=ko(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nr(e){return Ro(Io(e)).left+rr(e).scrollLeft}function ir(e){var t=Lo(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function ar(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:qo(e)&&ir(e)?e:ar(Po(e))}function lr(e,t){var o;void 0===t&&(t=[]);var r=ar(e),n=r===(null==(o=e.ownerDocument)?void 0:o.body),i=ko(r),a=n?[i].concat(i.visualViewport||[],ir(r)?r:[]):r,l=t.concat(a);return n?l:l.concat(lr(Po(a)))}function sr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function br(e,t,o){return t===io?sr(function(e,t){var o=ko(e),r=Io(e),n=o.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(n){i=n.width,a=n.height;var b=Eo();(b||!b&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:i,height:a,x:l+nr(e),y:s}}(e,o)):_o(t)?function(e,t){var o=Ro(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):sr(function(e){var t,o=Io(e),r=rr(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=$o(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=$o(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-r.scrollLeft+nr(e),s=-r.scrollTop;return"rtl"===Lo(n||o).direction&&(l+=$o(o.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Io(e)))}function cr(e){var t,o=e.reference,r=e.element,n=e.placement,i=n?Co(n):null,a=n?Wo(n):null,l=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2;switch(i){case Kt:t={x:l,y:o.y-r.height};break;case Qt:t={x:l,y:o.y+o.height};break;case Jt:t={x:o.x+o.width,y:s};break;case Zt:t={x:o.x-r.width,y:s};break;default:t={x:o.x,y:o.y}}var b=i?No(i):null;if(null!=b){var c="y"===b?"height":"width";switch(a){case oo:t[b]=t[b]-(o[c]/2-r[c]/2);break;case ro:t[b]=t[b]+(o[c]/2-r[c]/2)}}return t}function dr(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=void 0===r?e.placement:r,i=o.strategy,a=void 0===i?e.strategy:i,l=o.boundary,s=void 0===l?no:l,b=o.rootBoundary,c=void 0===b?io:b,d=o.elementContext,f=void 0===d?ao:d,p=o.altBoundary,m=void 0!==p&&p,g=o.padding,u=void 0===g?0:g,h=Go("number"!=typeof u?u:Fo(u,to)),v=f===ao?lo:ao,x=e.rects.popper,w=e.elements[m?v:f],y=function(e,t,o,r){var n="clippingParents"===t?function(e){var t=lr(Po(e)),o=["absolute","fixed"].indexOf(Lo(e).position)>=0&&qo(e)?Bo(e):e;return _o(o)?t.filter((function(e){return _o(e)&&Mo(e,o)&&"body"!==yo(e)})):[]}(e):[].concat(t),i=[].concat(n,[o]),a=i[0],l=i.reduce((function(t,o){var n=br(e,o,r);return t.top=$o(n.top,t.top),t.right=So(n.right,t.right),t.bottom=So(n.bottom,t.bottom),t.left=$o(n.left,t.left),t}),br(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(_o(w)?w:w.contextElement||Io(e.elements.popper),s,c,a),k=Ro(e.elements.reference),_=cr({reference:k,element:x,strategy:"absolute",placement:n}),q=sr(Object.assign({},x,_)),j=f===ao?q:k,z={top:y.top-j.top+h.top,bottom:j.bottom-y.bottom+h.bottom,left:y.left-j.left+h.left,right:j.right-y.right+h.right},C=e.modifiersData.offset;if(f===ao&&C){var $=C[n];Object.keys(z).forEach((function(e){var t=[Jt,Qt].indexOf(e)>=0?1:-1,o=[Kt,Qt].indexOf(e)>=0?"y":"x";z[e]+=$[o]*t}))}return z}const fr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,b=o.padding,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,p=o.flipVariations,m=void 0===p||p,g=o.allowedAutoPlacements,u=t.options.placement,h=Co(u),v=s||(h!==u&&m?function(e){if(Co(e)===eo)return[];var t=er(e);return[or(e),t,or(t)]}(u):[er(u)]),x=[u].concat(v).reduce((function(e,o){return e.concat(Co(o)===eo?function(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,b=void 0===s?bo:s,c=Wo(r),d=c?l?so:so.filter((function(e){return Wo(e)===c})):to,f=d.filter((function(e){return b.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,o){return t[o]=dr(e,{placement:o,boundary:n,rootBoundary:i,padding:a})[Co(o)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:o,boundary:c,rootBoundary:d,padding:b,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),w=t.rects.reference,y=t.rects.popper,k=new Map,_=!0,q=x[0],j=0;j<x.length;j++){var z=x[j],C=Co(z),$=Wo(z)===oo,S=[Kt,Qt].indexOf(C)>=0,A=S?"width":"height",O=dr(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:f,padding:b}),E=S?$?Jt:Zt:$?Qt:Kt;w[A]>y[A]&&(E=er(E));var R=er(E),T=[];if(i&&T.push(O[C]<=0),l&&T.push(O[E]<=0,O[R]<=0),T.every((function(e){return e}))){q=z,_=!1;break}k.set(z,T)}if(_)for(var M=function(e){var t=x.find((function(t){var o=k.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return q=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pr(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function mr(e){return[Kt,Jt,Qt,Zt].some((function(t){return e[t]>=0}))}const gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=dr(t,{elementContext:"reference"}),l=dr(t,{altBoundary:!0}),s=pr(a,r),b=pr(l,n,i),c=mr(s),d=mr(b);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:b,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.offset,i=void 0===n?[0,0]:n,a=bo.reduce((function(e,o){return e[o]=function(e,t,o){var r=Co(e),n=[Zt,Kt].indexOf(r)>=0?-1:1,i="function"==typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[Zt,Jt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,b=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=b),t.modifiersData[r]=a}},hr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=cr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},vr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,b=o.rootBoundary,c=o.altBoundary,d=o.padding,f=o.tether,p=void 0===f||f,m=o.tetherOffset,g=void 0===m?0:m,u=dr(t,{boundary:s,rootBoundary:b,padding:d,altBoundary:c}),h=Co(t.placement),v=Wo(t.placement),x=!v,w=No(h),y="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,q=t.rects.popper,j="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,z="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(k){if(i){var S,A="y"===w?Kt:Zt,O="y"===w?Qt:Jt,E="y"===w?"height":"width",R=k[w],T=R+u[A],M=R-u[O],L=p?-q[E]/2:0,D=v===oo?_[E]:q[E],I=v===oo?-q[E]:-_[E],P=t.elements.arrow,H=p&&P?To(P):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=B[A],V=B[O],G=Vo(0,_[E],H[E]),F=x?_[E]/2-L-G-N-z.mainAxis:D-G-N-z.mainAxis,U=x?-_[E]/2+L+G+V+z.mainAxis:I+G+V+z.mainAxis,W=t.elements.arrow&&Bo(t.elements.arrow),X=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(S=null==C?void 0:C[w])?S:0,K=R+U-Y,Q=Vo(p?So(T,R+F-Y-X):T,R,p?$o(M,K):M);k[w]=Q,$[w]=Q-R}if(l){var J,Z="x"===w?Kt:Zt,ee="x"===w?Qt:Jt,te=k[y],oe="y"===y?"height":"width",re=te+u[Z],ne=te-u[ee],ie=-1!==[Kt,Zt].indexOf(h),ae=null!=(J=null==C?void 0:C[y])?J:0,le=ie?re:te-_[oe]-q[oe]-ae+z.altAxis,se=ie?te+_[oe]+q[oe]-ae-z.altAxis:ne,be=p&&ie?function(e,t,o){var r=Vo(e,t,o);return r>o?o:r}(le,te,se):Vo(p?le:re,te,p?se:ne);k[y]=be,$[y]=be-te}t.modifiersData[r]=$}},requiresIfExists:["offset"]};function xr(e,t,o){void 0===o&&(o=!1);var r,n,i=qo(t),a=qo(t)&&function(e){var t=e.getBoundingClientRect(),o=Ao(t.width)/e.offsetWidth||1,r=Ao(t.height)/e.offsetHeight||1;return 1!==o||1!==r}(t),l=Io(t),s=Ro(e,a,o),b={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&(("body"!==yo(t)||ir(l))&&(b=(r=t)!==ko(r)&&qo(r)?{scrollLeft:(n=r).scrollLeft,scrollTop:n.scrollTop}:rr(r)),qo(t)?((c=Ro(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=nr(l))),{x:s.left+b.scrollLeft-c.x,y:s.top+b.scrollTop-c.y,width:s.width,height:s.height}}function wr(e){var t=new Map,o=new Set,r=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var r=t.get(e);r&&n(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||n(e)})),r}var yr={placement:"bottom",modifiers:[],strategy:"absolute"};function kr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function _r(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,r=void 0===o?[]:o,n=t.defaultOptions,i=void 0===n?yr:n;return function(e,t,o){void 0===o&&(o=i);var n,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},yr,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],b=!1,c={state:l,setOptions:function(o){var n="function"==typeof o?o(l.options):o;d(),l.options=Object.assign({},i,l.options,n),l.scrollParents={reference:_o(e)?lr(e):e.contextElement?lr(e.contextElement):[],popper:lr(t)};var a,b,f=function(e){var t=wr(e);return wo.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}((a=[].concat(r,l.options.modifiers),b=a.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{}),Object.keys(b).map((function(e){return b[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,o=e.options,r=void 0===o?{}:o,n=e.effect;if("function"==typeof n){var i=n({state:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!b){var e=l.elements,t=e.reference,o=e.popper;if(kr(t,o)){l.rects={reference:xr(t,Bo(o),"fixed"===l.options.strategy),popper:To(o)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var n=l.orderedModifiers[r],i=n.fn,a=n.options,s=void 0===a?{}:a,d=n.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(n=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(n())}))}))),a}),destroy:function(){d(),b=!0}};if(!kr(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(o).then((function(e){!b&&o.onFirstUpdate&&o.onFirstUpdate(e)})),c}}var qr=_r(),jr=_r({defaultModifiers:[Jo,hr,Ko,zo,ur,fr,vr,Uo,gr]}),zr=_r({defaultModifiers:[Jo,hr,Ko,zo]});const Cr=new Map,$r={set(e,t,o){Cr.has(e)||Cr.set(e,new Map);const r=Cr.get(e);r.has(t)||0===r.size?r.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>Cr.has(e)&&Cr.get(e).get(t)||null,remove(e,t){if(!Cr.has(e))return;const o=Cr.get(e);o.delete(t),0===o.size&&Cr.delete(e)}},Sr="transitionend",Ar=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Or=e=>{e.dispatchEvent(new Event(Sr))},Er=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Rr=e=>Er(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Ar(e)):null,Tr=e=>{if(!Er(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),o=e.closest("details:not([open])");if(!o)return t;if(o!==e){const t=e.closest("summary");if(t&&t.parentNode!==o)return!1;if(null===t)return!1}return t},Mr=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Lr=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Lr(e.parentNode):null},Dr=()=>{},Ir=e=>{e.offsetHeight},Pr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Hr=[],Br=()=>"rtl"===document.documentElement.dir,Nr=e=>{var t;t=()=>{const t=Pr();if(t){const o=e.NAME,r=t.fn[o];t.fn[o]=e.jQueryInterface,t.fn[o].Constructor=e,t.fn[o].noConflict=()=>(t.fn[o]=r,e.jQueryInterface)}},"loading"===document.readyState?(Hr.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Hr)e()})),Hr.push(t)):t()},Vr=(e,t=[],o=e)=>"function"==typeof e?e(...t):o,Gr=(e,t,o=!0)=>{if(!o)return void Vr(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const r=Number.parseFloat(t),n=Number.parseFloat(o);return r||n?(t=t.split(",")[0],o=o.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(o))):0})(t)+5;let n=!1;const i=({target:o})=>{o===t&&(n=!0,t.removeEventListener(Sr,i),Vr(e))};t.addEventListener(Sr,i),setTimeout((()=>{n||Or(t)}),r)},Fr=(e,t,o,r)=>{const n=e.length;let i=e.indexOf(t);return-1===i?!o&&r?e[n-1]:e[0]:(i+=o?1:-1,r&&(i=(i+n)%n),e[Math.max(0,Math.min(i,n-1))])},Ur=/[^.]*(?=\..*)\.|.*/,Wr=/\..*/,Xr=/::\d+$/,Yr={};let Kr=1;const Qr={mouseenter:"mouseover",mouseleave:"mouseout"},Jr=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 Zr(e,t){return t&&`${t}::${Kr++}`||e.uidEvent||Kr++}function en(e){const t=Zr(e);return e.uidEvent=t,Yr[t]=Yr[t]||{},Yr[t]}function tn(e,t,o=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===o))}function on(e,t,o){const r="string"==typeof t,n=r?o:t||o;let i=ln(e);return Jr.has(i)||(i=e),[r,n,i]}function rn(e,t,o,r,n){if("string"!=typeof t||!e)return;let[i,a,l]=on(t,o,r);if(t in Qr){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const s=en(e),b=s[l]||(s[l]={}),c=tn(b,a,i?o:null);if(c)return void(c.oneOff=c.oneOff&&n);const d=Zr(a,t.replace(Ur,"")),f=i?function(e,t,o){return function r(n){const i=e.querySelectorAll(t);for(let{target:a}=n;a&&a!==this;a=a.parentNode)for(const l of i)if(l===a)return bn(n,{delegateTarget:a}),r.oneOff&&sn.off(e,n.type,t,o),o.apply(a,[n])}}(e,o,a):function(e,t){return function o(r){return bn(r,{delegateTarget:e}),o.oneOff&&sn.off(e,r.type,t),t.apply(e,[r])}}(e,a);f.delegationSelector=i?o:null,f.callable=a,f.oneOff=n,f.uidEvent=d,b[d]=f,e.addEventListener(l,f,i)}function nn(e,t,o,r,n){const i=tn(t[o],r,n);i&&(e.removeEventListener(o,i,Boolean(n)),delete t[o][i.uidEvent])}function an(e,t,o,r){const n=t[o]||{};for(const[i,a]of Object.entries(n))i.includes(r)&&nn(e,t,o,a.callable,a.delegationSelector)}function ln(e){return e=e.replace(Wr,""),Qr[e]||e}const sn={on(e,t,o,r){rn(e,t,o,r,!1)},one(e,t,o,r){rn(e,t,o,r,!0)},off(e,t,o,r){if("string"!=typeof t||!e)return;const[n,i,a]=on(t,o,r),l=a!==t,s=en(e),b=s[a]||{},c=t.startsWith(".");if(void 0===i){if(c)for(const o of Object.keys(s))an(e,s,o,t.slice(1));for(const[o,r]of Object.entries(b)){const n=o.replace(Xr,"");l&&!t.includes(n)||nn(e,s,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(b).length)return;nn(e,s,a,i,n?o:null)}},trigger(e,t,o){if("string"!=typeof t||!e)return null;const r=Pr();let n=null,i=!0,a=!0,l=!1;t!==ln(t)&&r&&(n=r.Event(t,o),r(e).trigger(n),i=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());const s=bn(new Event(t,{bubbles:i,cancelable:!0}),o);return l&&s.preventDefault(),a&&e.dispatchEvent(s),s.defaultPrevented&&n&&n.preventDefault(),s}};function bn(e,t={}){for(const[o,r]of Object.entries(t))try{e[o]=r}catch(t){Object.defineProperty(e,o,{configurable:!0,get:()=>r})}return e}function cn(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function dn(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const fn={setDataAttribute(e,t,o){e.setAttribute(`data-bs-${dn(t)}`,o)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${dn(t)}`)},getDataAttributes(e){if(!e)return{};const t={},o=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of o){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),t[o]=cn(e.dataset[r])}return t},getDataAttribute:(e,t)=>cn(e.getAttribute(`data-bs-${dn(t)}`))};class pn{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const o=Er(t)?fn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof o?o:{},...Er(t)?fn.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,n]of Object.entries(t)){const t=e[r],i=Er(t)?"element":null==(o=t)?`${o}`:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${n}".`)}var o}}class mn extends pn{constructor(e,t){super(),(e=Rr(e))&&(this._element=e,this._config=this._getConfig(t),$r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$r.remove(this._element,this.constructor.DATA_KEY),sn.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,o=!0){Gr(e,t,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return $r.get(Rr(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const gn=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&"#"!==o?o.trim():null}return t?t.split(",").map((e=>Ar(e))).join(","):null},un={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const o=[];let r=e.parentNode.closest(t);for(;r;)o.push(r),r=r.parentNode.closest(t);return o},prev(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Mr(e)&&Tr(e)))},getSelectorFromElement(e){const t=gn(e);return t&&un.findOne(t)?t:null},getElementFromSelector(e){const t=gn(e);return t?un.findOne(t):null},getMultipleElementsFromSelector(e){const t=gn(e);return t?un.find(t):[]}},hn=(e,t="hide")=>{const o=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;sn.on(document,o,`[data-bs-dismiss="${r}"]`,(function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Mr(this))return;const n=un.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(n)[t]()}))},vn=".bs.alert",xn=`close${vn}`,wn=`closed${vn}`;class yn extends mn{static get NAME(){return"alert"}close(){if(sn.trigger(this._element,xn).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),sn.trigger(this._element,wn),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=yn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}hn(yn,"close"),Nr(yn);const kn='[data-bs-toggle="button"]';class _n extends mn{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=_n.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}sn.on(document,"click.bs.button.data-api",kn,(e=>{e.preventDefault();const t=e.target.closest(kn);_n.getOrCreateInstance(t).toggle()})),Nr(_n);const qn=".bs.swipe",jn=`touchstart${qn}`,zn=`touchmove${qn}`,Cn=`touchend${qn}`,$n=`pointerdown${qn}`,Sn=`pointerup${qn}`,An={endCallback:null,leftCallback:null,rightCallback:null},On={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class En extends pn{constructor(e,t){super(),this._element=e,e&&En.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return An}static get DefaultType(){return On}static get NAME(){return"swipe"}dispose(){sn.off(this._element,qn)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Vr(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Vr(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(sn.on(this._element,$n,(e=>this._start(e))),sn.on(this._element,Sn,(e=>this._end(e))),this._element.classList.add("pointer-event")):(sn.on(this._element,jn,(e=>this._start(e))),sn.on(this._element,zn,(e=>this._move(e))),sn.on(this._element,Cn,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Rn=".bs.carousel",Tn=".data-api",Mn="ArrowLeft",Ln="ArrowRight",Dn="next",In="prev",Pn="left",Hn="right",Bn=`slide${Rn}`,Nn=`slid${Rn}`,Vn=`keydown${Rn}`,Gn=`mouseenter${Rn}`,Fn=`mouseleave${Rn}`,Un=`dragstart${Rn}`,Wn=`load${Rn}${Tn}`,Xn=`click${Rn}${Tn}`,Yn="carousel",Kn="active",Qn=".active",Jn=".carousel-item",Zn=Qn+Jn,ei={[Mn]:Hn,[Ln]:Pn},ti={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oi={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ri extends mn{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=un.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Yn&&this.cycle()}static get Default(){return ti}static get DefaultType(){return oi}static get NAME(){return"carousel"}next(){this._slide(Dn)}nextWhenVisible(){!document.hidden&&Tr(this._element)&&this.next()}prev(){this._slide(In)}pause(){this._isSliding&&Or(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?sn.one(this._element,Nn,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void sn.one(this._element,Nn,(()=>this.to(e)));const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?Dn:In;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&sn.on(this._element,Vn,(e=>this._keydown(e))),"hover"===this._config.pause&&(sn.on(this._element,Gn,(()=>this.pause())),sn.on(this._element,Fn,(()=>this._maybeEnableCycle()))),this._config.touch&&En.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of un.find(".carousel-item img",this._element))sn.on(e,Un,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Pn)),rightCallback:()=>this._slide(this._directionToOrder(Hn)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new En(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ei[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=un.findOne(Qn,this._indicatorsElement);t.classList.remove(Kn),t.removeAttribute("aria-current");const o=un.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(Kn),o.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const o=this._getActive(),r=e===Dn,n=t||Fr(this._getItems(),o,r,this._config.wrap);if(n===o)return;const i=this._getItemIndex(n),a=t=>sn.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(o),to:i});if(a(Bn).defaultPrevented)return;if(!o||!n)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const s=r?"carousel-item-start":"carousel-item-end",b=r?"carousel-item-next":"carousel-item-prev";n.classList.add(b),Ir(n),o.classList.add(s),n.classList.add(s),this._queueCallback((()=>{n.classList.remove(s,b),n.classList.add(Kn),o.classList.remove(Kn,b,s),this._isSliding=!1,a(Nn)}),o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return un.findOne(Zn,this._element)}_getItems(){return un.find(Jn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Br()?e===Pn?In:Dn:e===Pn?Dn:In}_orderToDirection(e){return Br()?e===In?Pn:Hn:e===In?Hn:Pn}static jQueryInterface(e){return this.each((function(){const t=ri.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}sn.on(document,Xn,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=un.getElementFromSelector(this);if(!t||!t.classList.contains(Yn))return;e.preventDefault();const o=ri.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(o.to(r),void o._maybeEnableCycle()):"next"===fn.getDataAttribute(this,"slide")?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())})),sn.on(window,Wn,(()=>{const e=un.find('[data-bs-ride="carousel"]');for(const t of e)ri.getOrCreateInstance(t)})),Nr(ri);const ni=".bs.collapse",ii=`show${ni}`,ai=`shown${ni}`,li=`hide${ni}`,si=`hidden${ni}`,bi=`click${ni}.data-api`,ci="show",di="collapse",fi="collapsing",pi=`:scope .${di} .${di}`,mi='[data-bs-toggle="collapse"]',gi={parent:null,toggle:!0},ui={parent:"(null|element)",toggle:"boolean"};class hi extends mn{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const o=un.find(mi);for(const e of o){const t=un.getSelectorFromElement(e),o=un.find(t).filter((e=>e===this._element));null!==t&&o.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return gi}static get DefaultType(){return ui}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>hi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(sn.trigger(this._element,ii).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(di),this._element.classList.add(fi),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(fi),this._element.classList.add(di,ci),this._element.style[t]="",sn.trigger(this._element,ai)}),this._element,!0),this._element.style[t]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(sn.trigger(this._element,li).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ir(this._element),this._element.classList.add(fi),this._element.classList.remove(di,ci);for(const e of this._triggerArray){const t=un.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(fi),this._element.classList.add(di),sn.trigger(this._element,si)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ci)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Rr(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(mi);for(const t of e){const e=un.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=un.find(pi,this._config.parent);return un.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const o of e)o.classList.toggle("collapsed",!t),o.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const o=hi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e]()}}))}}sn.on(document,bi,mi,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of un.getMultipleElementsFromSelector(this))hi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Nr(hi);const vi="dropdown",xi=".bs.dropdown",wi=".data-api",yi="ArrowUp",ki="ArrowDown",_i=`hide${xi}`,qi=`hidden${xi}`,ji=`show${xi}`,zi=`shown${xi}`,Ci=`click${xi}${wi}`,$i=`keydown${xi}${wi}`,Si=`keyup${xi}${wi}`,Ai="show",Oi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ei=`${Oi}.${Ai}`,Ri=".dropdown-menu",Ti=Br()?"top-end":"top-start",Mi=Br()?"top-start":"top-end",Li=Br()?"bottom-end":"bottom-start",Di=Br()?"bottom-start":"bottom-end",Ii=Br()?"left-start":"right-start",Pi=Br()?"right-start":"left-start",Hi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Bi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ni extends mn{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=un.next(this._element,Ri)[0]||un.prev(this._element,Ri)[0]||un.findOne(Ri,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Hi}static get DefaultType(){return Bi}static get NAME(){return vi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Mr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!sn.trigger(this._element,ji,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))sn.on(e,"mouseover",Dr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ai),this._element.classList.add(Ai),sn.trigger(this._element,zi,e)}}hide(){if(Mr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!sn.trigger(this._element,_i,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))sn.off(e,"mouseover",Dr);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ai),this._element.classList.remove(Ai),this._element.setAttribute("aria-expanded","false"),fn.removeDataAttribute(this._menu,"popper"),sn.trigger(this._element,qi,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Er(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${vi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Er(this._config.reference)?e=Rr(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=jr(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ai)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ii;if(e.classList.contains("dropstart"))return Pi;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Mi:Ti:t?Di:Li}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(fn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Vr(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const o=un.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Tr(e)));o.length&&Fr(o,t,e===ki,!o.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Ni.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=un.find(Ei);for(const o of t){const t=Ni.getInstance(o);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),n=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),o="Escape"===e.key,r=[yi,ki].includes(e.key);if(!r&&!o)return;if(t&&!o)return;e.preventDefault();const n=this.matches(Oi)?this:un.prev(this,Oi)[0]||un.next(this,Oi)[0]||un.findOne(Oi,e.delegateTarget.parentNode),i=Ni.getOrCreateInstance(n);if(r)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),n.focus())}}sn.on(document,$i,Oi,Ni.dataApiKeydownHandler),sn.on(document,$i,Ri,Ni.dataApiKeydownHandler),sn.on(document,Ci,Ni.clearMenus),sn.on(document,Si,Ni.clearMenus),sn.on(document,Ci,Oi,(function(e){e.preventDefault(),Ni.getOrCreateInstance(this).toggle()})),Nr(Ni);const Vi="backdrop",Gi="show",Fi=`mousedown.bs.${Vi}`,Ui={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Wi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xi extends pn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ui}static get DefaultType(){return Wi}static get NAME(){return Vi}show(e){if(!this._config.isVisible)return void Vr(e);this._append();const t=this._getElement();this._config.isAnimated&&Ir(t),t.classList.add(Gi),this._emulateAnimation((()=>{Vr(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Gi),this._emulateAnimation((()=>{this.dispose(),Vr(e)}))):Vr(e)}dispose(){this._isAppended&&(sn.off(this._element,Fi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Rr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),sn.on(e,Fi,(()=>{Vr(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Gr(e,this._getElement(),this._config.isAnimated)}}const Yi=".bs.focustrap",Ki=`focusin${Yi}`,Qi=`keydown.tab${Yi}`,Ji="backward",Zi={autofocus:!0,trapElement:null},ea={autofocus:"boolean",trapElement:"element"};class ta extends pn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Zi}static get DefaultType(){return ea}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),sn.off(document,Yi),sn.on(document,Ki,(e=>this._handleFocusin(e))),sn.on(document,Qi,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,sn.off(document,Yi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const o=un.focusableChildren(t);0===o.length?t.focus():this._lastTabNavDirection===Ji?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Ji:"forward")}}const oa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ra=".sticky-top",na="padding-right",ia="margin-right";class aa{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,na,(t=>t+e)),this._setElementAttributes(oa,na,(t=>t+e)),this._setElementAttributes(ra,ia,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,na),this._resetElementAttributes(oa,na),this._resetElementAttributes(ra,ia)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,o){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${o(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const o=e.style.getPropertyValue(t);o&&fn.setDataAttribute(e,t,o)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const o=fn.getDataAttribute(e,t);null!==o?(fn.removeDataAttribute(e,t),e.style.setProperty(t,o)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Er(e))t(e);else for(const o of un.find(e,this._element))t(o)}}const la=".bs.modal",sa=`hide${la}`,ba=`hidePrevented${la}`,ca=`hidden${la}`,da=`show${la}`,fa=`shown${la}`,pa=`resize${la}`,ma=`click.dismiss${la}`,ga=`mousedown.dismiss${la}`,ua=`keydown.dismiss${la}`,ha=`click${la}.data-api`,va="modal-open",xa="show",wa="modal-static",ya={backdrop:!0,focus:!0,keyboard:!0},ka={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class _a extends mn{constructor(e,t){super(e,t),this._dialog=un.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new aa,this._addEventListeners()}static get Default(){return ya}static get DefaultType(){return ka}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||sn.trigger(this._element,da,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(va),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(sn.trigger(this._element,sa).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xa),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){sn.off(window,la),sn.off(this._dialog,la),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ta({trapElement:this._element})}_showElement(e){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 t=un.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ir(this._element),this._element.classList.add(xa),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,sn.trigger(this._element,fa,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){sn.on(this._element,ua,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),sn.on(window,pa,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),sn.on(this._element,ga,(e=>{sn.one(this._element,ma,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(va),this._resetAdjustments(),this._scrollBar.reset(),sn.trigger(this._element,ca)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(sn.trigger(this._element,ba).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(wa)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(wa),this._queueCallback((()=>{this._element.classList.remove(wa),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),o=t>0;if(o&&!e){const e=Br()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!o&&e){const e=Br()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const o=_a.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e](t)}}))}}sn.on(document,ha,'[data-bs-toggle="modal"]',(function(e){const t=un.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),sn.one(t,da,(e=>{e.defaultPrevented||sn.one(t,ca,(()=>{Tr(this)&&this.focus()}))}));const o=un.findOne(".modal.show");o&&_a.getInstance(o).hide(),_a.getOrCreateInstance(t).toggle(this)})),hn(_a),Nr(_a);const qa=".bs.offcanvas",ja=".data-api",za=`load${qa}${ja}`,Ca="show",$a="showing",Sa="hiding",Aa=".offcanvas.show",Oa=`show${qa}`,Ea=`shown${qa}`,Ra=`hide${qa}`,Ta=`hidePrevented${qa}`,Ma=`hidden${qa}`,La=`resize${qa}`,Da=`click${qa}${ja}`,Ia=`keydown.dismiss${qa}`,Pa={backdrop:!0,keyboard:!0,scroll:!1},Ha={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ba extends mn{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Pa}static get DefaultType(){return Ha}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||sn.trigger(this._element,Oa,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new aa).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($a),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ca),this._element.classList.remove($a),sn.trigger(this._element,Ea,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(sn.trigger(this._element,Ra).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Sa),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Ca,Sa),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new aa).reset(),sn.trigger(this._element,Ma)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Xi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():sn.trigger(this._element,Ta)}:null})}_initializeFocusTrap(){return new ta({trapElement:this._element})}_addEventListeners(){sn.on(this._element,Ia,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():sn.trigger(this._element,Ta))}))}static jQueryInterface(e){return this.each((function(){const t=Ba.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}sn.on(document,Da,'[data-bs-toggle="offcanvas"]',(function(e){const t=un.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Mr(this))return;sn.one(t,Ma,(()=>{Tr(this)&&this.focus()}));const o=un.findOne(Aa);o&&o!==t&&Ba.getInstance(o).hide(),Ba.getOrCreateInstance(t).toggle(this)})),sn.on(window,za,(()=>{for(const e of un.find(Aa))Ba.getOrCreateInstance(e).show()})),sn.on(window,La,(()=>{for(const e of un.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Ba.getOrCreateInstance(e).hide()})),hn(Ba),Nr(Ba);const Na={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},Va=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ga=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Fa=(e,t)=>{const o=e.nodeName.toLowerCase();return t.includes(o)?!Va.has(o)||Boolean(Ga.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(o)))},Ua={allowList:Na,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Wa={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Xa={entry:"(string|element|function|null)",selector:"(string|element)"};class Ya extends pn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ua}static get DefaultType(){return Wa}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,o]of Object.entries(this._config.content))this._setContent(e,o,t);const t=e.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&t.classList.add(...o.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,o]of Object.entries(e))super._typeCheckConfig({selector:t,entry:o},Xa)}_setContent(e,t,o){const r=un.findOne(o,e);r&&((t=this._resolvePossibleFunction(t))?Er(t)?this._putElementInTemplate(Rr(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,o){if(!e.length)return e;if(o&&"function"==typeof o)return o(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...r.body.querySelectorAll("*"));for(const e of n){const o=e.nodeName.toLowerCase();if(!Object.keys(t).includes(o)){e.remove();continue}const r=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[o]||[]);for(const t of r)Fa(t,n)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Vr(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Ka=new Set(["sanitize","allowList","sanitizeFn"]),Qa="fade",Ja="show",Za=".tooltip-inner",el=".modal",tl="hide.bs.modal",ol="hover",rl="focus",nl={AUTO:"auto",TOP:"top",RIGHT:Br()?"left":"right",BOTTOM:"bottom",LEFT:Br()?"right":"left"},il={allowList:Na,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"},al={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 ll extends mn{constructor(e,t){super(e,t),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 il}static get DefaultType(){return al}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),sn.off(this._element.closest(el),tl,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=sn.trigger(this._element,this.constructor.eventName("show")),t=(Lr(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(o),sn.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(o),o.classList.add(Ja),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))sn.on(e,"mouseover",Dr);this._queueCallback((()=>{sn.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!sn.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ja),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))sn.off(e,"mouseover",Dr);this._activeTrigger.click=!1,this._activeTrigger[rl]=!1,this._activeTrigger[ol]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),sn.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Qa,Ja),t.classList.add(`bs-${this.constructor.NAME}-auto`);const o=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",o),this._isAnimated()&&t.classList.add(Qa),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ya({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Za]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Qa)}_isShown(){return this.tip&&this.tip.classList.contains(Ja)}_createPopper(e){const t=Vr(this._config.placement,[this,e,this._element]),o=nl[t.toUpperCase()];return jr(this._element,e,this._getPopperConfig(o))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Vr(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Vr(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)sn.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===ol?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),o=t===ol?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");sn.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?rl:ol]=!0,t._enter()})),sn.on(this._element,o,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?rl:ol]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},sn.on(this._element.closest(el),tl,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=fn.getDataAttributes(this._element);for(const e of Object.keys(t))Ka.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Rr(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,o]of Object.entries(this._config))this.constructor.Default[t]!==o&&(e[t]=o);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=ll.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Nr(ll);const sl=".popover-header",bl=".popover-body",cl={...ll.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"},dl={...ll.DefaultType,content:"(null|string|element|function)"};class fl extends ll{static get Default(){return cl}static get DefaultType(){return dl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[sl]:this._getTitle(),[bl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=fl.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Nr(fl);const pl=".bs.scrollspy",ml=`activate${pl}`,gl=`click${pl}`,ul=`load${pl}.data-api`,hl="active",vl="[href]",xl=".nav-link",wl=`${xl}, .nav-item > ${xl}, .list-group-item`,yl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},kl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class _l extends mn{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return yl}static get DefaultType(){return kl}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Rr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(sn.off(this._config.target,gl),sn.on(this._config.target,gl,vl,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const o=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(o.scrollTo)return void o.scrollTo({top:r,behavior:"smooth"});o.scrollTop=r}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),o=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,n=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(o(i),!r)return}else n||e||o(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=un.find(vl,this._config.target);for(const t of e){if(!t.hash||Mr(t))continue;const e=un.findOne(decodeURI(t.hash),this._element);Tr(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(hl),this._activateParents(e),sn.trigger(this._element,ml,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))un.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(hl);else for(const t of un.parents(e,".nav, .list-group"))for(const e of un.prev(t,wl))e.classList.add(hl)}_clearActiveClass(e){e.classList.remove(hl);const t=un.find(`${vl}.${hl}`,e);for(const e of t)e.classList.remove(hl)}static jQueryInterface(e){return this.each((function(){const t=_l.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}sn.on(window,ul,(()=>{for(const e of un.find('[data-bs-spy="scroll"]'))_l.getOrCreateInstance(e)})),Nr(_l);const ql=".bs.tab",jl=`hide${ql}`,zl=`hidden${ql}`,Cl=`show${ql}`,$l=`shown${ql}`,Sl=`click${ql}`,Al=`keydown${ql}`,Ol=`load${ql}`,El="ArrowLeft",Rl="ArrowRight",Tl="ArrowUp",Ml="ArrowDown",Ll="Home",Dl="End",Il="active",Pl="fade",Hl="show",Bl=".dropdown-toggle",Nl=`:not(${Bl})`,Vl='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gl=`.nav-link${Nl}, .list-group-item${Nl}, [role="tab"]${Nl}, ${Vl}`,Fl=`.${Il}[data-bs-toggle="tab"], .${Il}[data-bs-toggle="pill"], .${Il}[data-bs-toggle="list"]`;class Ul extends mn{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),sn.on(this._element,Al,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),o=t?sn.trigger(t,jl,{relatedTarget:e}):null;sn.trigger(e,Cl,{relatedTarget:t}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Il),this._activate(un.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),sn.trigger(e,$l,{relatedTarget:t})):e.classList.add(Hl)}),e,e.classList.contains(Pl)))}_deactivate(e,t){e&&(e.classList.remove(Il),e.blur(),this._deactivate(un.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),sn.trigger(e,zl,{relatedTarget:t})):e.classList.remove(Hl)}),e,e.classList.contains(Pl)))}_keydown(e){if(![El,Rl,Tl,Ml,Ll,Dl].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Mr(e)));let o;if([Ll,Dl].includes(e.key))o=t[e.key===Ll?0:t.length-1];else{const r=[Rl,Ml].includes(e.key);o=Fr(t,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),Ul.getOrCreateInstance(o).show())}_getChildren(){return un.find(Gl,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),o=this._getOuterElement(e);e.setAttribute("aria-selected",t),o!==e&&this._setAttributeIfNotExists(o,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=un.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const o=this._getOuterElement(e);if(!o.classList.contains("dropdown"))return;const r=(e,r)=>{const n=un.findOne(e,o);n&&n.classList.toggle(r,t)};r(Bl,Il),r(".dropdown-menu",Hl),o.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,o){e.hasAttribute(t)||e.setAttribute(t,o)}_elemIsActive(e){return e.classList.contains(Il)}_getInnerElement(e){return e.matches(Gl)?e:un.findOne(Gl,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Ul.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}sn.on(document,Sl,Vl,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Mr(this)||Ul.getOrCreateInstance(this).show()})),sn.on(window,Ol,(()=>{for(const e of un.find(Fl))Ul.getOrCreateInstance(e)})),Nr(Ul);const Wl=".bs.toast",Xl=`mouseover${Wl}`,Yl=`mouseout${Wl}`,Kl=`focusin${Wl}`,Ql=`focusout${Wl}`,Jl=`hide${Wl}`,Zl=`hidden${Wl}`,es=`show${Wl}`,ts=`shown${Wl}`,os="hide",rs="show",ns="showing",is={animation:"boolean",autohide:"boolean",delay:"number"},as={animation:!0,autohide:!0,delay:5e3};class ls extends mn{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return as}static get DefaultType(){return is}static get NAME(){return"toast"}show(){sn.trigger(this._element,es).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(os),Ir(this._element),this._element.classList.add(rs,ns),this._queueCallback((()=>{this._element.classList.remove(ns),sn.trigger(this._element,ts),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(sn.trigger(this._element,Jl).defaultPrevented||(this._element.classList.add(ns),this._queueCallback((()=>{this._element.classList.add(os),this._element.classList.remove(ns,rs),sn.trigger(this._element,Zl)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rs),super.dispose()}isShown(){return this._element.classList.contains(rs)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const o=e.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){sn.on(this._element,Xl,(e=>this._onInteraction(e,!0))),sn.on(this._element,Yl,(e=>this._onInteraction(e,!1))),sn.on(this._element,Kl,(e=>this._onInteraction(e,!0))),sn.on(this._element,Ql,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=ls.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}hn(ls),Nr(ls);var ss=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},bs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let cs=class extends Bt{constructor(){super(...arguments),this.contentAtt="data-bs-content",this.contentStyle="none",this.containerAtt="data-bs-container",this.containerValue="body",this.defaultContent="No content provided",this.htmlAtt="data-bs-html",this.htmlValue="true",this.placementAtt="data-bs-placement",this.placementValue="left",this.selector="*[slot=content]",this.toggleAtt="data-bs-toggle",this.toggleValue="popover",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),this.setAttribute(this.toggleAtt,this.toggleValue),this.setAttribute(this.placementAtt,this.placementValue),this.setAttribute(this.containerAtt,this.containerValue),this.setAttribute(this.htmlAtt,this.htmlValue)}firstUpdated(e){super.firstUpdated(e);const t=this.querySelector(this.selector);t instanceof HTMLElement&&(t.style.display=this.contentStyle),this.setAttribute(this.contentAtt,t?.innerHTML??this.defaultContent),new fl(this)}render(){return We`<slot></slot>`}};ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"contentAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"contentStyle",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"containerAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"containerValue",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"defaultContent",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"htmlAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"htmlValue",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"placementAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"placementValue",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"selector",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"toggleAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"toggleValue",void 0),ss([ut({type:Boolean}),bs("design:type",Object)],cs.prototype,"renderInHost",void 0),cs=ss([pt("qbo-popover")],cs);class ds{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class fs extends ds{constructor(e){if(super(e),this.it=Ke,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ke||null==e)return this._t=void 0,this.it=e;if(e===Ye)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}fs.directiveName="unsafeHTML",fs.resultType=1;const ps=(e=>(...t)=>({_$litDirective$:e,values:t}))(fs);var ms=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},gs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let us=class extends Ct{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[be`
100
+ </div>`}renderIcon(e){return null==e.icon&&(console.warn("qbo-icon: icon attribute is required"),e.icon=e.unknown),Nt.has(e.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Nt.keys()).join(" ")}`),e.icon=e.unknown),We`<svg width="${e.width}" height="${e.width}" fill="${e.fill}" ?class=${e.getAttribute("class")} viewBox="${e.viewbox}">${e.backgroundColor?Xe`<rect width="${e.width}" height="${e.height}" fill="${e.backgroundColor}" />`:Xe``}${Nt.get(e.icon)}</svg>`}renderButton(e){return We`<button type="button" ?disabled=${e.disabled}>${e.renderIcon(e)}</button>`}render(){switch(this.type){case"icon":default:return this.renderIcon(this);case"button":return this.renderButton(this);case"all":return this.renderAll(this)}}};Vt([ut(),Gt("design:type",String)],Ft.prototype,"type",void 0),Vt([ut(),Gt("design:type",Object)],Ft.prototype,"icon",void 0),Vt([ut(),Gt("design:type",Number)],Ft.prototype,"height",void 0),Vt([ut(),Gt("design:type",Number)],Ft.prototype,"width",void 0),Vt([ut(),Gt("design:type",String)],Ft.prototype,"viewbox",void 0),Vt([ut(),Gt("design:type",String)],Ft.prototype,"fill",void 0),Vt([ut(),Gt("design:type",Object)],Ft.prototype,"backgroundColor",void 0),Vt([ut(),Gt("design:type",String)],Ft.prototype,"unknown",void 0),Vt([ut(),Gt("design:type",Boolean)],Ft.prototype,"disabled",void 0),Vt([ut({type:Boolean,reflect:!0}),Gt("design:type",Object)],Ft.prototype,"renderInHost",void 0),Ft=Vt([pt("qbo-icon")],Ft);var Ut,Wt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Xt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Yt=class extends dt{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{Ut=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=this.continuous,e.interimResults=this.interimResults,e.maxAlternatives=this.maxAlternatives,e.onresult=e=>{this.onResult(e)},e.onspeechend=e=>{this.stop(e)},e.onerror=e=>{this.error(e)},this._recognition=e,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(e){const t=e.results[e.results.length-1][0].transcript;if(console.log("Result: "+t),null==this.target)return;const o=this.target;if(o instanceof HTMLInputElement)"radio"===o.type?o.value===t&&(o.checked=!0):this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLTextAreaElement)this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLSelectElement)for(let e=0;e<o.options.length;e++)if(o.options[e].value===t||o.options[e].text===t){o.selectedIndex=e;break}}listen(e){this.listening?this.stop(e):this.start()}start(){this.listening=!0,Ut.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(e){this.listening=!1,Ut.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(e){console.log("Error during speech recognition:",e)}render(){return We`<slot><qbo-icon icon="headset" type="button"></qbo-icon></slot>`}};Wt([ut({type:Boolean}),Xt("design:type",Object)],Yt.prototype,"renderInHost",void 0),Wt([ut({type:Boolean}),Xt("design:type",Object)],Yt.prototype,"continuous",void 0),Wt([ut({type:Boolean}),Xt("design:type",Object)],Yt.prototype,"interimResults",void 0),Wt([ut({type:Number}),Xt("design:type",Object)],Yt.prototype,"maxAlternatives",void 0),Wt([ut({type:String}),Xt("design:type",Object)],Yt.prototype,"for",void 0),Wt([ut({type:String}),Xt("design:type",Object)],Yt.prototype,"class",void 0),Wt([ut({type:String}),Xt("design:type",Object)],Yt.prototype,"activeClass",void 0),Yt=Ut=Wt([pt("qbo-microphone")],Yt);var Kt="top",Qt="bottom",Jt="right",Zt="left",eo="auto",to=[Kt,Qt,Jt,Zt],oo="start",ro="end",no="clippingParents",io="viewport",ao="popper",lo="reference",so=to.reduce((function(e,t){return e.concat([t+"-"+oo,t+"-"+ro])}),[]),bo=[].concat(to,[eo]).reduce((function(e,t){return e.concat([t,t+"-"+oo,t+"-"+ro])}),[]),co="beforeRead",fo="read",po="afterRead",mo="beforeMain",go="main",uo="afterMain",ho="beforeWrite",vo="write",xo="afterWrite",wo=[co,fo,po,mo,go,uo,ho,vo,xo];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function ko(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _o(e){return e instanceof ko(e).Element||e instanceof Element}function qo(e){return e instanceof ko(e).HTMLElement||e instanceof HTMLElement}function jo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ko(e).ShadowRoot||e instanceof ShadowRoot)}const zo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},n=t.elements[e];qo(n)&&yo(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){var t=r[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});qo(r)&&yo(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Co(e){return e.split("-")[0]}var $o=Math.max,So=Math.min,Ao=Math.round;function Oo(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Eo(){return!/^((?!chrome|android).)*safari/i.test(Oo())}function Ro(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),n=1,i=1;t&&qo(e)&&(n=e.offsetWidth>0&&Ao(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ao(r.height)/e.offsetHeight||1);var a=(_o(e)?ko(e):window).visualViewport,l=!Eo()&&o,s=(r.left+(l&&a?a.offsetLeft:0))/n,b=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/n,d=r.height/i;return{width:c,height:d,top:b,right:s+c,bottom:b+d,left:s,x:s,y:b}}function To(e){var t=Ro(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Mo(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&jo(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lo(e){return ko(e).getComputedStyle(e)}function Do(e){return["table","td","th"].indexOf(yo(e))>=0}function Io(e){return((_o(e)?e.ownerDocument:e.document)||window.document).documentElement}function Po(e){return"html"===yo(e)?e:e.assignedSlot||e.parentNode||(jo(e)?e.host:null)||Io(e)}function Ho(e){return qo(e)&&"fixed"!==Lo(e).position?e.offsetParent:null}function Bo(e){for(var t=ko(e),o=Ho(e);o&&Do(o)&&"static"===Lo(o).position;)o=Ho(o);return o&&("html"===yo(o)||"body"===yo(o)&&"static"===Lo(o).position)?t:o||function(e){var t=/firefox/i.test(Oo());if(/Trident/i.test(Oo())&&qo(e)&&"fixed"===Lo(e).position)return null;var o=Po(e);for(jo(o)&&(o=o.host);qo(o)&&["html","body"].indexOf(yo(o))<0;){var r=Lo(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function No(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vo(e,t,o){return $o(e,So(t,o))}function Go(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fo(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}const Uo={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,r=e.name,n=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=Co(o.placement),s=No(l),b=[Zt,Jt].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Go("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fo(e,to))}(n.padding,o),d=To(i),f="y"===s?Kt:Zt,p="y"===s?Qt:Jt,m=o.rects.reference[b]+o.rects.reference[s]-a[s]-o.rects.popper[b],g=a[s]-o.rects.reference[s],u=Bo(i),h=u?"y"===s?u.clientHeight||0:u.clientWidth||0:0,v=m/2-g/2,x=c[f],w=h-d[b]-c[p],y=h/2-d[b]/2+v,k=Vo(x,y,w),_=s;o.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-y,t)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Mo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wo(e){return e.split("-")[1]}var Xo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yo(e){var t,o=e.popper,r=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,b=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,g=void 0===m?0:m,u="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=u.x,g=u.y;var h=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=Zt,w=Kt,y=window;if(b){var k=Bo(o),_="clientHeight",q="clientWidth";k===ko(o)&&"static"!==Lo(k=Io(o)).position&&"absolute"===l&&(_="scrollHeight",q="scrollWidth"),(n===Kt||(n===Zt||n===Jt)&&i===ro)&&(w=Qt,g-=(d&&k===y&&y.visualViewport?y.visualViewport.height:k[_])-r.height,g*=s?1:-1),n!==Zt&&(n!==Kt&&n!==Qt||i!==ro)||(x=Jt,p-=(d&&k===y&&y.visualViewport?y.visualViewport.width:k[q])-r.width,p*=s?1:-1)}var j,z=Object.assign({position:l},b&&Xo),C=!0===c?function(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:Ao(o*n)/n||0,y:Ao(r*n)/n||0}}({x:p,y:g},ko(o)):{x:p,y:g};return p=C.x,g=C.y,s?Object.assign({},z,((j={})[w]=v?"0":"",j[x]=h?"0":"",j.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",j)):Object.assign({},z,((t={})[w]=v?g+"px":"",t[x]=h?p+"px":"",t.transform="",t))}const Ko={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=void 0===r||r,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,b={placement:Co(t.placement),variation:Wo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yo(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yo(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qo={passive:!0};const Jo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,i=void 0===n||n,a=r.resize,l=void 0===a||a,s=ko(t.elements.popper),b=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&b.forEach((function(e){e.addEventListener("scroll",o.update,Qo)})),l&&s.addEventListener("resize",o.update,Qo),function(){i&&b.forEach((function(e){e.removeEventListener("scroll",o.update,Qo)})),l&&s.removeEventListener("resize",o.update,Qo)}},data:{}};var Zo={left:"right",right:"left",bottom:"top",top:"bottom"};function er(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zo[e]}))}var tr={start:"end",end:"start"};function or(e){return e.replace(/start|end/g,(function(e){return tr[e]}))}function rr(e){var t=ko(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nr(e){return Ro(Io(e)).left+rr(e).scrollLeft}function ir(e){var t=Lo(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function ar(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:qo(e)&&ir(e)?e:ar(Po(e))}function lr(e,t){var o;void 0===t&&(t=[]);var r=ar(e),n=r===(null==(o=e.ownerDocument)?void 0:o.body),i=ko(r),a=n?[i].concat(i.visualViewport||[],ir(r)?r:[]):r,l=t.concat(a);return n?l:l.concat(lr(Po(a)))}function sr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function br(e,t,o){return t===io?sr(function(e,t){var o=ko(e),r=Io(e),n=o.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(n){i=n.width,a=n.height;var b=Eo();(b||!b&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:i,height:a,x:l+nr(e),y:s}}(e,o)):_o(t)?function(e,t){var o=Ro(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):sr(function(e){var t,o=Io(e),r=rr(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=$o(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=$o(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-r.scrollLeft+nr(e),s=-r.scrollTop;return"rtl"===Lo(n||o).direction&&(l+=$o(o.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Io(e)))}function cr(e){var t,o=e.reference,r=e.element,n=e.placement,i=n?Co(n):null,a=n?Wo(n):null,l=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2;switch(i){case Kt:t={x:l,y:o.y-r.height};break;case Qt:t={x:l,y:o.y+o.height};break;case Jt:t={x:o.x+o.width,y:s};break;case Zt:t={x:o.x-r.width,y:s};break;default:t={x:o.x,y:o.y}}var b=i?No(i):null;if(null!=b){var c="y"===b?"height":"width";switch(a){case oo:t[b]=t[b]-(o[c]/2-r[c]/2);break;case ro:t[b]=t[b]+(o[c]/2-r[c]/2)}}return t}function dr(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=void 0===r?e.placement:r,i=o.strategy,a=void 0===i?e.strategy:i,l=o.boundary,s=void 0===l?no:l,b=o.rootBoundary,c=void 0===b?io:b,d=o.elementContext,f=void 0===d?ao:d,p=o.altBoundary,m=void 0!==p&&p,g=o.padding,u=void 0===g?0:g,h=Go("number"!=typeof u?u:Fo(u,to)),v=f===ao?lo:ao,x=e.rects.popper,w=e.elements[m?v:f],y=function(e,t,o,r){var n="clippingParents"===t?function(e){var t=lr(Po(e)),o=["absolute","fixed"].indexOf(Lo(e).position)>=0&&qo(e)?Bo(e):e;return _o(o)?t.filter((function(e){return _o(e)&&Mo(e,o)&&"body"!==yo(e)})):[]}(e):[].concat(t),i=[].concat(n,[o]),a=i[0],l=i.reduce((function(t,o){var n=br(e,o,r);return t.top=$o(n.top,t.top),t.right=So(n.right,t.right),t.bottom=So(n.bottom,t.bottom),t.left=$o(n.left,t.left),t}),br(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(_o(w)?w:w.contextElement||Io(e.elements.popper),s,c,a),k=Ro(e.elements.reference),_=cr({reference:k,element:x,strategy:"absolute",placement:n}),q=sr(Object.assign({},x,_)),j=f===ao?q:k,z={top:y.top-j.top+h.top,bottom:j.bottom-y.bottom+h.bottom,left:y.left-j.left+h.left,right:j.right-y.right+h.right},C=e.modifiersData.offset;if(f===ao&&C){var $=C[n];Object.keys(z).forEach((function(e){var t=[Jt,Qt].indexOf(e)>=0?1:-1,o=[Kt,Qt].indexOf(e)>=0?"y":"x";z[e]+=$[o]*t}))}return z}const fr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,b=o.padding,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,p=o.flipVariations,m=void 0===p||p,g=o.allowedAutoPlacements,u=t.options.placement,h=Co(u),v=s||(h!==u&&m?function(e){if(Co(e)===eo)return[];var t=er(e);return[or(e),t,or(t)]}(u):[er(u)]),x=[u].concat(v).reduce((function(e,o){return e.concat(Co(o)===eo?function(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,b=void 0===s?bo:s,c=Wo(r),d=c?l?so:so.filter((function(e){return Wo(e)===c})):to,f=d.filter((function(e){return b.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,o){return t[o]=dr(e,{placement:o,boundary:n,rootBoundary:i,padding:a})[Co(o)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:o,boundary:c,rootBoundary:d,padding:b,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),w=t.rects.reference,y=t.rects.popper,k=new Map,_=!0,q=x[0],j=0;j<x.length;j++){var z=x[j],C=Co(z),$=Wo(z)===oo,S=[Kt,Qt].indexOf(C)>=0,A=S?"width":"height",O=dr(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:f,padding:b}),E=S?$?Jt:Zt:$?Qt:Kt;w[A]>y[A]&&(E=er(E));var R=er(E),T=[];if(i&&T.push(O[C]<=0),l&&T.push(O[E]<=0,O[R]<=0),T.every((function(e){return e}))){q=z,_=!1;break}k.set(z,T)}if(_)for(var M=function(e){var t=x.find((function(t){var o=k.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return q=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pr(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function mr(e){return[Kt,Jt,Qt,Zt].some((function(t){return e[t]>=0}))}const gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=dr(t,{elementContext:"reference"}),l=dr(t,{altBoundary:!0}),s=pr(a,r),b=pr(l,n,i),c=mr(s),d=mr(b);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:b,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.offset,i=void 0===n?[0,0]:n,a=bo.reduce((function(e,o){return e[o]=function(e,t,o){var r=Co(e),n=[Zt,Kt].indexOf(r)>=0?-1:1,i="function"==typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[Zt,Jt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,b=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=b),t.modifiersData[r]=a}},hr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=cr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},vr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,b=o.rootBoundary,c=o.altBoundary,d=o.padding,f=o.tether,p=void 0===f||f,m=o.tetherOffset,g=void 0===m?0:m,u=dr(t,{boundary:s,rootBoundary:b,padding:d,altBoundary:c}),h=Co(t.placement),v=Wo(t.placement),x=!v,w=No(h),y="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,q=t.rects.popper,j="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,z="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(k){if(i){var S,A="y"===w?Kt:Zt,O="y"===w?Qt:Jt,E="y"===w?"height":"width",R=k[w],T=R+u[A],M=R-u[O],L=p?-q[E]/2:0,D=v===oo?_[E]:q[E],I=v===oo?-q[E]:-_[E],P=t.elements.arrow,H=p&&P?To(P):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=B[A],V=B[O],G=Vo(0,_[E],H[E]),F=x?_[E]/2-L-G-N-z.mainAxis:D-G-N-z.mainAxis,U=x?-_[E]/2+L+G+V+z.mainAxis:I+G+V+z.mainAxis,W=t.elements.arrow&&Bo(t.elements.arrow),X=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(S=null==C?void 0:C[w])?S:0,K=R+U-Y,Q=Vo(p?So(T,R+F-Y-X):T,R,p?$o(M,K):M);k[w]=Q,$[w]=Q-R}if(l){var J,Z="x"===w?Kt:Zt,ee="x"===w?Qt:Jt,te=k[y],oe="y"===y?"height":"width",re=te+u[Z],ne=te-u[ee],ie=-1!==[Kt,Zt].indexOf(h),ae=null!=(J=null==C?void 0:C[y])?J:0,le=ie?re:te-_[oe]-q[oe]-ae+z.altAxis,se=ie?te+_[oe]+q[oe]-ae-z.altAxis:ne,be=p&&ie?function(e,t,o){var r=Vo(e,t,o);return r>o?o:r}(le,te,se):Vo(p?le:re,te,p?se:ne);k[y]=be,$[y]=be-te}t.modifiersData[r]=$}},requiresIfExists:["offset"]};function xr(e,t,o){void 0===o&&(o=!1);var r,n,i=qo(t),a=qo(t)&&function(e){var t=e.getBoundingClientRect(),o=Ao(t.width)/e.offsetWidth||1,r=Ao(t.height)/e.offsetHeight||1;return 1!==o||1!==r}(t),l=Io(t),s=Ro(e,a,o),b={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&(("body"!==yo(t)||ir(l))&&(b=(r=t)!==ko(r)&&qo(r)?{scrollLeft:(n=r).scrollLeft,scrollTop:n.scrollTop}:rr(r)),qo(t)?((c=Ro(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=nr(l))),{x:s.left+b.scrollLeft-c.x,y:s.top+b.scrollTop-c.y,width:s.width,height:s.height}}function wr(e){var t=new Map,o=new Set,r=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var r=t.get(e);r&&n(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||n(e)})),r}var yr={placement:"bottom",modifiers:[],strategy:"absolute"};function kr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function _r(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,r=void 0===o?[]:o,n=t.defaultOptions,i=void 0===n?yr:n;return function(e,t,o){void 0===o&&(o=i);var n,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},yr,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],b=!1,c={state:l,setOptions:function(o){var n="function"==typeof o?o(l.options):o;d(),l.options=Object.assign({},i,l.options,n),l.scrollParents={reference:_o(e)?lr(e):e.contextElement?lr(e.contextElement):[],popper:lr(t)};var a,b,f=function(e){var t=wr(e);return wo.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}((a=[].concat(r,l.options.modifiers),b=a.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{}),Object.keys(b).map((function(e){return b[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,o=e.options,r=void 0===o?{}:o,n=e.effect;if("function"==typeof n){var i=n({state:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!b){var e=l.elements,t=e.reference,o=e.popper;if(kr(t,o)){l.rects={reference:xr(t,Bo(o),"fixed"===l.options.strategy),popper:To(o)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var n=l.orderedModifiers[r],i=n.fn,a=n.options,s=void 0===a?{}:a,d=n.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(n=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(n())}))}))),a}),destroy:function(){d(),b=!0}};if(!kr(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(o).then((function(e){!b&&o.onFirstUpdate&&o.onFirstUpdate(e)})),c}}var qr=_r(),jr=_r({defaultModifiers:[Jo,hr,Ko,zo,ur,fr,vr,Uo,gr]}),zr=_r({defaultModifiers:[Jo,hr,Ko,zo]});const Cr=new Map,$r={set(e,t,o){Cr.has(e)||Cr.set(e,new Map);const r=Cr.get(e);r.has(t)||0===r.size?r.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>Cr.has(e)&&Cr.get(e).get(t)||null,remove(e,t){if(!Cr.has(e))return;const o=Cr.get(e);o.delete(t),0===o.size&&Cr.delete(e)}},Sr="transitionend",Ar=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Or=e=>{e.dispatchEvent(new Event(Sr))},Er=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Rr=e=>Er(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Ar(e)):null,Tr=e=>{if(!Er(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),o=e.closest("details:not([open])");if(!o)return t;if(o!==e){const t=e.closest("summary");if(t&&t.parentNode!==o)return!1;if(null===t)return!1}return t},Mr=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Lr=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Lr(e.parentNode):null},Dr=()=>{},Ir=e=>{e.offsetHeight},Pr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Hr=[],Br=()=>"rtl"===document.documentElement.dir,Nr=e=>{var t;t=()=>{const t=Pr();if(t){const o=e.NAME,r=t.fn[o];t.fn[o]=e.jQueryInterface,t.fn[o].Constructor=e,t.fn[o].noConflict=()=>(t.fn[o]=r,e.jQueryInterface)}},"loading"===document.readyState?(Hr.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Hr)e()})),Hr.push(t)):t()},Vr=(e,t=[],o=e)=>"function"==typeof e?e(...t):o,Gr=(e,t,o=!0)=>{if(!o)return void Vr(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const r=Number.parseFloat(t),n=Number.parseFloat(o);return r||n?(t=t.split(",")[0],o=o.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(o))):0})(t)+5;let n=!1;const i=({target:o})=>{o===t&&(n=!0,t.removeEventListener(Sr,i),Vr(e))};t.addEventListener(Sr,i),setTimeout((()=>{n||Or(t)}),r)},Fr=(e,t,o,r)=>{const n=e.length;let i=e.indexOf(t);return-1===i?!o&&r?e[n-1]:e[0]:(i+=o?1:-1,r&&(i=(i+n)%n),e[Math.max(0,Math.min(i,n-1))])},Ur=/[^.]*(?=\..*)\.|.*/,Wr=/\..*/,Xr=/::\d+$/,Yr={};let Kr=1;const Qr={mouseenter:"mouseover",mouseleave:"mouseout"},Jr=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 Zr(e,t){return t&&`${t}::${Kr++}`||e.uidEvent||Kr++}function en(e){const t=Zr(e);return e.uidEvent=t,Yr[t]=Yr[t]||{},Yr[t]}function tn(e,t,o=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===o))}function on(e,t,o){const r="string"==typeof t,n=r?o:t||o;let i=ln(e);return Jr.has(i)||(i=e),[r,n,i]}function rn(e,t,o,r,n){if("string"!=typeof t||!e)return;let[i,a,l]=on(t,o,r);if(t in Qr){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const s=en(e),b=s[l]||(s[l]={}),c=tn(b,a,i?o:null);if(c)return void(c.oneOff=c.oneOff&&n);const d=Zr(a,t.replace(Ur,"")),f=i?function(e,t,o){return function r(n){const i=e.querySelectorAll(t);for(let{target:a}=n;a&&a!==this;a=a.parentNode)for(const l of i)if(l===a)return bn(n,{delegateTarget:a}),r.oneOff&&sn.off(e,n.type,t,o),o.apply(a,[n])}}(e,o,a):function(e,t){return function o(r){return bn(r,{delegateTarget:e}),o.oneOff&&sn.off(e,r.type,t),t.apply(e,[r])}}(e,a);f.delegationSelector=i?o:null,f.callable=a,f.oneOff=n,f.uidEvent=d,b[d]=f,e.addEventListener(l,f,i)}function nn(e,t,o,r,n){const i=tn(t[o],r,n);i&&(e.removeEventListener(o,i,Boolean(n)),delete t[o][i.uidEvent])}function an(e,t,o,r){const n=t[o]||{};for(const[i,a]of Object.entries(n))i.includes(r)&&nn(e,t,o,a.callable,a.delegationSelector)}function ln(e){return e=e.replace(Wr,""),Qr[e]||e}const sn={on(e,t,o,r){rn(e,t,o,r,!1)},one(e,t,o,r){rn(e,t,o,r,!0)},off(e,t,o,r){if("string"!=typeof t||!e)return;const[n,i,a]=on(t,o,r),l=a!==t,s=en(e),b=s[a]||{},c=t.startsWith(".");if(void 0===i){if(c)for(const o of Object.keys(s))an(e,s,o,t.slice(1));for(const[o,r]of Object.entries(b)){const n=o.replace(Xr,"");l&&!t.includes(n)||nn(e,s,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(b).length)return;nn(e,s,a,i,n?o:null)}},trigger(e,t,o){if("string"!=typeof t||!e)return null;const r=Pr();let n=null,i=!0,a=!0,l=!1;t!==ln(t)&&r&&(n=r.Event(t,o),r(e).trigger(n),i=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());const s=bn(new Event(t,{bubbles:i,cancelable:!0}),o);return l&&s.preventDefault(),a&&e.dispatchEvent(s),s.defaultPrevented&&n&&n.preventDefault(),s}};function bn(e,t={}){for(const[o,r]of Object.entries(t))try{e[o]=r}catch(t){Object.defineProperty(e,o,{configurable:!0,get:()=>r})}return e}function cn(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function dn(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const fn={setDataAttribute(e,t,o){e.setAttribute(`data-bs-${dn(t)}`,o)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${dn(t)}`)},getDataAttributes(e){if(!e)return{};const t={},o=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of o){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),t[o]=cn(e.dataset[r])}return t},getDataAttribute:(e,t)=>cn(e.getAttribute(`data-bs-${dn(t)}`))};class pn{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const o=Er(t)?fn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof o?o:{},...Er(t)?fn.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,n]of Object.entries(t)){const t=e[r],i=Er(t)?"element":null==(o=t)?`${o}`:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${n}".`)}var o}}class mn extends pn{constructor(e,t){super(),(e=Rr(e))&&(this._element=e,this._config=this._getConfig(t),$r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$r.remove(this._element,this.constructor.DATA_KEY),sn.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,o=!0){Gr(e,t,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return $r.get(Rr(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const gn=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&"#"!==o?o.trim():null}return t?t.split(",").map((e=>Ar(e))).join(","):null},un={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const o=[];let r=e.parentNode.closest(t);for(;r;)o.push(r),r=r.parentNode.closest(t);return o},prev(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Mr(e)&&Tr(e)))},getSelectorFromElement(e){const t=gn(e);return t&&un.findOne(t)?t:null},getElementFromSelector(e){const t=gn(e);return t?un.findOne(t):null},getMultipleElementsFromSelector(e){const t=gn(e);return t?un.find(t):[]}},hn=(e,t="hide")=>{const o=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;sn.on(document,o,`[data-bs-dismiss="${r}"]`,(function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Mr(this))return;const n=un.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(n)[t]()}))},vn=".bs.alert",xn=`close${vn}`,wn=`closed${vn}`;class yn extends mn{static get NAME(){return"alert"}close(){if(sn.trigger(this._element,xn).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),sn.trigger(this._element,wn),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=yn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}hn(yn,"close"),Nr(yn);const kn='[data-bs-toggle="button"]';class _n extends mn{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=_n.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}sn.on(document,"click.bs.button.data-api",kn,(e=>{e.preventDefault();const t=e.target.closest(kn);_n.getOrCreateInstance(t).toggle()})),Nr(_n);const qn=".bs.swipe",jn=`touchstart${qn}`,zn=`touchmove${qn}`,Cn=`touchend${qn}`,$n=`pointerdown${qn}`,Sn=`pointerup${qn}`,An={endCallback:null,leftCallback:null,rightCallback:null},On={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class En extends pn{constructor(e,t){super(),this._element=e,e&&En.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return An}static get DefaultType(){return On}static get NAME(){return"swipe"}dispose(){sn.off(this._element,qn)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Vr(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Vr(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(sn.on(this._element,$n,(e=>this._start(e))),sn.on(this._element,Sn,(e=>this._end(e))),this._element.classList.add("pointer-event")):(sn.on(this._element,jn,(e=>this._start(e))),sn.on(this._element,zn,(e=>this._move(e))),sn.on(this._element,Cn,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Rn=".bs.carousel",Tn=".data-api",Mn="ArrowLeft",Ln="ArrowRight",Dn="next",In="prev",Pn="left",Hn="right",Bn=`slide${Rn}`,Nn=`slid${Rn}`,Vn=`keydown${Rn}`,Gn=`mouseenter${Rn}`,Fn=`mouseleave${Rn}`,Un=`dragstart${Rn}`,Wn=`load${Rn}${Tn}`,Xn=`click${Rn}${Tn}`,Yn="carousel",Kn="active",Qn=".active",Jn=".carousel-item",Zn=Qn+Jn,ei={[Mn]:Hn,[Ln]:Pn},ti={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oi={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ri extends mn{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=un.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Yn&&this.cycle()}static get Default(){return ti}static get DefaultType(){return oi}static get NAME(){return"carousel"}next(){this._slide(Dn)}nextWhenVisible(){!document.hidden&&Tr(this._element)&&this.next()}prev(){this._slide(In)}pause(){this._isSliding&&Or(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?sn.one(this._element,Nn,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void sn.one(this._element,Nn,(()=>this.to(e)));const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?Dn:In;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&sn.on(this._element,Vn,(e=>this._keydown(e))),"hover"===this._config.pause&&(sn.on(this._element,Gn,(()=>this.pause())),sn.on(this._element,Fn,(()=>this._maybeEnableCycle()))),this._config.touch&&En.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of un.find(".carousel-item img",this._element))sn.on(e,Un,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Pn)),rightCallback:()=>this._slide(this._directionToOrder(Hn)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new En(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ei[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=un.findOne(Qn,this._indicatorsElement);t.classList.remove(Kn),t.removeAttribute("aria-current");const o=un.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(Kn),o.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const o=this._getActive(),r=e===Dn,n=t||Fr(this._getItems(),o,r,this._config.wrap);if(n===o)return;const i=this._getItemIndex(n),a=t=>sn.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(o),to:i});if(a(Bn).defaultPrevented)return;if(!o||!n)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const s=r?"carousel-item-start":"carousel-item-end",b=r?"carousel-item-next":"carousel-item-prev";n.classList.add(b),Ir(n),o.classList.add(s),n.classList.add(s),this._queueCallback((()=>{n.classList.remove(s,b),n.classList.add(Kn),o.classList.remove(Kn,b,s),this._isSliding=!1,a(Nn)}),o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return un.findOne(Zn,this._element)}_getItems(){return un.find(Jn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Br()?e===Pn?In:Dn:e===Pn?Dn:In}_orderToDirection(e){return Br()?e===In?Pn:Hn:e===In?Hn:Pn}static jQueryInterface(e){return this.each((function(){const t=ri.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}sn.on(document,Xn,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=un.getElementFromSelector(this);if(!t||!t.classList.contains(Yn))return;e.preventDefault();const o=ri.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(o.to(r),void o._maybeEnableCycle()):"next"===fn.getDataAttribute(this,"slide")?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())})),sn.on(window,Wn,(()=>{const e=un.find('[data-bs-ride="carousel"]');for(const t of e)ri.getOrCreateInstance(t)})),Nr(ri);const ni=".bs.collapse",ii=`show${ni}`,ai=`shown${ni}`,li=`hide${ni}`,si=`hidden${ni}`,bi=`click${ni}.data-api`,ci="show",di="collapse",fi="collapsing",pi=`:scope .${di} .${di}`,mi='[data-bs-toggle="collapse"]',gi={parent:null,toggle:!0},ui={parent:"(null|element)",toggle:"boolean"};class hi extends mn{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const o=un.find(mi);for(const e of o){const t=un.getSelectorFromElement(e),o=un.find(t).filter((e=>e===this._element));null!==t&&o.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return gi}static get DefaultType(){return ui}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>hi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(sn.trigger(this._element,ii).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(di),this._element.classList.add(fi),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(fi),this._element.classList.add(di,ci),this._element.style[t]="",sn.trigger(this._element,ai)}),this._element,!0),this._element.style[t]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(sn.trigger(this._element,li).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ir(this._element),this._element.classList.add(fi),this._element.classList.remove(di,ci);for(const e of this._triggerArray){const t=un.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(fi),this._element.classList.add(di),sn.trigger(this._element,si)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ci)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Rr(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(mi);for(const t of e){const e=un.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=un.find(pi,this._config.parent);return un.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const o of e)o.classList.toggle("collapsed",!t),o.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const o=hi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e]()}}))}}sn.on(document,bi,mi,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of un.getMultipleElementsFromSelector(this))hi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Nr(hi);const vi="dropdown",xi=".bs.dropdown",wi=".data-api",yi="ArrowUp",ki="ArrowDown",_i=`hide${xi}`,qi=`hidden${xi}`,ji=`show${xi}`,zi=`shown${xi}`,Ci=`click${xi}${wi}`,$i=`keydown${xi}${wi}`,Si=`keyup${xi}${wi}`,Ai="show",Oi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ei=`${Oi}.${Ai}`,Ri=".dropdown-menu",Ti=Br()?"top-end":"top-start",Mi=Br()?"top-start":"top-end",Li=Br()?"bottom-end":"bottom-start",Di=Br()?"bottom-start":"bottom-end",Ii=Br()?"left-start":"right-start",Pi=Br()?"right-start":"left-start",Hi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Bi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ni extends mn{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=un.next(this._element,Ri)[0]||un.prev(this._element,Ri)[0]||un.findOne(Ri,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Hi}static get DefaultType(){return Bi}static get NAME(){return vi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Mr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!sn.trigger(this._element,ji,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))sn.on(e,"mouseover",Dr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ai),this._element.classList.add(Ai),sn.trigger(this._element,zi,e)}}hide(){if(Mr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!sn.trigger(this._element,_i,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))sn.off(e,"mouseover",Dr);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ai),this._element.classList.remove(Ai),this._element.setAttribute("aria-expanded","false"),fn.removeDataAttribute(this._menu,"popper"),sn.trigger(this._element,qi,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Er(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${vi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Er(this._config.reference)?e=Rr(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=jr(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ai)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ii;if(e.classList.contains("dropstart"))return Pi;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Mi:Ti:t?Di:Li}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(fn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Vr(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const o=un.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Tr(e)));o.length&&Fr(o,t,e===ki,!o.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Ni.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=un.find(Ei);for(const o of t){const t=Ni.getInstance(o);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),n=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),o="Escape"===e.key,r=[yi,ki].includes(e.key);if(!r&&!o)return;if(t&&!o)return;e.preventDefault();const n=this.matches(Oi)?this:un.prev(this,Oi)[0]||un.next(this,Oi)[0]||un.findOne(Oi,e.delegateTarget.parentNode),i=Ni.getOrCreateInstance(n);if(r)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),n.focus())}}sn.on(document,$i,Oi,Ni.dataApiKeydownHandler),sn.on(document,$i,Ri,Ni.dataApiKeydownHandler),sn.on(document,Ci,Ni.clearMenus),sn.on(document,Si,Ni.clearMenus),sn.on(document,Ci,Oi,(function(e){e.preventDefault(),Ni.getOrCreateInstance(this).toggle()})),Nr(Ni);const Vi="backdrop",Gi="show",Fi=`mousedown.bs.${Vi}`,Ui={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Wi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xi extends pn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ui}static get DefaultType(){return Wi}static get NAME(){return Vi}show(e){if(!this._config.isVisible)return void Vr(e);this._append();const t=this._getElement();this._config.isAnimated&&Ir(t),t.classList.add(Gi),this._emulateAnimation((()=>{Vr(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Gi),this._emulateAnimation((()=>{this.dispose(),Vr(e)}))):Vr(e)}dispose(){this._isAppended&&(sn.off(this._element,Fi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Rr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),sn.on(e,Fi,(()=>{Vr(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Gr(e,this._getElement(),this._config.isAnimated)}}const Yi=".bs.focustrap",Ki=`focusin${Yi}`,Qi=`keydown.tab${Yi}`,Ji="backward",Zi={autofocus:!0,trapElement:null},ea={autofocus:"boolean",trapElement:"element"};class ta extends pn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Zi}static get DefaultType(){return ea}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),sn.off(document,Yi),sn.on(document,Ki,(e=>this._handleFocusin(e))),sn.on(document,Qi,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,sn.off(document,Yi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const o=un.focusableChildren(t);0===o.length?t.focus():this._lastTabNavDirection===Ji?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Ji:"forward")}}const oa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ra=".sticky-top",na="padding-right",ia="margin-right";class aa{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,na,(t=>t+e)),this._setElementAttributes(oa,na,(t=>t+e)),this._setElementAttributes(ra,ia,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,na),this._resetElementAttributes(oa,na),this._resetElementAttributes(ra,ia)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,o){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${o(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const o=e.style.getPropertyValue(t);o&&fn.setDataAttribute(e,t,o)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const o=fn.getDataAttribute(e,t);null!==o?(fn.removeDataAttribute(e,t),e.style.setProperty(t,o)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Er(e))t(e);else for(const o of un.find(e,this._element))t(o)}}const la=".bs.modal",sa=`hide${la}`,ba=`hidePrevented${la}`,ca=`hidden${la}`,da=`show${la}`,fa=`shown${la}`,pa=`resize${la}`,ma=`click.dismiss${la}`,ga=`mousedown.dismiss${la}`,ua=`keydown.dismiss${la}`,ha=`click${la}.data-api`,va="modal-open",xa="show",wa="modal-static",ya={backdrop:!0,focus:!0,keyboard:!0},ka={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class _a extends mn{constructor(e,t){super(e,t),this._dialog=un.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new aa,this._addEventListeners()}static get Default(){return ya}static get DefaultType(){return ka}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||sn.trigger(this._element,da,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(va),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(sn.trigger(this._element,sa).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xa),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){sn.off(window,la),sn.off(this._dialog,la),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ta({trapElement:this._element})}_showElement(e){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 t=un.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ir(this._element),this._element.classList.add(xa),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,sn.trigger(this._element,fa,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){sn.on(this._element,ua,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),sn.on(window,pa,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),sn.on(this._element,ga,(e=>{sn.one(this._element,ma,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(va),this._resetAdjustments(),this._scrollBar.reset(),sn.trigger(this._element,ca)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(sn.trigger(this._element,ba).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(wa)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(wa),this._queueCallback((()=>{this._element.classList.remove(wa),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),o=t>0;if(o&&!e){const e=Br()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!o&&e){const e=Br()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const o=_a.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e](t)}}))}}sn.on(document,ha,'[data-bs-toggle="modal"]',(function(e){const t=un.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),sn.one(t,da,(e=>{e.defaultPrevented||sn.one(t,ca,(()=>{Tr(this)&&this.focus()}))}));const o=un.findOne(".modal.show");o&&_a.getInstance(o).hide(),_a.getOrCreateInstance(t).toggle(this)})),hn(_a),Nr(_a);const qa=".bs.offcanvas",ja=".data-api",za=`load${qa}${ja}`,Ca="show",$a="showing",Sa="hiding",Aa=".offcanvas.show",Oa=`show${qa}`,Ea=`shown${qa}`,Ra=`hide${qa}`,Ta=`hidePrevented${qa}`,Ma=`hidden${qa}`,La=`resize${qa}`,Da=`click${qa}${ja}`,Ia=`keydown.dismiss${qa}`,Pa={backdrop:!0,keyboard:!0,scroll:!1},Ha={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ba extends mn{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Pa}static get DefaultType(){return Ha}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||sn.trigger(this._element,Oa,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new aa).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($a),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ca),this._element.classList.remove($a),sn.trigger(this._element,Ea,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(sn.trigger(this._element,Ra).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Sa),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Ca,Sa),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new aa).reset(),sn.trigger(this._element,Ma)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Xi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():sn.trigger(this._element,Ta)}:null})}_initializeFocusTrap(){return new ta({trapElement:this._element})}_addEventListeners(){sn.on(this._element,Ia,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():sn.trigger(this._element,Ta))}))}static jQueryInterface(e){return this.each((function(){const t=Ba.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}sn.on(document,Da,'[data-bs-toggle="offcanvas"]',(function(e){const t=un.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Mr(this))return;sn.one(t,Ma,(()=>{Tr(this)&&this.focus()}));const o=un.findOne(Aa);o&&o!==t&&Ba.getInstance(o).hide(),Ba.getOrCreateInstance(t).toggle(this)})),sn.on(window,za,(()=>{for(const e of un.find(Aa))Ba.getOrCreateInstance(e).show()})),sn.on(window,La,(()=>{for(const e of un.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Ba.getOrCreateInstance(e).hide()})),hn(Ba),Nr(Ba);const Na={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},Va=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ga=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Fa=(e,t)=>{const o=e.nodeName.toLowerCase();return t.includes(o)?!Va.has(o)||Boolean(Ga.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(o)))},Ua={allowList:Na,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Wa={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Xa={entry:"(string|element|function|null)",selector:"(string|element)"};class Ya extends pn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ua}static get DefaultType(){return Wa}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,o]of Object.entries(this._config.content))this._setContent(e,o,t);const t=e.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&t.classList.add(...o.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,o]of Object.entries(e))super._typeCheckConfig({selector:t,entry:o},Xa)}_setContent(e,t,o){const r=un.findOne(o,e);r&&((t=this._resolvePossibleFunction(t))?Er(t)?this._putElementInTemplate(Rr(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,o){if(!e.length)return e;if(o&&"function"==typeof o)return o(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...r.body.querySelectorAll("*"));for(const e of n){const o=e.nodeName.toLowerCase();if(!Object.keys(t).includes(o)){e.remove();continue}const r=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[o]||[]);for(const t of r)Fa(t,n)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Vr(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Ka=new Set(["sanitize","allowList","sanitizeFn"]),Qa="fade",Ja="show",Za=".tooltip-inner",el=".modal",tl="hide.bs.modal",ol="hover",rl="focus",nl={AUTO:"auto",TOP:"top",RIGHT:Br()?"left":"right",BOTTOM:"bottom",LEFT:Br()?"right":"left"},il={allowList:Na,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"},al={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 ll extends mn{constructor(e,t){super(e,t),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 il}static get DefaultType(){return al}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),sn.off(this._element.closest(el),tl,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=sn.trigger(this._element,this.constructor.eventName("show")),t=(Lr(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(o),sn.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(o),o.classList.add(Ja),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))sn.on(e,"mouseover",Dr);this._queueCallback((()=>{sn.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!sn.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ja),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))sn.off(e,"mouseover",Dr);this._activeTrigger.click=!1,this._activeTrigger[rl]=!1,this._activeTrigger[ol]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),sn.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Qa,Ja),t.classList.add(`bs-${this.constructor.NAME}-auto`);const o=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",o),this._isAnimated()&&t.classList.add(Qa),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ya({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Za]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Qa)}_isShown(){return this.tip&&this.tip.classList.contains(Ja)}_createPopper(e){const t=Vr(this._config.placement,[this,e,this._element]),o=nl[t.toUpperCase()];return jr(this._element,e,this._getPopperConfig(o))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Vr(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Vr(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)sn.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===ol?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),o=t===ol?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");sn.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?rl:ol]=!0,t._enter()})),sn.on(this._element,o,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?rl:ol]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},sn.on(this._element.closest(el),tl,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=fn.getDataAttributes(this._element);for(const e of Object.keys(t))Ka.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Rr(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,o]of Object.entries(this._config))this.constructor.Default[t]!==o&&(e[t]=o);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=ll.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Nr(ll);const sl=".popover-header",bl=".popover-body",cl={...ll.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"},dl={...ll.DefaultType,content:"(null|string|element|function)"};class fl extends ll{static get Default(){return cl}static get DefaultType(){return dl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[sl]:this._getTitle(),[bl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=fl.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Nr(fl);const pl=".bs.scrollspy",ml=`activate${pl}`,gl=`click${pl}`,ul=`load${pl}.data-api`,hl="active",vl="[href]",xl=".nav-link",wl=`${xl}, .nav-item > ${xl}, .list-group-item`,yl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},kl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class _l extends mn{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return yl}static get DefaultType(){return kl}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Rr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(sn.off(this._config.target,gl),sn.on(this._config.target,gl,vl,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const o=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(o.scrollTo)return void o.scrollTo({top:r,behavior:"smooth"});o.scrollTop=r}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),o=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,n=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(o(i),!r)return}else n||e||o(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=un.find(vl,this._config.target);for(const t of e){if(!t.hash||Mr(t))continue;const e=un.findOne(decodeURI(t.hash),this._element);Tr(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(hl),this._activateParents(e),sn.trigger(this._element,ml,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))un.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(hl);else for(const t of un.parents(e,".nav, .list-group"))for(const e of un.prev(t,wl))e.classList.add(hl)}_clearActiveClass(e){e.classList.remove(hl);const t=un.find(`${vl}.${hl}`,e);for(const e of t)e.classList.remove(hl)}static jQueryInterface(e){return this.each((function(){const t=_l.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}sn.on(window,ul,(()=>{for(const e of un.find('[data-bs-spy="scroll"]'))_l.getOrCreateInstance(e)})),Nr(_l);const ql=".bs.tab",jl=`hide${ql}`,zl=`hidden${ql}`,Cl=`show${ql}`,$l=`shown${ql}`,Sl=`click${ql}`,Al=`keydown${ql}`,Ol=`load${ql}`,El="ArrowLeft",Rl="ArrowRight",Tl="ArrowUp",Ml="ArrowDown",Ll="Home",Dl="End",Il="active",Pl="fade",Hl="show",Bl=".dropdown-toggle",Nl=`:not(${Bl})`,Vl='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gl=`.nav-link${Nl}, .list-group-item${Nl}, [role="tab"]${Nl}, ${Vl}`,Fl=`.${Il}[data-bs-toggle="tab"], .${Il}[data-bs-toggle="pill"], .${Il}[data-bs-toggle="list"]`;class Ul extends mn{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),sn.on(this._element,Al,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),o=t?sn.trigger(t,jl,{relatedTarget:e}):null;sn.trigger(e,Cl,{relatedTarget:t}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Il),this._activate(un.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),sn.trigger(e,$l,{relatedTarget:t})):e.classList.add(Hl)}),e,e.classList.contains(Pl)))}_deactivate(e,t){e&&(e.classList.remove(Il),e.blur(),this._deactivate(un.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),sn.trigger(e,zl,{relatedTarget:t})):e.classList.remove(Hl)}),e,e.classList.contains(Pl)))}_keydown(e){if(![El,Rl,Tl,Ml,Ll,Dl].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Mr(e)));let o;if([Ll,Dl].includes(e.key))o=t[e.key===Ll?0:t.length-1];else{const r=[Rl,Ml].includes(e.key);o=Fr(t,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),Ul.getOrCreateInstance(o).show())}_getChildren(){return un.find(Gl,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),o=this._getOuterElement(e);e.setAttribute("aria-selected",t),o!==e&&this._setAttributeIfNotExists(o,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=un.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const o=this._getOuterElement(e);if(!o.classList.contains("dropdown"))return;const r=(e,r)=>{const n=un.findOne(e,o);n&&n.classList.toggle(r,t)};r(Bl,Il),r(".dropdown-menu",Hl),o.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,o){e.hasAttribute(t)||e.setAttribute(t,o)}_elemIsActive(e){return e.classList.contains(Il)}_getInnerElement(e){return e.matches(Gl)?e:un.findOne(Gl,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Ul.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}sn.on(document,Sl,Vl,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Mr(this)||Ul.getOrCreateInstance(this).show()})),sn.on(window,Ol,(()=>{for(const e of un.find(Fl))Ul.getOrCreateInstance(e)})),Nr(Ul);const Wl=".bs.toast",Xl=`mouseover${Wl}`,Yl=`mouseout${Wl}`,Kl=`focusin${Wl}`,Ql=`focusout${Wl}`,Jl=`hide${Wl}`,Zl=`hidden${Wl}`,es=`show${Wl}`,ts=`shown${Wl}`,os="hide",rs="show",ns="showing",is={animation:"boolean",autohide:"boolean",delay:"number"},as={animation:!0,autohide:!0,delay:5e3};class ls extends mn{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return as}static get DefaultType(){return is}static get NAME(){return"toast"}show(){sn.trigger(this._element,es).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(os),Ir(this._element),this._element.classList.add(rs,ns),this._queueCallback((()=>{this._element.classList.remove(ns),sn.trigger(this._element,ts),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(sn.trigger(this._element,Jl).defaultPrevented||(this._element.classList.add(ns),this._queueCallback((()=>{this._element.classList.add(os),this._element.classList.remove(ns,rs),sn.trigger(this._element,Zl)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rs),super.dispose()}isShown(){return this._element.classList.contains(rs)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const o=e.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){sn.on(this._element,Xl,(e=>this._onInteraction(e,!0))),sn.on(this._element,Yl,(e=>this._onInteraction(e,!1))),sn.on(this._element,Kl,(e=>this._onInteraction(e,!0))),sn.on(this._element,Ql,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=ls.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}hn(ls),Nr(ls);var ss=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},bs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let cs=class extends Bt{constructor(){super(...arguments),this.contentAtt="data-bs-content",this.contentStyle="none",this.containerAtt="data-bs-container",this.containerValue="body",this.defaultContent="No content provided",this.htmlAtt="data-bs-html",this.htmlValue="true",this.placementAtt="data-bs-placement",this.placementValue="left",this.selector="*[slot=content]",this.toggleAtt="data-bs-toggle",this.toggleValue="popover",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),this.setAttribute(this.toggleAtt,this.toggleValue),this.setAttribute(this.placementAtt,this.placementValue),this.setAttribute(this.containerAtt,this.containerValue),this.setAttribute(this.htmlAtt,this.htmlValue)}firstUpdated(e){super.firstUpdated(e);const t=this.querySelector(this.selector);t instanceof HTMLElement&&(t.style.display=this.contentStyle),this.setAttribute(this.contentAtt,t?.innerHTML??this.defaultContent),new fl(this)}render(){return We`<slot></slot>`}};ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"contentAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"contentStyle",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"containerAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"containerValue",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"defaultContent",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"htmlAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"htmlValue",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"placementAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"placementValue",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"selector",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"toggleAtt",void 0),ss([ut({type:String}),bs("design:type",Object)],cs.prototype,"toggleValue",void 0),ss([ut({type:Boolean}),bs("design:type",Object)],cs.prototype,"renderInHost",void 0),cs=ss([pt("qbo-popover")],cs);class ds{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class fs extends ds{constructor(e){if(super(e),this.it=Ke,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ke||null==e)return this._t=void 0,this.it=e;if(e===Ye)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}fs.directiveName="unsafeHTML",fs.resultType=1;const ps=(e=>(...t)=>({_$litDirective$:e,values:t}))(fs);var ms=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},gs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let us=class extends Ct{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[be`
101
101
  /* Add any custom styles here */
102
102
  .foo { color: red; }
103
103
  `]}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(e){e.target.closest('[data-dismiss="modal"]')&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}handleOutsideClick(e){this.open&&!this.contains(e.target)&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}render(){return We`