work/js/chunk-1410a5c5.a2d2ae4b.js

1 line
78 KiB
PHP
Raw Normal View History

2024-01-09 17:27:10 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1410a5c5","chunk-0a5827d8"],{"1a0b":function(t,e,i){(function(e,i){t.exports=i()})(0,(function(){"use strict";var t=function(){"function"!=typeof Object.assign&&(Object.assign=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){var e=(this.document||this.ownerDocument).querySelectorAll(t),i=e.length;while(--i>=0&&e.item(i)!==this);return i>-1})};function e(t){var e=void 0;return e=document.createElement("div"),e.innerHTML=t,e.children}function i(t){return!!t&&(t instanceof HTMLCollection||t instanceof NodeList)}function n(t){var e=document.querySelectorAll(t);return i(e)?e:[e]}var o=[];function a(t){if(t){if(t instanceof a)return t;this.selector=t;var o=t.nodeType,r=[];9===o||1===o?r=[t]:i(t)||t instanceof Array?r=t:"string"===typeof t&&(t=t.replace("/\n/mg","").trim(),r=0===t.indexOf("<")?e(t):n(t));var s=r.length;if(!s)return this;var c=void 0;for(c=0;c<s;c++)this[c]=r[c];this.length=s}}function r(t){return new a(t)}a.prototype={constructor:a,forEach:function(t){var e=void 0;for(e=0;e<this.length;e++){var i=this[e],n=t.call(i,i,e);if(!1===n)break}return this},clone:function(t){var e=[];return this.forEach((function(i){e.push(i.cloneNode(!!t))})),r(e)},get:function(t){var e=this.length;return t>=e&&(t%=e),r(this[t])},first:function(){return this.get(0)},last:function(){var t=this.length;return this.get(t-1)},on:function(t,e,i){i||(i=e,e=null);var n=[];return n=t.split(/\s+/),this.forEach((function(t){n.forEach((function(n){n&&(o.push({elem:t,type:n,fn:i}),e?t.addEventListener(n,(function(t){var n=t.target;n.matches(e)&&i.call(n,t)})):t.addEventListener(n,i))}))}))},off:function(t,e){return this.forEach((function(i){i.removeEventListener(t,e)}))},attr:function(t,e){return null==e?this[0].getAttribute(t):this.forEach((function(i){i.setAttribute(t,e)}))},addClass:function(t){return t?this.forEach((function(e){var i=void 0;e.className?(i=e.className.split(/\s/),i=i.filter((function(t){return!!t.trim()})),i.indexOf(t)<0&&i.push(t),e.className=i.join(" ")):e.className=t})):this},removeClass:function(t){return t?this.forEach((function(e){var i=void 0;e.className&&(i=e.className.split(/\s/),i=i.filter((function(e){return e=e.trim(),!(!e||e===t)})),e.className=i.join(" "))})):this},css:function(t,e){var i=t+":"+e+";";return this.forEach((function(e){var n=(e.getAttribute("style")||"").trim(),o=void 0,a=[];n?(o=n.split(";"),o.forEach((function(t){var e=t.split(":").map((function(t){return t.trim()}));2===e.length&&a.push(e[0]+":"+e[1])})),a=a.map((function(e){return 0===e.indexOf(t)?i:e})),a.indexOf(i)<0&&a.push(i),e.setAttribute("style",a.join("; "))):e.setAttribute("style",i)}))},show:function(){return this.css("display","block")},hide:function(){return this.css("display","none")},children:function(){var t=this[0];return t?r(t.children):null},childNodes:function(){var t=this[0];return t?r(t.childNodes):null},append:function(t){return this.forEach((function(e){t.forEach((function(t){e.appendChild(t)}))}))},remove:function(){return this.forEach((function(t){if(t.remove)t.remove();else{var e=t.parentElement;e&&e.removeChild(t)}}))},isContain:function(t){var e=this[0],i=t[0];return e.contains(i)},getSizeData:function(){var t=this[0];return t.getBoundingClientRect()},getNodeName:function(){var t=this[0];return t.nodeName},find:function(t){var e=this[0];return r(e.querySelectorAll(t))},text:function(t){if(t)return this.forEach((function(e){e.innerHTML=t}));var e=this[0];return e.innerHTML.replace(/<.*?>/g,(function(){return""}))},html:function(t){var e=this[0];return null==t?e.innerHTML:(e.innerHTML=t,this)},val:function(){va