arisu.js 3.0.0 → 3.1.0
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.
- package/README.md +3 -0
- package/dist/arisu.commonjs.js +2 -1
- package/dist/arisu.commonjs.js.LICENSE.txt +5 -0
- package/dist/arisu.esm.js +2 -1
- package/dist/arisu.esm.js.LICENSE.txt +5 -0
- package/dist/arisu.umd.js +2 -1
- package/dist/arisu.umd.js.LICENSE.txt +5 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/js/helpers.d.ts +49 -8
- package/dist/types/js/helpers.d.ts.map +1 -1
- package/package.json +8 -4
package/dist/arisu.esm.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
function e(e,t){if(!e)return t;{let s;for(s in t)if(null==t?void 0:t.hasOwnProperty(s)){const n=t[s];null==e[s]&&(e[s]=n)}}return e}function t(e){let t=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return t=t.replace(/\./g,""),t}function s(...e){window.console&&e&&console.log(...e)}function n(e,t){let s=parseFloat(String(e));return s=s?Math.round(e*Math.pow(10,t))/Math.pow(10,t):0,s}function i(e){let t=!0;return null!=e&&""!==e&&"undefined"!==e&&"null"!==e||(t=!1),t}function o(e,t){return null!=e&&""!==e&&"undefined"!==e&&"null"!==e||(e=t),e}function a(e){return!!e&&e&&"object"==typeof e&&!Array.isArray(e)&&!0}function r(e,t){return e.filter(function(e){return-1!==t.indexOf(e)})}function l(e,t){return e.concat(t).filter(function(s){return-1===e.indexOf(s)||-1===t.indexOf(s)})}function c(e,t){return e.concat(t).filter(function(s){return-1===e.indexOf(s)&&-1!==t.indexOf(s)})}function d(e){return/^<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>$|^<([a-z][a-z0-9]*)\b[^>]*\/>$/i.test(e)}function h(e){let t=document.createElement("div");t.innerHTML=e.trim();let s=t.firstChild;if((null==s?void 0:s.nodeType)===Node.TEXT_NODE){s=s.nextSibling;let e=document.createDocumentFragment();for(;s;)e.appendChild(s),s=s.nextSibling;return e}return s}function u(t){var s;if("get"===(null===(s=null==(t=e(t,{url:"",method:"GET",async:!0,headerMap:{},cache:"default",dataType:"json",data:null,success:function(){},error:function(){}}))?void 0:t.method)||void 0===s?void 0:s.toLowerCase())){if(!t.url.includes("?")){let e=new URLSearchParams;for(let s in t.data)t.data.hasOwnProperty(s)&&e.append(s,t.data[s]);t.url=t.url+"?"+e.toString()}t.data=null}if(fetch)fetch(t.url,{method:t.method,headers:new Headers(t.headerMap),cache:t.cache,body:t.data?JSON.stringify(t.data):null}).then(function(e){return e.ok?"json"===t.dataType?e.json():e.text():Promise.reject(new Error("Failed to fetch resource"))}).then(function(e){t.success&&t.success(e)}).catch(function(e){t.error&&t.error(e)});else{let e=new XMLHttpRequest;e.onload=function(){if(e.status>=200&&e.status<300){let s;switch(t.dataType){case"json":try{s=JSON.parse(e.responseText)}catch(e){return void(t.error&&t.error(e))}break;case"text":s=e.responseText;break;default:s=e.responseText||e.response}t.success&&t.success(s,e.status,e)}else{let s=new Error("Request failed. Status: "+e.status);t.error&&t.error(s)}},e.onerror=function(){t.error&&t.error(new Error("Network Error"))},e.open((null==t?void 0:t.method)||"get",t.url,t.async||!1);for(let s in t.headerMap)t.headerMap.hasOwnProperty(s)&&e.setRequestHeader(s,t.headerMap[s]);t.data?e.send(t.data):e.send()}}function m(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),s=window.location.search.substr(1).match(t);return null!=s?unescape(s[2]):null}function p(e){const t=document.querySelector(e);if(t){const e=t.getBoundingClientRect(),s=window.pageYOffset||document.documentElement.scrollTop,n=window.pageXOffset||document.documentElement.scrollLeft,i=e.top+s,o=e.left+n;window.scrollTo(o,i)}}function f(e,t,s){let n=0;return e.length<=t||e.length>=s?n=1:/^[0-9]{0,32}$/.test(e)?n=2:/^[a-zA-z]{0,32}$/.test(e)?n=3:/^[0-9a-zA-z]{0,32}$/.test(e)?n=4:/^[^\u4e00-\u9fa5a-zA-Z\d,.,。]{0,32}$/.test(e)?n=5:/^(?=.*\d)(?=.*[a-zA-Z])(?=.*[~!@#$%^&*])[\da-zA-Z~!@#$%^&*]*$/.test(e)&&(n=8),n}const g={esc:"Escape",backspace:"Backspace",space:" ",enter:"Enter",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight"};function v(e,t){document.addEventListener("keydown",function(s){e===s.key&&t()})}function b(e,t,s={}){let n="",i=s.path||"/",o=s.domain,a=s.secure?"; Secure":"";if(s.expires){let e;"number"==typeof s.expires?(e=new Date,e.setTime(e.getTime()+24*s.expires*60*60*1e3)):e=s.expires,n=`; expires=${e.toUTCString()}`}document.cookie=`${e}=${encodeURIComponent(t)}${n}; path=${i}; domain=${o||""}${a}`}function y(e){let t=`${e}=`,s=document.cookie.split(";");for(let e=0;e<s.length;e++){let n=s[e];for(;" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null}function w(e,t={}){b(e,"",Object.assign(Object.assign({},t),{expires:-1}))}function C(e,t){const s=function(e,n,i){let o="";++n;for(let a=0;a<e.length;a++){const r=e[a];let l="#";if(r.link&&(l=r.link),r.pId||0!==n){if(r.pId===i){let t="";r.isParent&&(t=s(e,n,r.id),t&&(t="<ul class='sub'>"+t+"</ul>"));let i="";1===n&&(i=`<i class='${r.icon}'></i>`);let a=r.hash?` data-hash='${r.hash}' `:" ",c=r.actionId?` id='${r.actionId}' `:" ";o+=`<li class='sub-menu'><a${r.isParent?" class='mu-js-a' ":" "}${a}${r.tid?` data-tid='${r.tid}' `:" "}${c}href='${l}'>`+i+`<span>${r.name}</span></a>`+t+"</li>"}}else if(t)o=s(e,n,r.id);else{let t=s(e,n,r.id);t&&(t="<ul class='sub'>"+t+"</ul>"),o+=`<li class='sub-menu'><a${r.hash?` data-hash='${r.hash}' `:" "}${r.actionId?` id='${r.actionId}' `:" "}href='${l}'><span>${r.name}</span></a>`+t+"</li>"}}return o};let n="";return e&&(n=s(e,-1,0)),""+n}function k(e,t,s){let n=[];return e.forEach(function(i){i.pId===t&&(i.isactive=`a${i.id}`===s,n.push(i),i.isParent&&(i.children=k(e,i.id)))}),n}function x(e){const t=document.querySelector(".fm-search");if(!t)return;const s=t.querySelector("input"),n=t.querySelectorAll("span"),i=n[0],o=n[1];if(!s||!i||!o)return;const a=e=>{o.style.opacity=e?"1":"0",o.style.visibility=e?"visible":"hidden"};s.addEventListener("change",()=>{a(""!==s.value)}),a(""!==s.value),o.addEventListener("click",()=>{s.value="",a(!1)}),i.addEventListener("click",()=>{e(s.value)})}function E(e){if(!Array.isArray(e))return e;const t=[...e];for(let e=t.length-1;e>0;e--){const s=Math.floor(Math.random()*(e+1));[t[e],t[s]]=[t[s],t[e]]}return t}function T(t,s,n,i){"string"==typeof s?t.elements=document.querySelectorAll(s):s instanceof NodeList?t.elements=s:s instanceof HTMLElement?t.elements=Array.of(s):t.elements=[],t.options=e(n,t.options),i(t)}function L(e,t){var s;let n="data-"+t;return null!==(s=e.getAttribute(n))&&void 0!==s?s:void 0}function S(e,t){if(!t||"function"!=typeof t.querySelectorAll)return console.warn("contextQuerySelector: 无效的上下文环境 (context is null/undefined or invalid)",e),[];if(e.startsWith(">"))return Array.from(t.querySelectorAll(e.substring(1))).filter(function(e){return e.parentNode===t});{const s=t.querySelectorAll(e);return 0===s.length?Array.from(document.querySelectorAll(e)):Array.from(s)}}function A(e){const t=e.match(/^[\w-]+:eq\((\d+)\)$/);return null!==t&&void 0!==t[1]}const P="base"+(""+Math.random()).replace(/\D/g,""),M=new Map,$={};class I{constructor(e,t){if(this.elements=[],this.length=0,t=t instanceof I?t.elements[0]:t||document,"string"==typeof e)if(t&&"string"==typeof t&&(t=document.querySelector(t)),I.isEqSelector(e)){const s=e.split(":")[0],n=e.match(/:eq\((\d+)\)/);if(n){const e=parseInt(n[1]),i=I.contextQuerySelector(">"+s,t);i.length>0?this.elements=[i[e]]:this.elements=[]}else this.elements=[]}else this.elements=I.contextQuerySelector(e,t);else e instanceof NodeList||e instanceof HTMLElement?this.elements=e instanceof NodeList?Array.from(e):[e]:e instanceof Window?this.elements=[window]:null!==e&&"object"==typeof e&&"documentElement"in e?this.elements=[t]:Array.isArray(e)?this.elements=e:this.elements=[];this.length=this.elements.length}each(e){return this.elements.forEach((t,s)=>{e(t,s)}),this}hasClass(e){let t=!1;return this.each(s=>{t=s.classList.contains(e)}),t}addClass(e){return this.each(t=>{if(/\s/.test(e)){const s=e.split(" ");for(let e=0;e<s.length;e++)s[e]&&t.classList.add(s[e])}else e&&t.classList.add(e)})}removeClass(e){return this.each(t=>{if(void 0===e)t.className="";else if(e||0!==e.length)if(/\s/.test(e)){const s=e.split(" ");for(let e=0;e<s.length;e++)s[e]&&t.classList.remove(s[e].trim())}else t.classList.remove(e.trim())})}toggleClass(e){return this.each(t=>{if(t.classList)t.classList.toggle(e);else{let s=t.className.split(/\s+/),n=s.indexOf(e);n>=0?s.splice(n,1):s.push(e),t.className=s.join(" ")}})}not(e){let t=e instanceof I?e.elements:Array.from(document.querySelectorAll(e));return this.elements=Array.from(this.elements).filter(e=>!t.includes(e)),this}is(e){var t;let s=this.elements[0];if(":visible"===e){if("none"===s.style.display||"hidden"===s.style.visibility||"0"===getComputedStyle(s).opacity)return!1}else{if(":first-child"===e)return(null===(t=s.parentNode)||void 0===t?void 0:t.firstChild)===s;if(":last-child"!==e)return s.matches(e);{const e=s.parentNode;if(e){const t=e.children;return t[t.length-1]===s}}}return!1}closest(e){let t=this.elements[0];if(!t)return I.build([]);const s=t.matches||t.webkitMatchesSelector;if(s.call(t,e))return this.constructor===I?I.build(this.elements):this;let n=t.parentElement;for(;n;){if(s.call(n,e))return I.build(n);n=n.parentElement}return I.build([])}next(){if(1===this.elements.length){const e=this.elements[0].nextElementSibling;return e instanceof Element?I.build(e):I.build([])}if(this.elements.length>1){const e=[],t=this.elements[0].nextElementSibling;t instanceof Element&&e.push(t);for(let t=1;t<this.elements.length-1;t++)this.elements[t]instanceof Element&&e.push(this.elements[t]);const s=this.elements[this.elements.length-1].nextElementSibling;return s instanceof Element&&e.push(s),I.build(e)}return null}nextAll(e){const t=[];let s=this.elements[0],n=s.nextSibling,i=s.parentElement;for(;n&&(1===n.nodeType&&(e&&!n.matches(e)||t.unshift(n)),n=n.nextSibling,null!==n||0!==t.length||(null==i?void 0:i.firstChild)!==s););return this.elements=t,this.length=this.elements.length,this}prev(){if(1===this.elements.length)return I.build(this.elements[0].previousElementSibling);if(this.elements.length>1){let e=I.build(this.elements[0].previousElementSibling);return this.each((t,s)=>{s>1&&(e.elements.push(t),s===this.elements.length-1&&e.elements.push(t.previousElementSibling))}),e}return null}prevAll(e){const t=[];let s=this.elements[this.elements.length-1],n=s.previousSibling,i=s.parentElement;for(;n&&(1===n.nodeType&&(e&&!n.matches(e)||t.unshift(n)),n=n.previousSibling,null!==n||0!==t.length||(null==i?void 0:i.firstChild)!==s););return this.elements=t,this.length=this.elements.length,this}first(){return new I([this.elements[0]])}find(e){if(e&&"option:selected"===e.trim()){const e=[];return this.each(t=>{("select-one"===t.type||"select-multiple"===t.type)&&t.selectedIndex>=0&&e.push(t.options[t.selectedIndex])}),new I(e)}{const t=[];return this.elements.forEach(s=>{s instanceof HTMLElement&&s.querySelectorAll(e).forEach(e=>t.push(e))}),new I(t)}}parent(){let e=this.elements[0];return e?new I(e.parentNode):new I}parents(e){const t=[];let s=this.elements[0].parentElement;for(;s&&s!==document.documentElement;)e&&!s.matches(e)||t.push(s),s=s.parentElement;return new I(t)}siblings(){let e=this.elements[0];if(e&&1===e.nodeType){let t=e.parentNode;if(t){let s=[];for(let n=0;n<t.childNodes.length;n++){let i=t.childNodes[n];1===i.nodeType&&i!==e&&s.push(i)}return new I(s)}return new I}return new I}children(){let e=[];return this.each(t=>{e.push(...Array.from(t.children))}),new I(e)}index(){var e;const t=this.elements[0],s=null===(e=t.parentNode)||void 0===e?void 0:e.children;if(s)for(let e=0;e<s.length;e++)if(s[e]===t)return e;return-1}size(){return this.elements?this.elements.length:0}on(e,t){return this.each(function(s){s.addEventListener(e,t)})}off(e,t){return this.each(function(s){s.removeEventListener&&t&&s.removeEventListener(e,t)})}click(e){return"function"==typeof e?this.on("click",e):this.each(e=>{const t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(t)}),this}focus(e){return"function"==typeof e&&this.on("focus",e),this}change(e){return e&&this.each(t=>{t.addEventListener("change",e,!1)}),this}trigger(e,t){return this.each(function(s){let n;try{n=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(s){n=document.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,t)}s.dispatchEvent(n)}),this}remove(){return this.each(e=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)})}data(e,s){if(void 0===e)throw new Error("读取的或设置的键值不能为空");let n=this.elements[0];if(void 0!==s){let i=I.elementData.get(n);return i||(i=new Map,I.elementData.set(n,i)),i.set(t(e),s),this}{const s=I.elementData.get(n);return s?s.get(t(e)):L(n,e)}}removeData(e){let s=this.elements[0],n=I.elementData.get(s);n&&n.set(t(e),void 0)}attr(e,t){if(0===this.elements.length)return void 0===t?"":this;const s=this.elements[0];return void 0===t?(null==s?void 0:s.getAttribute(e))||"":this.each(s=>s.setAttribute(e,t))}removeAttr(e){return this.each(t=>{"function"==typeof t.removeAttribute&&t.removeAttribute(e)})}offset(){let e=this.elements[0].getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,s=window.pageXOffset||document.documentElement.scrollLeft;return{top:e.top+t,left:e.left+s}}scrollTop(){return this.elements[0]instanceof Window?void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop:document.documentElement.scrollTop}height(){const e=this.elements[0];return e?e===window?window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight:e.offsetHeight:(console.warn("目标元素不存在或未正确绑定!"),0)}width(){const e=this.elements[0];return e?e===window?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:e.offsetWidth:(console.warn("目标元素不存在或未正确绑定!"),0)}val(e){let t=this.elements[0];if("select-multiple"===t.type){if(void 0!==e){for(let s=t.options.length-1;s>=0;s--)t.options[s].selected=t.options[s].value===e;return this}{let e=[];for(let s=0;s<t.options.length;s++)t.options[s].selected&&e.push(t.options[s].value);return e}}return void 0!==e?(t.value=e,this):t.value}css(e,t){if(0===this.elements.length)return this;if(void 0===t){if("object"==typeof e){const t=e;for(const e in t)if(t.hasOwnProperty(e)){const s=t[e];this.each(t=>{t.style[e]=s})}return this}return this.elements[0].style[e]||""}return this.each(s=>{s.style[e]=t})}text(e){if(0===this.elements.length)return void 0===e?"":this;const t=this.elements[0];return void 0===e?t.textContent||"":this.each(t=>{t.textContent=e})}html(e){if(0===this.elements.length)return void 0===e?"":this;const t=this.elements[0];return void 0===e?t&&1===t.nodeType?t.innerHTML:"":this.each(t=>{t&&1===t.nodeType&&(t.innerHTML=e)})}after(e){return this.each(t=>{t.insertAdjacentHTML("afterend",e)})}append(e){return this.each(t=>{let s=document.createElement("div");if("string"==typeof e)s.innerHTML=e;else if(e instanceof Node)s.appendChild(e);else if(e instanceof NodeList)for(let t=0;t<e.length;t++)s.appendChild(e[t]);for(;s.firstChild;)t.appendChild(s.firstChild);return t})}prepend(e){return this.each(t=>{let s=document.createElement("div");if("string"==typeof e)s.innerHTML=e;else if(e instanceof Node)s.appendChild(e);else if(e instanceof NodeList)for(let t=0;t<e.length;t++)s.appendChild(e[t]);for(;s.firstChild;)t.insertBefore(s.firstChild,t.firstChild);return t})}hide(e,t){return this.each(s=>{s.style.display="block",e?setTimeout(()=>{s.style.display="none",t&&"function"==typeof t&&t(s)},e):(s.style.display="none",t&&"function"==typeof t&&t(s))})}show(e,t){return this.each(s=>{s.style.display="block",e?setTimeout(()=>{s.style.display="block",t&&"function"==typeof t&&t(s)},e):(s.style.display="block",t&&"function"==typeof t&&t(s))})}slideUp(t,s){const n=e({duration:t,callback:s},{duration:300,callback:null});return this.each(e=>{e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",e.style.transition=`height ${n.duration}ms ease-in-out`,setTimeout(()=>{e.style.height="0px"},n.duration/100),setTimeout(()=>{e.style.display="none",e.style.overflow="",e.style.transition="",e.style.height="",n.callback&&"function"==typeof n.callback&&n.callback(e)},n.duration-n.duration/100)})}slideDown(t,s){const n=e({duration:t,callback:s},{duration:300,callback:null});return this.each(e=>{let t=e.offsetHeight;"none"===e.style.display&&(e.style.display="",t=0),e.style.height=t+"px",e.style.transition=`height ${n.duration}ms ease-in-out`,e.offsetHeight,e.style.height=e.scrollHeight+"px",e.style.display="block",setTimeout(()=>{e.style.overflow="",e.style.transition="",e.style.display="",e.style.height="",n.callback&&"function"==typeof n.callback&&n.callback(e)},n.duration)})}slideToggle(t,s){const n=e({duration:t,callback:s},{duration:500,callback:null});let i=!0;return this.each(e=>{"none"===e.style.display&&(i=!1)}),i?this.slideUp(n.duration,n.callback):this.slideDown(n.duration,n.callback),this}fadeOut(t,s){const n=e({duration:t,callback:s},{duration:300,callback:null});return this.each(e=>{e.style.transition=`opacity ${n.duration}ms ease-in-out`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",n.callback&&"function"==typeof n.callback&&n.callback(e)},n.duration)})}checkAll(t){const s=e({checkboxes:t},{checkboxes:".be-check"});return this.each(e=>{let t=document.querySelectorAll(s.checkboxes);e.addEventListener("change",function(){t.forEach(function(t){t.checked=e.checked})})})}checkReverse(t){const s=e({checkboxes:t},{checkboxes:".be-check"});return this.each(e=>{let t=document.querySelectorAll(s.checkboxes);e.addEventListener("click",function(){t.forEach(function(e){e.checked=!e.checked})})})}numStep(t){return t=e(t,{start:0,end:100,duration:1500,callback:!1}),this.each(e=>{let s=null;requestAnimationFrame(function n(i){null===s&&(s=i);const o=Math.min((i-s)/t.duration,1),a=Math.floor(o*(t.end-t.start)+t.start);I.build(e).text(a.toString()),o<1?requestAnimationFrame(n):"function"==typeof t.callback&&t.callback()})})}scrollBG(t){return t=e(t,{speed:0}),this.each(e=>{I.build(e).css("background-position","50% 0px"),I.build(window).on("scroll",()=>{const s=I.build(e),n=s.offset().top,i=s.height(),o=s.scrollTop(),a=s.height();if(a+o>n&&a+o<n+a+i){const e=(n+i-o)/t.speed;s.css("background-position","50% -"+e+"px")}})})}setActive(e){const{className:t="active"}=e||{};I.build(this.elements).click(e=>{const s=I.build(e.currentTarget);s.hasClass(t)?s.removeClass(t):(I.build(this.elements).removeClass(t),s.addClass(t))})}loading(t){let s=!1;return void 0!==t&&"object"!=typeof t&&(s=!0,t={}),t=e(t,{isFull:!0,loadingTarget:"#do-preloader",template:'<div id="do-preloader" class="do-preloader"><span class="do-pr-loader"><span class="do-pr-lr"></span></span></div>'}),this.each(e=>{const n=t,i=n.loadingTarget,o=n.template;if(s)I.build("> *",e).removeClass("be-blur-2"),I.build(i).addClass("oy-0"),setTimeout(()=>{I.build("> *",e).removeClass("be-ts"),I.build(i).remove()},300);else{I.build("> *",e).addClass("be-ts").addClass("be-blur-2"),I.build(e).prepend(o);const t=I.build(i);t.length&&t.css("position","fixed").css("height","100vh").css("width","100vw")}})}static contextQuerySelector(e,t){if(!t||"function"!=typeof t.querySelectorAll)return console.warn("contextQuerySelector: 无效的上下文环境 (context is null/undefined or invalid)",e),[];if(e.startsWith(">"))return Array.from(t.querySelectorAll(e.substring(1))).filter(function(e){return e.parentNode===t});{const s=t.querySelectorAll(e);return 0===s.length?Array.from(document.querySelectorAll(e)):Array.from(s)}}static isEqSelector(e){const t=e.match(/^[\w-]+:eq\((\d+)\)$/);return null!==t&&void 0!==t[1]}static build(e,t){return new(this||I)(e,t)}}I.expando="base"+(""+Math.random()).replace(/\D/g,""),I.elementData=new Map,I.cache={};const D=I.build;class H{constructor(e,t){this.options={text:"处理中..",useText:!0},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.submitflag")||n.data("be.submitflag",e),e.init(s,t)})})}init(t,s){const n=this;s&&(n.options=e(s,n.options)),D(t).click(e=>{n.request(e.currentTarget)})}request(e){const t=D(e);e.setAttribute("data-original-text",t.text()),t.addClass("submit-flag-request").attr("disabled","disabled"),this.options.useText&&t.text(this.options.text)}complete(e){let t;t=D(e||this.selector),t.removeClass("submit-flag-request").removeAttr("disabled"),this.options.useText&&t.each(e=>{const t=e.getAttribute("data-original-text");null!==t&&""!==t&&(D(e).text(t),e.removeAttribute("data-original-text"))})}destroy(){D(this.selector).removeData("be.submitflag"),D(this.selector).each(e=>{e.removeAttribute("data-original-text")})}}class N{constructor(e,t){this.options={position:{bottom:"15px",right:"15px"},showEffect:" animate__zoomIn ",hideEffect:" animate__zoomOut ",type:"fixed",offsetTop:400},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.gotop")||n.data("be.gotop",e),e.init(s,t)})})}init(t,s){const n=D(t),i=(s=e(s,this.options)).type||"fixed",o=s.showEffect||" animate__zoomIn ",a=s.position,r=void 0!==s.offsetTop?Number(s.offsetTop):400,l=s.hideEffect||" animate__zoomOut ";n.addClass("animate__animated").css({display:"inline-block",position:i,opacity:0}),"fixed"!==i&&"absolute"!==i||n.css(a),n.on("click",e=>{e.preventDefault(),window.scrollTo(0,0)}),r&&!n.hasClass("animated-running")&&n.offset().top<=D(window).height()&&n.addClass("animated-running "+o).css({opacity:""}),D(window).on("scroll",()=>{if(r)D(window).scrollTop()>=r&&!n.hasClass("animated-running")?(n.addClass("animated-running "+o).css({opacity:""}),n.removeClass(l)):D(window).scrollTop()<=r&&n.hasClass("animated-running")&&(n.removeClass("animated-running "+o).css({opacity:0}),n.addClass(l));else{let e=n.offset().top;n.hasClass("animated-running")||D(window).scrollTop()>=e-D(window).height()&&(n.addClass("animated-running "+o).css({opacity:""}),n.removeClass(l))}}),D(window).trigger("scroll")}}class O{constructor(e,t){this.options={num:1},this.value=0,this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.itemcount")||n.data("be.itemcount",e),e.init(s,t)})})}init(t,s){const n=this;s&&(n.options=e(s,n.options));const i=D(t),o=i.find(".fm-plus"),a=i.find(".fm-minus"),r=i.find(".fm-result");let l=parseInt(String(r.val()));n.value=isNaN(l)?0:l,o.on("click",function(e){e.preventDefault(),l+=n.options.num,r.val(String(l)),n.value=l}),a.on("click",function(e){if(e.preventDefault(),!(l-n.options.num>=0))return!1;l-=n.options.num,r.val(String(l)),n.value=l})}getValue(){return this.value}}class q{constructor(e,t){this.options={width:"auto"},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.niceselect")||n.data("be.niceselect",e),e.init(s,t)})})}create(e,t){var s,n;const i=this,o=D(e),a=o.after("<div></div>").next().addClass("ce-nice-select").addClass(o.attr("class")||"").addClass(o.attr("disabled")?"disabled":"").attr("tabindex",o.attr("disabled")?"":"0").css("width",null!==(s=i.options.width)&&void 0!==s?s:"auto").html('<span class="current"></span><ul class="list"></ul>'),r=o.find("option"),l=e,c=D(l.options[l.selectedIndex]);i.text=c.data("display")||c.text(),a.find(".current").html(null!==(n=i.text)&&void 0!==n?n:""),r.each(function(e){const t=D(e),s=t.data("display"),n=null!=s?String(s):"",i=c.text()===t.text()?"selected":"";a.find("ul").append(`<li data-value="${t.val()}" data-display="${n}" class="option ${i}">${t.text()}</li>`)})}init(t,s){const n=this,i=D(n.selector),o=D(t);s&&(n.options=e(s,n.options)),o.hide(),n.create(t,n.options);const a=i.next();return a.on("click",function(){const e=o.next();e.toggleClass("open"),e.hasClass("open")?(e.find(".option"),e.find(".focus").removeClass("focus"),e.find(".selected").addClass("focus")):e.focus()}),D(".option",a).on("click",function(e){const t=D(e.currentTarget),s=a;s.find(".selected").removeClass("selected"),t.addClass("selected"),n.text=t.data("display")||t.text(),s.find(".current").text(String(n.text)),n.value=t.data("value"),s.prev().trigger("change").val(String(n.value))}),this}getText(){return this.text}getValue(){return this.value}}class W{constructor(t,s){this.options={time:1e3},this.selector=t||"",a(t)?(this.options=e(t,this.options),this.selector=""):(t&&(this.selector=t),this.options=e(s,this.options)),D("[data-ae-load]").addClass("ae-load")}start(e){const t=e||this.selector,s=t?`${t}[data-ae-load]`:"[data-ae-load]";D(s).addClass("ae-load").removeClass("ae-tt-complete ae-tt-done ae-tt-loading").addClass("ae-tt-complete"),setTimeout(()=>{D(s).removeClass("ae-load ae-tt-complete")},this.options.time)}loading(e){const t=e||this.selector,s=t?`${t}[data-ae-load]`:"[data-ae-load]";D("[data-ae-load]").addClass("ae-load"),D(s).each(e=>{const t=D(e),s=t.data("al-mw"),n=t.data("al-mh");s&&t.css("min-width",s),n&&t.css("min-height",n),t.removeClass("ae-tt-complete ae-tt-done ae-tt-loading").addClass("ae-tt-loading")})}done(e){const t=e||this.selector,s=t?`${t}[data-ae-load]`:"[data-ae-load]";D(s).removeClass("ae-tt-done").addClass("ae-tt-done"),setTimeout(()=>{D(s).removeClass("ae-load ae-tt-loading ae-tt-done")},this.options.time)}}class j{constructor(e,t){this.options={},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.btnef")||n.data("be.btnef",e),e.init(s,t)})})}init(e,t){const s=D(e);s.append("<b></b>"),s.on("mouseenter",e=>{const t=D(e.currentTarget),s=t.offset(),n=e.pageX-s.left,i=e.pageY-s.top;t.find("b").css({top:i+"px",left:n+"px"})}).on("mouseout",e=>{const t=D(e.currentTarget),s=t.offset(),n=e.pageX-s.left,i=e.pageY-s.top;t.find("b").css({top:i+"px",left:n+"px"})})}}class F{constructor(e,t){this.options={targetWarp:"#be-pw",totalItems:0,itemsPerPage:0,visiblePages:5,prev:"上一页",next:"下一页",first:"首页",last:"尾页",onButtonClick:()=>{}},this.currentPage=1,this.totalPages=0,this.selector=e,T(this,e,t,e=>{let s=this;e.elements.forEach(n=>{let i=D(n);i.data("be.ipagination")||i.data("be.ipagination",e),s.currentPage=1,s.totalPages=Math.ceil(s.options.totalItems/s.options.itemsPerPage),e.init(t)})})}init(t){const s=this;let n=s.options;t&&(n=e(t,s.options)),D(this.selector).html(""),this.addPageButton(n.first,1,()=>this.goToPage(1)),this.addPageButton(n.prev,this.currentPage-1,()=>this.goToPrevPage());let i=Math.max(1,this.currentPage-Math.floor(n.visiblePages/2)),o=Math.min(this.totalPages,i+n.visiblePages-1);o-i<n.visiblePages-1&&(i=Math.max(1,o-n.visiblePages+1));for(let e=i;e<=o;e++)this.addPageButton(e,e,()=>this.goToPage(e));this.addPageButton(n.next,this.currentPage+1,()=>this.goToNextPage()),this.addPageButton(n.last,this.totalPages,()=>this.goToPage(this.totalPages));const a=n.itemsPerPage*(s.currentPage-1)+1,r=Math.min(a+n.itemsPerPage-1,n.totalItems);D("p",n.targetWarp).html(`显示 ${a} 至 ${r} 条,共有 ${n.totalItems} 条`)}addPageButton(e,t,s){const n=document.createElement("li");n.classList.add("page-item"),"number"==typeof e&&Number.isFinite(e)||!isNaN(Number(e))&&Number.isFinite(Number(e))?n.classList.add("pi-t2"):n.classList.add("pi-t1");const i=document.createElement("button");n.append(i),i.innerHTML=String(e),i.onclick=s,t!==this.currentPage&&0!==t&&t!==this.totalPages+1||(n.classList.add("active"),n.classList.add("disabled")),D(this.selector).append(n)}goToPrevPage(){this.currentPage>1&&(this.currentPage--,this.init(),this.options.onButtonClick(this.currentPage))}goToNextPage(){this.currentPage<this.totalPages&&(this.currentPage++,this.init(),this.options.onButtonClick(this.currentPage))}goToPage(e){e>=1&&e<=this.totalPages&&(this.currentPage=e,this.init(),this.options.onButtonClick(this.currentPage))}}class z{constructor(e,t){this.options={rp:"10",visiblePages:7,sortname:"id",sortorder:"desc",method:"post",dataType:"json",param:{},handlebars:null,url:"",loadColor:"#0a0a0a",lang:"cn",template:"#tp-list",headerMap:{},cache:"default",ipWarp:"#ilist-ip-warp",prev:"上一页",next:"下一页",first:"首页",last:"尾页",onSuccess:!1,onError:!1},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.ilist")||n.data("be.ilist",e),void 0!==window.Handlebars&&null===(null==t?void 0:t.handlebars)&&(t.handlebars=window.Handlebars),e.init(s,t||e.options)})})}init(t,s){let n=D(t),i=n.data("be.ilist.html");if(n.data("be.ilist.flag",!0),i)D(".be-list-data-body",t).html("");else{const e=D(s.template);if(!s.handlebars)return void console.error("Handlebars is required for IList but not provided.");const t=s.handlebars.compile(e.html())({});n.html(t),n.data("be.ilist.html",t)}let o=e({page:1,rp:s.rp,sortname:s.sortname,sortorder:s.sortorder},s.param);s.isInit=!0,D(t).data("be.ilist.event",!0),this.getData(t,s,o)}getData(t,s,n){let i=this,o=D(t);D(".be-list-data-body",t).html(""),D(".be-list-loading",t).addClass("opacity-100"),D(".be-list-nofound",t).removeClass("opacity-100"),D(".be-list-page",t).removeClass("opacity-100"),u({method:s.method,url:s.url,headerMap:s.headerMap,data:n,cache:s.cache,dataType:s.dataType,success:a=>{D(".be-list-loading",t).removeClass("opacity-100").addClass("opacity-0"),D(".be-list-data",t).removeClass("opacity-0"),D(".be-list-data-body",t).css("display","table-row-group"),a.isInit=s.isInit,s.onSuccess&&s.onSuccess(a),a.total?(i.page(t,s,n,a.total),D(".ilist-check-all").checkAll(".ilist-check"),D("table > tbody tr",t).click(e=>{let t=D(e.target);t.is("input")||t.is("i")||t.is("a")||D(".ilist-check",e.currentTarget).click()}),o.data("be.ilist.event")&&(o.data("be.ilist.event",!1),D(".ilist-check",t).change(e=>{D(e.currentTarget).is(":checked")?D(e.currentTarget).parents("tr").addClass("active"):D(e.currentTarget).parents("tr").removeClass("active")})),D("table > thead tr td",t).click(a=>{const r=D(a.currentTarget).data("sortname");if(r){const l=o.data("be.ilist.param");if(l&&(n=e(l,n)),n.sortname=r,!D(a.currentTarget).hasClass("is-check")&&n.sortname){let e=D(a.currentTarget).attr("data-sort-order");D("table > thead tr td",t).removeAttr("data-sort-order"),e?(D(a.currentTarget).attr("data-sort-order","desc"===e?"asc":"desc"),n.sortorder="desc"===e?"asc":"desc"):(D(a.currentTarget).attr("data-sort-order","desc"),n.sortorder="desc"),o.data("be.ilist.flag",!0),n.page="1",s.isInit=!1,i.getData(t,s,n)}}}),D(".be-list-page",t).addClass("opacity-100")):(D(".be-list-nofound",t).addClass("opacity-100"),D(".be-list-page",t).removeClass("opacity-100"))},error:e=>{try{s.onError&&s.onError(e)}catch(e){}}})}page(e,t,s,n){let i=this,o=D(e);o.data("be.ilist.flag")&&new F("#ipagination",{targetWarp:t.ipWarp,totalItems:n,itemsPerPage:Number(t.rp),visiblePages:t.visiblePages,prev:t.prev,next:t.next,first:t.first,last:t.last,onButtonClick:n=>{const o=document.querySelector(".ilist-check-all");o&&(o.checked=!1),s.page=n,t.isInit=!1,i.getData(e,t,s)}}),o.data("be.ilist.flag",!1)}reload(t){let s=D(this.selector);const n=s.data("be.ilist"),i=e(t,{page:1,rp:n.options.rp,sortname:n.options.sortname,sortorder:n.options.sortorder});n.options.isInit=!1,s.data("be.ilist.flag",!0),s.data("be.ilist.param",i),D("table > thead tr td",s).attr("data-sort-order",""),n.getData(n.selector,n.options,i)}}class R{constructor(e,t){this.options={classParent:"ia-parent",classActive:"active",classArrow:"ia-icon",classCount:"ia-count",autoExpand:!1,classExpand:"ia-current-parent",autoClose:!0,speed:300,saveState:!0,disableLink:!0,showCount:!1,cookie:"ia-cookie",smallClass:"ce-accordion-small"},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.iaccordion")||n.data("be.iaccordion",e),e.init(s,t)})})}init(t,s){const n=this,i=D("li > a",t),o=D("li > ul",t),a=(s=e(s,n.options)).classActive;this.setUpAccordion(t,i,o,s),!0===s.saveState&&n.checkCookie(s.cookie,t,a),!0===s.autoExpand&&D("li."+s.classExpand+" > a").addClass(a),i.click(e=>{const i=D(e.currentTarget),o=i.parent(),r=n.isSmall(e,t,s.smallClass);!0===s.disableLink&&i.siblings().length>0&&e.preventDefault(),!0===s.autoClose&&n.autoCloseAccordion(t,i,r,s),0===D("> ul",o).length?D("> a",o).addClass(a):"none"!==D("> ul",o).css("display")?(n.slideUp(D("ul",o),r,s),D("a",o).removeClass(a)):("none"===D(e.currentTarget).siblings().css("display")?n.slideDown(D(e.currentTarget).siblings().css("overflow","hidden"),r,s):n.slideUp(D(e.currentTarget).siblings(),r,s),D("> a",o).addClass(a)),!0===s.saveState&&n.createCookie(s.cookie,t,a)})}setUpAccordion(e,t,s,n){const i='<span class="'+n.classArrow+'"></span>',o=n.classParent+"-li";s.show(),D("li",e).each(e=>{D("> ul",e).length>0&&(D(e).addClass(o),D("> a",e).addClass(n.classParent).append(i))}),s.hide(),!0===n.showCount&&D("ul",e).each(e=>{D("> a",D(e).parent()).append(' <span class="'+n.classCount+'">('+e.children.length+")</span>")})}autoCloseAccordion(e,t,s,n){const i=this;D("ul",e).each(e=>{let o=!1;t.parents("ul").each(t=>{t===e&&(o=!0)}),o||t.siblings().elements[0]===e||"none"===e.style.display||i.slideUp(D(e),s,n)}),D("a",e).removeClass(n.classActive),t.parents("li").each(e=>{D("> a",e).addClass(n.classActive)})}checkCookie(e,t,s){const n=this,i=y(e);if(null!==i&&""!==i){const e=i.split(",");n.setActiveMenu(t,e,0,s)}}setActiveMenu(e,t,s,n){const i=D("li:eq("+t[s]+")",e),o=D("> a",i),a=o.siblings();o.addClass(n),a.css("display",""),t.length>s+1&&this.setActiveMenu(a,t,++s,n)}createCookie(e,t,s){let n=[];D("li a."+s,t).each(e=>{const t=D(e).parent().index();n.push(t.toString())}),b(e,n.join(","))}isSmall(e,t,s){return!(!D(t).hasClass(s)||0===D(e.currentTarget).siblings().length||(e.preventDefault(),0))}slideDown(e,t,s){t||e.slideDown(s.speed)}slideUp(e,t,s){t||e.slideUp(s.speed)}}class B{constructor(e,t){this.options={handlebars:null,bootstrap:null,airDatepicker:null,localeZh:null,template:"#tp-popover",templateItems:"#tp-popover-items",html:!0,title:"详细搜索",trigger:"click",toggle:"popover",placement:"auto",onSerach:!1,items:[],timepicker:!0,format:"yyyy-MM-dd hh:mm:ss"},this.itemsHtml="",this.itemsValue=[],this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.popoversearch")||n.data("be.popoversearch",e),void 0===window.Handlebars||(null==t?void 0:t.handlebars)||(t.handlebars=window.Handlebars),void 0===window.bootstrap||(null==t?void 0:t.bootstrap)||(t.bootstrap=window.bootstrap),void 0===window.AirDatepicker||(null==t?void 0:t.airDatepicker)||(t.airDatepicker=window.AirDatepicker),void 0===window.localeZh||(null==t?void 0:t.localeZh)||(t.localeZh=window.localeZh),e.init(s,t||e.options)})})}init(e,t){const s=this;this.itemsHtml="",this.itemsValue=[];const n=t.handlebars.compile(D(t.template).html())({}),i=new t.bootstrap.Popover(e,{html:t.html,title:t.title,trigger:t.trigger,toggle:t.toggle,placement:t.placement,template:n,animation:!0,content:""});e.addEventListener("inserted.bs.popover",()=>{s.addItem(t)}),e.addEventListener("shown.bs.popover",()=>{s.search(s,t),s.close(i),s.clear()}),e.addEventListener("hide.bs.popover",()=>{s.itemsHtml=D(".popover-content-items").html()||"",s.itemsValue=[],D(".popover-form-item").each(e=>{s.itemsValue.push(String(D(e).val()))})})}addItem(e){const t=this,s=D(".ce-popover > .popover-content .popover-content-items");if(t.itemsHtml)s.html(t.itemsHtml);else{const t=e.handlebars.compile(D(e.templateItems).html())({items:e.items});s.html(t)}D(".popover-form-item").each((s,n)=>{const i=D(s);if(void 0!==t.itemsValue[n]&&i.val(String(t.itemsValue[n])),i.hasClass("popover-form-date"))try{new e.airDatepicker(`.ce-popover input[name='${i.attr("name")}']`,{classes:"fm-datepicker",autoClose:!0,inline:!1,timepicker:e.timepicker,buttons:["today","clear"],locale:e.localeZh,dateFormat:t=>t.format(e.format)})}catch(e){D(`.ce-popover input[name='${i.attr("name")}']`).attr("type","date")}})}close(e){D(".ce-popover-cancel",".ce-popover").off("click").on("click",()=>{e.hide()})}clear(){D(".ce-popover-clear",".ce-popover").off("click").on("click",()=>{D(".popover-form-item",".ce-popover").each(e=>{D(e).val("")})})}getParam(){const e={};return D(".popover-form-item").each(function(t){const s=D(t),n=s.attr("name"),i=s.val();n&&i&&(e[n]=i)}),e}search(e,t){D(".ce-popover-ok",".ce-popover").off("click").on("click",()=>{t.onSerach&&t.onSerach({param:e.getParam()})})}}class U{constructor(e,t){this.options={animationDelay:5e3,lettersDelay:50,type:void 0},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.flash")||n.data("be.flash",e),e.init(s,t||e.options)})})}init(e,t){1===t.type&&D(e).addClass("letters"),this.singleLetters(e),this.animateHeadline(e,t)}singleLetters(e){const t=this;D(e).find("b").each(function(e){const s=D(e),n=s.text().split(""),i=s.hasClass("is-visible");for(const e in n)n.hasOwnProperty(e)&&(s.parents(t.selector).length>0&&(n[e]=`<em>${n[e]}</em>`),n[e]=i?`<i class='in'>${n[e]}</i>`:`<i>${n[e]}</i>`);const o=n.join("");s.html(o).css("opacity","1")})}animateHeadline(e,t){const s=this,n=t.animationDelay;D(e).each(function(e){const t=D(e);setTimeout(()=>{s.hideWord(t.find(".is-visible").first())},n)})}hideWord(e){const t=this,s=t.takeNext(e),n=e.children().length>=s.children().length;t.hideLetter(e.find("i").first(),e,n,t.options.lettersDelay),t.showLetter(s.find("i").first(),s,n,t.options.lettersDelay)}takeNext(e){return 0===e.length||e.is(":last-child")?e.parent().children().first():e.next()}hideLetter(e,t,s,n){const i=this;e.removeClass("in").addClass("out"),0===e.length||e.is(":last-child")?s&&setTimeout(()=>{i.hideWord(i.takeNext(t))},i.options.animationDelay):setTimeout(()=>{i.hideLetter(e.next(),t,s,n)},n)}showLetter(e,t,s,n){const i=this;e.addClass("in").removeClass("out"),0===e.length||e.is(":last-child")?s||setTimeout(()=>{i.hideWord(t)},i.options.animationDelay):setTimeout(()=>{i.showLetter(e.next(),t,s,n)},n)}}class Y{constructor(e,t,s){this.active=!0,this.pos=t,this.radius=s,this.options=e}draw(e){this.active&&(e.beginPath(),e.arc(this.pos.x,this.pos.y,this.radius,0,2*Math.PI,!1),e.fillStyle=`rgba(${this.options.pointColor},${this.active?.6:0})`,e.fill())}}class X{constructor(e,t){this.options={gsap:null,canvasId:"targetCanvas",animateHeader:!0,width:window.innerWidth,height:window.innerHeight,isWindowWidth:!1,isWindowHeight:!1,num:20,pointColor:"156,217,249",lineColor:"156,217,249"},this.animationFrameId=0,this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.lineeffect")||n.data("be.lineeffect",e),e.init(s,t||e.options)})})}init(e,t){if(!t.gsap||"function"!=typeof t.gsap.to)return void console.error('[LineEffect] Missing or invalid "gsap" dependency in options.');let s,n;s="number"==typeof t.width?t.width:"string"==typeof t.width?this.resolveDimension(t.width,"width"):window.innerWidth,n="number"==typeof t.height?t.height:"string"==typeof t.height?this.resolveDimension(t.height,"height"):window.innerHeight;const i={x:s/2,y:n/2},o=document.getElementById(t.canvasId);if(!o)return void console.error(`[LineEffect] Canvas with id "${t.canvasId}" not found.`);o.width=s,o.height=n;const a=o.getContext("2d"),r=[];for(let e=0;e<s;e+=s/t.num)for(let i=0;i<n;i+=n/t.num){let o=e+Math.random()*s/t.num,a=i+Math.random()*n/t.num,l={x:o,originX:o,y:a,originY:a,active:0,closest:[],circle:null};r.push(l)}for(let e=0;e<r.length;e++){const t=[],s=r[e];for(let e=0;e<r.length;e++){let n=r[e];if(s!==n){let e=!1;for(let s=0;s<5;s++)e||void 0===t[s]&&(t[s]=n,e=!0);for(let i=0;i<5;i++)e||this.getDistance(s,n)<this.getDistance(s,t[i])&&(t[i]=n,e=!0)}}s.closest=t}for(let e in r)r.hasOwnProperty(e)&&(r[e].circle=new Y(t,r[e],2+2*Math.random()));t.points=r,this.initAnimation(t,a,i,s,n),this.addListeners(t,i,o)}resolveDimension(e,t){if(e.endsWith("%")){const s=parseFloat(e);return"width"===t?s/100*window.innerWidth:s/100*window.innerHeight}if(e.endsWith("px"))return parseFloat(e);if(e.endsWith("vw"))return parseFloat(e)/100*window.innerWidth;if(e.endsWith("vh"))return parseFloat(e)/100*window.innerHeight;if(e.endsWith("rem")||e.endsWith("em")){const t=document.createElement("div");t.style.position="absolute",t.style.visibility="hidden",t.style.fontSize=e,document.body.appendChild(t);const s=parseFloat(getComputedStyle(document.documentElement).fontSize);if(document.body.removeChild(t),e.endsWith("rem"))return parseFloat(e)*s;if(e.endsWith("em"))return parseFloat(e)*s}return parseFloat(e)||0}getDistance(e,t){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}initAnimation(e,t,s,n,i){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),this.animate(e,t,s,n,i);for(let t in e.points)e.points.hasOwnProperty(t)&&this.shiftPoint(e.points[t])}animate(e,t,s,n,i){if(e.animateHeader){const o=e.points;t.clearRect(0,0,n,i);for(let n in o)if(o.hasOwnProperty(n)){const i=Math.abs(this.getDistance(s,o[n]));i<4e3?(o[n].active=.3,o[n].circle.active=!0):i<2e4?(o[n].active=.1,o[n].circle.active=!0):i<4e4?(o[n].active=.02,o[n].circle.active=!0):(o[n].active=0,o[n].circle.active=!1),this.drawLines(e,o[n],t),o[n].circle.draw(t)}}this.animationFrameId=requestAnimationFrame(()=>this.animate(e,t,s,n,i))}shiftPoint(e){this.options.gsap.to(e,{duration:1+Math.random(),x:e.originX-50+100*Math.random(),y:e.originY-50+100*Math.random(),ease:"circ.inOut",onComplete:()=>this.shiftPoint(e)})}drawLines(e,t,s){var n;if(t.active)for(let i in t.closest)(null===(n=t.closest)||void 0===n?void 0:n.hasOwnProperty(i))&&(s.beginPath(),s.moveTo(t.x,t.y),s.lineTo(t.closest[i].x,t.closest[i].y),s.strokeStyle=`rgba(${e.lineColor},${t.active})`,s.stroke())}addListeners(e,t,s){this.removeListeners(),this.boundMouseMove=e=>this.mouseMove(e,t),this.boundScroll=()=>this.scrollCheck(e),this.boundResize=()=>this.resize(e,s),document.getElementById(this.options.canvasId)?("ontouchstart"in window||window.addEventListener("mousemove",this.boundMouseMove),window.addEventListener("scroll",this.boundScroll),window.addEventListener("resize",this.boundResize)):("ontouchstart"in window||window.removeEventListener("mousemove",this.boundMouseMove),window.removeEventListener("scroll",this.boundScroll),window.removeEventListener("resize",this.boundResize))}removeListeners(){this.boundMouseMove&&window.removeEventListener("mousemove",this.boundMouseMove),this.boundScroll&&window.removeEventListener("scroll",this.boundScroll),this.boundResize&&window.removeEventListener("resize",this.boundResize)}mouseMove(e,t){const s=document.getElementById(this.options.canvasId);if(s){const n=s.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,o=window.pageXOffset||document.documentElement.scrollLeft,a=n.top+i,r=n.left+o;let l=0,c=0;e.pageX||e.pageY?(l=e.pageX,c=e.pageY):(e.clientX||e.clientY)&&(l=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),t.x=l-r,t.y=c-a}}scrollCheck(e){e.animateHeader=document.body.scrollTop<=("number"==typeof e.height?e.height:window.innerHeight)}resize(e,t){var s,n;if(e.isWindowWidth)if("string"==typeof e.width){const s=this.resolveDimension(e.width,"width");t.width=s}else t.width=null!==(s=e.width)&&void 0!==s?s:window.innerWidth;if(e.isWindowHeight)if("string"==typeof e.height){const s=this.resolveDimension(e.height,"height");t.height=s}else t.height=null!==(n=e.height)&&void 0!==n?n:window.innerHeight}destroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),this.removeListeners()}}const _="ce-slideFromTop",Z="ce-slideFromRight",V="ce-slideFromBottom",Q="ce-slideFromLeft",J="ce-slideTop",G="ce-slideLeft";class K{constructor(e,t){this.options={reverse:!1},this.selector=e,T(this,e,t,e=>{e.elements.forEach(s=>{let n=D(s);n.data("be.hoverdir")||n.data("be.hoverdir",e),e.init(s,t||e.options)})})}init(e,t){const s=D(e);s.on("mouseenter",e=>this.mouseEvent(e,t)),s.on("mouseleave",e=>this.mouseEvent(e,t))}mouseEvent(e,t){const s=D(e.currentTarget),n=e.type,i=s.find("div"),o=this.getDir(s,{x:e.pageX,y:e.pageY}),a=this.getClasses(o,t);i.removeClass(),"mouseenter"===n?setTimeout(()=>{i.css("display","none").addClass(a.from),i.show(15,e=>{D(e).addClass(a.to)})},15):i.addClass(a.from)}getDir(e,t){const s=e.width(),n=e.height(),i=(t.x-e.offset().left-s/2)*(s>n?n/s:1),o=(t.y-e.offset().top-n/2)*(n>s?s/n:1);return Math.round((Math.atan2(o,i)*(180/Math.PI)+180)/90+3)%4}getClasses(e,t){let s,n;switch(e){case 0:s=t.reverse?V:_,n=J;break;case 1:s=t.reverse?Q:Z,n=G;break;case 2:s=t.reverse?_:V,n=J;break;case 3:s=t.reverse?Z:Q,n=G;break;default:s="",n=""}return{from:s,to:n}}}class ee{constructor(e){this.options={times:20,time:1e3},this.jsLoaded=[],this.cssLoaded=[],this.options=Object.assign(Object.assign({},this.options),e)}loadScript(e){const t=this;return new Promise((s,n)=>{if(t.jsLoaded.find(t=>t.url===e)){let n,i=0;const o=setInterval(()=>{n=t.jsLoaded.find(t=>t.url===e);try{if(!(null==n?void 0:n.isLoaded)&&i>t.options.times)return t.jsLoaded=t.jsLoaded.filter(t=>t.url!==e),n&&n.script.parentNode===document.body&&document.body.removeChild(n.script),void clearInterval(o);if(null==n?void 0:n.isLoaded)return clearInterval(o),void s(n.script);i++}catch(e){console.error(e)}},t.options.time)}else{const i=document.createElement("script");let o=!1,a=0;t.jsLoaded=[...t.jsLoaded,{script:i,url:e,isLoaded:!1,count:0}],i.src=e,i.onload=()=>{t.jsLoaded=t.jsLoaded.map(t=>t.url===e?Object.assign(Object.assign({},t),{isLoaded:!0}):t),o=!0,s(i)},i.onerror=()=>{t.jsLoaded=t.jsLoaded.filter(t=>t.url!==e),n(new Error("Script load error for "+e))},document.body.appendChild(i);const r=setInterval(()=>{if(!o)return a>t.options.times?(i.parentNode===document.body&&document.body.removeChild(i),void clearInterval(r)):void a++;clearInterval(r)},100)}})}loadStyle(e){const t=this;return new Promise((s,n)=>{const i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++)if(i[t].getAttribute("href")===e)return void s(i[t]);const o=document.createElement("link");o.href=e,o.rel="stylesheet",o.type="text/css",o.onload=()=>s(o),o.onerror=()=>n(new Error("Style load error for "+e)),document.head.appendChild(o),t.cssLoaded.push(o)})}destroy(){this.jsLoaded.forEach(e=>{e.script&&e.script.parentNode===document.body&&document.body.removeChild(e.script)}),this.cssLoaded.forEach(e=>{e.parentNode===document.head&&document.head.removeChild(e)}),this.jsLoaded=[],this.cssLoaded=[]}}function te(e,t){let s={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in s)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?s[e]:("00"+s[e]).substr((""+s[e]).length)));return t}function se(e,t,s){let n=e.slice((s||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n)}function ne(e){let t=[],s=[...e];s.sort();for(let e=0;e<s.length;e++)s[e]!==s[e+1]&&(t[t.length]=s[e]);return t}function ie(e){void 0!==e&&(e.registerHelper("if",function(e,t,s){return e===t?s.fn(this):s.inverse(this)}),e.registerHelper("lt",function(e,t,s){return e<t?s.fn(this):s.inverse(this)}),e.registerHelper("rt",function(e,t,s){return e>t?s.fn(this):s.inverse(this)}),e.registerHelper("lte",function(e,t,s){return e<=t?s.fn(this):s.inverse(this)}),e.registerHelper("rte",function(e,t,s){return e>=t?s.fn(this):s.inverse(this)}))}function oe(e,t,s){t.forEach((t,n)=>{const i=s[n];document.querySelectorAll(t).forEach(t=>{const s=t._bsTooltip;s&&s.dispose(),t.setAttribute("data-bs-title",i),t.setAttribute("data-bs-toggle","tooltip"),t.setAttribute("data-bs-custom-class","be-tooltip"),new e(t)})})}function ae(t="info",s=3,n="ice"){let i;if("number"==typeof n)switch(n){case 1:i="flat";break;case 2:i="future";break;case 3:i="block";break;case 4:i="air";break;default:i="ice"}else i=n;const o=e({type:t,classes:s,theme:i},{type:"info",classes:3,theme:"ice"});let a;switch(o.classes){case 1:a=`messenger-fixed messenger-theme-${o.theme} messenger-on-top messenger-on-left`;break;case 2:default:a=`messenger-fixed messenger-theme-${o.theme} messenger-on-top`;break;case 3:a=`messenger-fixed messenger-theme-${o.theme} messenger-on-top messenger-on-right`;break;case 4:a=`messenger-fixed messenger-theme-${o.theme} messenger-on-bottom messenger-on-right`;break;case 5:a=`messenger-fixed messenger-theme-${o.theme} messenger-on-bottom`;break;case 6:a=`messenger-fixed messenger-theme-${o.theme} messenger-on-bottom messenger-on-left`}window.Messenger.options={extraClasses:a,theme:o.theme}}function re(e,t="info",s=3,n="ice"){ae(t,s,n),window.Messenger().post({message:e,type:t,hideAfter:5,showCloseButton:!0})}function le(e,t,s,n=3,i="ice"){window.Messenger().hideAll(),ae("info",n,i),window.Messenger().post({message:e,actions:{retry:{label:t,phrase:"",auto:!1,delay:10,action:function(){window.Messenger().hideAll(),s()}},cancel:{label:"取消",action:function(){return window.Messenger().hideAll(),!1}}}})}function ce(t,s,n){return new t((n=e(n||{},{target:"#airDatepicker",classes:"fm-datepicker",autoClose:!0,inline:!1,timepicker:!0,buttons:["today","clear"],locale:s,dateFormat:e=>te(e,"yyyy年MM月dd日 hh:mm:ss")})).target,n)}function de(t,s){s=e(s||{},{focusFirstField:!1,validationEventTrigger:"click",promptPosition:"topRight"}),t.validationEngine(s)}function he(t,s="validate",n){const i=e({command:s,options:n},{command:"validate",options:n});return t.validationEngine(i.command,i.options)}function ue(e){const{winRate:t,odds:s,fraction:n=1}=e;if(t<0||t>1||s<=0)throw new Error("参数错误:胜率必须在 0-1 之间,且赔率必须大于 0");const i=(s*t-(1-t))/s;return Math.max(0,i*n)}function me(e){const t={id:e.id,name:e.name,menus:e.menu};localStorage.setItem("user",JSON.stringify(t)),localStorage.setItem("token",e.token)}function pe(){return new Promise(e=>{localStorage.removeItem("user"),localStorage.removeItem("token"),e()})}function fe(){const e=localStorage.getItem("user");if(!e)return null;try{return JSON.parse(e)}catch(e){return localStorage.removeItem("user"),null}}function ge(){return localStorage.getItem("token")}function ve(e){localStorage.setItem("token",e)}const be=D;export{W as AeLoader,I as Base,j as BtnEf,U as Flash,N as GoTop,K as HoverDir,R as IAccordion,z as IList,ee as ILoader,F as IPagination,O as ItemCount,X as LineEffect,q as NiceSelect,B as PopoverSearch,H as SubmitFlag,u as ajax,re as al,se as arrayRemove,ne as arrayUnique,$ as cache,ue as calculateKellyFraction,t as camelCase,le as cf,S as contextQuerySelector,c as contrast,h as createElement,L as dataAttr,ce as datepicker,be as default,T as defaultConstructor,l as different,M as elementData,P as expando,e as extend,te as formatDate,y as getCookie,m as getParam,ge as getToken,fe as getUser,ie as handlebars,v as hotkey,A as isEqSelector,d as isHtmlTag,i as isNull,a as isObject,g as keys,s as l,me as login,pe as logout,C as menu,k as menu2Tree,ae as messageInit,p as move,w as removeCookie,r as same,x as search,b as setCookie,o as setDefault,ve as setToken,E as shuffleArray,f as strValidation,oe as tip,n as toRound,he as validate,de as validationEngine};
|
|
1
|
+
/*! For license information please see arisu.esm.js.LICENSE.txt */
|
|
2
|
+
var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e,t){if(!e)return t;{let n;for(n in t)if(null==t?void 0:t.hasOwnProperty(n)){const i=t[n];null==e[n]&&(e[n]=i)}}return e}function i(e){let t=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return t=t.replace(/\./g,""),t}function s(...e){window.console&&e&&console.log(...e)}function o(e,t){let n=parseFloat(String(e));return n=n?Math.round(e*Math.pow(10,t))/Math.pow(10,t):0,n}function r(e){let t=!0;return null!=e&&""!==e&&"undefined"!==e&&"null"!==e||(t=!1),t}function a(e,t){return null!=e&&""!==e&&"undefined"!==e&&"null"!==e||(e=t),e}function l(e){return!!e&&e&&"object"==typeof e&&!Array.isArray(e)&&!0}function c(e,t){return e.filter(function(e){return-1!==t.indexOf(e)})}function d(e,t){return e.concat(t).filter(function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)})}function h(e,t){return e.concat(t).filter(function(n){return-1===e.indexOf(n)&&-1!==t.indexOf(n)})}function u(e){return/^<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>$|^<([a-z][a-z0-9]*)\b[^>]*\/>$/i.test(e)}function f(e){let t=document.createElement("div");t.innerHTML=e.trim();let n=t.firstChild;if((null==n?void 0:n.nodeType)===Node.TEXT_NODE){n=n.nextSibling;let e=document.createDocumentFragment();for(;n;)e.appendChild(n),n=n.nextSibling;return e}return n}function p(e){var t;if("get"===(null===(t=null==(e=n(e,{url:"",method:"GET",async:!0,headerMap:{},cache:"default",dataType:"json",data:null,success:function(){},error:function(){}}))?void 0:e.method)||void 0===t?void 0:t.toLowerCase())){if(!e.url.includes("?")){let t=new URLSearchParams;for(let n in e.data)e.data.hasOwnProperty(n)&&t.append(n,e.data[n]);e.url=e.url+"?"+t.toString()}e.data=null}if(fetch)fetch(e.url,{method:e.method,headers:new Headers(e.headerMap),cache:e.cache,body:e.data?JSON.stringify(e.data):null}).then(function(t){return t.ok?"json"===e.dataType?t.json():t.text():Promise.reject(new Error("Failed to fetch resource"))}).then(function(t){e.success&&e.success(t)}).catch(function(t){e.error&&e.error(t)});else{let t=new XMLHttpRequest;t.onload=function(){if(t.status>=200&&t.status<300){let n;switch(e.dataType){case"json":try{n=JSON.parse(t.responseText)}catch(t){return void(e.error&&e.error(t))}break;case"text":n=t.responseText;break;default:n=t.responseText||t.response}e.success&&e.success(n,t.status,t)}else{let n=new Error("Request failed. Status: "+t.status);e.error&&e.error(n)}},t.onerror=function(){e.error&&e.error(new Error("Network Error"))},t.open((null==e?void 0:e.method)||"get",e.url,e.async||!1);for(let n in e.headerMap)e.headerMap.hasOwnProperty(n)&&t.setRequestHeader(n,e.headerMap[n]);e.data?t.send(e.data):t.send()}}function m(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),n=window.location.search.substr(1).match(t);return null!=n?unescape(n[2]):null}function g(e){const t=document.querySelector(e);if(t){const e=t.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,i=window.pageXOffset||document.documentElement.scrollLeft,s=e.top+n,o=e.left+i;window.scrollTo(o,s)}}function b(e,t,n){let i=0;return e.length<=t||e.length>=n?i=1:/^[0-9]{0,32}$/.test(e)?i=2:/^[a-zA-z]{0,32}$/.test(e)?i=3:/^[0-9a-zA-z]{0,32}$/.test(e)?i=4:/^[^\u4e00-\u9fa5a-zA-Z\d,.,。]{0,32}$/.test(e)?i=5:/^(?=.*\d)(?=.*[a-zA-Z])(?=.*[~!@#$%^&*])[\da-zA-Z~!@#$%^&*]*$/.test(e)&&(i=8),i}e.r(t),e.d(t,{afterMain:()=>Ee,afterRead:()=>_e,afterWrite:()=>xe,applyStyles:()=>Pe,arrow:()=>Je,auto:()=>ae,basePlacements:()=>le,beforeMain:()=>ye,beforeRead:()=>be,beforeWrite:()=>Ce,bottom:()=>se,clippingParents:()=>he,computeStyles:()=>nt,createPopper:()=>$t,createPopperBase:()=>Ot,createPopperLite:()=>Pt,detectOverflow:()=>bt,end:()=>de,eventListeners:()=>st,flip:()=>vt,hide:()=>wt,left:()=>re,main:()=>we,modifierPhases:()=>ke,offset:()=>Et,placements:()=>ge,popper:()=>fe,popperGenerator:()=>St,popperOffsets:()=>Ct,preventOverflow:()=>At,read:()=>ve,reference:()=>pe,right:()=>oe,start:()=>ce,top:()=>ie,variationPlacements:()=>me,viewport:()=>ue,write:()=>Ae});const v={esc:"Escape",backspace:"Backspace",space:" ",enter:"Enter",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight"};function _(e,t){document.addEventListener("keydown",function(n){e===n.key&&t()})}function y(e,t,n={}){let i="",s=n.path||"/",o=n.domain,r=n.secure?"; Secure":"";if(n.expires){let e;"number"==typeof n.expires?(e=new Date,e.setTime(e.getTime()+24*n.expires*60*60*1e3)):e=n.expires,i=`; expires=${e.toUTCString()}`}document.cookie=`${e}=${encodeURIComponent(t)}${i}; path=${s}; domain=${o||""}${r}`}function w(e){let t=`${e}=`,n=document.cookie.split(";");for(let e=0;e<n.length;e++){let i=n[e];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null}function E(e,t={}){y(e,"",Object.assign(Object.assign({},t),{expires:-1}))}function C(e,t){const n=function(e,i,s){let o="";++i;for(let r=0;r<e.length;r++){const a=e[r];let l="#";if(a.link&&(l=a.link),a.pId||0!==i){if(a.pId===s){let t="";a.isParent&&(t=n(e,i,a.id),t&&(t="<ul class='sub'>"+t+"</ul>"));let s="";1===i&&(s=`<i class='${a.icon}'></i>`);let r=a.hash?` data-hash='${a.hash}' `:" ",c=a.actionId?` id='${a.actionId}' `:" ";o+=`<li class='sub-menu'><a${a.isParent?" class='mu-js-a' ":" "}${r}${a.tid?` data-tid='${a.tid}' `:" "}${c}href='${l}'>`+s+`<span>${a.name}</span></a>`+t+"</li>"}}else if(t)o=n(e,i,a.id);else{let t=n(e,i,a.id);t&&(t="<ul class='sub'>"+t+"</ul>"),o+=`<li class='sub-menu'><a${a.hash?` data-hash='${a.hash}' `:" "}${a.actionId?` id='${a.actionId}' `:" "}href='${l}'><span>${a.name}</span></a>`+t+"</li>"}}return o};let i="";return e&&(i=n(e,-1,0)),""+i}function A(e,t,n){let i=[];return e.forEach(function(s){s.pId===t&&(s.isactive=`a${s.id}`===n,i.push(s),s.isParent&&(s.children=A(e,s.id)))}),i}function x(e){const t=document.querySelector(".fm-search");if(!t)return;const n=t.querySelector("input"),i=t.querySelectorAll("span"),s=i[0],o=i[1];if(!n||!s||!o)return;const r=e=>{o.style.opacity=e?"1":"0",o.style.visibility=e?"visible":"hidden"};n.addEventListener("change",()=>{r(""!==n.value)}),r(""!==n.value),o.addEventListener("click",()=>{n.value="",r(!1)}),s.addEventListener("click",()=>{e(n.value)})}function k(e){if(!Array.isArray(e))return e;const t=[...e];for(let e=t.length-1;e>0;e--){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}function T(e,t,i,s){"string"==typeof t?e.elements=document.querySelectorAll(t):t instanceof NodeList?e.elements=t:t instanceof HTMLElement?e.elements=Array.of(t):e.elements=[],e.options=n(i,e.options),s(e)}function L(e,t){var n;let i="data-"+t;return null!==(n=e.getAttribute(i))&&void 0!==n?n:void 0}function S(e,t){if(!t||"function"!=typeof t.querySelectorAll)return console.warn("contextQuerySelector: 无效的上下文环境 (context is null/undefined or invalid)",e),[];if(e.startsWith(">"))return Array.from(t.querySelectorAll(e.substring(1))).filter(function(e){return e.parentNode===t});{const n=t.querySelectorAll(e);return 0===n.length?Array.from(document.querySelectorAll(e)):Array.from(n)}}function O(e){const t=e.match(/^[\w-]+:eq\((\d+)\)$/);return null!==t&&void 0!==t[1]}const $="base"+(""+Math.random()).replace(/\D/g,""),P=new Map,D={};class M{constructor(e,t){if(this.elements=[],this.length=0,t=t instanceof M?t.elements[0]:t||document,"string"==typeof e)if(t&&"string"==typeof t&&(t=document.querySelector(t)),M.isEqSelector(e)){const n=e.split(":")[0],i=e.match(/:eq\((\d+)\)/);if(i){const e=parseInt(i[1]),s=M.contextQuerySelector(">"+n,t);s.length>0?this.elements=[s[e]]:this.elements=[]}else this.elements=[]}else this.elements=M.contextQuerySelector(e,t);else e instanceof NodeList||e instanceof HTMLElement?this.elements=e instanceof NodeList?Array.from(e):[e]:e instanceof Window?this.elements=[window]:null!==e&&"object"==typeof e&&"documentElement"in e?this.elements=[t]:Array.isArray(e)?this.elements=e:this.elements=[];this.length=this.elements.length}each(e){return this.elements.forEach((t,n)=>{e(t,n)}),this}hasClass(e){let t=!1;return this.each(n=>{t=n.classList.contains(e)}),t}addClass(e){return this.each(t=>{if(/\s/.test(e)){const n=e.split(" ");for(let e=0;e<n.length;e++)n[e]&&t.classList.add(n[e])}else e&&t.classList.add(e)})}removeClass(e){return this.each(t=>{if(void 0===e)t.className="";else if(e||0!==e.length)if(/\s/.test(e)){const n=e.split(" ");for(let e=0;e<n.length;e++)n[e]&&t.classList.remove(n[e].trim())}else t.classList.remove(e.trim())})}toggleClass(e){return this.each(t=>{if(t.classList)t.classList.toggle(e);else{let n=t.className.split(/\s+/),i=n.indexOf(e);i>=0?n.splice(i,1):n.push(e),t.className=n.join(" ")}})}not(e){let t=e instanceof M?e.elements:Array.from(document.querySelectorAll(e));return this.elements=Array.from(this.elements).filter(e=>!t.includes(e)),this}is(e){var t;let n=this.elements[0];if(":visible"===e){if("none"===n.style.display||"hidden"===n.style.visibility||"0"===getComputedStyle(n).opacity)return!1}else{if(":first-child"===e)return(null===(t=n.parentNode)||void 0===t?void 0:t.firstChild)===n;if(":last-child"!==e)return n.matches(e);{const e=n.parentNode;if(e){const t=e.children;return t[t.length-1]===n}}}return!1}closest(e){let t=this.elements[0];if(!t)return M.build([]);const n=t.matches||t.webkitMatchesSelector;if(n.call(t,e))return this.constructor===M?M.build(this.elements):this;let i=t.parentElement;for(;i;){if(n.call(i,e))return M.build(i);i=i.parentElement}return M.build([])}next(){if(1===this.elements.length){const e=this.elements[0].nextElementSibling;return e instanceof Element?M.build(e):M.build([])}if(this.elements.length>1){const e=[],t=this.elements[0].nextElementSibling;t instanceof Element&&e.push(t);for(let t=1;t<this.elements.length-1;t++)this.elements[t]instanceof Element&&e.push(this.elements[t]);const n=this.elements[this.elements.length-1].nextElementSibling;return n instanceof Element&&e.push(n),M.build(e)}return null}nextAll(e){const t=[];let n=this.elements[0],i=n.nextSibling,s=n.parentElement;for(;i&&(1===i.nodeType&&(e&&!i.matches(e)||t.unshift(i)),i=i.nextSibling,null!==i||0!==t.length||(null==s?void 0:s.firstChild)!==n););return this.elements=t,this.length=this.elements.length,this}prev(){if(1===this.elements.length)return M.build(this.elements[0].previousElementSibling);if(this.elements.length>1){let e=M.build(this.elements[0].previousElementSibling);return this.each((t,n)=>{n>1&&(e.elements.push(t),n===this.elements.length-1&&e.elements.push(t.previousElementSibling))}),e}return null}prevAll(e){const t=[];let n=this.elements[this.elements.length-1],i=n.previousSibling,s=n.parentElement;for(;i&&(1===i.nodeType&&(e&&!i.matches(e)||t.unshift(i)),i=i.previousSibling,null!==i||0!==t.length||(null==s?void 0:s.firstChild)!==n););return this.elements=t,this.length=this.elements.length,this}first(){return new M([this.elements[0]])}find(e){if(e&&"option:selected"===e.trim()){const e=[];return this.each(t=>{("select-one"===t.type||"select-multiple"===t.type)&&t.selectedIndex>=0&&e.push(t.options[t.selectedIndex])}),new M(e)}{const t=[];return this.elements.forEach(n=>{n instanceof HTMLElement&&n.querySelectorAll(e).forEach(e=>t.push(e))}),new M(t)}}parent(){let e=this.elements[0];return e?new M(e.parentNode):new M}parents(e){const t=[];let n=this.elements[0].parentElement;for(;n&&n!==document.documentElement;)e&&!n.matches(e)||t.push(n),n=n.parentElement;return new M(t)}siblings(){let e=this.elements[0];if(e&&1===e.nodeType){let t=e.parentNode;if(t){let n=[];for(let i=0;i<t.childNodes.length;i++){let s=t.childNodes[i];1===s.nodeType&&s!==e&&n.push(s)}return new M(n)}return new M}return new M}children(){let e=[];return this.each(t=>{e.push(...Array.from(t.children))}),new M(e)}index(){var e;const t=this.elements[0],n=null===(e=t.parentNode)||void 0===e?void 0:e.children;if(n)for(let e=0;e<n.length;e++)if(n[e]===t)return e;return-1}size(){return this.elements?this.elements.length:0}on(e,t){return this.each(function(n){n.addEventListener(e,t)})}off(e,t){return this.each(function(n){n.removeEventListener&&t&&n.removeEventListener(e,t)})}click(e){return"function"==typeof e?this.on("click",e):this.each(e=>{const t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(t)}),this}focus(e){return"function"==typeof e&&this.on("focus",e),this}change(e){return e&&this.each(t=>{t.addEventListener("change",e,!1)}),this}trigger(e,t){return this.each(function(n){let i;try{i=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(n){i=document.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,t)}n.dispatchEvent(i)}),this}remove(){return this.each(e=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)})}data(e,t){if(void 0===e)throw new Error("读取的或设置的键值不能为空");let n=this.elements[0];if(void 0!==t){let s=M.elementData.get(n);return s||(s=new Map,M.elementData.set(n,s)),s.set(i(e),t),this}{const t=M.elementData.get(n);return t?t.get(i(e)):L(n,e)}}removeData(e){let t=this.elements[0],n=M.elementData.get(t);n&&n.set(i(e),void 0)}attr(e,t){if(0===this.elements.length)return void 0===t?"":this;const n=this.elements[0];return void 0===t?(null==n?void 0:n.getAttribute(e))||"":this.each(n=>n.setAttribute(e,t))}removeAttr(e){return this.each(t=>{"function"==typeof t.removeAttribute&&t.removeAttribute(e)})}offset(){let e=this.elements[0].getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,n=window.pageXOffset||document.documentElement.scrollLeft;return{top:e.top+t,left:e.left+n}}scrollTop(){return this.elements[0]instanceof Window?void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop:document.documentElement.scrollTop}height(){const e=this.elements[0];return e?e===window?window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight:e.offsetHeight:(console.warn("目标元素不存在或未正确绑定!"),0)}width(){const e=this.elements[0];return e?e===window?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:e.offsetWidth:(console.warn("目标元素不存在或未正确绑定!"),0)}val(e){let t=this.elements[0];if("select-multiple"===t.type){if(void 0!==e){for(let n=t.options.length-1;n>=0;n--)t.options[n].selected=t.options[n].value===e;return this}{let e=[];for(let n=0;n<t.options.length;n++)t.options[n].selected&&e.push(t.options[n].value);return e}}return void 0!==e?(t.value=e,this):t.value}css(e,t){if(0===this.elements.length)return this;if(void 0===t){if("object"==typeof e){const t=e;for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];this.each(t=>{t.style[e]=n})}return this}return this.elements[0].style[e]||""}return this.each(n=>{n.style[e]=t})}text(e){if(0===this.elements.length)return void 0===e?"":this;const t=this.elements[0];return void 0===e?t.textContent||"":this.each(t=>{t.textContent=e})}html(e){if(0===this.elements.length)return void 0===e?"":this;const t=this.elements[0];return void 0===e?t&&1===t.nodeType?t.innerHTML:"":this.each(t=>{t&&1===t.nodeType&&(t.innerHTML=e)})}after(e){return this.each(t=>{t.insertAdjacentHTML("afterend",e)})}append(e){return this.each(t=>{let n=document.createElement("div");if("string"==typeof e)n.innerHTML=e;else if(e instanceof Node)n.appendChild(e);else if(e instanceof NodeList)for(let t=0;t<e.length;t++)n.appendChild(e[t]);for(;n.firstChild;)t.appendChild(n.firstChild);return t})}prepend(e){return this.each(t=>{let n=document.createElement("div");if("string"==typeof e)n.innerHTML=e;else if(e instanceof Node)n.appendChild(e);else if(e instanceof NodeList)for(let t=0;t<e.length;t++)n.appendChild(e[t]);for(;n.firstChild;)t.insertBefore(n.firstChild,t.firstChild);return t})}hide(e,t){return this.each(n=>{n.style.display="block",e?setTimeout(()=>{n.style.display="none",t&&"function"==typeof t&&t(n)},e):(n.style.display="none",t&&"function"==typeof t&&t(n))})}show(e,t){return this.each(n=>{n.style.display="block",e?setTimeout(()=>{n.style.display="block",t&&"function"==typeof t&&t(n)},e):(n.style.display="block",t&&"function"==typeof t&&t(n))})}slideUp(e,t){const i=n({duration:e,callback:t},{duration:300,callback:null});return this.each(e=>{e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",e.style.transition=`height ${i.duration}ms ease-in-out`,setTimeout(()=>{e.style.height="0px"},i.duration/100),setTimeout(()=>{e.style.display="none",e.style.overflow="",e.style.transition="",e.style.height="",i.callback&&"function"==typeof i.callback&&i.callback(e)},i.duration-i.duration/100)})}slideDown(e,t){const i=n({duration:e,callback:t},{duration:300,callback:null});return this.each(e=>{let t=e.offsetHeight;"none"===e.style.display&&(e.style.display="",t=0),e.style.height=t+"px",e.style.transition=`height ${i.duration}ms ease-in-out`,e.offsetHeight,e.style.height=e.scrollHeight+"px",e.style.display="block",setTimeout(()=>{e.style.overflow="",e.style.transition="",e.style.display="",e.style.height="",i.callback&&"function"==typeof i.callback&&i.callback(e)},i.duration)})}slideToggle(e,t){const i=n({duration:e,callback:t},{duration:500,callback:null});let s=!0;return this.each(e=>{"none"===e.style.display&&(s=!1)}),s?this.slideUp(i.duration,i.callback):this.slideDown(i.duration,i.callback),this}fadeOut(e,t){const i=n({duration:e,callback:t},{duration:300,callback:null});return this.each(e=>{e.style.transition=`opacity ${i.duration}ms ease-in-out`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",i.callback&&"function"==typeof i.callback&&i.callback(e)},i.duration)})}checkAll(e){const t=n({checkboxes:e},{checkboxes:".be-check"});return this.each(e=>{let n=document.querySelectorAll(t.checkboxes);e.addEventListener("change",function(){n.forEach(function(t){t.checked=e.checked})})})}checkReverse(e){const t=n({checkboxes:e},{checkboxes:".be-check"});return this.each(e=>{let n=document.querySelectorAll(t.checkboxes);e.addEventListener("click",function(){n.forEach(function(e){e.checked=!e.checked})})})}numStep(e){return e=n(e,{start:0,end:100,duration:1500,callback:!1}),this.each(t=>{let n=null;requestAnimationFrame(function i(s){null===n&&(n=s);const o=Math.min((s-n)/e.duration,1),r=Math.floor(o*(e.end-e.start)+e.start);M.build(t).text(r.toString()),o<1?requestAnimationFrame(i):"function"==typeof e.callback&&e.callback()})})}scrollBG(e){return e=n(e,{speed:0}),this.each(t=>{M.build(t).css("background-position","50% 0px"),M.build(window).on("scroll",()=>{const n=M.build(t),i=n.offset().top,s=n.height(),o=n.scrollTop(),r=n.height();if(r+o>i&&r+o<i+r+s){const t=(i+s-o)/e.speed;n.css("background-position","50% -"+t+"px")}})})}setActive(e){const{className:t="active"}=e||{};M.build(this.elements).click(e=>{const n=M.build(e.currentTarget);n.hasClass(t)?n.removeClass(t):(M.build(this.elements).removeClass(t),n.addClass(t))})}loading(e){let t=!1;return void 0!==e&&"object"!=typeof e&&(t=!0,e={}),e=n(e,{isFull:!0,loadingTarget:"#do-preloader",template:'<div id="do-preloader" class="do-preloader"><span class="do-pr-loader"><span class="do-pr-lr"></span></span></div>'}),this.each(n=>{const i=e,s=i.loadingTarget,o=i.template;if(t)M.build("> *",n).removeClass("be-blur-2"),M.build(s).addClass("oy-0"),setTimeout(()=>{M.build("> *",n).removeClass("be-ts"),M.build(s).remove()},300);else{M.build("> *",n).addClass("be-ts").addClass("be-blur-2"),M.build(n).prepend(o);const e=M.build(s);e.length&&e.css("position","fixed").css("height","100vh").css("width","100vw")}})}static contextQuerySelector(e,t){if(!t||"function"!=typeof t.querySelectorAll)return console.warn("contextQuerySelector: 无效的上下文环境 (context is null/undefined or invalid)",e),[];if(e.startsWith(">"))return Array.from(t.querySelectorAll(e.substring(1))).filter(function(e){return e.parentNode===t});{const n=t.querySelectorAll(e);return 0===n.length?Array.from(document.querySelectorAll(e)):Array.from(n)}}static isEqSelector(e){const t=e.match(/^[\w-]+:eq\((\d+)\)$/);return null!==t&&void 0!==t[1]}static build(e,t){return new(this||M)(e,t)}}M.expando="base"+(""+Math.random()).replace(/\D/g,""),M.elementData=new Map,M.cache={};const I=M.build;class N{constructor(e,t){this.options={text:"处理中..",useText:!0},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.submitflag")||i.data("be.submitflag",e),e.init(n,t)})})}init(e,t){const i=this;t&&(i.options=n(t,i.options)),I(e).click(e=>{i.request(e.currentTarget)})}request(e){const t=I(e);e.setAttribute("data-original-text",t.text()),t.addClass("submit-flag-request").attr("disabled","disabled"),this.options.useText&&t.text(this.options.text)}complete(e){let t;t=I(e||this.selector),t.removeClass("submit-flag-request").removeAttr("disabled"),this.options.useText&&t.each(e=>{const t=e.getAttribute("data-original-text");null!==t&&""!==t&&(I(e).text(t),e.removeAttribute("data-original-text"))})}destroy(){I(this.selector).removeData("be.submitflag"),I(this.selector).each(e=>{e.removeAttribute("data-original-text")})}}class j{constructor(e,t){this.options={position:{bottom:"15px",right:"15px"},showEffect:" animate__zoomIn ",hideEffect:" animate__zoomOut ",type:"fixed",offsetTop:400},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.gotop")||i.data("be.gotop",e),e.init(n,t)})})}init(e,t){const i=I(e),s=(t=n(t,this.options)).type||"fixed",o=t.showEffect||" animate__zoomIn ",r=t.position,a=void 0!==t.offsetTop?Number(t.offsetTop):400,l=t.hideEffect||" animate__zoomOut ";i.addClass("animate__animated").css({display:"inline-block",position:s,opacity:0}),"fixed"!==s&&"absolute"!==s||i.css(r),i.on("click",e=>{e.preventDefault(),window.scrollTo(0,0)}),a&&!i.hasClass("animated-running")&&i.offset().top<=I(window).height()&&i.addClass("animated-running "+o).css({opacity:""}),I(window).on("scroll",()=>{if(a)I(window).scrollTop()>=a&&!i.hasClass("animated-running")?(i.addClass("animated-running "+o).css({opacity:""}),i.removeClass(l)):I(window).scrollTop()<=a&&i.hasClass("animated-running")&&(i.removeClass("animated-running "+o).css({opacity:0}),i.addClass(l));else{let e=i.offset().top;i.hasClass("animated-running")||I(window).scrollTop()>=e-I(window).height()&&(i.addClass("animated-running "+o).css({opacity:""}),i.removeClass(l))}}),I(window).trigger("scroll")}}class H{constructor(e,t){this.options={num:1},this.value=0,this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.itemcount")||i.data("be.itemcount",e),e.init(n,t)})})}init(e,t){const i=this;t&&(i.options=n(t,i.options));const s=I(e),o=s.find(".fm-plus"),r=s.find(".fm-minus"),a=s.find(".fm-result");let l=parseInt(String(a.val()));i.value=isNaN(l)?0:l,o.on("click",function(e){e.preventDefault(),l+=i.options.num,a.val(String(l)),i.value=l}),r.on("click",function(e){if(e.preventDefault(),!(l-i.options.num>=0))return!1;l-=i.options.num,a.val(String(l)),i.value=l})}getValue(){return this.value}}class F{constructor(e,t){this.options={width:"auto"},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.niceselect")||i.data("be.niceselect",e),e.init(n,t)})})}create(e,t){var n,i;const s=this,o=I(e),r=o.after("<div></div>").next().addClass("ce-nice-select").addClass(o.attr("class")||"").addClass(o.attr("disabled")?"disabled":"").attr("tabindex",o.attr("disabled")?"":"0").css("width",null!==(n=s.options.width)&&void 0!==n?n:"auto").html('<span class="current"></span><ul class="list"></ul>'),a=o.find("option"),l=e,c=I(l.options[l.selectedIndex]);s.text=c.data("display")||c.text(),r.find(".current").html(null!==(i=s.text)&&void 0!==i?i:""),a.each(function(e){const t=I(e),n=t.data("display"),i=null!=n?String(n):"",s=c.text()===t.text()?"selected":"";r.find("ul").append(`<li data-value="${t.val()}" data-display="${i}" class="option ${s}">${t.text()}</li>`)})}init(e,t){const i=this,s=I(i.selector),o=I(e);t&&(i.options=n(t,i.options)),o.hide(),i.create(e,i.options);const r=s.next();return r.on("click",function(){const e=o.next();e.toggleClass("open"),e.hasClass("open")?(e.find(".option"),e.find(".focus").removeClass("focus"),e.find(".selected").addClass("focus")):e.focus()}),I(".option",r).on("click",function(e){const t=I(e.currentTarget),n=r;n.find(".selected").removeClass("selected"),t.addClass("selected"),i.text=t.data("display")||t.text(),n.find(".current").text(String(i.text)),i.value=t.data("value"),n.prev().trigger("change").val(String(i.value))}),this}getText(){return this.text}getValue(){return this.value}}class W{constructor(e,t){this.options={time:1e3},this.selector=e||"",l(e)?(this.options=n(e,this.options),this.selector=""):(e&&(this.selector=e),this.options=n(t,this.options)),I("[data-ae-load]").addClass("ae-load")}start(e){const t=e||this.selector,n=t?`${t}[data-ae-load]`:"[data-ae-load]";I(n).addClass("ae-load").removeClass("ae-tt-complete ae-tt-done ae-tt-loading").addClass("ae-tt-complete"),setTimeout(()=>{I(n).removeClass("ae-load ae-tt-complete")},this.options.time)}loading(e){const t=e||this.selector,n=t?`${t}[data-ae-load]`:"[data-ae-load]";I("[data-ae-load]").addClass("ae-load"),I(n).each(e=>{const t=I(e),n=t.data("al-mw"),i=t.data("al-mh");n&&t.css("min-width",n),i&&t.css("min-height",i),t.removeClass("ae-tt-complete ae-tt-done ae-tt-loading").addClass("ae-tt-loading")})}done(e){const t=e||this.selector,n=t?`${t}[data-ae-load]`:"[data-ae-load]";I(n).removeClass("ae-tt-done").addClass("ae-tt-done"),setTimeout(()=>{I(n).removeClass("ae-load ae-tt-loading ae-tt-done")},this.options.time)}}class q{constructor(e,t){this.options={},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.btnef")||i.data("be.btnef",e),e.init(n,t)})})}init(e,t){const n=I(e);n.append("<b></b>"),n.on("mouseenter",e=>{const t=I(e.currentTarget),n=t.offset(),i=e.pageX-n.left,s=e.pageY-n.top;t.find("b").css({top:s+"px",left:i+"px"})}).on("mouseout",e=>{const t=I(e.currentTarget),n=t.offset(),i=e.pageX-n.left,s=e.pageY-n.top;t.find("b").css({top:s+"px",left:i+"px"})})}}class z{constructor(e,t){this.options={targetWarp:"#be-pw",totalItems:0,itemsPerPage:0,visiblePages:5,prev:"上一页",next:"下一页",first:"首页",last:"尾页",onButtonClick:()=>{}},this.currentPage=1,this.totalPages=0,this.selector=e,T(this,e,t,e=>{let n=this;e.elements.forEach(i=>{let s=I(i);s.data("be.ipagination")||s.data("be.ipagination",e),n.currentPage=1,n.totalPages=Math.ceil(n.options.totalItems/n.options.itemsPerPage),e.init(t)})})}init(e){const t=this;let i=t.options;e&&(i=n(e,t.options)),I(this.selector).html(""),this.addPageButton(i.first,1,()=>this.goToPage(1)),this.addPageButton(i.prev,this.currentPage-1,()=>this.goToPrevPage());let s=Math.max(1,this.currentPage-Math.floor(i.visiblePages/2)),o=Math.min(this.totalPages,s+i.visiblePages-1);o-s<i.visiblePages-1&&(s=Math.max(1,o-i.visiblePages+1));for(let e=s;e<=o;e++)this.addPageButton(e,e,()=>this.goToPage(e));this.addPageButton(i.next,this.currentPage+1,()=>this.goToNextPage()),this.addPageButton(i.last,this.totalPages,()=>this.goToPage(this.totalPages));const r=i.itemsPerPage*(t.currentPage-1)+1,a=Math.min(r+i.itemsPerPage-1,i.totalItems);I("p",i.targetWarp).html(`显示 ${r} 至 ${a} 条,共有 ${i.totalItems} 条`)}addPageButton(e,t,n){const i=document.createElement("li");i.classList.add("page-item"),"number"==typeof e&&Number.isFinite(e)||!isNaN(Number(e))&&Number.isFinite(Number(e))?i.classList.add("pi-t2"):i.classList.add("pi-t1");const s=document.createElement("button");i.append(s),s.innerHTML=String(e),s.onclick=n,t!==this.currentPage&&0!==t&&t!==this.totalPages+1||(i.classList.add("active"),i.classList.add("disabled")),I(this.selector).append(i)}goToPrevPage(){this.currentPage>1&&(this.currentPage--,this.init(),this.options.onButtonClick(this.currentPage))}goToNextPage(){this.currentPage<this.totalPages&&(this.currentPage++,this.init(),this.options.onButtonClick(this.currentPage))}goToPage(e){e>=1&&e<=this.totalPages&&(this.currentPage=e,this.init(),this.options.onButtonClick(this.currentPage))}}class B{constructor(e,t){this.options={rp:"10",visiblePages:7,sortname:"id",sortorder:"desc",method:"post",dataType:"json",param:{},handlebars:null,url:"",loadColor:"#0a0a0a",lang:"cn",template:"#tp-list",headerMap:{},cache:"default",ipWarp:"#ilist-ip-warp",prev:"上一页",next:"下一页",first:"首页",last:"尾页",onSuccess:!1,onError:!1},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.ilist")||i.data("be.ilist",e),void 0!==window.Handlebars&&null===(null==t?void 0:t.handlebars)&&(t.handlebars=window.Handlebars),e.init(n,t||e.options)})})}init(e,t){let i=I(e),s=i.data("be.ilist.html");if(i.data("be.ilist.flag",!0),s)I(".be-list-data-body",e).html("");else{const e=I(t.template);if(!t.handlebars)return void console.error("Handlebars is required for IList but not provided.");const n=t.handlebars.compile(e.html())({});i.html(n),i.data("be.ilist.html",n)}let o=n({page:1,rp:t.rp,sortname:t.sortname,sortorder:t.sortorder},t.param);t.isInit=!0,I(e).data("be.ilist.event",!0),this.getData(e,t,o)}getData(e,t,i){let s=this,o=I(e);I(".be-list-data-body",e).html(""),I(".be-list-loading",e).addClass("opacity-100"),I(".be-list-nofound",e).removeClass("opacity-100"),I(".be-list-page",e).removeClass("opacity-100"),p({method:t.method,url:t.url,headerMap:t.headerMap,data:i,cache:t.cache,dataType:t.dataType,success:r=>{I(".be-list-loading",e).removeClass("opacity-100").addClass("opacity-0"),I(".be-list-data",e).removeClass("opacity-0"),I(".be-list-data-body",e).css("display","table-row-group"),r.isInit=t.isInit,t.onSuccess&&t.onSuccess(r),r.total?(s.page(e,t,i,r.total),I(".ilist-check-all").checkAll(".ilist-check"),I("table > tbody tr",e).click(e=>{let t=I(e.target);t.is("input")||t.is("i")||t.is("a")||I(".ilist-check",e.currentTarget).click()}),o.data("be.ilist.event")&&(o.data("be.ilist.event",!1),I(".ilist-check",e).change(e=>{I(e.currentTarget).is(":checked")?I(e.currentTarget).parents("tr").addClass("active"):I(e.currentTarget).parents("tr").removeClass("active")})),I("table > thead tr td",e).click(r=>{const a=I(r.currentTarget).data("sortname");if(a){const l=o.data("be.ilist.param");if(l&&(i=n(l,i)),i.sortname=a,!I(r.currentTarget).hasClass("is-check")&&i.sortname){let n=I(r.currentTarget).attr("data-sort-order");I("table > thead tr td",e).removeAttr("data-sort-order"),n?(I(r.currentTarget).attr("data-sort-order","desc"===n?"asc":"desc"),i.sortorder="desc"===n?"asc":"desc"):(I(r.currentTarget).attr("data-sort-order","desc"),i.sortorder="desc"),o.data("be.ilist.flag",!0),i.page="1",t.isInit=!1,s.getData(e,t,i)}}}),I(".be-list-page",e).addClass("opacity-100")):(I(".be-list-nofound",e).addClass("opacity-100"),I(".be-list-page",e).removeClass("opacity-100"))},error:e=>{try{t.onError&&t.onError(e)}catch(e){}}})}page(e,t,n,i){let s=this,o=I(e);o.data("be.ilist.flag")&&new z("#ipagination",{targetWarp:t.ipWarp,totalItems:i,itemsPerPage:Number(t.rp),visiblePages:t.visiblePages,prev:t.prev,next:t.next,first:t.first,last:t.last,onButtonClick:i=>{const o=document.querySelector(".ilist-check-all");o&&(o.checked=!1),n.page=i,t.isInit=!1,s.getData(e,t,n)}}),o.data("be.ilist.flag",!1)}reload(e){let t=I(this.selector);const i=t.data("be.ilist"),s=n(e,{page:1,rp:i.options.rp,sortname:i.options.sortname,sortorder:i.options.sortorder});i.options.isInit=!1,t.data("be.ilist.flag",!0),t.data("be.ilist.param",s),I("table > thead tr td",t).attr("data-sort-order",""),i.getData(i.selector,i.options,s)}}class R{constructor(e,t){this.options={classParent:"ia-parent",classActive:"active",classArrow:"ia-icon",classCount:"ia-count",autoExpand:!1,classExpand:"ia-current-parent",autoClose:!0,speed:300,saveState:!0,disableLink:!0,showCount:!1,cookie:"ia-cookie",smallClass:"ce-accordion-small"},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.iaccordion")||i.data("be.iaccordion",e),e.init(n,t)})})}init(e,t){const i=this,s=I("li > a",e),o=I("li > ul",e),r=(t=n(t,i.options)).classActive;this.setUpAccordion(e,s,o,t),!0===t.saveState&&i.checkCookie(t.cookie,e,r),!0===t.autoExpand&&I("li."+t.classExpand+" > a").addClass(r),s.click(n=>{const s=I(n.currentTarget),o=s.parent(),a=i.isSmall(n,e,t.smallClass);!0===t.disableLink&&s.siblings().length>0&&n.preventDefault(),!0===t.autoClose&&i.autoCloseAccordion(e,s,a,t),0===I("> ul",o).length?I("> a",o).addClass(r):"none"!==I("> ul",o).css("display")?(i.slideUp(I("ul",o),a,t),I("a",o).removeClass(r)):("none"===I(n.currentTarget).siblings().css("display")?i.slideDown(I(n.currentTarget).siblings().css("overflow","hidden"),a,t):i.slideUp(I(n.currentTarget).siblings(),a,t),I("> a",o).addClass(r)),!0===t.saveState&&i.createCookie(t.cookie,e,r)})}setUpAccordion(e,t,n,i){const s='<span class="'+i.classArrow+'"></span>',o=i.classParent+"-li";n.show(),I("li",e).each(e=>{I("> ul",e).length>0&&(I(e).addClass(o),I("> a",e).addClass(i.classParent).append(s))}),n.hide(),!0===i.showCount&&I("ul",e).each(e=>{I("> a",I(e).parent()).append(' <span class="'+i.classCount+'">('+e.children.length+")</span>")})}autoCloseAccordion(e,t,n,i){const s=this;I("ul",e).each(e=>{let o=!1;t.parents("ul").each(t=>{t===e&&(o=!0)}),o||t.siblings().elements[0]===e||"none"===e.style.display||s.slideUp(I(e),n,i)}),I("a",e).removeClass(i.classActive),t.parents("li").each(e=>{I("> a",e).addClass(i.classActive)})}checkCookie(e,t,n){const i=this,s=w(e);if(null!==s&&""!==s){const e=s.split(",");i.setActiveMenu(t,e,0,n)}}setActiveMenu(e,t,n,i){const s=I("li:eq("+t[n]+")",e),o=I("> a",s),r=o.siblings();o.addClass(i),r.css("display",""),t.length>n+1&&this.setActiveMenu(r,t,++n,i)}createCookie(e,t,n){let i=[];I("li a."+n,t).each(e=>{const t=I(e).parent().index();i.push(t.toString())}),y(e,i.join(","))}isSmall(e,t,n){return!(!I(t).hasClass(n)||0===I(e.currentTarget).siblings().length||(e.preventDefault(),0))}slideDown(e,t,n){t||e.slideDown(n.speed)}slideUp(e,t,n){t||e.slideUp(n.speed)}}class V{constructor(e,t){this.options={handlebars:null,bootstrap:null,airDatepicker:null,localeZh:null,template:"#tp-popover",templateItems:"#tp-popover-items",html:!0,title:"详细搜索",trigger:"click",toggle:"popover",placement:"auto",onSerach:!1,items:[],timepicker:!0,format:"yyyy-MM-dd hh:mm:ss"},this.itemsHtml="",this.itemsValue=[],this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.popoversearch")||i.data("be.popoversearch",e),void 0===window.Handlebars||(null==t?void 0:t.handlebars)||(t.handlebars=window.Handlebars),void 0===window.bootstrap||(null==t?void 0:t.bootstrap)||(t.bootstrap=window.bootstrap),void 0===window.AirDatepicker||(null==t?void 0:t.airDatepicker)||(t.airDatepicker=window.AirDatepicker),void 0===window.localeZh||(null==t?void 0:t.localeZh)||(t.localeZh=window.localeZh),e.init(n,t||e.options)})})}init(e,t){const n=this;this.itemsHtml="",this.itemsValue=[];const i=t.handlebars.compile(I(t.template).html())({}),s=new t.bootstrap.Popover(e,{html:t.html,title:t.title,trigger:t.trigger,toggle:t.toggle,placement:t.placement,template:i,animation:!0,content:""});e.addEventListener("inserted.bs.popover",()=>{n.addItem(t)}),e.addEventListener("shown.bs.popover",()=>{n.search(n,t),n.close(s),n.clear()}),e.addEventListener("hide.bs.popover",()=>{n.itemsHtml=I(".popover-content-items").html()||"",n.itemsValue=[],I(".popover-form-item").each(e=>{n.itemsValue.push(String(I(e).val()))})})}addItem(e){const t=this,n=I(".ce-popover > .popover-content .popover-content-items");if(t.itemsHtml)n.html(t.itemsHtml);else{const t=e.handlebars.compile(I(e.templateItems).html())({items:e.items});n.html(t)}I(".popover-form-item").each((n,i)=>{const s=I(n);if(void 0!==t.itemsValue[i]&&s.val(String(t.itemsValue[i])),s.hasClass("popover-form-date"))try{new e.airDatepicker(`.ce-popover input[name='${s.attr("name")}']`,{classes:"fm-datepicker",autoClose:!0,inline:!1,timepicker:e.timepicker,buttons:["today","clear"],locale:e.localeZh,dateFormat:t=>t.format(e.format)})}catch(e){I(`.ce-popover input[name='${s.attr("name")}']`).attr("type","date")}})}close(e){I(".ce-popover-cancel",".ce-popover").off("click").on("click",()=>{e.hide()})}clear(){I(".ce-popover-clear",".ce-popover").off("click").on("click",()=>{I(".popover-form-item",".ce-popover").each(e=>{I(e).val("")})})}getParam(){const e={};return I(".popover-form-item").each(function(t){const n=I(t),i=n.attr("name"),s=n.val();i&&s&&(e[i]=s)}),e}search(e,t){I(".ce-popover-ok",".ce-popover").off("click").on("click",()=>{t.onSerach&&t.onSerach({param:e.getParam()})})}}class Y{constructor(e,t){this.options={animationDelay:5e3,lettersDelay:50,type:void 0},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.flash")||i.data("be.flash",e),e.init(n,t||e.options)})})}init(e,t){1===t.type&&I(e).addClass("letters"),this.singleLetters(e),this.animateHeadline(e,t)}singleLetters(e){const t=this;I(e).find("b").each(function(e){const n=I(e),i=n.text().split(""),s=n.hasClass("is-visible");for(const e in i)i.hasOwnProperty(e)&&(n.parents(t.selector).length>0&&(i[e]=`<em>${i[e]}</em>`),i[e]=s?`<i class='in'>${i[e]}</i>`:`<i>${i[e]}</i>`);const o=i.join("");n.html(o).css("opacity","1")})}animateHeadline(e,t){const n=this,i=t.animationDelay;I(e).each(function(e){const t=I(e);setTimeout(()=>{n.hideWord(t.find(".is-visible").first())},i)})}hideWord(e){const t=this,n=t.takeNext(e),i=e.children().length>=n.children().length;t.hideLetter(e.find("i").first(),e,i,t.options.lettersDelay),t.showLetter(n.find("i").first(),n,i,t.options.lettersDelay)}takeNext(e){return 0===e.length||e.is(":last-child")?e.parent().children().first():e.next()}hideLetter(e,t,n,i){const s=this;e.removeClass("in").addClass("out"),0===e.length||e.is(":last-child")?n&&setTimeout(()=>{s.hideWord(s.takeNext(t))},s.options.animationDelay):setTimeout(()=>{s.hideLetter(e.next(),t,n,i)},i)}showLetter(e,t,n,i){const s=this;e.addClass("in").removeClass("out"),0===e.length||e.is(":last-child")?n||setTimeout(()=>{s.hideWord(t)},s.options.animationDelay):setTimeout(()=>{s.showLetter(e.next(),t,n,i)},i)}}class U{constructor(e,t,n){this.active=!0,this.pos=t,this.radius=n,this.options=e}draw(e){this.active&&(e.beginPath(),e.arc(this.pos.x,this.pos.y,this.radius,0,2*Math.PI,!1),e.fillStyle=`rgba(${this.options.pointColor},${this.active?.6:0})`,e.fill())}}class X{constructor(e,t){this.options={gsap:null,canvasId:"targetCanvas",animateHeader:!0,width:window.innerWidth,height:window.innerHeight,isWindowWidth:!1,isWindowHeight:!1,num:20,pointColor:"156,217,249",lineColor:"156,217,249"},this.animationFrameId=0,this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.lineeffect")||i.data("be.lineeffect",e),e.init(n,t||e.options)})})}init(e,t){if(!t.gsap||"function"!=typeof t.gsap.to)return void console.error('[LineEffect] Missing or invalid "gsap" dependency in options.');let n,i;n="number"==typeof t.width?t.width:"string"==typeof t.width?this.resolveDimension(t.width,"width"):window.innerWidth,i="number"==typeof t.height?t.height:"string"==typeof t.height?this.resolveDimension(t.height,"height"):window.innerHeight;const s={x:n/2,y:i/2},o=document.getElementById(t.canvasId);if(!o)return void console.error(`[LineEffect] Canvas with id "${t.canvasId}" not found.`);o.width=n,o.height=i;const r=o.getContext("2d"),a=[];for(let e=0;e<n;e+=n/t.num)for(let s=0;s<i;s+=i/t.num){let o=e+Math.random()*n/t.num,r=s+Math.random()*i/t.num,l={x:o,originX:o,y:r,originY:r,active:0,closest:[],circle:null};a.push(l)}for(let e=0;e<a.length;e++){const t=[],n=a[e];for(let e=0;e<a.length;e++){let i=a[e];if(n!==i){let e=!1;for(let n=0;n<5;n++)e||void 0===t[n]&&(t[n]=i,e=!0);for(let s=0;s<5;s++)e||this.getDistance(n,i)<this.getDistance(n,t[s])&&(t[s]=i,e=!0)}}n.closest=t}for(let e in a)a.hasOwnProperty(e)&&(a[e].circle=new U(t,a[e],2+2*Math.random()));t.points=a,this.initAnimation(t,r,s,n,i),this.addListeners(t,s,o)}resolveDimension(e,t){if(e.endsWith("%")){const n=parseFloat(e);return"width"===t?n/100*window.innerWidth:n/100*window.innerHeight}if(e.endsWith("px"))return parseFloat(e);if(e.endsWith("vw"))return parseFloat(e)/100*window.innerWidth;if(e.endsWith("vh"))return parseFloat(e)/100*window.innerHeight;if(e.endsWith("rem")||e.endsWith("em")){const t=document.createElement("div");t.style.position="absolute",t.style.visibility="hidden",t.style.fontSize=e,document.body.appendChild(t);const n=parseFloat(getComputedStyle(document.documentElement).fontSize);if(document.body.removeChild(t),e.endsWith("rem"))return parseFloat(e)*n;if(e.endsWith("em"))return parseFloat(e)*n}return parseFloat(e)||0}getDistance(e,t){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}initAnimation(e,t,n,i,s){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),this.animate(e,t,n,i,s);for(let t in e.points)e.points.hasOwnProperty(t)&&this.shiftPoint(e.points[t])}animate(e,t,n,i,s){if(e.animateHeader){const o=e.points;t.clearRect(0,0,i,s);for(let i in o)if(o.hasOwnProperty(i)){const s=Math.abs(this.getDistance(n,o[i]));s<4e3?(o[i].active=.3,o[i].circle.active=!0):s<2e4?(o[i].active=.1,o[i].circle.active=!0):s<4e4?(o[i].active=.02,o[i].circle.active=!0):(o[i].active=0,o[i].circle.active=!1),this.drawLines(e,o[i],t),o[i].circle.draw(t)}}this.animationFrameId=requestAnimationFrame(()=>this.animate(e,t,n,i,s))}shiftPoint(e){this.options.gsap.to(e,{duration:1+Math.random(),x:e.originX-50+100*Math.random(),y:e.originY-50+100*Math.random(),ease:"circ.inOut",onComplete:()=>this.shiftPoint(e)})}drawLines(e,t,n){var i;if(t.active)for(let s in t.closest)(null===(i=t.closest)||void 0===i?void 0:i.hasOwnProperty(s))&&(n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(t.closest[s].x,t.closest[s].y),n.strokeStyle=`rgba(${e.lineColor},${t.active})`,n.stroke())}addListeners(e,t,n){this.removeListeners(),this.boundMouseMove=e=>this.mouseMove(e,t),this.boundScroll=()=>this.scrollCheck(e),this.boundResize=()=>this.resize(e,n),document.getElementById(this.options.canvasId)?("ontouchstart"in window||window.addEventListener("mousemove",this.boundMouseMove),window.addEventListener("scroll",this.boundScroll),window.addEventListener("resize",this.boundResize)):("ontouchstart"in window||window.removeEventListener("mousemove",this.boundMouseMove),window.removeEventListener("scroll",this.boundScroll),window.removeEventListener("resize",this.boundResize))}removeListeners(){this.boundMouseMove&&window.removeEventListener("mousemove",this.boundMouseMove),this.boundScroll&&window.removeEventListener("scroll",this.boundScroll),this.boundResize&&window.removeEventListener("resize",this.boundResize)}mouseMove(e,t){const n=document.getElementById(this.options.canvasId);if(n){const i=n.getBoundingClientRect(),s=window.pageYOffset||document.documentElement.scrollTop,o=window.pageXOffset||document.documentElement.scrollLeft,r=i.top+s,a=i.left+o;let l=0,c=0;e.pageX||e.pageY?(l=e.pageX,c=e.pageY):(e.clientX||e.clientY)&&(l=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),t.x=l-a,t.y=c-r}}scrollCheck(e){e.animateHeader=document.body.scrollTop<=("number"==typeof e.height?e.height:window.innerHeight)}resize(e,t){var n,i;if(e.isWindowWidth)if("string"==typeof e.width){const n=this.resolveDimension(e.width,"width");t.width=n}else t.width=null!==(n=e.width)&&void 0!==n?n:window.innerWidth;if(e.isWindowHeight)if("string"==typeof e.height){const n=this.resolveDimension(e.height,"height");t.height=n}else t.height=null!==(i=e.height)&&void 0!==i?i:window.innerHeight}destroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),this.removeListeners()}}const Q="ce-slideFromTop",K="ce-slideFromRight",Z="ce-slideFromBottom",J="ce-slideFromLeft",G="ce-slideTop",ee="ce-slideLeft";class te{constructor(e,t){this.options={reverse:!1},this.selector=e,T(this,e,t,e=>{e.elements.forEach(n=>{let i=I(n);i.data("be.hoverdir")||i.data("be.hoverdir",e),e.init(n,t||e.options)})})}init(e,t){const n=I(e);n.on("mouseenter",e=>this.mouseEvent(e,t)),n.on("mouseleave",e=>this.mouseEvent(e,t))}mouseEvent(e,t){const n=I(e.currentTarget),i=e.type,s=n.find("div"),o=this.getDir(n,{x:e.pageX,y:e.pageY}),r=this.getClasses(o,t);s.removeClass(),"mouseenter"===i?setTimeout(()=>{s.css("display","none").addClass(r.from),s.show(15,e=>{I(e).addClass(r.to)})},15):s.addClass(r.from)}getDir(e,t){const n=e.width(),i=e.height(),s=(t.x-e.offset().left-n/2)*(n>i?i/n:1),o=(t.y-e.offset().top-i/2)*(i>n?n/i:1);return Math.round((Math.atan2(o,s)*(180/Math.PI)+180)/90+3)%4}getClasses(e,t){let n,i;switch(e){case 0:n=t.reverse?Z:Q,i=G;break;case 1:n=t.reverse?J:K,i=ee;break;case 2:n=t.reverse?Q:Z,i=G;break;case 3:n=t.reverse?K:J,i=ee;break;default:n="",i=""}return{from:n,to:i}}}class ne{constructor(e){this.options={times:20,time:1e3},this.jsLoaded=[],this.cssLoaded=[],this.options=Object.assign(Object.assign({},this.options),e)}loadScript(e){const t=this;return new Promise((n,i)=>{if(t.jsLoaded.find(t=>t.url===e)){let i,s=0;const o=setInterval(()=>{i=t.jsLoaded.find(t=>t.url===e);try{if(!(null==i?void 0:i.isLoaded)&&s>t.options.times)return t.jsLoaded=t.jsLoaded.filter(t=>t.url!==e),i&&i.script.parentNode===document.body&&document.body.removeChild(i.script),void clearInterval(o);if(null==i?void 0:i.isLoaded)return clearInterval(o),void n(i.script);s++}catch(e){console.error(e)}},t.options.time)}else{const s=document.createElement("script");let o=!1,r=0;t.jsLoaded=[...t.jsLoaded,{script:s,url:e,isLoaded:!1,count:0}],s.src=e,s.onload=()=>{t.jsLoaded=t.jsLoaded.map(t=>t.url===e?Object.assign(Object.assign({},t),{isLoaded:!0}):t),o=!0,n(s)},s.onerror=()=>{t.jsLoaded=t.jsLoaded.filter(t=>t.url!==e),i(new Error("Script load error for "+e))},document.body.appendChild(s);const a=setInterval(()=>{if(!o)return r>t.options.times?(s.parentNode===document.body&&document.body.removeChild(s),void clearInterval(a)):void r++;clearInterval(a)},100)}})}loadStyle(e){const t=this;return new Promise((n,i)=>{const s=document.getElementsByTagName("link");for(let t=0;t<s.length;t++)if(s[t].getAttribute("href")===e)return void n(s[t]);const o=document.createElement("link");o.href=e,o.rel="stylesheet",o.type="text/css",o.onload=()=>n(o),o.onerror=()=>i(new Error("Style load error for "+e)),document.head.appendChild(o),t.cssLoaded.push(o)})}destroy(){this.jsLoaded.forEach(e=>{e.script&&e.script.parentNode===document.body&&document.body.removeChild(e.script)}),this.cssLoaded.forEach(e=>{e.parentNode===document.head&&document.head.removeChild(e)}),this.jsLoaded=[],this.cssLoaded=[]}}var ie="top",se="bottom",oe="right",re="left",ae="auto",le=[ie,se,oe,re],ce="start",de="end",he="clippingParents",ue="viewport",fe="popper",pe="reference",me=le.reduce(function(e,t){return e.concat([t+"-"+ce,t+"-"+de])},[]),ge=[].concat(le,[ae]).reduce(function(e,t){return e.concat([t,t+"-"+ce,t+"-"+de])},[]),be="beforeRead",ve="read",_e="afterRead",ye="beforeMain",we="main",Ee="afterMain",Ce="beforeWrite",Ae="write",xe="afterWrite",ke=[be,ve,_e,ye,we,Ee,Ce,Ae,xe];function Te(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Se(e){return e instanceof Le(e).Element||e instanceof Element}function Oe(e){return e instanceof Le(e).HTMLElement||e instanceof HTMLElement}function $e(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Le(e).ShadowRoot||e instanceof ShadowRoot)}const Pe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];Oe(s)&&Te(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Oe(i)&&Te(i)&&(Object.assign(i.style,o),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function De(e){return e.split("-")[0]}var Me=Math.max,Ie=Math.min,Ne=Math.round;function je(){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 He(){return!/^((?!chrome|android).)*safari/i.test(je())}function Fe(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Oe(e)&&(s=e.offsetWidth>0&&Ne(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ne(i.height)/e.offsetHeight||1);var r=(Se(e)?Le(e):window).visualViewport,a=!He()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,d=i.width/s,h=i.height/o;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function We(e){var t=Fe(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function qe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$e(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ze(e){return Le(e).getComputedStyle(e)}function Be(e){return["table","td","th"].indexOf(Te(e))>=0}function Re(e){return((Se(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ve(e){return"html"===Te(e)?e:e.assignedSlot||e.parentNode||($e(e)?e.host:null)||Re(e)}function Ye(e){return Oe(e)&&"fixed"!==ze(e).position?e.offsetParent:null}function Ue(e){for(var t=Le(e),n=Ye(e);n&&Be(n)&&"static"===ze(n).position;)n=Ye(n);return n&&("html"===Te(n)||"body"===Te(n)&&"static"===ze(n).position)?t:n||function(e){var t=/firefox/i.test(je());if(/Trident/i.test(je())&&Oe(e)&&"fixed"===ze(e).position)return null;var n=Ve(e);for($e(n)&&(n=n.host);Oe(n)&&["html","body"].indexOf(Te(n))<0;){var i=ze(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Xe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qe(e,t,n){return Me(e,Ie(t,n))}function Ke(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ze(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}const Je={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=De(n.placement),l=Xe(a),c=[re,oe].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return Ke("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ze(e,le))}(s.padding,n),h=We(o),u="y"===l?ie:re,f="y"===l?se:oe,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],m=r[l]-n.rects.reference[l],g=Ue(o),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,_=d[u],y=b-h[c]-d[f],w=b/2-h[c]/2+v,E=Qe(_,w,y),C=l;n.modifiersData[i]=((t={})[C]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&qe(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ge(e){return e.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tt(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof d?d({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),_=re,y=ie,w=window;if(c){var E=Ue(n),C="clientHeight",A="clientWidth";E===Le(n)&&"static"!==ze(E=Re(n)).position&&"absolute"===a&&(C="scrollHeight",A="scrollWidth"),(s===ie||(s===re||s===oe)&&o===de)&&(y=se,m-=(h&&E===w&&w.visualViewport?w.visualViewport.height:E[C])-i.height,m*=l?1:-1),s!==re&&(s!==ie&&s!==se||o!==de)||(_=oe,f-=(h&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,f*=l?1:-1)}var x,k=Object.assign({position:a},c&&et),T=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ne(n*s)/s||0,y:Ne(i*s)/s||0}}({x:f,y:m},Le(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},k,((x={})[y]=v?"0":"",x[_]=b?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[y]=v?m+"px":"",t[_]=b?f+"px":"",t.transform="",t))}const nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:De(t.placement),variation:Ge(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,tt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,tt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var it={passive:!0};const st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=Le(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,it)}),a&&l.addEventListener("resize",n.update,it),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,it)}),a&&l.removeEventListener("resize",n.update,it)}},data:{}};var ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(e){return e.replace(/left|right|bottom|top/g,function(e){return ot[e]})}var at={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(e){return at[e]})}function ct(e){var t=Le(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dt(e){return Fe(Re(e)).left+ct(e).scrollLeft}function ht(e){var t=ze(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function ut(e){return["html","body","#document"].indexOf(Te(e))>=0?e.ownerDocument.body:Oe(e)&&ht(e)?e:ut(Ve(e))}function ft(e,t){var n;void 0===t&&(t=[]);var i=ut(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=Le(i),r=s?[o].concat(o.visualViewport||[],ht(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(ft(Ve(r)))}function pt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mt(e,t,n){return t===ue?pt(function(e,t){var n=Le(e),i=Re(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=He();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+dt(e),y:l}}(e,n)):Se(t)?function(e,t){var n=Fe(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):pt(function(e){var t,n=Re(e),i=ct(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=Me(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Me(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+dt(e),l=-i.scrollTop;return"rtl"===ze(s||n).direction&&(a+=Me(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Re(e)))}function gt(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?De(s):null,r=s?Ge(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case ie:t={x:a,y:n.y-i.height};break;case se:t={x:a,y:n.y+n.height};break;case oe:t={x:n.x+n.width,y:l};break;case re:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Xe(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case ce:t[c]=t[c]-(n[d]/2-i[d]/2);break;case de:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function bt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?he:a,c=n.rootBoundary,d=void 0===c?ue:c,h=n.elementContext,u=void 0===h?fe:h,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Ke("number"!=typeof g?g:Ze(g,le)),v=u===fe?pe:fe,_=e.rects.popper,y=e.elements[p?v:u],w=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=ft(Ve(e)),n=["absolute","fixed"].indexOf(ze(e).position)>=0&&Oe(e)?Ue(e):e;return Se(n)?t.filter(function(e){return Se(e)&&qe(e,n)&&"body"!==Te(e)}):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(t,n){var s=mt(e,n,i);return t.top=Me(s.top,t.top),t.right=Ie(s.right,t.right),t.bottom=Ie(s.bottom,t.bottom),t.left=Me(s.left,t.left),t},mt(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Se(y)?y:y.contextElement||Re(e.elements.popper),l,d,r),E=Fe(e.elements.reference),C=gt({reference:E,element:_,strategy:"absolute",placement:s}),A=pt(Object.assign({},_,C)),x=u===fe?A:E,k={top:w.top-x.top+b.top,bottom:x.bottom-w.bottom+b.bottom,left:w.left-x.left+b.left,right:x.right-w.right+b.right},T=e.modifiersData.offset;if(u===fe&&T){var L=T[s];Object.keys(k).forEach(function(e){var t=[oe,se].indexOf(e)>=0?1:-1,n=[ie,se].indexOf(e)>=0?"y":"x";k[e]+=L[n]*t})}return k}const vt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,u=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=De(g),v=l||(b!==g&&p?function(e){if(De(e)===ae)return[];var t=rt(e);return[lt(e),t,lt(t)]}(g):[rt(g)]),_=[g].concat(v).reduce(function(e,n){return e.concat(De(n)===ae?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ge:l,d=Ge(i),h=d?a?me:me.filter(function(e){return Ge(e)===d}):le,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var f=u.reduce(function(t,n){return t[n]=bt(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[De(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)},[]),y=t.rects.reference,w=t.rects.popper,E=new Map,C=!0,A=_[0],x=0;x<_.length;x++){var k=_[x],T=De(k),L=Ge(k)===ce,S=[ie,se].indexOf(T)>=0,O=S?"width":"height",$=bt(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),P=S?L?oe:re:L?se:ie;y[O]>w[O]&&(P=rt(P));var D=rt(P),M=[];if(o&&M.push($[T]<=0),a&&M.push($[P]<=0,$[D]<=0),M.every(function(e){return e})){A=k,C=!1;break}E.set(k,M)}if(C)for(var I=function(e){var t=_.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},N=p?3:1;N>0&&"break"!==I(N);N--);t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _t(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yt(e){return[ie,oe,se,re].some(function(t){return e[t]>=0})}const wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=bt(t,{elementContext:"reference"}),a=bt(t,{altBoundary:!0}),l=_t(r,i),c=_t(a,s,o),d=yt(l),h=yt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}},Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=ge.reduce(function(e,n){return e[n]=function(e,t,n){var i=De(e),s=[re,ie].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[re,oe].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e},{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}},Ct={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=gt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,u=n.tether,f=void 0===u||u,p=n.tetherOffset,m=void 0===p?0:p,g=bt(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=De(t.placement),v=Ge(t.placement),_=!v,y=Xe(b),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,C=t.rects.reference,A=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(o){var S,O="y"===y?ie:re,$="y"===y?se:oe,P="y"===y?"height":"width",D=E[y],M=D+g[O],I=D-g[$],N=f?-A[P]/2:0,j=v===ce?C[P]:A[P],H=v===ce?-A[P]:-C[P],F=t.elements.arrow,W=f&&F?We(F):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=q[O],B=q[$],R=Qe(0,C[P],W[P]),V=_?C[P]/2-N-R-z-k.mainAxis:j-R-z-k.mainAxis,Y=_?-C[P]/2+N+R+B+k.mainAxis:H+R+B+k.mainAxis,U=t.elements.arrow&&Ue(t.elements.arrow),X=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,Q=null!=(S=null==T?void 0:T[y])?S:0,K=D+Y-Q,Z=Qe(f?Ie(M,D+V-Q-X):M,D,f?Me(I,K):I);E[y]=Z,L[y]=Z-D}if(a){var J,G="x"===y?ie:re,ee="x"===y?se:oe,te=E[w],ne="y"===w?"height":"width",ae=te+g[G],le=te-g[ee],de=-1!==[ie,re].indexOf(b),he=null!=(J=null==T?void 0:T[w])?J:0,ue=de?ae:te-C[ne]-A[ne]-he+k.altAxis,fe=de?te+C[ne]+A[ne]-he-k.altAxis:le,pe=f&&de?function(e,t,n){var i=Qe(e,t,n);return i>n?n:i}(ue,te,fe):Qe(f?ue:ae,te,f?fe:le);E[w]=pe,L[w]=pe-te}t.modifiersData[i]=L}},requiresIfExists:["offset"]};function xt(e,t,n){void 0===n&&(n=!1);var i,s,o=Oe(t),r=Oe(t)&&function(e){var t=e.getBoundingClientRect(),n=Ne(t.width)/e.offsetWidth||1,i=Ne(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Re(t),l=Fe(e,r,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&(("body"!==Te(t)||ht(a))&&(c=(i=t)!==Le(i)&&Oe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ct(i)),Oe(t)?((d=Fe(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=dt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function kt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var Tt={placement:"bottom",modifiers:[],strategy:"absolute"};function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function St(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?Tt:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:Se(e)?ft(e):e.contextElement?ft(e.contextElement):[],popper:ft(t)};var r,c,u=function(e){var t=kt(e);return ke.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((r=[].concat(i,a.options.modifiers),c=r.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=u.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:i});l.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Lt(t,n)){a.rects={reference:xt(t,Ue(n),"fixed"===a.options.strategy),popper:We(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(s())})})),r}),destroy:function(){h(),c=!0}};if(!Lt(e,t))return d;function h(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var Ot=St(),$t=St({defaultModifiers:[st,Ct,nt,Pe,Et,vt,At,Je,wt]}),Pt=St({defaultModifiers:[st,Ct,nt,Pe]});const Dt=new Map,Mt={set(e,t,n){Dt.has(e)||Dt.set(e,new Map);const i=Dt.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>Dt.has(e)&&Dt.get(e).get(t)||null,remove(e,t){if(!Dt.has(e))return;const n=Dt.get(e);n.delete(t),0===n.size&&Dt.delete(e)}},It="transitionend",Nt=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),jt=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Ht=e=>{e.dispatchEvent(new Event(It))},Ft=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Wt=e=>Ft(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Nt(e)):null,qt=e=>{if(!Ft(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},zt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Bt=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?Bt(e.parentNode):null},Rt=()=>{},Vt=e=>{e.offsetHeight},Yt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ut=[],Xt=()=>"rtl"===document.documentElement.dir,Qt=e=>{var t;t=()=>{const t=Yt();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(Ut.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Ut)e()}),Ut.push(t)):t()},Kt=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,Zt=(e,t,n=!0)=>{if(!n)return void Kt(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let s=!1;const o=({target:n})=>{n===t&&(s=!0,t.removeEventListener(It,o),Kt(e))};t.addEventListener(It,o),setTimeout(()=>{s||Ht(t)},i)},Jt=(e,t,n,i)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[s-1]:e[0]:(o+=n?1:-1,i&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},Gt=/[^.]*(?=\..*)\.|.*/,en=/\..*/,tn=/::\d+$/,nn={};let sn=1;const on={mouseenter:"mouseover",mouseleave:"mouseout"},rn=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 an(e,t){return t&&`${t}::${sn++}`||e.uidEvent||sn++}function ln(e){const t=an(e);return e.uidEvent=t,nn[t]=nn[t]||{},nn[t]}function cn(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function dn(e,t,n){const i="string"==typeof t,s=i?n:t||n;let o=pn(e);return rn.has(o)||(o=e),[i,s,o]}function hn(e,t,n,i,s){if("string"!=typeof t||!e)return;let[o,r,a]=dn(t,n,i);if(t in on){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=ln(e),c=l[a]||(l[a]={}),d=cn(c,r,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const h=an(r,t.replace(Gt,"")),u=o?function(e,t,n){return function i(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return gn(s,{delegateTarget:r}),i.oneOff&&mn.off(e,s.type,t,n),n.apply(r,[s])}}(e,n,r):function(e,t){return function n(i){return gn(i,{delegateTarget:e}),n.oneOff&&mn.off(e,i.type,t),t.apply(e,[i])}}(e,r);u.delegationSelector=o?n:null,u.callable=r,u.oneOff=s,u.uidEvent=h,c[h]=u,e.addEventListener(a,u,o)}function un(e,t,n,i,s){const o=cn(t[n],i,s);o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}function fn(e,t,n,i){const s=t[n]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&un(e,t,n,r.callable,r.delegationSelector)}function pn(e){return e=e.replace(en,""),on[e]||e}const mn={on(e,t,n,i){hn(e,t,n,i,!1)},one(e,t,n,i){hn(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[s,o,r]=dn(t,n,i),a=r!==t,l=ln(e),c=l[r]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const n of Object.keys(l))fn(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const s=n.replace(tn,"");a&&!t.includes(s)||un(e,l,r,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;un(e,l,r,o,s?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=Yt();let s=null,o=!0,r=!0,a=!1;t!==pn(t)&&i&&(s=i.Event(t,n),i(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=gn(new Event(t,{bubbles:o,cancelable:!0}),n);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function gn(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function bn(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 vn(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const _n={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${vn(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${vn(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=bn(e.dataset[i])}return t},getDataAttribute:(e,t)=>bn(e.getAttribute(`data-bs-${vn(t)}`))};class yn{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 n=Ft(t)?_n.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Ft(t)?_n.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,i]of Object.entries(t)){const t=e[n],s=Ft(t)?"element":jt(t);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${i}".`)}}}class wn extends yn{constructor(e,t){super(),(e=Wt(e))&&(this._element=e,this._config=this._getConfig(t),Mt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Mt.remove(this._element,this.constructor.DATA_KEY),mn.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Zt(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Mt.get(Wt(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.8"}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 En=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>Nt(e)).join(","):null},Cn={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 n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.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=>!zt(e)&&qt(e))},getSelectorFromElement(e){const t=En(e);return t&&Cn.findOne(t)?t:null},getElementFromSelector(e){const t=En(e);return t?Cn.findOne(t):null},getMultipleElementsFromSelector(e){const t=En(e);return t?Cn.find(t):[]}},An=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;mn.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),zt(this))return;const s=Cn.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(s)[t]()})},xn=".bs.alert",kn=`close${xn}`,Tn=`closed${xn}`;class Ln extends wn{static get NAME(){return"alert"}close(){if(mn.trigger(this._element,kn).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(),mn.trigger(this._element,Tn),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ln.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)}})}}An(Ln,"close"),Qt(Ln);const Sn='[data-bs-toggle="button"]';class On extends wn{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=On.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}mn.on(document,"click.bs.button.data-api",Sn,e=>{e.preventDefault();const t=e.target.closest(Sn);On.getOrCreateInstance(t).toggle()}),Qt(On);const $n=".bs.swipe",Pn=`touchstart${$n}`,Dn=`touchmove${$n}`,Mn=`touchend${$n}`,In=`pointerdown${$n}`,Nn=`pointerup${$n}`,jn={endCallback:null,leftCallback:null,rightCallback:null},Hn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Fn extends yn{constructor(e,t){super(),this._element=e,e&&Fn.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return jn}static get DefaultType(){return Hn}static get NAME(){return"swipe"}dispose(){mn.off(this._element,$n)}_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(),Kt(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&&Kt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(mn.on(this._element,In,e=>this._start(e)),mn.on(this._element,Nn,e=>this._end(e)),this._element.classList.add("pointer-event")):(mn.on(this._element,Pn,e=>this._start(e)),mn.on(this._element,Dn,e=>this._move(e)),mn.on(this._element,Mn,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 Wn=".bs.carousel",qn=".data-api",zn="ArrowLeft",Bn="ArrowRight",Rn="next",Vn="prev",Yn="left",Un="right",Xn=`slide${Wn}`,Qn=`slid${Wn}`,Kn=`keydown${Wn}`,Zn=`mouseenter${Wn}`,Jn=`mouseleave${Wn}`,Gn=`dragstart${Wn}`,ei=`load${Wn}${qn}`,ti=`click${Wn}${qn}`,ni="carousel",ii="active",si=".active",oi=".carousel-item",ri=si+oi,ai={[zn]:Un,[Bn]:Yn},li={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ci={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class di extends wn{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Cn.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ni&&this.cycle()}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return"carousel"}next(){this._slide(Rn)}nextWhenVisible(){!document.hidden&&qt(this._element)&&this.next()}prev(){this._slide(Vn)}pause(){this._isSliding&&Ht(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?mn.one(this._element,Qn,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void mn.one(this._element,Qn,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?Rn:Vn;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&mn.on(this._element,Kn,e=>this._keydown(e)),"hover"===this._config.pause&&(mn.on(this._element,Zn,()=>this.pause()),mn.on(this._element,Jn,()=>this._maybeEnableCycle())),this._config.touch&&Fn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Cn.find(".carousel-item img",this._element))mn.on(e,Gn,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Yn)),rightCallback:()=>this._slide(this._directionToOrder(Un)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Fn(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ai[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=Cn.findOne(si,this._indicatorsElement);t.classList.remove(ii),t.removeAttribute("aria-current");const n=Cn.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ii),n.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 n=this._getActive(),i=e===Rn,s=t||Jt(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),r=t=>mn.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(r(Xn).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Vt(s),n.classList.add(l),s.classList.add(l),this._queueCallback(()=>{s.classList.remove(l,c),s.classList.add(ii),n.classList.remove(ii,c,l),this._isSliding=!1,r(Qn)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Cn.findOne(ri,this._element)}_getItems(){return Cn.find(oi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Xt()?e===Yn?Vn:Rn:e===Yn?Rn:Vn}_orderToDirection(e){return Xt()?e===Vn?Yn:Un:e===Vn?Un:Yn}static jQueryInterface(e){return this.each(function(){const t=di.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)})}}mn.on(document,ti,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=Cn.getElementFromSelector(this);if(!t||!t.classList.contains(ni))return;e.preventDefault();const n=di.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===_n.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),mn.on(window,ei,()=>{const e=Cn.find('[data-bs-ride="carousel"]');for(const t of e)di.getOrCreateInstance(t)}),Qt(di);const hi=".bs.collapse",ui=`show${hi}`,fi=`shown${hi}`,pi=`hide${hi}`,mi=`hidden${hi}`,gi=`click${hi}.data-api`,bi="show",vi="collapse",_i="collapsing",yi=`:scope .${vi} .${vi}`,wi='[data-bs-toggle="collapse"]',Ei={parent:null,toggle:!0},Ci={parent:"(null|element)",toggle:"boolean"};class Ai extends wn{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Cn.find(wi);for(const e of n){const t=Cn.getSelectorFromElement(e),n=Cn.find(t).filter(e=>e===this._element);null!==t&&n.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 Ei}static get DefaultType(){return Ci}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=>Ai.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(mn.trigger(this._element,ui).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(vi),this._element.classList.add(_i),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(_i),this._element.classList.add(vi,bi),this._element.style[t]="",mn.trigger(this._element,fi)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(mn.trigger(this._element,pi).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Vt(this._element),this._element.classList.add(_i),this._element.classList.remove(vi,bi);for(const e of this._triggerArray){const t=Cn.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(_i),this._element.classList.add(vi),mn.trigger(this._element,mi)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(bi)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Wt(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(wi);for(const t of e){const e=Cn.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Cn.find(yi,this._config.parent);return Cn.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=Ai.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}mn.on(document,gi,wi,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Cn.getMultipleElementsFromSelector(this))Ai.getOrCreateInstance(e,{toggle:!1}).toggle()}),Qt(Ai);const xi="dropdown",ki=".bs.dropdown",Ti=".data-api",Li="ArrowUp",Si="ArrowDown",Oi=`hide${ki}`,$i=`hidden${ki}`,Pi=`show${ki}`,Di=`shown${ki}`,Mi=`click${ki}${Ti}`,Ii=`keydown${ki}${Ti}`,Ni=`keyup${ki}${Ti}`,ji="show",Hi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Fi=`${Hi}.${ji}`,Wi=".dropdown-menu",qi=Xt()?"top-end":"top-start",zi=Xt()?"top-start":"top-end",Bi=Xt()?"bottom-end":"bottom-start",Ri=Xt()?"bottom-start":"bottom-end",Vi=Xt()?"left-start":"right-start",Yi=Xt()?"right-start":"left-start",Ui={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Qi extends wn{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Cn.next(this._element,Wi)[0]||Cn.prev(this._element,Wi)[0]||Cn.findOne(Wi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ui}static get DefaultType(){return Xi}static get NAME(){return xi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(zt(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!mn.trigger(this._element,Pi,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))mn.on(e,"mouseover",Rt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ji),this._element.classList.add(ji),mn.trigger(this._element,Di,e)}}hide(){if(zt(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(!mn.trigger(this._element,Oi,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mn.off(e,"mouseover",Rt);this._popper&&this._popper.destroy(),this._menu.classList.remove(ji),this._element.classList.remove(ji),this._element.setAttribute("aria-expanded","false"),_n.removeDataAttribute(this._menu,"popper"),mn.trigger(this._element,$i,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Ft(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${xi.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:Ft(this._config.reference)?e=Wt(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=$t(e,this._menu,t)}_isShown(){return this._menu.classList.contains(ji)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Vi;if(e.classList.contains("dropstart"))return Yi;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?zi:qi:t?Ri:Bi}_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)&&(_n.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Kt(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=Cn.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>qt(e));n.length&&Jt(n,t,e===Si,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Qi.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=Cn.find(Fi);for(const n of t){const t=Qi.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)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 o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[Li,Si].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const s=this.matches(Hi)?this:Cn.prev(this,Hi)[0]||Cn.next(this,Hi)[0]||Cn.findOne(Hi,e.delegateTarget.parentNode),o=Qi.getOrCreateInstance(s);if(i)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}mn.on(document,Ii,Hi,Qi.dataApiKeydownHandler),mn.on(document,Ii,Wi,Qi.dataApiKeydownHandler),mn.on(document,Mi,Qi.clearMenus),mn.on(document,Ni,Qi.clearMenus),mn.on(document,Mi,Hi,function(e){e.preventDefault(),Qi.getOrCreateInstance(this).toggle()}),Qt(Qi);const Ki="backdrop",Zi="show",Ji=`mousedown.bs.${Ki}`,Gi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},es={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ts extends yn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Gi}static get DefaultType(){return es}static get NAME(){return Ki}show(e){if(!this._config.isVisible)return void Kt(e);this._append();const t=this._getElement();this._config.isAnimated&&Vt(t),t.classList.add(Zi),this._emulateAnimation(()=>{Kt(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Zi),this._emulateAnimation(()=>{this.dispose(),Kt(e)})):Kt(e)}dispose(){this._isAppended&&(mn.off(this._element,Ji),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=Wt(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),mn.on(e,Ji,()=>{Kt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Zt(e,this._getElement(),this._config.isAnimated)}}const ns=".bs.focustrap",is=`focusin${ns}`,ss=`keydown.tab${ns}`,os="backward",rs={autofocus:!0,trapElement:null},as={autofocus:"boolean",trapElement:"element"};class ls extends yn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rs}static get DefaultType(){return as}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),mn.off(document,ns),mn.on(document,is,e=>this._handleFocusin(e)),mn.on(document,ss,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,mn.off(document,ns))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=Cn.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===os?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?os:"forward")}}const cs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ds=".sticky-top",hs="padding-right",us="margin-right";class fs{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,hs,t=>t+e),this._setElementAttributes(cs,hs,t=>t+e),this._setElementAttributes(ds,us,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hs),this._resetElementAttributes(cs,hs),this._resetElementAttributes(ds,us)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&_n.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=_n.getDataAttribute(e,t);null!==n?(_n.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(Ft(e))t(e);else for(const n of Cn.find(e,this._element))t(n)}}const ps=".bs.modal",ms=`hide${ps}`,gs=`hidePrevented${ps}`,bs=`hidden${ps}`,vs=`show${ps}`,_s=`shown${ps}`,ys=`resize${ps}`,ws=`click.dismiss${ps}`,Es=`mousedown.dismiss${ps}`,Cs=`keydown.dismiss${ps}`,As=`click${ps}.data-api`,xs="modal-open",ks="show",Ts="modal-static",Ls={backdrop:!0,focus:!0,keyboard:!0},Ss={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Os extends wn{constructor(e,t){super(e,t),this._dialog=Cn.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fs,this._addEventListeners()}static get Default(){return Ls}static get DefaultType(){return Ss}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||mn.trigger(this._element,vs,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(xs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(mn.trigger(this._element,ms).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ks),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){mn.off(window,ps),mn.off(this._dialog,ps),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ts({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ls({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=Cn.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Vt(this._element),this._element.classList.add(ks),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,mn.trigger(this._element,_s,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){mn.on(this._element,Cs,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),mn.on(window,ys,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),mn.on(this._element,Es,e=>{mn.one(this._element,ws,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(xs),this._resetAdjustments(),this._scrollBar.reset(),mn.trigger(this._element,bs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(mn.trigger(this._element,gs).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ts)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ts),this._queueCallback(()=>{this._element.classList.remove(Ts),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(),n=t>0;if(n&&!e){const e=Xt()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=Xt()?"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 n=Os.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}mn.on(document,As,'[data-bs-toggle="modal"]',function(e){const t=Cn.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),mn.one(t,vs,e=>{e.defaultPrevented||mn.one(t,bs,()=>{qt(this)&&this.focus()})});const n=Cn.findOne(".modal.show");n&&Os.getInstance(n).hide(),Os.getOrCreateInstance(t).toggle(this)}),An(Os),Qt(Os);const $s=".bs.offcanvas",Ps=".data-api",Ds=`load${$s}${Ps}`,Ms="show",Is="showing",Ns="hiding",js=".offcanvas.show",Hs=`show${$s}`,Fs=`shown${$s}`,Ws=`hide${$s}`,qs=`hidePrevented${$s}`,zs=`hidden${$s}`,Bs=`resize${$s}`,Rs=`click${$s}${Ps}`,Vs=`keydown.dismiss${$s}`,Ys={backdrop:!0,keyboard:!0,scroll:!1},Us={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xs extends wn{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ys}static get DefaultType(){return Us}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||mn.trigger(this._element,Hs,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fs).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Is),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ms),this._element.classList.remove(Is),mn.trigger(this._element,Fs,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(mn.trigger(this._element,Ws).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ns),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ms,Ns),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fs).reset(),mn.trigger(this._element,zs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new ts({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():mn.trigger(this._element,qs)}:null})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_addEventListeners(){mn.on(this._element,Vs,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():mn.trigger(this._element,qs))})}static jQueryInterface(e){return this.each(function(){const t=Xs.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)}})}}mn.on(document,Rs,'[data-bs-toggle="offcanvas"]',function(e){const t=Cn.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),zt(this))return;mn.one(t,zs,()=>{qt(this)&&this.focus()});const n=Cn.findOne(js);n&&n!==t&&Xs.getInstance(n).hide(),Xs.getOrCreateInstance(t).toggle(this)}),mn.on(window,Ds,()=>{for(const e of Cn.find(js))Xs.getOrCreateInstance(e).show()}),mn.on(window,Bs,()=>{for(const e of Cn.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Xs.getOrCreateInstance(e).hide()}),An(Xs),Qt(Xs);const Qs={"*":["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:[]},Ks=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Zs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Js=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Ks.has(n)||Boolean(Zs.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))},Gs={allowList:Qs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},eo={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},to={entry:"(string|element|function|null)",selector:"(string|element)"};class no extends yn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Gs}static get DefaultType(){return eo}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,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},to)}_setContent(e,t,n){const i=Cn.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?Ft(t)?this._putElementInTemplate(Wt(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const e of s){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Js(t,s)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Kt(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const io=new Set(["sanitize","allowList","sanitizeFn"]),so="fade",oo="show",ro=".tooltip-inner",ao=".modal",lo="hide.bs.modal",co="hover",ho="focus",uo="click",fo={AUTO:"auto",TOP:"top",RIGHT:Xt()?"left":"right",BOTTOM:"bottom",LEFT:Xt()?"right":"left"},po={allowList:Qs,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"},mo={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 go extends wn{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 po}static get DefaultType(){return mo}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),mn.off(this._element.closest(ao),lo,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=mn.trigger(this._element,this.constructor.eventName("show")),t=(Bt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),mn.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(oo),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mn.on(e,"mouseover",Rt);this._queueCallback(()=>{mn.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!mn.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(oo),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mn.off(e,"mouseover",Rt);this._activeTrigger[uo]=!1,this._activeTrigger[ho]=!1,this._activeTrigger[co]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),mn.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(so,oo),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(so),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new no({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ro]: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(so)}_isShown(){return this.tip&&this.tip.classList.contains(oo)}_createPopper(e){const t=Kt(this._config.placement,[this,e,this._element]),n=fo[t.toUpperCase()];return $t(this._element,e,this._getPopperConfig(n))}_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 Kt(e,[this._element,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,...Kt(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)mn.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[uo]=!(t._isShown()&&t._activeTrigger[uo]),t.toggle()});else if("manual"!==t){const e=t===co?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===co?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");mn.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?ho:co]=!0,t._enter()}),mn.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?ho:co]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},mn.on(this._element.closest(ao),lo,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=_n.getDataAttributes(this._element);for(const e of Object.keys(t))io.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:Wt(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,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);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=go.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}Qt(go);const bo=".popover-header",vo=".popover-body",_o={...go.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"},yo={...go.DefaultType,content:"(null|string|element|function)"};class wo extends go{static get Default(){return _o}static get DefaultType(){return yo}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[bo]:this._getTitle(),[vo]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=wo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}Qt(wo);const Eo=".bs.scrollspy",Co=`activate${Eo}`,Ao=`click${Eo}`,xo=`load${Eo}.data-api`,ko="active",To="[href]",Lo=".nav-link",So=`${Lo}, .nav-item > ${Lo}, .list-group-item`,Oo={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},$o={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Po extends wn{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 Oo}static get DefaultType(){return $o}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=Wt(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&&(mn.off(this._config.target,Ao),mn.on(this._config.target,Ao,To,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_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}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(n(o),!i)return}else s||e||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Cn.find(To,this._config.target);for(const t of e){if(!t.hash||zt(t))continue;const e=Cn.findOne(decodeURI(t.hash),this._element);qt(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(ko),this._activateParents(e),mn.trigger(this._element,Co,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Cn.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(ko);else for(const t of Cn.parents(e,".nav, .list-group"))for(const e of Cn.prev(t,So))e.classList.add(ko)}_clearActiveClass(e){e.classList.remove(ko);const t=Cn.find(`${To}.${ko}`,e);for(const e of t)e.classList.remove(ko)}static jQueryInterface(e){return this.each(function(){const t=Po.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]()}})}}mn.on(window,xo,()=>{for(const e of Cn.find('[data-bs-spy="scroll"]'))Po.getOrCreateInstance(e)}),Qt(Po);const Do=".bs.tab",Mo=`hide${Do}`,Io=`hidden${Do}`,No=`show${Do}`,jo=`shown${Do}`,Ho=`click${Do}`,Fo=`keydown${Do}`,Wo=`load${Do}`,qo="ArrowLeft",zo="ArrowRight",Bo="ArrowUp",Ro="ArrowDown",Vo="Home",Yo="End",Uo="active",Xo="fade",Qo="show",Ko=".dropdown-toggle",Zo=`:not(${Ko})`,Jo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Go=`.nav-link${Zo}, .list-group-item${Zo}, [role="tab"]${Zo}, ${Jo}`,er=`.${Uo}[data-bs-toggle="tab"], .${Uo}[data-bs-toggle="pill"], .${Uo}[data-bs-toggle="list"]`;class tr extends wn{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),mn.on(this._element,Fo,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?mn.trigger(t,Mo,{relatedTarget:e}):null;mn.trigger(e,No,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Uo),this._activate(Cn.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),mn.trigger(e,jo,{relatedTarget:t})):e.classList.add(Qo)},e,e.classList.contains(Xo)))}_deactivate(e,t){e&&(e.classList.remove(Uo),e.blur(),this._deactivate(Cn.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),mn.trigger(e,Io,{relatedTarget:t})):e.classList.remove(Qo)},e,e.classList.contains(Xo)))}_keydown(e){if(![qo,zo,Bo,Ro,Vo,Yo].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!zt(e));let n;if([Vo,Yo].includes(e.key))n=t[e.key===Vo?0:t.length-1];else{const i=[zo,Ro].includes(e.key);n=Jt(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),tr.getOrCreateInstance(n).show())}_getChildren(){return Cn.find(Go,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),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Cn.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const s=Cn.findOne(e,n);s&&s.classList.toggle(i,t)};i(Ko,Uo),i(".dropdown-menu",Qo),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Uo)}_getInnerElement(e){return e.matches(Go)?e:Cn.findOne(Go,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=tr.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}mn.on(document,Ho,Jo,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),zt(this)||tr.getOrCreateInstance(this).show()}),mn.on(window,Wo,()=>{for(const e of Cn.find(er))tr.getOrCreateInstance(e)}),Qt(tr);const nr=".bs.toast",ir=`mouseover${nr}`,sr=`mouseout${nr}`,or=`focusin${nr}`,rr=`focusout${nr}`,ar=`hide${nr}`,lr=`hidden${nr}`,cr=`show${nr}`,dr=`shown${nr}`,hr="hide",ur="show",fr="showing",pr={animation:"boolean",autohide:"boolean",delay:"number"},mr={animation:!0,autohide:!0,delay:5e3};class gr extends wn{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return mr}static get DefaultType(){return pr}static get NAME(){return"toast"}show(){mn.trigger(this._element,cr).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(hr),Vt(this._element),this._element.classList.add(ur,fr),this._queueCallback(()=>{this._element.classList.remove(fr),mn.trigger(this._element,dr),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(mn.trigger(this._element,ar).defaultPrevented||(this._element.classList.add(fr),this._queueCallback(()=>{this._element.classList.add(hr),this._element.classList.remove(fr,ur),mn.trigger(this._element,lr)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ur),super.dispose()}isShown(){return this._element.classList.contains(ur)}_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 n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){mn.on(this._element,ir,e=>this._onInteraction(e,!0)),mn.on(this._element,sr,e=>this._onInteraction(e,!1)),mn.on(this._element,or,e=>this._onInteraction(e,!0)),mn.on(this._element,rr,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=gr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}function br(e,t){let n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in n)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[e]:("00"+n[e]).substr((""+n[e]).length)));return t}function vr(e,t,n){let i=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,i)}function _r(e){let t=[],n=[...e];n.sort();for(let e=0;e<n.length;e++)n[e]!==n[e+1]&&(t[t.length]=n[e]);return t}function yr(e){void 0!==e&&(e.registerHelper("if",function(e,t,n){return e===t?n.fn(this):n.inverse(this)}),e.registerHelper("lt",function(e,t,n){return e<t?n.fn(this):n.inverse(this)}),e.registerHelper("rt",function(e,t,n){return e>t?n.fn(this):n.inverse(this)}),e.registerHelper("lte",function(e,t,n){return e<=t?n.fn(this):n.inverse(this)}),e.registerHelper("rte",function(e,t,n){return e>=t?n.fn(this):n.inverse(this)}))}function wr(e,t){e.forEach((e,n)=>{const i=t[n];document.querySelectorAll(e).forEach(e=>{const t=e._bsTooltip;t&&t.dispose(),e.setAttribute("data-bs-title",i),e.setAttribute("data-bs-toggle","tooltip"),e.setAttribute("data-bs-custom-class","be-tooltip"),new go(e)})})}function Er(e="info",t=3,i="ice"){let s;if("number"==typeof i)switch(i){case 1:s="flat";break;case 2:s="future";break;case 3:s="block";break;case 4:s="air";break;default:s="ice"}else s=i;const o=n({type:e,classes:t,theme:s},{type:"info",classes:3,theme:"ice"});let r;switch(o.classes){case 1:r=`messenger-fixed messenger-theme-${o.theme} messenger-on-top messenger-on-left`;break;case 2:default:r=`messenger-fixed messenger-theme-${o.theme} messenger-on-top`;break;case 3:r=`messenger-fixed messenger-theme-${o.theme} messenger-on-top messenger-on-right`;break;case 4:r=`messenger-fixed messenger-theme-${o.theme} messenger-on-bottom messenger-on-right`;break;case 5:r=`messenger-fixed messenger-theme-${o.theme} messenger-on-bottom`;break;case 6:r=`messenger-fixed messenger-theme-${o.theme} messenger-on-bottom messenger-on-left`}window.Messenger.options={extraClasses:r,theme:o.theme}}function Cr(e,t="info",n=3,i="ice"){Er(t,n,i),window.Messenger().post({message:e,type:t,hideAfter:5,showCloseButton:!0})}function Ar(e,t,n,i=3,s="ice"){window.Messenger().hideAll(),Er("info",i,s),window.Messenger().post({message:e,actions:{retry:{label:t,phrase:"",auto:!1,delay:10,action:function(){window.Messenger().hideAll(),n()}},cancel:{label:"取消",action:function(){return window.Messenger().hideAll(),!1}}}})}function xr(e,t,i){return new e((i=n(i||{},{target:"#airDatepicker",classes:"fm-datepicker",autoClose:!0,inline:!1,timepicker:!0,buttons:["today","clear"],locale:t,dateFormat:e=>br(e,"yyyy年MM月dd日 hh:mm:ss")})).target,i)}function kr(e,t){t=n(t||{},{focusFirstField:!1,validationEventTrigger:"click",promptPosition:"topRight"}),e.validationEngine(t)}function Tr(e,t="validate",i){const s=n({command:t,options:i},{command:"validate",options:i});return e.validationEngine(s.command,s.options)}function Lr(e){const{winRate:t,odds:n,fraction:i=1}=e;if(t<0||t>1||n<=0)throw new Error("参数错误:胜率必须在 0-1 之间,且赔率必须大于 0");const s=(n*t-(1-t))/n;return Math.max(0,s*i)}function Sr(e,t=1,n=3,i=5e3,s){var o,r,a,l,c,d;const h={1:"bs-toast-top-left",2:"bs-toast-top-right",3:"bs-toast-top-center",4:"bs-toast-bottom-right",5:"bs-toast-bottom-center",6:"bs-toast-bottom-left"},u=null!==(o=h[n])&&void 0!==o?o:h[3],f=document.getElementById(u);if(!f)return void console.warn(`缺少 #${u} 容器`);const p={1:"text-dark",2:"text-dark",3:"text-dark",4:"text-dark"},m=null!==(r=p[t])&&void 0!==r?r:p[1],g={1:"系统提示",2:"系统异常",3:"操作成功",4:"系统警告"},b=null!==(a=g[t])&&void 0!==a?a:g[1],v={1:"#0dcaf0",2:"#dc354c",3:"#198754",4:"#ffc107"},_=null!==(l=v[t])&&void 0!==l?l:v[1],y=`bs-toast-${Date.now()}`;let w,E="";const C=s?'style="min-width:480px;"':"";s?(E=`\n <div class="toast-header">\n <svg class="bd-placeholder-img rounded me-2" width="20" height="20"\n xmlns="http://www.w3.org/2000/svg" aria-hidden="true"\n preserveAspectRatio="xMidYMid slice" focusable="false">\n <rect width="100%" height="100%" fill="${v[2]}"></rect>\n </svg>\n <strong class="me-auto fs-6"><b>操作确认</b></strong>\n </div>\n `,w=`\n <div class="mb-3 p-2">${e}</div>\n <div class="d-flex gap-3 justify-content-end pt-1">\n <button type="button" class="btn btn-secondary btn-sm px-4 cancel-btn">取消</button>\n <button type="button" class="btn btn-danger btn-sm px-4 confirm-btn">${s.label}</button>\n </div>\n `):(b&&(E=`\n <div class="toast-header">\n <svg class="bd-placeholder-img rounded me-2" width="20" height="20"\n xmlns="http://www.w3.org/2000/svg" aria-hidden="true"\n preserveAspectRatio="xMidYMid slice" focusable="false">\n <rect width="100%" height="100%" fill="${_}"></rect>\n </svg>\n <strong class="me-auto fs-6"><b>${b}</b></strong>\n \n <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="关闭"></button>\n </div>\n `),w=`<span>${e}</span>`);const A=`\n <div\n id="${y}"\n class="toast ${s?"":m}"\n ${C}\n role="alert"\n aria-live="assertive"\n aria-atomic="true"\n >\n ${E}\n <div class="toast-body ps-4 p-3 fs-6">\n ${w}\n </div>\n </div>\n `;f.insertAdjacentHTML("beforeend",A);const x=document.getElementById(y);if(!x)return;let k=null;s&&(k=document.createElement("div"),k.style.cssText="\n position:fixed;inset:0;background:rgba(255,255,255,0.5);z-index:1055;\n ",document.body.appendChild(k));const T=new gr(x,0===i?{autohide:!1}:{autohide:!0,delay:i});x.dataset.toastInstance=T,T.show();const L=()=>T.hide();s&&(null===(c=x.querySelector(".confirm-btn"))||void 0===c||c.addEventListener("click",()=>{L(),s.onConfirm()}),null===(d=x.querySelector(".cancel-btn"))||void 0===d||d.addEventListener("click",()=>{L()})),x.addEventListener("hidden.bs.toast",()=>{x.remove(),null==k||k.remove()})}function Or(e,t=1,n=3,i=5e3){Sr(e,t,n,i)}function $r(e,t,n,i=3,s=1,o=0){Sr(e,s,i,o,{label:t,onConfirm:n})}function Pr(){["bs-toast-top-left","bs-toast-top-right","bs-toast-top-center","bs-toast-bottom-right","bs-toast-bottom-center","bs-toast-bottom-left"].forEach(e=>{const t=document.getElementById(e);t&&t.querySelectorAll(".toast").forEach(e=>{const t=e.dataset.toastInstance;t?t.hide():new gr(e).hide()})})}function Dr(e){const t={id:e.id,name:e.name,menus:e.menu};localStorage.setItem("user",JSON.stringify(t)),localStorage.setItem("token",e.token)}function Mr(){return new Promise(e=>{localStorage.removeItem("user"),localStorage.removeItem("token"),e()})}function Ir(){const e=localStorage.getItem("user");if(!e)return null;try{return JSON.parse(e)}catch(e){return localStorage.removeItem("user"),null}}function Nr(){return localStorage.getItem("token")}function jr(e){localStorage.setItem("token",e)}An(gr),Qt(gr);const Hr=I;export{W as AeLoader,M as Base,q as BtnEf,Y as Flash,j as GoTop,te as HoverDir,R as IAccordion,B as IList,ne as ILoader,z as IPagination,H as ItemCount,X as LineEffect,F as NiceSelect,V as PopoverSearch,N as SubmitFlag,gr as Toast,go as Tooltip,p as ajax,Or as al,vr as arrayRemove,_r as arrayUnique,D as cache,Lr as calculateKellyFraction,i as camelCase,$r as cf,S as contextQuerySelector,h as contrast,f as createElement,L as dataAttr,xr as datepicker,Hr as default,T as defaultConstructor,d as different,P as elementData,$ as expando,n as extend,br as formatDate,w as getCookie,m as getParam,Nr as getToken,Ir as getUser,yr as handlebars,Pr as hideAllToast,_ as hotkey,O as isEqSelector,u as isHtmlTag,r as isNull,l as isObject,v as keys,s as l,Dr as login,Mr as logout,Cr as mal,Ar as mcf,C as menu,A as menu2Tree,Er as messageInit,g as move,E as removeCookie,c as same,x as search,y as setCookie,a as setDefault,jr as setToken,k as shuffleArray,b as strValidation,wr as tip,o as toRound,Tr as validate,kr as validationEngine};
|