mazey 5.2.0 → 5.3.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 +101 -0
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +258 -2
- package/lib/index.esm.js +2 -2
- package/lib/mazey.min.js +2 -2
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Mazey v5.
|
|
2
|
+
* Mazey v5.3.0 https://github.com/chengchuu/mazey
|
|
3
3
|
* (c) 2018-2026 Cheng
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
function e(e,t){var r=e.length,n=t.length;if(0===r||0===n)return 0;for(var o=Array.from({length:r},function(){return new Array(n).fill(0)}),i=0,a=0;a<r;++a)for(var u=0;u<n;++u)if(e[a]===t[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1,i=Math.max(i,o[a][u])}return i}function t(t,r){return e(t,r)}function r(e,t){var r=e.length,n=t.length;if(0===r||0===n)return 0;for(var o=Array.from({length:r},function(){return new Array(n).fill(0)}),i=0;i<r;++i)for(var a=0;a<n;++a)if(e[i]===t[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=0,s=0;a>0&&(c=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(c,s)}return o[r-1][n-1]}function n(e,t){return r(e,t)}function o(e){return Math.random()<e}function i(e){return o(e)}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)})}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,p={exports:{}},v={exports:{}};(d=v).exports=function(e,t){this.v=e,this.k=t},d.exports.__esModule=!0,d.exports.default=d.exports;var h=v.exports,g={exports:{}},y={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y);var m=y.exports;!function(e){var t=m;function r(){var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,r,i,a){var u=r&&r.prototype instanceof f?r:f,c=Object.create(u.prototype);return t(c,"_invoke",function(e,t,r){var i,a,u,c=0,f=r||[],l=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return i=e,a=0,u=n,d.n=t,s}};function p(e,t){for(a=e,u=t,o=0;!l&&c&&!r&&o<f.length;o++){var r,i=f[o],p=d.p,v=i[2];e>3?(r=v===t)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=p&&((r=e<2&&p<i[1])?(a=0,d.v=t,d.n=i[1]):p<v&&(r=e<3||i[0]>t||t>v)&&(i[4]=e,i[5]=t,d.n=v,a=0))}if(r||e>1)return s;throw l=!0,t}return function(r,f,v){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&p(f,v),a=f,u=v;(o=a<2?n:u)||!l;){i||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(c=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,u)))throw TypeError("iterator result is not an object");if(!o.done)return o;u=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(l=d.n<0)?u:e.call(t,d))!==s)break}catch(e){i=n,a=1,u=e}finally{c=1}}return{value:o,done:l}}}(e,i,a),!0),c}var s={};function f(){}function l(){}function d(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),v=d.prototype=f.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,u,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=d,t(v,"constructor",d),t(d,"constructor",l),l.displayName="GeneratorFunction",t(d,u,"GeneratorFunction"),t(v),t(v,u,"Generator"),t(v,a,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(g);var w=g.exports,b={exports:{}},x={exports:{}},S={exports:{}};!function(e){var t=h,r=m;e.exports=function e(n,o){function i(e,r,a,u){try{var c=n[e](r),s=c.value;return s instanceof t?o.resolve(s.v).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):o.resolve(s).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,u)})}catch(e){u(e)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(S);var O=S.exports;!function(e){var t=w,r=O;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(x);var E=x.exports;!function(e){var t=E;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(b);var _=b.exports,A={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(A);var j=A.exports,T={exports:{}},k={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(k);var M=k.exports;!function(e){var t=M.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(T);var P=T.exports;!function(e){var t=h,r=w,n=_,o=E,i=O,a=j,u=P;function c(){var s=r(),f=s.m(c),l=(Object.getPrototypeOf?Object.getPrototypeOf(f):f.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function v(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,u(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,t,r,n){return s.w(v(e),t,r,n&&n.reverse())},isGeneratorFunction:d,mark:s.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(d(t)?o:n)(v(e),t,r,i,a)},keys:a,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports}(p);var N=(0,p.exports)(),C=N;try{regeneratorRuntime=N}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=N:Function("r","regeneratorRuntime = r")(N)}var R=l(C);function D(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return U(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var L=Function.prototype.toString.call(Object);function z(e,t,r){var n,o=null===(n=Object.getOwnPropertyDescriptor(t,r))||void 0===n?void 0:n.get;if(!o)return!1;try{return o.call(e),!0}catch(e){return!1}}function F(e){return null===e||"object"!=typeof e?e:I(e,function(){if("undefined"!=typeof WeakMap)return new WeakMap;var e=[],t=[];return{get:function(r){var n=e.indexOf(r);return-1===n?void 0:t[n]},set:function(r,n){e.push(r),t.push(n)}}}())}function I(e,t){if(null===e||"object"!=typeof e)return e;var r=e,n=t.get(r);if(void 0!==n)return n;var o=function(e){try{return Date.prototype.getTime.call(e)}catch(e){return null}}(r);if(null!==o){var i=new Date(o);return t.set(r,i),i}var a=function(e){var t,r=null===(t=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))||void 0===t?void 0:t.get;if(!r)return null;try{return r.call(e)}catch(e){return null}}(r);if(null!==a){var u=e,c=new RegExp(a,function(e){if("string"==typeof e.flags)return e.flags;var t=e,r="";return t.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}(u));return c.lastIndex=u.lastIndex,t.set(r,c),c}if("undefined"!=typeof ArrayBuffer&&z(r,ArrayBuffer.prototype,"byteLength")){var s=ArrayBuffer.prototype.slice.call(e,0);return t.set(r,s),s}if("undefined"!=typeof SharedArrayBuffer&&z(r,SharedArrayBuffer.prototype,"byteLength")){var f=SharedArrayBuffer.prototype.slice.call(e,0);return t.set(r,f),f}if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)){var l=I(e.buffer,t),d="undefined"!=typeof DataView&&z(r,DataView.prototype,"byteLength")?new DataView(l,e.byteOffset,e.byteLength):new e.constructor(l,e.byteOffset,e.length);return t.set(r,d),d}if("undefined"!=typeof Map&&z(r,Map.prototype,"size")){var p=new Map;return t.set(r,p),Map.prototype.forEach.call(e,function(e,r){p.set(I(r,t),I(e,t))}),p}if("undefined"!=typeof Set&&z(r,Set.prototype,"size")){var v=new Set;return t.set(r,v),Set.prototype.forEach.call(e,function(e){v.add(I(e,t))}),v}var h=Array.isArray(e),g=Object.getPrototypeOf(e),y=function(e){var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.prototype.hasOwnProperty.call(t,"constructor")?t.constructor:null;return"function"==typeof r&&Function.prototype.toString.call(r)===L}(r),m=!h&&!y&&function(e){var t=Object.getPrototypeOf(e),r=null==t?void 0:t.constructor;return"function"==typeof r&&-1===Function.prototype.toString.call(r).indexOf("[native code]")}(r);if(!h&&!y&&!m)return t.set(r,e),e;var w=h?new Array(e.length):Object.create(m?Object.prototype:g);return t.set(r,w),function(e){var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t}(r).forEach(function(e){if(!h||"length"!==e){var n=Object.getOwnPropertyDescriptor(r,e);n&&("value"in n&&(n.value=I(n.value,t)),Object.defineProperty(w,e,n))}}),w}function B(e){return!e||"object"!=typeof e||Object.isFrozen(e)||(Object.freeze(e),Object.values(e).forEach(B)),e}function $(e){return F(e)}function q(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substring(1):t}function Z(e){var t=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return t.endsWith("-")?t.slice(0,-1):t}function W(e){return q(e)}function V(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substring(1):t}function H(e){return e.replace(/_([a-z])/g,function(e,t){return t.toUpperCase()})}function Y(e){return V(e)}function G(e){if("string"!=typeof e)throw new TypeError("value must be a string");var t=e.replace(/[^A-Za-z0-9_$]/g,"_").toUpperCase();return/^[A-Za-z_$]/.test(t)?t:"_".concat(t)}function J(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,r=/\s/;r.test(e.charAt(t));)t--;return e.slice(0,t+1)}function K(e){if("string"!=typeof e)return!1;try{return JSON.parse(e),!0}catch(e){}return!1}function Q(e){return K(e)}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(e)}catch(e){return t}}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function te(){return ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:5)}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=[oe(),te(e||3)];return t[0]+t[1]}function ne(){return re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3)}function oe(){return Date.now?Date.now():(new Date).getTime()}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="";return r=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(r,"%")}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(String(e)).toFixed(t)}function ue(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign({},r);var n=null,o=null,i=null,a=null,u=0,c=function(){u=!1===r.leading?0:oe(),i=null,a=e.apply(this,o),i||(n=o=null)};return function(){var s=oe();u||!1!==r.leading||(u=s);var f=t-(s-u);n=this;for(var l=arguments.length,d=new Array(l),p=0;p<l;p++)d[p]=arguments[p];return o=d,f<=0||f>t?(i&&(clearTimeout(i),i=null),u=s,a=e.apply(n,o),i||(n=o=null)):i||!1===r.trailing||(i=setTimeout(c.bind(n),f)),a}}function ce(e,t,r){var n=null,o=null,i=null,a=null,u=null,c=function(){var s=oe()-i;s<t&&s>=0?o=setTimeout(c,t-s):(o=null,r||(u=e.apply(n,a),o||(n=a=null)))};return function(){n=this;for(var s=arguments.length,f=new Array(s),l=0;l<s;l++)f[l]=arguments[l];a=f,i=oe();var d=r&&!o;return o||(o=setTimeout(c,t)),d&&(u=e.apply(n,a),n=a=null),u}}var se={type:"d"};function fe(e){return"string"==typeof e&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)?e.replace(" ","T"):e}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se,n=(r=Object.assign({},se,r)).type;he(e)||(e=new Date(fe(e)).getTime()),he(t)||(t=new Date(fe(t)).getTime());var o=Number(t)-Number(e),i="",a=f(new Array(4).fill(0),4),u=a[0],c=(a[1],a[2],a[3]);if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),n){case"d":i=u;break;case"text":i=[{value:u=Math.floor(o/1e3/60/60/24),unit:"day"},{value:Math.floor(o/1e3/60/60%24),unit:"hour"},{value:Math.floor(o/1e3/60%60),unit:"minute"},{value:c=Math.floor(o/1e3%60),unit:"second"}].filter(function(e){return e.value>0}).map(function(e){return pe(e.value,e.unit)}).join(" ")||pe(0,"second");break;default:i=c}return i}function de(){return le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:se)}function pe(e,t){var r=Math.round(10*e)/10,n=1===r?t:"".concat(t,"s");return"".concat(r," ").concat(n)}function ve(e){var t=(Number.isFinite(e)?Math.max(e,0):0)/1e3;return t>=86400?pe(t/24/60/60,"day"):t>=3600?pe(t/60/60,"hour"):t>=60?pe(t/60,"minute"):pe(t,"second")}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isNaNAsNumber,n=void 0!==r&&r,o=t.isInfinityAsNumber,i=void 0!==o&&o,a=t.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!n&&isNaN(e)))}function ge(e){var t=null;if(e&&"function"==typeof e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t=e.apply(void 0,n)}return t}function ye(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ge.apply(void 0,[e].concat(r))}function me(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t}function we(e){var t=Boolean(e),r="object"==typeof e,n="[object Object]"===Object.prototype.toString.call(e);return t&&r&&n}function be(e){return"function"==typeof e}function xe(e){return"string"==typeof e}function Se(e){return"boolean"==typeof e}function Oe(e){return Se(e)}function Ee(e){return null==e}function _e(e){return"[object Array]"===Object.prototype.toString.call(e)}function Ae(e){return!!we(e)&&0!==Object.keys(e).length}function je(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")}function Te(e){return je(e)}function ke(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeNewLine,r=void 0!==t&&t,n="";return e&&(n=e.replace(/<\/?.+?>/g,""),r&&(n=n.replace(/[\r\n]/g,""))),n}function Me(e){return ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Pe(e){return ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Ne(e){return ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Ce(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,function(e){return t[e]})}function Re(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&|<|>|"|'|/)/g,function(e){return t[e]})}function De(e){return Re(e)}function Ue(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{hasDot:!1,dotText:"..."};if(r=Object.assign({hasDot:!1,dotText:"..."},r),""!=e&&e){for(var n=0,o="",i=/[^\x00-\xff]/g,a="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?n+=2:n++,!(n>t));c++)o+=a;return r.hasDot&&u>t&&(o+=r.dotText),o}return""}function Le(e,t){return Ue(e,t,{hasDot:arguments.length>2&&void 0!==arguments[2]&&arguments[2]})}function ze(e,t){return Le(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}function Fe(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{validStatusRange:[200,300],validCode:[0]})||{},r=t.validStatusRange,n=void 0===r?[200,300]:r,o=t.validCode,i=void 0===o?[0]:o;2!==n.length&&console.error("valid validStatusRange is required");var a=!1;if(e&&e.status&&2===n.length&&e.status>=n[0]&&e.status<n[1]){var u=e.data;u&&i.includes(u.code)&&(a=!0)}return a}function Ie(e,t,r){if(null===e||"object"!=typeof e)return!1;var n,o=e,i=D(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(null===o||"object"!=typeof o&&"function"!=typeof o||!Object.prototype.hasOwnProperty.call(o,a))return!1;o=o[a]}}catch(e){i.e(e)}finally{i.f()}return o===r}function Be(e){var t=function(e){return String(Math.ceil(e))};if(!Number.isFinite(e)||e<=0)return"";var r=1024;return e<r?e+" B":e<Math.pow(r,2)?t(e/r)+" KB":e<Math.pow(r,3)?t(e/Math.pow(r,2))+" MB":e<Math.pow(r,4)?t(e/Math.pow(r,3))+" G":t(e/Math.pow(r,4))+" T"}function $e(e){var t,r=0;for(t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r}function qe(e){return Ze.apply(this,arguments)}function Ze(){return(Ze=u(R.mark(function e(t){var r,n,o,i,a,u,c;return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r="undefined"==typeof crypto?null:crypto)&&r.subtle&&"function"==typeof r.subtle.digest){e.next=1;break}throw new Error("Web Crypto API is not available.");case 1:if(n=t,"string"!=typeof t){e.next=3;break}if("undefined"!=typeof TextEncoder){e.next=2;break}throw new Error("TextEncoder is not available.");case 2:n=(new TextEncoder).encode(t);case 3:return e.next=4,r.subtle.digest("SHA-256",n);case 4:for(o=e.sent,i="",a=new Uint8Array(o),u=0;u<a.length;u++)c=a[u].toString(16),i+=1===c.length?"0".concat(c):c;return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}var We=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2})(?::(\d{2}))?)?$/,Ve=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?(Z|[+-]\d{2}:\d{2})$/;function He(e,t,r,n,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=new Date(0);return u?(c.setUTCFullYear(e,t-1,r),c.setUTCHours(n,o,i,a),Number.isFinite(c.getTime())&&c.getUTCFullYear()===e&&c.getUTCMonth()===t-1&&c.getUTCDate()===r&&c.getUTCHours()===n&&c.getUTCMinutes()===o&&c.getUTCSeconds()===i&&c.getUTCMilliseconds()===a):(c.setFullYear(e,t-1,r),c.setHours(n,o,i,a),Number.isFinite(c.getTime())&&c.getFullYear()===e&&c.getMonth()===t-1&&c.getDate()===r&&c.getHours()===n&&c.getMinutes()===o&&c.getSeconds()===i&&c.getMilliseconds()===a)}function Ye(e){if("number"==typeof e)return Number.isFinite(e)&&Number.isFinite(new Date(e).getTime());if("object"==typeof e&&null!==e)try{return Number.isFinite(Date.prototype.getTime.call(e))}catch(e){return!1}if("string"!=typeof e)return!1;var t=e.trim();if(!t)return!1;var r=We.exec(t);if(r){var n=f(r.slice(1),6),o=n[0],i=n[1],a=n[2],u=n[3],c=void 0===u?"0":u,s=n[4],l=void 0===s?"0":s,d=n[5],p=void 0===d?"0":d;return He(Number(o),Number(i),Number(a),Number(c),Number(l),Number(p))}var v=Ve.exec(t);if(!v)return!1;var h=f(v.slice(1),8),g=h[0],y=h[1],m=h[2],w=h[3],b=h[4],x=h[5],S=void 0===x?"0":x,O=h[6],E=void 0===O?"":O,_=h[7],A=Number("".concat(E,"00").slice(0,3));if(!He(Number(g),Number(y),Number(m),Number(w),Number(b),Number(S),A,!0))return!1;if("Z"===_)return!0;var j=Number(_.slice(1,3)),T=Number(_.slice(4,6));return j<=23&&T<=59}function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";void 0===e&&(e=new Date);var r=new Date(e);if(!Number.isFinite(r.getTime()))throw new RangeError("Invalid date");var n=r.getHours(),o={yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate()<10?"0"+r.getDate():r.getDate(),HH:n<10?"0"+n:n,hh:(n%12||12)<10?"0"+(n%12||12):n%12||12,mm:r.getMinutes()<10?"0"+r.getMinutes():r.getMinutes(),ss:r.getSeconds()<10?"0"+r.getSeconds():r.getSeconds(),a:n<12?"AM":"PM"},i=t||"yyyy-MM-dd";return Object.keys(o).forEach(function(e){var t=o[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),i=i.split(e).join(String(t))}),i}function Je(e){return Ge(void 0===e?new Date:new Date(e instanceof Date?e.getTime():e),"yyyy.MMdd.HHmmss").split(".").map(function(e){return String(Number(e))}).join(".")}function Ke(e){return/^1\d{10}$/.test(e)}function Qe(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function Xe(e){if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);for(var t="";e>0;){var r=e%26;0===r&&(r=26),t=String.fromCharCode(r+96)+t,e=(e-r)/26}return t}function et(){return"v4"}function tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return!0===e},n=t.interval,o=void 0===n?1e3:n,i=t.times,a=void 0===i?10:i,c=t.context,s=t.args;if("function"==typeof e){if(!Number.isFinite(o)||o<0)console.error("Expected a non-negative number for interval.");else if(!Number.isFinite(a)||a<0)console.error("Expected a non-negative number for times.");else if(0!==a){var f=0,l=function(){setTimeout(u(R.mark(function t(){var n;return R.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.apply(c,s);case 1:if(n=t.sent,!(r(n)||++f>=a)){t.next=2;break}return t.abrupt("return");case 2:l();case 3:case"end":return t.stop()}},t)})),o)};l()}}else console.error("Expected a function.")}function rt(e){return nt.apply(this,arguments)}function nt(){return(nt=u(R.mark(function e(t){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){setTimeout(function(){e(t)},t)}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ot(e){return it.apply(this,arguments)}function it(){return(it=u(R.mark(function e(t){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",rt(t));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}var at="";function ut(){if(at)return"browser"===at;var e="undefined"!=typeof window;return e&&(at="browser"),e}function ct(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}function st(e){var t=e.indexOf("#"),r=-1===t?e:e.slice(0,t),n=r.indexOf("?"),o=/^(?:[a-z][a-z\d+.-]*:)?\/\//i.test(r)||"/"===r.charAt(0),i=-1===n?o?"":r:r.slice(n+1);return i?i.split("&").reduce(function(e,t){if(!t||-1===t.indexOf("="))return e;var r=t.indexOf("=");return e.push([ct(t.slice(0,r)),ct(t.slice(r+1))]),e},[]):[]}function ft(e,t){return st(e).filter(function(e){return f(e,1)[0]===t}).map(function(e){return f(e,2)[1]})}var lt=/^(?=.{1,39}$)(?!.*--)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/,dt=/^(?=.{1,100}$)(?!\.{1,2}$)[A-Za-z0-9_.-]+$/;function pt(){return new Error("The value does not identify one supported GitHub repository")}function vt(e,t){var r=t.replace(/\.git$/i,"");if(!lt.test(e)||!dt.test(r))throw pt();var n="".concat(e,"/").concat(r);return{owner:e,name:r,slug:n,url:"https://github.com/".concat(n)}}function ht(e){if("string"!=typeof e)throw new TypeError("value must be a string");var t=e.trim();if(!t||/[%\\?#]/.test(t)||function(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<=31||127===r)return!0}return!1}(t))throw pt();var r=t.match(/^(?:github:)?([^/:\s]+)\/([^/\s]+)$/i);if(r)return vt(r[1],r[2]);var n=t.match(/^git@([^:\s]+):([^/\s]+)\/([^/\s]+)$/);if(n&&"github.com"===n[1].toLowerCase())return vt(n[2],n[3]);var o,i=t.replace(/^git\+(?=(?:git|ssh|https?):\/\/)/i,""),a=i.match(/^[a-z][a-z\d+.-]*:\/\/([^/?#]+)/i);if(!a||/(^|\/)\.{1,2}(?:\/|$)/.test(i.slice(a[0].length)))throw pt();if(-1!==a[1].slice(a[1].lastIndexOf("@")+1).indexOf(":")||"function"!=typeof URL)throw pt();try{o=new URL(i)}catch(e){throw pt()}var u=o.protocol.toLowerCase(),c=o.hostname.toLowerCase().replace(/^www\./,"");if(!["git:","ssh:","http:","https:"].includes(u)||"github.com"!==c||""!==o.username&&"git"!==o.username||""!==o.password||""!==o.search||""!==o.hash)throw pt();var s=o.pathname.match(/^\/([^/]+)\/([^/]+)\/?$/);if(!s)throw pt();return vt(s[1],s[2])}function gt(e){return ft(location.search,e)[0]||""}function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""===e&&(e=location.search);var t={};return st(e).forEach(function(e){var r=f(e,2),n=r[0],o=r[1];Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:o,writable:!0})}),t}function mt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ft(e,t);return r.returnArray?n:n.length?n[0]:null}function wt(e,t,r){var n=e.indexOf("#"),o=-1===n?"":e.slice(n),i=-1===n?e:e.slice(0,n),a=i.indexOf("?"),u=-1===a?i:i.slice(0,a),c=-1===a?"":i.slice(a+1),s=encodeURIComponent(t),f=encodeURIComponent(r),l=!1,d=(c?c.split("&").filter(Boolean):[]).reduce(function(e,r){var n=r.indexOf("=");return ct(-1===n?r:r.slice(0,n))===t?l||(e.push("".concat(s,"=").concat(f)),l=!0):e.push(r),e},[]);return l||d.push("".concat(s,"=").concat(f)),"".concat(u,"?").concat(d.join("&")).concat(o)}function bt(e){var t=location.hash.split("?");return 1===t.length?"":ft("?".concat(t.slice(1).join("?")),e)[0]||""}function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["hostname"];if(Rt(e)){var r=new window.URL(e);return t.reduce(function(e,t){return e+=r[t]},"")}var n=document.createElement("a");return n.href=e,t.reduce(function(e,t){return e+=n[t]},"")}function St(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.test(e)}function Ot(e){return void 0===e||Number(e)<=65535}function Et(e){var t=e.split(".");return 4===t.length&&t.every(function(e){return/^\d{1,3}$/.test(e)&&(1===e.length||"0"!==e.charAt(0))&&Number(e)<=255})}function _t(e){var t=e.split("::");if(t.length>2)return!1;var r=2===t.length,n=[];t.forEach(function(e){e&&(n=n.concat(e.split(":")))});for(var o=0,i=0;i<n.length;i++){var a=n[i];if(-1!==a.indexOf(".")){if(i!==n.length-1||!Et(a))return!1;o+=2}else{if(!/^[0-9a-f]{1,4}$/i.test(a))return!1;o+=1}}return r?o<8:8===o}function At(e){var t=e.match(/^\[([0-9a-f:.]+)\]$/i);if(t)return _t(t[1]);if("."===e.charAt(e.length-1)&&(e=e.slice(0,-1)),Et(e))return!0;var r=e.split(".");return!(r.length<2||r.some(function(e){return!e||!/^[a-z\d-]+$/i.test(e)||"-"===e.charAt(0)||"-"===e.charAt(e.length-1)}))&&!/^\d+$/.test(r[r.length-1])}function jt(e){var t=e.match(/^https?:\/\/([^/?#]+)(?:[/?#][^\s<>"`]*)?$/i);if(!t||-1!==t[1].indexOf("@"))return!1;var r=t[1],n=r.match(/^\[([0-9a-f:.]+)\](?::(\d*))?$/i);if(n)return _t(n[1])&&Ot(n[2]);var o=r.match(/^([^:]+)(?::(\d*))?$/);return!(!o||!Ot(o[2]))&&At(o[1])}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0};if("string"!=typeof e||!e||e.trim()!==e)return!1;var r=/^https?:\/\/[^/\\]/i.test(e),n=/^\/\/[^/\\]/.test(e);if(!r&&(t.strict||!n))return!1;var o=n?"http:".concat(e):e;if(!jt(o))return!1;if("function"!=typeof URL)return!0;try{var i=new URL(o);return("http:"===i.protocol||"https:"===i.protocol)&&At(i.hostname)&&!i.username&&!i.password}catch(e){try{return new URL("http://example.com"),!1}catch(e){return jt(o)}}}function kt(e){var t="";if("string"!=typeof e||""==e)return t;var r=e.split(/[?#]/,1)[0],n=/\.[^/]+$/.exec(r);return n?(n[0].length>1&&(t=n[0].substring(1)),t):t}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t||(t=".js");for(var r=document.querySelectorAll("script[src]"),n=0;n<r.length;n++){var o=r[n].getAttribute("src");if(o&&-1!==o.indexOf(t)){var i=ft(o,e)[0];if(void 0!==i)return i}}return""}function Pt(e){return e&&0===Object.keys(e).length?"":"?".concat(Object.keys(e).map(function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))}).join("&"))}function Nt(e){return e.replace(/^http:/,"https:")}function Ct(e){return Nt(e)}function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=window.URL;if("function"!=typeof t)return!1;try{var r=new t(e);return Boolean(r.href)}catch(e){return!1}}function Dt(e){var t="";(!Tt(e)&&Tt(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Rt(e))&&(t=new URL(e).host);return t}function Ut(e){var t="";(!Tt(e)&&Tt(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),Rt(e))&&(t=new URL(e).pathname);return t}function Lt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fireOnInit,r=void 0===t||t,n=history,o=location.href,i=[],a=function(t){var r=location.href;if(r!==o||"load"===t){var n=o;o=r,e({url:r,oldUrl:n,trigger:t})}},u=function(){return a("popstate")},c=function(){return a("hashchange")};window.addEventListener("popstate",u),window.addEventListener("hashchange",c),i.push(function(){return window.removeEventListener("popstate",u)}),i.push(function(){return window.removeEventListener("hashchange",c)}),n.__mazeyUrlChangePatched__||(n.__mazeyUrlChangePatched__=!0,n.__mazeyUrlChangeSubscribers__=new Set,n.__mazeyRawPushState__=history.pushState.bind(history),n.__mazeyRawReplaceState__=history.replaceState.bind(history),history.pushState=function(){n.__mazeyRawPushState__.apply(n,arguments),n.__mazeyUrlChangeSubscribers__.forEach(function(e){return e("pushState")})},history.replaceState=function(){n.__mazeyRawReplaceState__.apply(n,arguments),n.__mazeyUrlChangeSubscribers__.forEach(function(e){return e("replaceState")})});var s=function(e){return a(e)};return n.__mazeyUrlChangeSubscribers__.add(s),i.push(function(){return n.__mazeyUrlChangeSubscribers__.delete(s)}),r&&a("load"),function(){i.forEach(function(e){return e()})}}function zt(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}function It(e){var t=function(e,t){if("object"!=Ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ft(t)?t:t+""}function Bt(e,t,r){return(t=It(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach(function(t){Bt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Zt={enabled:!0,isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",isStringifyObject:!1,logFn:function(){},errorFn:function(){}};function Wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt({},Zt),r=Object.assign(qt({},Zt),t),n=r.enabled,o=r.isClosed,i=r.showWrap,a=r.showDate,u=r.locales,c=r.isStringifyObject,s=r.logFn,f=r.errorFn,l=n;!0===o&&(Vt.warn("The options.isClosed is deprecated. Please use options.enabled instead."),l=!1);var d=Object.create(null),p=function(){return(new Date).toLocaleDateString(u,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach(function(t){d[t]=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(l){var u,d,v=e,h=e;if("string"==typeof e&&e.length>=2){var g=e.length;v=":"===e[g-1]?e.substring(0,g-1):e}if(i&&console.log("--- ".concat(v," - begin ---")),a&&(h=e?"".concat(p()," ").concat(e):"".concat(p())),c&&(n=n.map(function(e){return we(e)?JSON.stringify(e):e})),e||a)(u=console)[t].apply(u,[h].concat(zt(n)));else(d=console)[t].apply(d,zt(n));"log"===t&&s(),"error"===t&&f(),i&&console.log("--- ".concat(v," - end ---"))}}}),d}var Vt=Wt("[Mazey]"),Ht=Wt("",{showDate:!0,locales:"zh-CN",isStringifyObject:!0});function Yt(e,t){if(!e)return Vt.error("The element is not exist."),!1;for(var r=e.className.split(/\s+/),n=0;n<r.length;n++)if(r[n]===t)return!0;return!1}function Gt(e,t){if(e){if(Array.isArray(t))t.forEach(function(t){t&&e.classList.add(t)});else if(t){for(var r=e.className,n=r.split(/\s+/),o=0;o<n.length;o++)if(n[o]===t)return;var i,a="";""!==r&&(a=" "),i=r+a+t,e.className=i}}else Vt.error("The element is not exist.")}function Jt(e,t){Gt(e,t)}function Kt(e,t){var r;e?(r=(r=(r=(r=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=r):Vt.error("The element is not exist.")}function Qt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:""};if(!e)return!1;var r=document.createDocumentFragment(),n=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(n=document.getElementById(o))?n.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,r.appendChild(i),document.head.appendChild(r))):(i.innerHTML=e,r.appendChild(i),document.head.appendChild(r)),!0}function Xt(){var e=window.jQuery||window.$;if(e){var t=e("img");return!(!t||!t.length)&&(t.each(function(){var t=e(this);if(t){var r=t.attr("src");if(r&&"string"==typeof r&&r.length){var n=r.match(/[?&]width=([0-9]+[a-z%]*)/),o=r.match(/[?&]height=([0-9]+[a-z%]*)/);n&&me(n)&&n[1]&&t.width(n[1]),o&&me(o)&&o[1]&&t.height(o[1])}}}),!0)}var r=document.getElementsByTagName("img");return r.length>0&&(Array.from(r).forEach(function(e){var t=e;if(t){var r=t.getAttribute("src");if(r&&"string"==typeof r&&r.length){var n=r.match(/[?&]width=([0-9]+[a-z%]*)/),o=r.match(/[?&]height=([0-9]+[a-z%]*)/);n&&me(n)&&n[1]&&(t.style.width=n[1]),o&&me(o)&&o[1]&&(t.style.height=o[1])}}}),!0)}function er(){return Xt()}function tr(e,t){var r="";return t&&t.length>0&&(r=t.join(";")+";"),"".concat(e,"{").concat(r,"}")}function rr(e){for(var t=document.getElementsByTagName("meta"),r=0;r<t.length;r++)if(t[r].getAttribute("name")===e)return t[r].getAttribute("content")||"";return""}function nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return!1;var r=e.trim();if(!r)return!0===t.allowEmpty;var n=t.root||("undefined"==typeof document?null:document);if(!n)return!1;try{return n.querySelector(r),!0}catch(e){return!1}}function or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.excludeSelector,n=void 0===r?"":r,o=t.replaceImagesWithAlt,i=void 0===o||o,a=t.normalizeWhitespace,u=void 0===a||a,c=e.cloneNode(!0);i&&Array.from(c.querySelectorAll("img[alt]")).forEach(function(e){var t,r=e.getAttribute("alt")||"";null===(t=e.parentNode)||void 0===t||t.replaceChild(c.ownerDocument.createTextNode(r),e)});var s=n.trim();s&&nr(s,{root:c})&&Array.from(c.querySelectorAll(s)).forEach(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)});var f=c.innerText||c.textContent||"";return u?f.replace(/\u00a0/g," ").replace(/\s+/g," ").trim():f}function ir(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ar(){var e=window.MAZEY_DEFINE_LISTENERS;if(e&&"object"==typeof e)return e;var t=Object.create(null);return window.MAZEY_DEFINE_LISTENERS=t,t}function ur(e,t){var r=ar();Array.isArray(r[e])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:[],writable:!0}),"function"==typeof t&&r[e].push(t)}function cr(e,t){var r=ar()[e];if(Array.isArray(r))for(var n=r.slice(),o=0,i=n.length;o<i;o++)"function"==typeof n[o]&&(void 0===t?n[o]():n[o](t))}function sr(e,t){cr(e,t)}function fr(e,t){var r=ar(),n=r[e];if("string"==typeof e&&Array.isArray(n))if("function"==typeof t){for(var o=0,i=n.length;o<i;o++)if(n[o]===t){r[e].splice(o,1);break}}else delete r[e]}function lr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=JSON.stringify(t);sessionStorage.setItem(e,void 0===r?"null":r)}}function dr(e){var t=null;if(e){var r=sessionStorage.getItem(e);if(r)try{t=JSON.parse(r)}catch(e){t=r}}return t}function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=JSON.stringify(t);localStorage.setItem(e,void 0===r?"null":r)}}function vr(e){var t=null;if(e){var r=localStorage.getItem(e);if(r)try{t=JSON.parse(r)}catch(e){t=r}}return t}var hr="__mazey_cookie_name_encoded__-",gr="__mazey_cookie_value_encoded__-";function yr(e){return"".concat(gr).concat(encodeURIComponent(e))}function mr(e){var t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/.test(e),r=0===e.indexOf(hr)||0===e.indexOf(gr);return t&&!r?e:function(e){return"".concat(hr).concat(encodeURIComponent(e))}(e)}function wr(e){var t=mr(e);return t!==e?[t,e]:[e]}function br(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){var o=r[n].trim();if(0===o.indexOf(t))return o.substring(t.length)}}function xr(e){for(var t=wr(e),r="1"===br(yr(e)),n=0;n<t.length;n++){var o=br(t[n]);if(void 0!==o){if(r)try{return decodeURIComponent(o)}catch(e){return o}return o}}return""}function Sr(e,t,r,n){var o;if(r){var i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3),o="; expires="+i.toUTCString()}else o="";var a=function(e){for(var t=!0,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(!(33===n||n>=35&&n<=43||n>=45&&n<=58||n>=60&&n<=91||n>=93&&n<=126)){t=!1;break}}return{isEncoded:!t,value:t?e:encodeURIComponent(e)}}(t),u=mr(e),c=a.isEncoded?"1":"",s=a.isEncoded?o:"; expires=Thu, 01 Jan 1970 00:00:00 GMT",f=["".concat(u,"=").concat(a.value).concat(o,"; path=/"),"".concat(yr(e),"=").concat(c).concat(s,"; path=/")],l=function(e){var t=e?"; domain=".concat(e):"";f.forEach(function(e){document.cookie="".concat(e).concat(t)})},d=location.hostname;if(n)l(n);else if(-1===d.indexOf("."))l();else{var p=d.split(".");p.shift(),l("."+p.join(".")),xr(e)!==t&&l(".".concat(d))}}function Or(e){var t=wr(e),r=t.concat(yr(e)),n=new Date;n.setTime(n.getTime()-1);var o=t.some(function(e){return void 0!==br(e)});return r.forEach(function(e,t){r.indexOf(e)===t&&void 0!==br(e)&&["".concat(e,"=; expires=").concat(n.toUTCString()),"".concat(e,"=; expires=").concat(n.toUTCString(),"; path=/")].forEach(function(e){document.cookie=e;var t=location.hostname;if(-1!==t.indexOf("."))for(var r=t.split("."),n=0;n<r.length;n++)document.cookie="".concat(e,"; domain=.").concat(r.slice(n).join("."))})}),o&&r.every(function(e){return void 0===br(e)})}function Er(e){Or(e)}function _r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach(function(t){Bt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jr(e){var t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:""}).id,n=function(){},o=new Promise(function(e,r){t=e,n=r}),i=function(){f(),t("loaded")},a=document.createElement("link");a||n(new Error("Not support create link element"));var u="onload"in a,c=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),c||!u)return setTimeout(function(){l(a,i,0)},1),o;function s(){i()}function f(){a&&(a.onload=a.onerror=a.onreadystatechange=null),a=null}function l(e,t,r){if(e){var n,o=e.sheet;if((r+=1)>3e5)return n=!0,e&&(e=null),void t();if(c)o&&(n=!0);else if(o)try{o.cssRules&&(n=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(n=!0)}setTimeout(function(){n?t():l(e,t,r)},20)}}return u?(a.onload=s,a.onerror=function(){f(),n(new Error("Failed to load CSS: ".concat(e)))}):a.onreadystatechange=function(){a&&/loaded|complete/.test(a.readyState)&&s()},o}var Tr={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null,cssUrl:""};function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ar({},Tr),r=Object.assign(Ar({},Tr),t),n=r.id,o=r.callback,i=r.timeout,a=r.isDefer,u=r.isAsync,c=r.isCrossOrigin,s=r.attributes,f=r.cssUrl;if(f){var l=function(e,t){if(!t)return"";if(Tt(t))return t;try{var r=new URL(e,location.href);return new URL(t,r).href}catch(r){var n=e.split("/");return n.pop(),"".concat(n.join("/"),"/").concat(t)}}(e,f);l&&jr(l).catch(function(e){console.error("Failed to load CSS from ".concat(l,": ").concat(null==e?void 0:e.message))})}return new Promise(function(t,r){var f=document.createElement("script"),l=!1,d=null,p=function(){f.onload=null,f.onerror=null,f.onreadystatechange=null,null!==d&&(clearTimeout(d),d=null)},v=function(){if(!l){l=!0,p();try{ye(o),t("loaded")}catch(e){r(e)}}},h=function(e){l||(l=!0,p(),r(e))};f.type="text/javascript",f.defer=Boolean(a),f.async=Boolean(u),c&&(f.crossOrigin="anonymous"),n&&(f.id=n),s&&Object.keys(s).forEach(function(e){f.setAttribute(e,s[e])}),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||v()}:f.onload=v,f.onerror=function(){return h(new Error("Failed to load script: ".concat(e)))},f.src=e,i&&(d=setTimeout(function(){return h(new Error("timeout"))},i));var g=document.getElementsByTagName("script")[0];null!=g&&g.parentNode?g.parentNode.insertBefore(f,g):(document.head||document.body||document.documentElement).appendChild(f)})}function Mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;return new Promise(function(t,r){var n=null,o=function(){window.removeEventListener("load",i),null!==n&&(clearTimeout(n),n=null)},i=function(){o(),t("load")};"complete"!==document.readyState?(window.addEventListener("load",i),n=setTimeout(function(){o(),r(new Error("timeout"))},e)):t("complete")})}function Pr(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=function(e){r(e)},n.src=e})}function Nr(e,t){var r;if(window[e])return Promise.resolve("defined");var n=Cr.get(e),o=null===(r=n)||void 0===r?void 0:r.get(t);if(o)return o;n||(n=new Map,Cr.set(e,n));var i=function(){var r,o;null===(r=n)||void 0===r||r.delete(t),0===(null===(o=n)||void 0===o?void 0:o.size)&&Cr.delete(e)},a=kr(t).then(function(e){return i(),e},function(e){throw i(),e});return n.set(t,a),a}var Cr=new Map;function Rr(e){if("undefined"==typeof window)return!1;var t=[],r=window.PerformanceObserver;return!!r&&(me(r.supportedEntryTypes)&&(t=r.supportedEntryTypes),t.includes(e))}function Dr(){return Ur.apply(this,arguments)}function Ur(){return(Ur=u(R.mark(function e(){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Rr("paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-contentful-paint"===e.name});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Lr(){return zr.apply(this,arguments)}function zr(){return(zr=u(R.mark(function e(){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Rr("paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-paint"===e.name});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Fr(){return Ir.apply(this,arguments)}function Ir(){return(Ir=u(R.mark(function e(){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Rr("largest-contentful-paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"largest-contentful-paint"===e.entryType});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"largest-contentful-paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Br(){return $r.apply(this,arguments)}function $r(){return($r=u(R.mark(function e(){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Rr("first-input")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-input"===e.entryType});if(n){t.disconnect();var o=n.processingStart;e(o?Math.round(n.processingStart-n.startTime):0)}});t.observe({type:"first-input",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function qr(){return Zr.apply(this,arguments)}function Zr(){return(Zr=u(R.mark(function e(){return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Rr("layout-shift")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().reduce(function(e,t){var r=0;return he(t.value)&&(r=t.value),e+r},0);t.disconnect(),e(n)});t.observe({type:"layout-shift",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wr(){return Vr.apply(this,arguments)}function Vr(){return(Vr=u(R.mark(function e(){var t,r;return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Rr("navigation")){e.next=1;break}return e.abrupt("return",0);case 1:if(window.performance&&window.performance.getEntriesByType){e.next=2;break}return e.abrupt("return",0);case 2:if(t=window.performance.getEntriesByType("navigation")[0],r=0,t){e.next=3;break}return e.abrupt("return",0);case 3:return r=t.responseStart-t.requestStart,e.abrupt("return",Math.round(r));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Hr(){return Yr.apply(this,arguments)}function Yr(){return Yr=u(R.mark(function e(){var t,r,n,o,i,a,u,c,s,l,d,p,v,h,g,y,m,w,b,x,S,O,E,_,A,j,T,k,M,P,N,C,D,U,L,z,F,I,B,$,q,Z,W,V=arguments;return R.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(W=function(e,t){var r=0;return t&&(r=e-t),r},Z=function(){var e="";return window.screen&&window.screen.orientation&&"number"==typeof window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e},q=function(){var e="",t=window.navigator;if(t.connection&&t.connection.effectiveType)switch(t.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e},$=function(){var e,t=navigator.userAgent.toLowerCase(),r=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",o=t.match(/midp/i)&&"midp",i=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=t.match(/ucweb/i)&&"ucweb",u=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",s=t.match(/windows mobile/i)&&"windows mobile";return(e=r||n||o||i||a||u||c||s?n||o||i||a||u||c||s?"phone":r?"ipad":void 0:"pc")||(e=""),e},B=function(){var e="",t=navigator.userAgent,r=t.indexOf("Android")>-1,n=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(r&&(e=(i.match(/\d+\.\d+/g)||[])[0]),n&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e},I=function(){return navigator.userAgent.indexOf("Android")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"},F=function(){if(i){var e=i;j=e.decodedBodySize,T=e.encodedBodySize;var r=i;s=r.unloadEventEnd,l=r.unloadEventStart,d=r.redirectEnd,p=r.redirectStart,v=r.domainLookupEnd,h=r.domainLookupStart,g=r.connectEnd,y=r.connectStart,m=r.secureConnectionStart,w=r.responseStart,b=r.requestStart,x=r.responseEnd,S=r.domContentLoadedEventStart,O=r.loadEventStart,E=r.loadEventEnd,_=r.startTime,A=r.fetchStart}else k&&(s=k.unloadEventEnd,l=k.unloadEventStart,d=k.redirectEnd,p=k.redirectStart,v=k.domainLookupEnd,h=k.domainLookupStart,g=k.connectEnd,y=k.connectStart,m=k.secureConnectionStart,w=k.responseStart,b=k.requestStart,x=k.responseEnd,S=k.domContentLoadedEventStart,O=k.loadEventStart,E=k.loadEventEnd,_=k.navigationStart,A=k.fetchStart);he(_)?C=_:he(A)&&(C=A);var o={source:M,os:I(),osVersion:B(),deviceType:$(),network:q(),screenDirection:Z(),unloadTime:s-l,redirectTime:d-p,dnsTime:v-h,tcpTime:g-y,sslTime:W(g,m),responseTime:w-b,downloadTime:x-w,firstPaintTime:L,firstContentfulPaintTime:z,domReadyTime:S-C,onloadTime:O-C,whiteTime:w-C,renderTime:E-C,decodedBodySize:j,encodedBodySize:T};Object.keys(o).forEach(function(e){he(o[e])&&(o[e]<0?o[e]=0:o[e]=Math.round(o[e]))}),he(o.whiteTime)&&o.whiteTime>o.onloadTime&&(o.whiteTime=0);var a={};t||Object.keys(o).forEach(function(e){a[Y(e)]=o[e]}),Object.keys(a).length?n(a):n(o)},t=V.length>0&&void 0!==V[0]&&V[0],Rr("navigation")){e.next=1;break}return e.abrupt("return",Promise.reject(new Error("navigation is not supported")));case 1:if((r=window.performance)&&"function"==typeof r.getEntries&&"function"==typeof r.getEntriesByType){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("performance is not supported")));case 2:if(o=new Promise(function(e){n=e}),i=null,me(a=r.getEntriesByType("navigation"))&&(i=a[0]),u=new Array(19).fill(0),c=f(u,19),s=c[0],l=c[1],d=c[2],p=c[3],v=c[4],h=c[5],g=c[6],y=c[7],m=c[8],w=c[9],b=c[10],x=c[11],S=c[12],O=c[13],E=c[14],_=c[15],A=c[16],j=c[17],T=c[18],k=r.timing,M="",!i){e.next=3;break}M="PerformanceNavigationTiming",j=(P=i).decodedBodySize,T=P.encodedBodySize,s=(N=i).unloadEventEnd,l=N.unloadEventStart,d=N.redirectEnd,p=N.redirectStart,v=N.domainLookupEnd,h=N.domainLookupStart,g=N.connectEnd,y=N.connectStart,m=N.secureConnectionStart,w=N.responseStart,b=N.requestStart,x=N.responseEnd,S=N.domContentLoadedEventStart,O=N.loadEventStart,E=N.loadEventEnd,_=N.startTime,A=N.fetchStart,e.next=5;break;case 3:if(!k){e.next=4;break}M="PerformanceTiming",s=k.unloadEventEnd,l=k.unloadEventStart,d=k.redirectEnd,p=k.redirectStart,v=k.domainLookupEnd,h=k.domainLookupStart,g=k.connectEnd,y=k.connectStart,m=k.secureConnectionStart,w=k.responseStart,b=k.requestStart,x=k.responseEnd,S=k.domContentLoadedEventStart,O=k.loadEventStart,E=k.loadEventEnd,_=k.navigationStart,A=k.fetchStart,e.next=5;break;case 4:return e.abrupt("return",Promise.reject(new Error("NavigationTiming and Timing are not supported")));case 5:if(C=0,!he(_)){e.next=6;break}C=_,e.next=8;break;case 6:if(!he(A)){e.next=7;break}C=A,e.next=8;break;case 7:return e.abrupt("return",Promise.reject(new Error("startTime, navigationStart or fetchStart are required")));case 8:return e.next=9,Promise.all([Lr(),Dr()]);case 9:return D=e.sent,U=f(D,2),L=U[0],z=U[1],he(E)&&E>0?F():"complete"===document.readyState?window.setTimeout(F,0):window.addEventListener("load",function e(){window.removeEventListener("load",e),window.setTimeout(function(){F()},0)}),e.abrupt("return",o);case 10:case"end":return e.stop()}},e)})),Yr.apply(this,arguments)}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Jr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(r),!0).forEach(function(t){Bt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof window||"undefined"==typeof navigator)return!1;try{var t;if(null===e||"object"!=typeof e||Array.isArray(e))return!1;var r=e.requireManifest,n=e.scope;if(void 0!==r&&"boolean"!=typeof r||void 0!==n&&"string"!=typeof n)return!1;if(!0!==window.isSecureContext||!("serviceWorker"in navigator))return!1;if(void 0!==n&&!function(e){var t=e.trim();if(!t||/[?#]/.test(t))return!1;try{var r=new URL(window.location.href),n=new URL(t,r);if(n.origin!==r.origin||""!==n.search||""!==n.hash)return!1;if(r.pathname===n.pathname)return!0;var o=n.pathname.endsWith("/")?n.pathname:"".concat(n.pathname,"/");return r.pathname.startsWith(o)}catch(e){return!1}}(n))return!1;if(!1===r)return!0;if("undefined"==typeof document)return!1;var o=document.querySelector('link[rel~="manifest"][href]');return Boolean(null==o||null===(t=o.getAttribute("href"))||void 0===t?void 0:t.trim())}catch(e){return!1}}function Qr(){if("undefined"==typeof window||"undefined"==typeof navigator)return!1;var e=navigator;try{var t=window.matchMedia;if("function"==typeof t&&t.call(window,"(display-mode: standalone)").matches)return!0}catch(e){}try{return!0===e.standalone}catch(e){return!1}}function Xr(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:"",colorScheme:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return e;var r=function(e){return e.test(t)},n=function(e){var r="",n=t.match(e);return n&&me(n)&&(r=(r=(r=n.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),r},o="",i="";r(/windows|win32|win64|wow32|wow64/g)?o="windows":r(/macintosh|macintel/g)?o="macos":r(/x11/g)?o="linux":r(/android|adr/g)?o="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",r(/ipad/g)?i="ipad":r(/iphone/g)?i="iphone":r(/iwatch/g)?i="iwatch":r(/ipod/g)&&(i="ipod")),e=Jr(Jr({},e),{},{system:o,appleType:i});var a="";"windows"===o?r(/windows nt 5.0|windows 2000/g)?a="2000":r(/windows nt 5.1|windows xp/g)?a="xp":r(/windows nt 5.2|windows 2003/g)?a="2003":r(/windows nt 6.0|windows vista/g)?a="vista":r(/windows nt 6.1|windows 7/g)?a="7":r(/windows nt 6.2|windows 8/g)?a="8":r(/windows nt 6.3|windows 8.1/g)?a="8.1":r(/windows nt 10.0|windows 10/g)&&(a="10"):"macos"===o?a=n(/os x [\d._]+/g):"android"===o?a=n(/android [\d._]+/g):"ios"===o&&(a=n(/os [\d._]+/g)),e=Jr(Jr({},e),{},{systemVs:a});var u="";"windows"===o||"macos"===o||"linux"===o?u="desktop":("android"===o||"ios"===o||r(/mobile/g))&&(u="mobile"),e=Jr(Jr({},e),{},{platform:u});var c="",s="";r(/applewebkit/g)?(c="webkit",r(/edg(?:a|ios)?\//g)||r(/edge\//g)?s="edge":r(/opr/g)?s="opera":r(/chrome/g)?s="chrome":r(/safari/g)&&(s="safari")):r(/gecko/g)&&r(/firefox/g)?(c="gecko",s="firefox"):r(/presto/g)?(c="presto",s="opera"):r(/trident|compatible|msie/g)&&(c="trident",s="iexplore"),e=Jr(Jr({},e),{},{engine:c,supporter:s});var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g)),e=Jr(Jr({},e),{},{engineVs:f});var l="";"chrome"===s?l=n(/chrome\/[\d._]+/g):"safari"===s?l=n(/version\/[\d._]+/g):"firefox"===s?l=n(/firefox\/[\d._]+/g):"opera"===s?l=n(/opr\/[\d._]+/g):"iexplore"===s?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(l=n(/(?:edge|edg|edga|edgios)\/[\d._]+/g)),e=Jr(Jr({},e),{},{supporterVs:l});var d="",p="";r(/micromessenger/g)?(d="wechat",p=n(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(d="qq_browser",p=n(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?d="qq_app":r(/ucbrowser/g)?(d="uc",p=n(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?d="360":r(/2345explorer/g)?(d="2345",p=n(/2345explorer\/[\d._]+/g)):r(/metasr/g)?d="sougou":r(/lbbrowser/g)?d="liebao":r(/maxthon/g)?(d="maxthon",p=n(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(d="bilibili"),e=Jr(Jr({},e),{},{shell:d,shellVs:p});var v="";if(window.matchMedia){var h=window.matchMedia("(prefers-color-scheme: dark)"),g=window.matchMedia("(prefers-color-scheme: light)");h.matches?v="dark":g.matches&&(v="light")}return e=Jr(Jr({},e),{},{colorScheme:v}),window.MAZEY_BROWSER_INFO=e,e}catch(t){return Vt.warn(t),e}}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",r=Xr(),n=[];return["system","platform","engine","supporter","shell","appleType"].forEach(function(o){var i=r[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(t)),n.push("".concat(a).concat(i))}}),n}var tn="";function rn(){if(tn)return Promise.resolve("webp"===tn);return new Promise(function(e){var t=new Image;t.onload=function(){var r=t.width>0&&t.height>0;tn=r?"webp":"no-webp",e(r)},t.onerror=function(){tn="no-webp",e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="})}export{Gt as addClass,ur as addEvent,Qt as addStyle,n as calLongestCommonSubsequence,t as calLongestCommonSubstring,Y as camelCase2Underscore,W as camelCaseToKebabCase,ir as cancelBubble,Pe as clearHTML,Ne as clearHtml,Xe as convert10To26,q as convertCamelToKebab,V as convertCamelToUnder,Nt as convertHttpToHttps,Z as convertKebabToCamel,Pt as convertObjectToQuery,je as convertToHtmlBreaks,H as convertUnderToCamel,ze as cutCHSString,Ue as cutZHString,ce as debounce,F as deepCopy,$ as deepCopyObject,B as deepFreeze,Er as delCookie,ye as doFn,or as extractElementText,cr as fireEvent,ae as floatFixed,ie as floatToPercent,Ge as formatDate,ve as formatDurationFromMs,en as genBrowserAttrs,Wt as genCustomConsole,$e as genHashCode,ee as genRndNumString,tr as genStyleString,re as genUniqueNumString,Je as generateCalendarVersion,te as generateRndNum,ne as generateUniqueNum,yt as getAllQueryParams,Xr as getBrowserInfo,qr as getCLS,xr as getCookie,et as getCurrentVersion,le as getDateDifference,ar as getDefineListeners,xt as getDomain,Dr as getFCP,Br as getFID,Lr as getFP,Be as getFileSize,de as getFriendlyInterval,bt as getHashQueryParam,Fr as getLCP,vr as getLocalStorage,rr as getPageMeta,Hr as getPerformance,gt as getQueryParam,Mt as getScriptQueryParam,dr as getSessionStorage,Wr as getTTFB,kt as getUrlFileType,Dt as getUrlHost,mt as getUrlParam,Ut as getUrlPath,Yt as hasClass,i as inRate,sr as invokeEvent,ge as invokeFn,_e as isArray,Se as isBool,Oe as isBoolean,ut as isBrowser,be as isFunction,o as isHit,K as isJSONString,Q as isJsonString,me as isNonEmptyArray,Ae as isNonEmptyObject,he as isNumber,we as isPureObject,Kr as isSafePWAEnv,Qr as isStandalonePWA,xe as isString,rn as isSupportWebp,Rr as isSupportedEntryType,Ee as isUdfOrNul,nr as isValidCssSelector,Ie as isValidData,Ye as isValidDate,Qe as isValidEmail,Tt as isValidHttpUrl,Ke as isValidPhoneNumber,St as isValidUrl,jr as loadCSS,Pr as loadImage,kr as loadScript,Nr as loadScriptIfUndefined,r as longestComSubsequence,e as longestComSubstring,oe as mNow,J as mTrim,Vt as mazeyCon,Te as newLine,Lt as onURLChange,ht as parseGitHubRepository,X as parseJsonSafe,Kt as removeClass,Or as removeCookie,fr as removeEvent,ke as removeHTML,Me as removeHtml,tt as repeatUntilConditionMet,Ct as replaceHttp,Ce as sanitizeInput,Jt as setClass,Sr as setCookie,Xt as setImgSizeBySrc,er as setImgWidHeiBySrc,pr as setLocalStorage,lr as setSessionStorage,qe as sha256Hex,ot as sleep,ue as throttle,Ht as timeCon,G as toJavaScriptGlobalName,Le as truncateZHString,De as unsanitize,Re as unsanitizeInput,wt as updateQueryParam,rt as waitTime,Mr as windowLoaded,Fe as zAxiosIsValidRes};
|
|
6
|
+
function e(e,t){var r=e.length,n=t.length;if(0===r||0===n)return 0;for(var o=Array.from({length:r},function(){return new Array(n).fill(0)}),i=0,a=0;a<r;++a)for(var u=0;u<n;++u)if(e[a]===t[u]){var c=0;a>0&&u>0&&(c=o[a-1][u-1]),o[a][u]=c+1,i=Math.max(i,o[a][u])}return i}function t(t,r){return e(t,r)}function r(e,t){var r=e.length,n=t.length;if(0===r||0===n)return 0;for(var o=Array.from({length:r},function(){return new Array(n).fill(0)}),i=0;i<r;++i)for(var a=0;a<n;++a)if(e[i]===t[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=0,s=0;a>0&&(c=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(c,s)}return o[r-1][n-1]}function n(e,t){return r(e,t)}function o(e){return Math.random()<e}function i(e){return o(e)}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)})}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,p={exports:{}},v={exports:{}};(d=v).exports=function(e,t){this.v=e,this.k=t},d.exports.__esModule=!0,d.exports.default=d.exports;var h=v.exports,g={exports:{}},y={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y);var m=y.exports;!function(e){var t=m;function r(){var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,r,i,a){var u=r&&r.prototype instanceof f?r:f,c=Object.create(u.prototype);return t(c,"_invoke",function(e,t,r){var i,a,u,c=0,f=r||[],l=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return i=e,a=0,u=n,d.n=t,s}};function p(e,t){for(a=e,u=t,o=0;!l&&c&&!r&&o<f.length;o++){var r,i=f[o],p=d.p,v=i[2];e>3?(r=v===t)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=p&&((r=e<2&&p<i[1])?(a=0,d.v=t,d.n=i[1]):p<v&&(r=e<3||i[0]>t||t>v)&&(i[4]=e,i[5]=t,d.n=v,a=0))}if(r||e>1)return s;throw l=!0,t}return function(r,f,v){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&p(f,v),a=f,u=v;(o=a<2?n:u)||!l;){i||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(c=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,u)))throw TypeError("iterator result is not an object");if(!o.done)return o;u=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(l=d.n<0)?u:e.call(t,d))!==s)break}catch(e){i=n,a=1,u=e}finally{c=1}}return{value:o,done:l}}}(e,i,a),!0),c}var s={};function f(){}function l(){}function d(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),v=d.prototype=f.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,u,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=d,t(v,"constructor",d),t(d,"constructor",l),l.displayName="GeneratorFunction",t(d,u,"GeneratorFunction"),t(v),t(v,u,"Generator"),t(v,a,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(g);var w=g.exports,b={exports:{}},x={exports:{}},S={exports:{}};!function(e){var t=h,r=m;e.exports=function e(n,o){function i(e,r,a,u){try{var c=n[e](r),s=c.value;return s instanceof t?o.resolve(s.v).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):o.resolve(s).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,u)})}catch(e){u(e)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(S);var O=S.exports;!function(e){var t=w,r=O;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(x);var E=x.exports;!function(e){var t=E;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(b);var _=b.exports,T={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(T);var A=T.exports,j={exports:{}},M={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(M);var k=M.exports;!function(e){var t=k.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(j);var P=j.exports;!function(e){var t=h,r=w,n=_,o=E,i=O,a=A,u=P;function c(){var s=r(),f=s.m(c),l=(Object.getPrototypeOf?Object.getPrototypeOf(f):f.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function v(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,u(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,t,r,n){return s.w(v(e),t,r,n&&n.reverse())},isGeneratorFunction:d,mark:s.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(d(t)?o:n)(v(e),t,r,i,a)},keys:a,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports}(p);var N=(0,p.exports)(),C=N;try{regeneratorRuntime=N}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=N:Function("r","regeneratorRuntime = r")(N)}var D=l(C);function U(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var F=Function.prototype.toString.call(Object);function L(e){try{return Date.prototype.getTime.call(e)}catch(e){return null}}function z(e,t,r){var n,o=null===(n=Object.getOwnPropertyDescriptor(t,r))||void 0===n?void 0:n.get;if(!o)return!1;try{return o.call(e),!0}catch(e){return!1}}function I(e){return null===e||"object"!=typeof e?e:B(e,function(){if("undefined"!=typeof WeakMap)return new WeakMap;var e=[],t=[];return{get:function(r){var n=e.indexOf(r);return-1===n?void 0:t[n]},set:function(r,n){e.push(r),t.push(n)}}}())}function B(e,t){if(null===e||"object"!=typeof e)return e;var r=e,n=t.get(r);if(void 0!==n)return n;var o=L(r);if(null!==o){var i=new Date(o);return t.set(r,i),i}var a=function(e){var t,r=null===(t=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))||void 0===t?void 0:t.get;if(!r)return null;try{return r.call(e)}catch(e){return null}}(r);if(null!==a){var u=e,c=new RegExp(a,function(e){if("string"==typeof e.flags)return e.flags;var t=e,r="";return t.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}(u));return c.lastIndex=u.lastIndex,t.set(r,c),c}if("undefined"!=typeof ArrayBuffer&&z(r,ArrayBuffer.prototype,"byteLength")){var s=ArrayBuffer.prototype.slice.call(e,0);return t.set(r,s),s}if("undefined"!=typeof SharedArrayBuffer&&z(r,SharedArrayBuffer.prototype,"byteLength")){var f=SharedArrayBuffer.prototype.slice.call(e,0);return t.set(r,f),f}if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)){var l=B(e.buffer,t),d="undefined"!=typeof DataView&&z(r,DataView.prototype,"byteLength")?new DataView(l,e.byteOffset,e.byteLength):new e.constructor(l,e.byteOffset,e.length);return t.set(r,d),d}if("undefined"!=typeof Map&&z(r,Map.prototype,"size")){var p=new Map;return t.set(r,p),Map.prototype.forEach.call(e,function(e,r){p.set(B(r,t),B(e,t))}),p}if("undefined"!=typeof Set&&z(r,Set.prototype,"size")){var v=new Set;return t.set(r,v),Set.prototype.forEach.call(e,function(e){v.add(B(e,t))}),v}var h=Array.isArray(e),g=Object.getPrototypeOf(e),y=function(e){var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.prototype.hasOwnProperty.call(t,"constructor")?t.constructor:null;return"function"==typeof r&&Function.prototype.toString.call(r)===F}(r),m=!h&&!y&&function(e){var t=Object.getPrototypeOf(e),r=null==t?void 0:t.constructor;return"function"==typeof r&&-1===Function.prototype.toString.call(r).indexOf("[native code]")}(r);if(!h&&!y&&!m)return t.set(r,e),e;var w=h?new Array(e.length):Object.create(m?Object.prototype:g);return t.set(r,w),function(e){var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t}(r).forEach(function(e){if(!h||"length"!==e){var n=Object.getOwnPropertyDescriptor(r,e);n&&("value"in n&&(n.value=B(n.value,t)),Object.defineProperty(w,e,n))}}),w}function $(e){return!e||"object"!=typeof e||Object.isFrozen(e)||(Object.freeze(e),Object.values(e).forEach($)),e}function q(e){return I(e)}function Y(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===t[0]?t.substring(1):t}function Z(e){var t=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return t.endsWith("-")?t.slice(0,-1):t}function H(e){return Y(e)}function W(e){var t=e.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===t[0]?t.substring(1):t}function V(e){return e.replace(/_([a-z])/g,function(e,t){return t.toUpperCase()})}function G(e){return W(e)}function J(e){if("string"!=typeof e)throw new TypeError("value must be a string");var t=e.replace(/[^A-Za-z0-9_$]/g,"_").toUpperCase();return/^[A-Za-z_$]/.test(t)?t:"_".concat(t)}function K(e){for(var t=(e=e.replace(/^\s+/,"")).length-1,r=/\s/;r.test(e.charAt(t));)t--;return e.slice(0,t+1)}function Q(e){if("string"!=typeof e)return!1;try{return JSON.parse(e),!0}catch(e){}return!1}function X(e){return Q(e)}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(e)}catch(e){return t}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);for(var t="";e--;)t+=Math.floor(10*Math.random());return t}function re(){return te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:5)}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=[ie(),re(e||3)];return t[0]+t[1]}function oe(){return ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3)}function ie(){return Date.now?Date.now():(new Date).getTime()}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="";return r=t?(100*e).toFixed(t):String(Math.floor(100*e)),"".concat(r,"%")}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(String(e)).toFixed(t)}function ce(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign({},r);var n=null,o=null,i=null,a=null,u=0,c=function(){u=!1===r.leading?0:ie(),i=null,a=e.apply(this,o),i||(n=o=null)};return function(){var s=ie();u||!1!==r.leading||(u=s);var f=t-(s-u);n=this;for(var l=arguments.length,d=new Array(l),p=0;p<l;p++)d[p]=arguments[p];return o=d,f<=0||f>t?(i&&(clearTimeout(i),i=null),u=s,a=e.apply(n,o),i||(n=o=null)):i||!1===r.trailing||(i=setTimeout(c.bind(n),f)),a}}function se(e,t,r){var n=null,o=null,i=null,a=null,u=null,c=function(){var s=ie()-i;s<t&&s>=0?o=setTimeout(c,t-s):(o=null,r||(u=e.apply(n,a),o||(n=a=null)))};return function(){n=this;for(var s=arguments.length,f=new Array(s),l=0;l<s;l++)f[l]=arguments[l];a=f,i=ie();var d=r&&!o;return o||(o=setTimeout(c,t)),d&&(u=e.apply(n,a),n=a=null),u}}var fe={type:"d"};function le(e){return"string"==typeof e&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)?e.replace(" ","T"):e}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe,n=(r=Object.assign({},fe,r)).type;ge(e)||(e=new Date(le(e)).getTime()),ge(t)||(t=new Date(le(t)).getTime());var o=Number(t)-Number(e),i="",a=f(new Array(4).fill(0),4),u=a[0],c=(a[1],a[2],a[3]);if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),n){case"d":i=u;break;case"text":i=[{value:u=Math.floor(o/1e3/60/60/24),unit:"day"},{value:Math.floor(o/1e3/60/60%24),unit:"hour"},{value:Math.floor(o/1e3/60%60),unit:"minute"},{value:c=Math.floor(o/1e3%60),unit:"second"}].filter(function(e){return e.value>0}).map(function(e){return ve(e.value,e.unit)}).join(" ")||ve(0,"second");break;default:i=c}return i}function pe(){return de(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe)}function ve(e,t){var r=Math.round(10*e)/10,n=1===r?t:"".concat(t,"s");return"".concat(r," ").concat(n)}function he(e){var t=(Number.isFinite(e)?Math.max(e,0):0)/1e3;return t>=86400?ve(t/24/60/60,"day"):t>=3600?ve(t/60/60,"hour"):t>=60?ve(t/60,"minute"):ve(t,"second")}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isNaNAsNumber,n=void 0!==r&&r,o=t.isInfinityAsNumber,i=void 0!==o&&o,a=t.isUnFiniteAsNumber;return"number"==typeof e&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(e))&&!(!n&&isNaN(e)))}function ye(e){var t=null;if(e&&"function"==typeof e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t=e.apply(void 0,n)}return t}function me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ye.apply(void 0,[e].concat(r))}function we(e){var t=!1;return Array.isArray(e)&&e.length&&(t=!0),t}function be(e){var t=Boolean(e),r="object"==typeof e,n="[object Object]"===Object.prototype.toString.call(e);return t&&r&&n}function xe(e){return"function"==typeof e}function Se(e){return"string"==typeof e}function Oe(e){return"boolean"==typeof e}function Ee(e){return Oe(e)}function _e(e){return null==e}function Te(e){return"[object Array]"===Object.prototype.toString.call(e)}function Ae(e){return!!be(e)&&0!==Object.keys(e).length}function je(e){if(!e)return"";var t=new RegExp("\\n","g");return e.replace(t,"<br />")}function Me(e){return je(e)}function ke(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeNewLine,r=void 0!==t&&t,n="";return e&&(n=e.replace(/<\/?.+?>/g,""),r&&(n=n.replace(/[\r\n]/g,""))),n}function Pe(e){return ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Ne(e){return ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Ce(e){return ke(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function De(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/[&<>"'/]/g,function(e){return t[e]})}function Ue(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof e)throw new Error("Input must be a string");return e.replace(/(&|<|>|"|'|/)/g,function(e){return t[e]})}function Re(e){return Ue(e)}function Fe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{hasDot:!1,dotText:"..."};if(r=Object.assign({hasDot:!1,dotText:"..."},r),""!=e&&e){for(var n=0,o="",i=/[^\x00-\xff]/g,a="",u=e.replace(i,"**").length,c=0;c<u&&(null!=(a=e.charAt(c).toString()).match(i)?n+=2:n++,!(n>t));c++)o+=a;return r.hasDot&&u>t&&(o+=r.dotText),o}return""}function Le(e,t){return Fe(e,t,{hasDot:arguments.length>2&&void 0!==arguments[2]&&arguments[2]})}function ze(e,t){return Le(e,t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}function Ie(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{validStatusRange:[200,300],validCode:[0]})||{},r=t.validStatusRange,n=void 0===r?[200,300]:r,o=t.validCode,i=void 0===o?[0]:o;2!==n.length&&console.error("valid validStatusRange is required");var a=!1;if(e&&e.status&&2===n.length&&e.status>=n[0]&&e.status<n[1]){var u=e.data;u&&i.includes(u.code)&&(a=!0)}return a}function Be(e,t,r){if(null===e||"object"!=typeof e)return!1;var n,o=e,i=U(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(null===o||"object"!=typeof o&&"function"!=typeof o||!Object.prototype.hasOwnProperty.call(o,a))return!1;o=o[a]}}catch(e){i.e(e)}finally{i.f()}return o===r}function $e(e){var t=function(e){return String(Math.ceil(e))};if(!Number.isFinite(e)||e<=0)return"";var r=1024;return e<r?e+" B":e<Math.pow(r,2)?t(e/r)+" KB":e<Math.pow(r,3)?t(e/Math.pow(r,2))+" MB":e<Math.pow(r,4)?t(e/Math.pow(r,3))+" G":t(e/Math.pow(r,4))+" T"}function qe(e){var t,r=0;for(t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r}function Ye(e){return Ze.apply(this,arguments)}function Ze(){return(Ze=u(D.mark(function e(t){var r,n,o,i,a,u,c;return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r="undefined"==typeof crypto?null:crypto)&&r.subtle&&"function"==typeof r.subtle.digest){e.next=1;break}throw new Error("Web Crypto API is not available.");case 1:if(n=t,"string"!=typeof t){e.next=3;break}if("undefined"!=typeof TextEncoder){e.next=2;break}throw new Error("TextEncoder is not available.");case 2:n=(new TextEncoder).encode(t);case 3:return e.next=4,r.subtle.digest("SHA-256",n);case 4:for(o=e.sent,i="",a=new Uint8Array(o),u=0;u<a.length;u++)c=a[u].toString(16),i+=1===c.length?"0".concat(c):c;return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}var He=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2})(?::(\d{2}))?)?$/,We=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?(Z|[+-]\d{2}:\d{2})$/;function Ve(e,t,r,n,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=new Date(0);return u?(c.setUTCFullYear(e,t-1,r),c.setUTCHours(n,o,i,a),Number.isFinite(c.getTime())&&c.getUTCFullYear()===e&&c.getUTCMonth()===t-1&&c.getUTCDate()===r&&c.getUTCHours()===n&&c.getUTCMinutes()===o&&c.getUTCSeconds()===i&&c.getUTCMilliseconds()===a):(c.setFullYear(e,t-1,r),c.setHours(n,o,i,a),Number.isFinite(c.getTime())&&c.getFullYear()===e&&c.getMonth()===t-1&&c.getDate()===r&&c.getHours()===n&&c.getMinutes()===o&&c.getSeconds()===i&&c.getMilliseconds()===a)}function Ge(e){if("number"==typeof e){var t=new Date(e);return Number.isFinite(e)&&Number.isFinite(t.getTime())?t:null}if("object"==typeof e&&null!==e){var r=L(e);return null!==r&&Number.isFinite(r)?new Date(r):null}if("string"!=typeof e)return null;var n=e.trim();if(!n)return null;var o=He.exec(n);if(o){var i=f(o.slice(1),6),a=i[0],u=i[1],c=i[2],s=i[3],l=void 0===s?"0":s,d=i[4],p=void 0===d?"0":d,v=i[5],h=f([a,u,c,l,p,void 0===v?"0":v].map(Number),6),g=h[0],y=h[1],m=h[2],w=h[3],b=h[4],x=h[5];return Ve(g,y,m,w,b,x)?function(e,t,r,n,o,i){var a=new Date(0);return a.setFullYear(e,t-1,r),a.setHours(n,o,i,0),a}(g,y,m,w,b,x):null}var S=We.exec(n);if(!S)return null;var O=f(S.slice(1),8),E=O[0],_=O[1],T=O[2],A=O[3],j=O[4],M=O[5],k=void 0===M?"0":M,P=O[6],N=void 0===P?"":P,C=O[7],D=Number("".concat(N,"00").slice(0,3));if(!Ve(Number(E),Number(_),Number(T),Number(A),Number(j),Number(k),D,!0))return null;if("Z"!==C){var U=Number(C.slice(1,3)),R=Number(C.slice(4,6));if(U>23||R>59)return null}return function(e,t,r,n,o,i,a,u){var c=new Date(0);if(c.setUTCFullYear(e,t-1,r),c.setUTCHours(n,o,i,a),"Z"===u)return c;var s="+"===u[0]?1:-1,f=60*Number(u.slice(1,3))+Number(u.slice(4,6));return new Date(c.getTime()-s*f*60*1e3)}(Number(E),Number(_),Number(T),Number(A),Number(j),Number(k),D,C)}function Je(e){return null!==Ge(e)}function Ke(e){var t=Ge(e);if(!t)return!1;var r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function Qe(e){var t=Ge(e);return null!==t&&t.getFullYear()===(new Date).getFullYear()}function Xe(e){var t=Ge(e);if(!t)return!1;var r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function et(e){var t=Ge(e);if(!t)return!1;var r=new Date,n=(r.getDay()+6)%7;r.setHours(0,0,0,0),r.setDate(r.getDate()-n);var o=new Date(r.getTime());o.setDate(o.getDate()+7);var i=t.getTime();return i>=r.getTime()&&i<o.getTime()}function tt(e){var t=Ge(e);if(!t)return!1;var r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()&&t.getHours()===r.getHours()}function rt(e,t){var r=Math.max(1,Math.round(e));return"about ".concat(r," ").concat(t).concat(1===r?"":"s")}function nt(e){var t=Ge(e);if(!t)return"";var r=6e4,n=36e5,o=864e5,i=Math.abs(t.getTime()-Date.now());return i<3e4?"less than a minute":i<9e4?"about 1 minute":i<27e5?rt(i/r,"minute"):i<54e5?"about 1 hour":i<864e5?rt(i/n,"hour"):i<1512e5?"about 1 day":i<30*o?rt(i/o,"day"):i<45*o?"about 1 month":i<365*o?rt(i/(30*o),"month"):i<545*o?"about 1 year":rt(i/(365*o),"year")}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";void 0===e&&(e=new Date);var r=new Date(e);if(!Number.isFinite(r.getTime()))throw new RangeError("Invalid date");var n=r.getHours(),o={yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate()<10?"0"+r.getDate():r.getDate(),HH:n<10?"0"+n:n,hh:(n%12||12)<10?"0"+(n%12||12):n%12||12,mm:r.getMinutes()<10?"0"+r.getMinutes():r.getMinutes(),ss:r.getSeconds()<10?"0"+r.getSeconds():r.getSeconds(),a:n<12?"AM":"PM"},i=t||"yyyy-MM-dd";return Object.keys(o).forEach(function(e){var t=o[e];"MM"===e&&Number(t)<=9&&(t="0".concat(t)),i=i.split(e).join(String(t))}),i}function it(e){return ot(void 0===e?new Date:new Date(e instanceof Date?e.getTime():e),"yyyy.MMdd.HHmmss").split(".").map(function(e){return String(Number(e))}).join(".")}function at(e){return/^1\d{10}$/.test(e)}function ut(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function ct(e){if(!Number.isFinite(e)||e<=0)return"";e=Math.floor(e);for(var t="";e>0;){var r=e%26;0===r&&(r=26),t=String.fromCharCode(r+96)+t,e=(e-r)/26}return t}function st(){return"v4"}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return!0===e},n=t.interval,o=void 0===n?1e3:n,i=t.times,a=void 0===i?10:i,c=t.context,s=t.args;if("function"==typeof e){if(!Number.isFinite(o)||o<0)console.error("Expected a non-negative number for interval.");else if(!Number.isFinite(a)||a<0)console.error("Expected a non-negative number for times.");else if(0!==a){var f=0,l=function(){setTimeout(u(D.mark(function t(){var n;return D.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.apply(c,s);case 1:if(n=t.sent,!(r(n)||++f>=a)){t.next=2;break}return t.abrupt("return");case 2:l();case 3:case"end":return t.stop()}},t)})),o)};l()}}else console.error("Expected a function.")}function lt(e){return dt.apply(this,arguments)}function dt(){return(dt=u(D.mark(function e(t){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){setTimeout(function(){e(t)},t)}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function pt(e){return vt.apply(this,arguments)}function vt(){return(vt=u(D.mark(function e(t){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",lt(t));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}var ht="";function gt(){if(ht)return"browser"===ht;var e="undefined"!=typeof window;return e&&(ht="browser"),e}function yt(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}function mt(e){var t=e.indexOf("#"),r=-1===t?e:e.slice(0,t),n=r.indexOf("?"),o=/^(?:[a-z][a-z\d+.-]*:)?\/\//i.test(r)||"/"===r.charAt(0),i=-1===n?o?"":r:r.slice(n+1);return i?i.split("&").reduce(function(e,t){if(!t||-1===t.indexOf("="))return e;var r=t.indexOf("=");return e.push([yt(t.slice(0,r)),yt(t.slice(r+1))]),e},[]):[]}function wt(e,t){return mt(e).filter(function(e){return f(e,1)[0]===t}).map(function(e){return f(e,2)[1]})}var bt=/^(?=.{1,39}$)(?!.*--)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/,xt=/^(?=.{1,100}$)(?!\.{1,2}$)[A-Za-z0-9_.-]+$/;function St(){return new Error("The value does not identify one supported GitHub repository")}function Ot(e,t){var r=t.replace(/\.git$/i,"");if(!bt.test(e)||!xt.test(r))throw St();var n="".concat(e,"/").concat(r);return{owner:e,name:r,slug:n,url:"https://github.com/".concat(n)}}function Et(e){if("string"!=typeof e)throw new TypeError("value must be a string");var t=e.trim();if(!t||/[%\\?#]/.test(t)||function(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<=31||127===r)return!0}return!1}(t))throw St();var r=t.match(/^(?:github:)?([^/:\s]+)\/([^/\s]+)$/i);if(r)return Ot(r[1],r[2]);var n=t.match(/^git@([^:\s]+):([^/\s]+)\/([^/\s]+)$/);if(n&&"github.com"===n[1].toLowerCase())return Ot(n[2],n[3]);var o,i=t.replace(/^git\+(?=(?:git|ssh|https?):\/\/)/i,""),a=i.match(/^[a-z][a-z\d+.-]*:\/\/([^/?#]+)/i);if(!a||/(^|\/)\.{1,2}(?:\/|$)/.test(i.slice(a[0].length)))throw St();if(-1!==a[1].slice(a[1].lastIndexOf("@")+1).indexOf(":")||"function"!=typeof URL)throw St();try{o=new URL(i)}catch(e){throw St()}var u=o.protocol.toLowerCase(),c=o.hostname.toLowerCase().replace(/^www\./,"");if(!["git:","ssh:","http:","https:"].includes(u)||"github.com"!==c||""!==o.username&&"git"!==o.username||""!==o.password||""!==o.search||""!==o.hash)throw St();var s=o.pathname.match(/^\/([^/]+)\/([^/]+)\/?$/);if(!s)throw St();return Ot(s[1],s[2])}function _t(e){return wt(location.search,e)[0]||""}function Tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""===e&&(e=location.search);var t={};return mt(e).forEach(function(e){var r=f(e,2),n=r[0],o=r[1];Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:o,writable:!0})}),t}function At(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=wt(e,t);return r.returnArray?n:n.length?n[0]:null}function jt(e,t,r){var n=e.indexOf("#"),o=-1===n?"":e.slice(n),i=-1===n?e:e.slice(0,n),a=i.indexOf("?"),u=-1===a?i:i.slice(0,a),c=-1===a?"":i.slice(a+1),s=encodeURIComponent(t),f=encodeURIComponent(r),l=!1,d=(c?c.split("&").filter(Boolean):[]).reduce(function(e,r){var n=r.indexOf("=");return yt(-1===n?r:r.slice(0,n))===t?l||(e.push("".concat(s,"=").concat(f)),l=!0):e.push(r),e},[]);return l||d.push("".concat(s,"=").concat(f)),"".concat(u,"?").concat(d.join("&")).concat(o)}function Mt(e){var t=location.hash.split("?");return 1===t.length?"":wt("?".concat(t.slice(1).join("?")),e)[0]||""}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["hostname"];if(qt(e)){var r=new window.URL(e);return t.reduce(function(e,t){return e+=r[t]},"")}var n=document.createElement("a");return n.href=e,t.reduce(function(e,t){return e+=n[t]},"")}function Pt(e){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5\u3002\uff1b\uff0c\uff1a\u201c\u201d\uff08\uff09\u3001\uff1f\u300a\u300b()!@:%_+.~#?&//=]*)$/.test(e)}function Nt(e){return void 0===e||Number(e)<=65535}function Ct(e){var t=e.split(".");return 4===t.length&&t.every(function(e){return/^\d{1,3}$/.test(e)&&(1===e.length||"0"!==e.charAt(0))&&Number(e)<=255})}function Dt(e){var t=e.split("::");if(t.length>2)return!1;var r=2===t.length,n=[];t.forEach(function(e){e&&(n=n.concat(e.split(":")))});for(var o=0,i=0;i<n.length;i++){var a=n[i];if(-1!==a.indexOf(".")){if(i!==n.length-1||!Ct(a))return!1;o+=2}else{if(!/^[0-9a-f]{1,4}$/i.test(a))return!1;o+=1}}return r?o<8:8===o}function Ut(e){var t=e.match(/^\[([0-9a-f:.]+)\]$/i);if(t)return Dt(t[1]);if("."===e.charAt(e.length-1)&&(e=e.slice(0,-1)),Ct(e))return!0;var r=e.split(".");return!(r.length<2||r.some(function(e){return!e||!/^[a-z\d-]+$/i.test(e)||"-"===e.charAt(0)||"-"===e.charAt(e.length-1)}))&&!/^\d+$/.test(r[r.length-1])}function Rt(e){var t=e.match(/^https?:\/\/([^/?#]+)(?:[/?#][^\s<>"`]*)?$/i);if(!t||-1!==t[1].indexOf("@"))return!1;var r=t[1],n=r.match(/^\[([0-9a-f:.]+)\](?::(\d*))?$/i);if(n)return Dt(n[1])&&Nt(n[2]);var o=r.match(/^([^:]+)(?::(\d*))?$/);return!(!o||!Nt(o[2]))&&Ut(o[1])}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0};if("string"!=typeof e||!e||e.trim()!==e)return!1;var r=/^https?:\/\/[^/\\]/i.test(e),n=/^\/\/[^/\\]/.test(e);if(!r&&(t.strict||!n))return!1;var o=n?"http:".concat(e):e;if(!Rt(o))return!1;if("function"!=typeof URL)return!0;try{var i=new URL(o);return("http:"===i.protocol||"https:"===i.protocol)&&Ut(i.hostname)&&!i.username&&!i.password}catch(e){try{return new URL("http://example.com"),!1}catch(e){return Rt(o)}}}function Lt(e){var t="";if("string"!=typeof e||""==e)return t;var r=e.split(/[?#]/,1)[0],n=/\.[^/]+$/.exec(r);return n?(n[0].length>1&&(t=n[0].substring(1)),t):t}function zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t||(t=".js");for(var r=document.querySelectorAll("script[src]"),n=0;n<r.length;n++){var o=r[n].getAttribute("src");if(o&&-1!==o.indexOf(t)){var i=wt(o,e)[0];if(void 0!==i)return i}}return""}function It(e){return e&&0===Object.keys(e).length?"":"?".concat(Object.keys(e).map(function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))}).join("&"))}function Bt(e){return e.replace(/^http:/,"https:")}function $t(e){return Bt(e)}function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=window.URL;if("function"!=typeof t)return!1;try{var r=new t(e);return Boolean(r.href)}catch(e){return!1}}function Yt(e){var t="";(!Ft(e)&&Ft(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),qt(e))&&(t=new URL(e).host);return t}function Zt(e){var t="";(!Ft(e)&&Ft(e,{strict:!1})&&0===e.indexOf("//")&&(e="https:"+e),qt(e))&&(t=new URL(e).pathname);return t}function Ht(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fireOnInit,r=void 0===t||t,n=history,o=location.href,i=[],a=function(t){var r=location.href;if(r!==o||"load"===t){var n=o;o=r,e({url:r,oldUrl:n,trigger:t})}},u=function(){return a("popstate")},c=function(){return a("hashchange")};window.addEventListener("popstate",u),window.addEventListener("hashchange",c),i.push(function(){return window.removeEventListener("popstate",u)}),i.push(function(){return window.removeEventListener("hashchange",c)}),n.__mazeyUrlChangePatched__||(n.__mazeyUrlChangePatched__=!0,n.__mazeyUrlChangeSubscribers__=new Set,n.__mazeyRawPushState__=history.pushState.bind(history),n.__mazeyRawReplaceState__=history.replaceState.bind(history),history.pushState=function(){n.__mazeyRawPushState__.apply(n,arguments),n.__mazeyUrlChangeSubscribers__.forEach(function(e){return e("pushState")})},history.replaceState=function(){n.__mazeyRawReplaceState__.apply(n,arguments),n.__mazeyUrlChangeSubscribers__.forEach(function(e){return e("replaceState")})});var s=function(e){return a(e)};return n.__mazeyUrlChangeSubscribers__.add(s),i.push(function(){return n.__mazeyUrlChangeSubscribers__.delete(s)}),r&&a("load"),function(){i.forEach(function(e){return e()})}}function Wt(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(e)}function Gt(e){var t=function(e,t){if("object"!=Vt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vt(t)?t:t+""}function Jt(e,t,r){return(t=Gt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(t){Jt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Xt={enabled:!0,isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",isStringifyObject:!1,logFn:function(){},errorFn:function(){}};function er(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qt({},Xt),r=Object.assign(Qt({},Xt),t),n=r.enabled,o=r.isClosed,i=r.showWrap,a=r.showDate,u=r.locales,c=r.isStringifyObject,s=r.logFn,f=r.errorFn,l=n;!0===o&&(tr.warn("The options.isClosed is deprecated. Please use options.enabled instead."),l=!1);var d=Object.create(null),p=function(){return(new Date).toLocaleDateString(u,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach(function(t){d[t]=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(l){var u,d,v=e,h=e;if("string"==typeof e&&e.length>=2){var g=e.length;v=":"===e[g-1]?e.substring(0,g-1):e}if(i&&console.log("--- ".concat(v," - begin ---")),a&&(h=e?"".concat(p()," ").concat(e):"".concat(p())),c&&(n=n.map(function(e){return be(e)?JSON.stringify(e):e})),e||a)(u=console)[t].apply(u,[h].concat(Wt(n)));else(d=console)[t].apply(d,Wt(n));"log"===t&&s(),"error"===t&&f(),i&&console.log("--- ".concat(v," - end ---"))}}}),d}var tr=er("[Mazey]"),rr=er("",{showDate:!0,locales:"zh-CN",isStringifyObject:!0});function nr(e,t){if(!e)return tr.error("The element is not exist."),!1;for(var r=e.className.split(/\s+/),n=0;n<r.length;n++)if(r[n]===t)return!0;return!1}function or(e,t){if(e){if(Array.isArray(t))t.forEach(function(t){t&&e.classList.add(t)});else if(t){for(var r=e.className,n=r.split(/\s+/),o=0;o<n.length;o++)if(n[o]===t)return;var i,a="";""!==r&&(a=" "),i=r+a+t,e.className=i}}else tr.error("The element is not exist.")}function ir(e,t){or(e,t)}function ar(e,t){var r;e?(r=(r=(r=(r=" "+e.className+" ").replace(/(\s+)/gi," ")).replace(" "+t+" "," ")).replace(/(^\s+)|(\s+$)/g,""),e.className=r):tr.error("The element is not exist.")}function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:""};if(!e)return!1;var r=document.createDocumentFragment(),n=null,o="",i=document.createElement("style");return t.id?(o="".concat(t.id),(n=document.getElementById(o))?n.innerHTML=e:(i.setAttribute("id",t.id),i.innerHTML=e,r.appendChild(i),document.head.appendChild(r))):(i.innerHTML=e,r.appendChild(i),document.head.appendChild(r)),!0}function cr(){var e=window.jQuery||window.$;if(e){var t=e("img");return!(!t||!t.length)&&(t.each(function(){var t=e(this);if(t){var r=t.attr("src");if(r&&"string"==typeof r&&r.length){var n=r.match(/[?&]width=([0-9]+[a-z%]*)/),o=r.match(/[?&]height=([0-9]+[a-z%]*)/);n&&we(n)&&n[1]&&t.width(n[1]),o&&we(o)&&o[1]&&t.height(o[1])}}}),!0)}var r=document.getElementsByTagName("img");return r.length>0&&(Array.from(r).forEach(function(e){var t=e;if(t){var r=t.getAttribute("src");if(r&&"string"==typeof r&&r.length){var n=r.match(/[?&]width=([0-9]+[a-z%]*)/),o=r.match(/[?&]height=([0-9]+[a-z%]*)/);n&&we(n)&&n[1]&&(t.style.width=n[1]),o&&we(o)&&o[1]&&(t.style.height=o[1])}}}),!0)}function sr(){return cr()}function fr(e,t){var r="";return t&&t.length>0&&(r=t.join(";")+";"),"".concat(e,"{").concat(r,"}")}function lr(e){for(var t=document.getElementsByTagName("meta"),r=0;r<t.length;r++)if(t[r].getAttribute("name")===e)return t[r].getAttribute("content")||"";return""}function dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return!1;var r=e.trim();if(!r)return!0===t.allowEmpty;var n=t.root||("undefined"==typeof document?null:document);if(!n)return!1;try{return n.querySelector(r),!0}catch(e){return!1}}function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.excludeSelector,n=void 0===r?"":r,o=t.replaceImagesWithAlt,i=void 0===o||o,a=t.normalizeWhitespace,u=void 0===a||a,c=e.cloneNode(!0);i&&Array.from(c.querySelectorAll("img[alt]")).forEach(function(e){var t,r=e.getAttribute("alt")||"";null===(t=e.parentNode)||void 0===t||t.replaceChild(c.ownerDocument.createTextNode(r),e)});var s=n.trim();s&&dr(s,{root:c})&&Array.from(c.querySelectorAll(s)).forEach(function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)});var f=c.innerText||c.textContent||"";return u?f.replace(/\u00a0/g," ").replace(/\s+/g," ").trim():f}function vr(e){var t=e||window.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function hr(){var e=window.MAZEY_DEFINE_LISTENERS;if(e&&"object"==typeof e)return e;var t=Object.create(null);return window.MAZEY_DEFINE_LISTENERS=t,t}function gr(e,t){var r=hr();Array.isArray(r[e])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:[],writable:!0}),"function"==typeof t&&r[e].push(t)}function yr(e,t){var r=hr()[e];if(Array.isArray(r))for(var n=r.slice(),o=0,i=n.length;o<i;o++)"function"==typeof n[o]&&(void 0===t?n[o]():n[o](t))}function mr(e,t){yr(e,t)}function wr(e,t){var r=hr(),n=r[e];if("string"==typeof e&&Array.isArray(n))if("function"==typeof t){for(var o=0,i=n.length;o<i;o++)if(n[o]===t){r[e].splice(o,1);break}}else delete r[e]}function br(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=JSON.stringify(t);sessionStorage.setItem(e,void 0===r?"null":r)}}function xr(e){var t=null;if(e){var r=sessionStorage.getItem(e);if(r)try{t=JSON.parse(r)}catch(e){t=r}}return t}function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=JSON.stringify(t);localStorage.setItem(e,void 0===r?"null":r)}}function Or(e){var t=null;if(e){var r=localStorage.getItem(e);if(r)try{t=JSON.parse(r)}catch(e){t=r}}return t}var Er="__mazey_cookie_name_encoded__-",_r="__mazey_cookie_value_encoded__-";function Tr(e){return"".concat(_r).concat(encodeURIComponent(e))}function Ar(e){var t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/.test(e),r=0===e.indexOf(Er)||0===e.indexOf(_r);return t&&!r?e:function(e){return"".concat(Er).concat(encodeURIComponent(e))}(e)}function jr(e){var t=Ar(e);return t!==e?[t,e]:[e]}function Mr(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){var o=r[n].trim();if(0===o.indexOf(t))return o.substring(t.length)}}function kr(e){for(var t=jr(e),r="1"===Mr(Tr(e)),n=0;n<t.length;n++){var o=Mr(t[n]);if(void 0!==o){if(r)try{return decodeURIComponent(o)}catch(e){return o}return o}}return""}function Pr(e,t,r,n){var o;if(r){var i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3),o="; expires="+i.toUTCString()}else o="";var a=function(e){for(var t=!0,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(!(33===n||n>=35&&n<=43||n>=45&&n<=58||n>=60&&n<=91||n>=93&&n<=126)){t=!1;break}}return{isEncoded:!t,value:t?e:encodeURIComponent(e)}}(t),u=Ar(e),c=a.isEncoded?"1":"",s=a.isEncoded?o:"; expires=Thu, 01 Jan 1970 00:00:00 GMT",f=["".concat(u,"=").concat(a.value).concat(o,"; path=/"),"".concat(Tr(e),"=").concat(c).concat(s,"; path=/")],l=function(e){var t=e?"; domain=".concat(e):"";f.forEach(function(e){document.cookie="".concat(e).concat(t)})},d=location.hostname;if(n)l(n);else if(-1===d.indexOf("."))l();else{var p=d.split(".");p.shift(),l("."+p.join(".")),kr(e)!==t&&l(".".concat(d))}}function Nr(e){var t=jr(e),r=t.concat(Tr(e)),n=new Date;n.setTime(n.getTime()-1);var o=t.some(function(e){return void 0!==Mr(e)});return r.forEach(function(e,t){r.indexOf(e)===t&&void 0!==Mr(e)&&["".concat(e,"=; expires=").concat(n.toUTCString()),"".concat(e,"=; expires=").concat(n.toUTCString(),"; path=/")].forEach(function(e){document.cookie=e;var t=location.hostname;if(-1!==t.indexOf("."))for(var r=t.split("."),n=0;n<r.length;n++)document.cookie="".concat(e,"; domain=.").concat(r.slice(n).join("."))})}),o&&r.every(function(e){return void 0===Mr(e)})}function Cr(e){Nr(e)}function Dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(r),!0).forEach(function(t){Jt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Rr(e){var t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:""}).id,n=function(){},o=new Promise(function(e,r){t=e,n=r}),i=function(){f(),t("loaded")},a=document.createElement("link");a||n(new Error("Not support create link element"));var u="onload"in a,c=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(a.rel="stylesheet",a.type="text/css",a.href=e,void 0!==r&&(a.id=r),document.getElementsByTagName("head")[0].appendChild(a),c||!u)return setTimeout(function(){l(a,i,0)},1),o;function s(){i()}function f(){a&&(a.onload=a.onerror=a.onreadystatechange=null),a=null}function l(e,t,r){if(e){var n,o=e.sheet;if((r+=1)>3e5)return n=!0,e&&(e=null),void t();if(c)o&&(n=!0);else if(o)try{o.cssRules&&(n=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(n=!0)}setTimeout(function(){n?t():l(e,t,r)},20)}}return u?(a.onload=s,a.onerror=function(){f(),n(new Error("Failed to load CSS: ".concat(e)))}):a.onreadystatechange=function(){a&&/loaded|complete/.test(a.readyState)&&s()},o}var Fr={id:"",callback:function(){},timeout:5e3,isDefer:!1,isAsync:!1,isCrossOrigin:!1,attributes:null,cssUrl:""};function Lr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ur({},Fr),r=Object.assign(Ur({},Fr),t),n=r.id,o=r.callback,i=r.timeout,a=r.isDefer,u=r.isAsync,c=r.isCrossOrigin,s=r.attributes,f=r.cssUrl;if(f){var l=function(e,t){if(!t)return"";if(Ft(t))return t;try{var r=new URL(e,location.href);return new URL(t,r).href}catch(r){var n=e.split("/");return n.pop(),"".concat(n.join("/"),"/").concat(t)}}(e,f);l&&Rr(l).catch(function(e){console.error("Failed to load CSS from ".concat(l,": ").concat(null==e?void 0:e.message))})}return new Promise(function(t,r){var f=document.createElement("script"),l=!1,d=null,p=function(){f.onload=null,f.onerror=null,f.onreadystatechange=null,null!==d&&(clearTimeout(d),d=null)},v=function(){if(!l){l=!0,p();try{me(o),t("loaded")}catch(e){r(e)}}},h=function(e){l||(l=!0,p(),r(e))};f.type="text/javascript",f.defer=Boolean(a),f.async=Boolean(u),c&&(f.crossOrigin="anonymous"),n&&(f.id=n),s&&Object.keys(s).forEach(function(e){f.setAttribute(e,s[e])}),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||v()}:f.onload=v,f.onerror=function(){return h(new Error("Failed to load script: ".concat(e)))},f.src=e,i&&(d=setTimeout(function(){return h(new Error("timeout"))},i));var g=document.getElementsByTagName("script")[0];null!=g&&g.parentNode?g.parentNode.insertBefore(f,g):(document.head||document.body||document.documentElement).appendChild(f)})}function zr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;return new Promise(function(t,r){var n=null,o=function(){window.removeEventListener("load",i),null!==n&&(clearTimeout(n),n=null)},i=function(){o(),t("load")};"complete"!==document.readyState?(window.addEventListener("load",i),n=setTimeout(function(){o(),r(new Error("timeout"))},e)):t("complete")})}function Ir(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=function(e){r(e)},n.src=e})}function Br(e,t){var r;if(window[e])return Promise.resolve("defined");var n=$r.get(e),o=null===(r=n)||void 0===r?void 0:r.get(t);if(o)return o;n||(n=new Map,$r.set(e,n));var i=function(){var r,o;null===(r=n)||void 0===r||r.delete(t),0===(null===(o=n)||void 0===o?void 0:o.size)&&$r.delete(e)},a=Lr(t).then(function(e){return i(),e},function(e){throw i(),e});return n.set(t,a),a}var $r=new Map;function qr(e){if("undefined"==typeof window)return!1;var t=[],r=window.PerformanceObserver;return!!r&&(we(r.supportedEntryTypes)&&(t=r.supportedEntryTypes),t.includes(e))}function Yr(){return Zr.apply(this,arguments)}function Zr(){return(Zr=u(D.mark(function e(){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(qr("paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-contentful-paint"===e.name});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Hr(){return Wr.apply(this,arguments)}function Wr(){return(Wr=u(D.mark(function e(){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(qr("paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-paint"===e.name});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vr(){return Gr.apply(this,arguments)}function Gr(){return(Gr=u(D.mark(function e(){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(qr("largest-contentful-paint")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"largest-contentful-paint"===e.entryType});n&&(t.disconnect(),e(Math.round(n.startTime)))});t.observe({type:"largest-contentful-paint",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Jr(){return Kr.apply(this,arguments)}function Kr(){return(Kr=u(D.mark(function e(){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(qr("first-input")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().find(function(e){return"first-input"===e.entryType});if(n){t.disconnect();var o=n.processingStart;e(o?Math.round(n.processingStart-n.startTime):0)}});t.observe({type:"first-input",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Qr(){return Xr.apply(this,arguments)}function Xr(){return(Xr=u(D.mark(function e(){return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(qr("layout-shift")){e.next=1;break}return e.abrupt("return",0);case 1:return e.abrupt("return",new Promise(function(e){var t=new window.PerformanceObserver(function(r){var n=r.getEntries().reduce(function(e,t){var r=0;return ge(t.value)&&(r=t.value),e+r},0);t.disconnect(),e(n)});t.observe({type:"layout-shift",buffered:!0})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function en(){return tn.apply(this,arguments)}function tn(){return(tn=u(D.mark(function e(){var t,r;return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(qr("navigation")){e.next=1;break}return e.abrupt("return",0);case 1:if(window.performance&&window.performance.getEntriesByType){e.next=2;break}return e.abrupt("return",0);case 2:if(t=window.performance.getEntriesByType("navigation")[0],r=0,t){e.next=3;break}return e.abrupt("return",0);case 3:return r=t.responseStart-t.requestStart,e.abrupt("return",Math.round(r));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function rn(){return nn.apply(this,arguments)}function nn(){return nn=u(D.mark(function e(){var t,r,n,o,i,a,u,c,s,l,d,p,v,h,g,y,m,w,b,x,S,O,E,_,T,A,j,M,k,P,N,C,U,R,F,L,z,I,B,$,q,Y,Z,H=arguments;return D.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Z=function(e,t){var r=0;return t&&(r=e-t),r},Y=function(){var e="";return window.screen&&window.screen.orientation&&"number"==typeof window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(e="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(e="-")),e},q=function(){var e="",t=window.navigator;if(t.connection&&t.connection.effectiveType)switch(t.connection.effectiveType){case"wifi":e="wifi";break;case"4g":e="4g";break;case"2g":e="2g";break;case"3g":e="3g";break;case"ethernet":e="ethernet";break;case"default":e=void 0}return e||(e=""),e},$=function(){var e,t=navigator.userAgent.toLowerCase(),r=t.match(/(ipad)/i)&&"ipad",n=t.match(/iphone os/i)&&"iphone os",o=t.match(/midp/i)&&"midp",i=t.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=t.match(/ucweb/i)&&"ucweb",u=t.match(/android/i)&&"android",c=t.match(/windows ce/i)&&"windows ce",s=t.match(/windows mobile/i)&&"windows mobile";return(e=r||n||o||i||a||u||c||s?n||o||i||a||u||c||s?"phone":r?"ipad":void 0:"pc")||(e=""),e},B=function(){var e="",t=navigator.userAgent,r=t.indexOf("Android")>-1,n=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return e;var i=o[1];return i?(r&&(e=(i.match(/\d+\.\d+/g)||[])[0]),n&&(e=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),e||(e=""),e):e},I=function(){return navigator.userAgent.indexOf("Android")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"},z=function(){if(i){var e=i;A=e.decodedBodySize,j=e.encodedBodySize;var r=i;s=r.unloadEventEnd,l=r.unloadEventStart,d=r.redirectEnd,p=r.redirectStart,v=r.domainLookupEnd,h=r.domainLookupStart,g=r.connectEnd,y=r.connectStart,m=r.secureConnectionStart,w=r.responseStart,b=r.requestStart,x=r.responseEnd,S=r.domContentLoadedEventStart,O=r.loadEventStart,E=r.loadEventEnd,_=r.startTime,T=r.fetchStart}else M&&(s=M.unloadEventEnd,l=M.unloadEventStart,d=M.redirectEnd,p=M.redirectStart,v=M.domainLookupEnd,h=M.domainLookupStart,g=M.connectEnd,y=M.connectStart,m=M.secureConnectionStart,w=M.responseStart,b=M.requestStart,x=M.responseEnd,S=M.domContentLoadedEventStart,O=M.loadEventStart,E=M.loadEventEnd,_=M.navigationStart,T=M.fetchStart);ge(_)?C=_:ge(T)&&(C=T);var o={source:k,os:I(),osVersion:B(),deviceType:$(),network:q(),screenDirection:Y(),unloadTime:s-l,redirectTime:d-p,dnsTime:v-h,tcpTime:g-y,sslTime:Z(g,m),responseTime:w-b,downloadTime:x-w,firstPaintTime:F,firstContentfulPaintTime:L,domReadyTime:S-C,onloadTime:O-C,whiteTime:w-C,renderTime:E-C,decodedBodySize:A,encodedBodySize:j};Object.keys(o).forEach(function(e){ge(o[e])&&(o[e]<0?o[e]=0:o[e]=Math.round(o[e]))}),ge(o.whiteTime)&&o.whiteTime>o.onloadTime&&(o.whiteTime=0);var a={};t||Object.keys(o).forEach(function(e){a[G(e)]=o[e]}),Object.keys(a).length?n(a):n(o)},t=H.length>0&&void 0!==H[0]&&H[0],qr("navigation")){e.next=1;break}return e.abrupt("return",Promise.reject(new Error("navigation is not supported")));case 1:if((r=window.performance)&&"function"==typeof r.getEntries&&"function"==typeof r.getEntriesByType){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("performance is not supported")));case 2:if(o=new Promise(function(e){n=e}),i=null,we(a=r.getEntriesByType("navigation"))&&(i=a[0]),u=new Array(19).fill(0),c=f(u,19),s=c[0],l=c[1],d=c[2],p=c[3],v=c[4],h=c[5],g=c[6],y=c[7],m=c[8],w=c[9],b=c[10],x=c[11],S=c[12],O=c[13],E=c[14],_=c[15],T=c[16],A=c[17],j=c[18],M=r.timing,k="",!i){e.next=3;break}k="PerformanceNavigationTiming",A=(P=i).decodedBodySize,j=P.encodedBodySize,s=(N=i).unloadEventEnd,l=N.unloadEventStart,d=N.redirectEnd,p=N.redirectStart,v=N.domainLookupEnd,h=N.domainLookupStart,g=N.connectEnd,y=N.connectStart,m=N.secureConnectionStart,w=N.responseStart,b=N.requestStart,x=N.responseEnd,S=N.domContentLoadedEventStart,O=N.loadEventStart,E=N.loadEventEnd,_=N.startTime,T=N.fetchStart,e.next=5;break;case 3:if(!M){e.next=4;break}k="PerformanceTiming",s=M.unloadEventEnd,l=M.unloadEventStart,d=M.redirectEnd,p=M.redirectStart,v=M.domainLookupEnd,h=M.domainLookupStart,g=M.connectEnd,y=M.connectStart,m=M.secureConnectionStart,w=M.responseStart,b=M.requestStart,x=M.responseEnd,S=M.domContentLoadedEventStart,O=M.loadEventStart,E=M.loadEventEnd,_=M.navigationStart,T=M.fetchStart,e.next=5;break;case 4:return e.abrupt("return",Promise.reject(new Error("NavigationTiming and Timing are not supported")));case 5:if(C=0,!ge(_)){e.next=6;break}C=_,e.next=8;break;case 6:if(!ge(T)){e.next=7;break}C=T,e.next=8;break;case 7:return e.abrupt("return",Promise.reject(new Error("startTime, navigationStart or fetchStart are required")));case 8:return e.next=9,Promise.all([Hr(),Yr()]);case 9:return U=e.sent,R=f(U,2),F=R[0],L=R[1],ge(E)&&E>0?z():"complete"===document.readyState?window.setTimeout(z,0):window.addEventListener("load",function e(){window.removeEventListener("load",e),window.setTimeout(function(){z()},0)}),e.abrupt("return",o);case 10:case"end":return e.stop()}},e)})),nn.apply(this,arguments)}function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function an(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(t){Jt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof window||"undefined"==typeof navigator)return!1;try{var t;if(null===e||"object"!=typeof e||Array.isArray(e))return!1;var r=e.requireManifest,n=e.scope;if(void 0!==r&&"boolean"!=typeof r||void 0!==n&&"string"!=typeof n)return!1;if(!0!==window.isSecureContext||!("serviceWorker"in navigator))return!1;if(void 0!==n&&!function(e){var t=e.trim();if(!t||/[?#]/.test(t))return!1;try{var r=new URL(window.location.href),n=new URL(t,r);if(n.origin!==r.origin||""!==n.search||""!==n.hash)return!1;if(r.pathname===n.pathname)return!0;var o=n.pathname.endsWith("/")?n.pathname:"".concat(n.pathname,"/");return r.pathname.startsWith(o)}catch(e){return!1}}(n))return!1;if(!1===r)return!0;if("undefined"==typeof document)return!1;var o=document.querySelector('link[rel~="manifest"][href]');return Boolean(null==o||null===(t=o.getAttribute("href"))||void 0===t?void 0:t.trim())}catch(e){return!1}}function cn(){if("undefined"==typeof window||"undefined"==typeof navigator)return!1;var e=navigator;try{var t=window.matchMedia;if("function"==typeof t&&t.call(window,"(display-mode: standalone)").matches)return!0}catch(e){}try{return!0===e.standalone}catch(e){return!1}}function sn(){if(window.MAZEY_BROWSER_INFO&&"object"==typeof window.MAZEY_BROWSER_INFO)return window.MAZEY_BROWSER_INFO;var e={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:"",shell:"",shellVs:"",appleType:"",colorScheme:""};try{var t=navigator.userAgent.toLowerCase();if(!t)return e;var r=function(e){return e.test(t)},n=function(e){var r="",n=t.match(e);return n&&we(n)&&(r=(r=(r=n.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),r},o="",i="";r(/windows|win32|win64|wow32|wow64/g)?o="windows":r(/macintosh|macintel/g)?o="macos":r(/x11/g)?o="linux":r(/android|adr/g)?o="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",r(/ipad/g)?i="ipad":r(/iphone/g)?i="iphone":r(/iwatch/g)?i="iwatch":r(/ipod/g)&&(i="ipod")),e=an(an({},e),{},{system:o,appleType:i});var a="";"windows"===o?r(/windows nt 5.0|windows 2000/g)?a="2000":r(/windows nt 5.1|windows xp/g)?a="xp":r(/windows nt 5.2|windows 2003/g)?a="2003":r(/windows nt 6.0|windows vista/g)?a="vista":r(/windows nt 6.1|windows 7/g)?a="7":r(/windows nt 6.2|windows 8/g)?a="8":r(/windows nt 6.3|windows 8.1/g)?a="8.1":r(/windows nt 10.0|windows 10/g)&&(a="10"):"macos"===o?a=n(/os x [\d._]+/g):"android"===o?a=n(/android [\d._]+/g):"ios"===o&&(a=n(/os [\d._]+/g)),e=an(an({},e),{},{systemVs:a});var u="";"windows"===o||"macos"===o||"linux"===o?u="desktop":("android"===o||"ios"===o||r(/mobile/g))&&(u="mobile"),e=an(an({},e),{},{platform:u});var c="",s="";r(/applewebkit/g)?(c="webkit",r(/edg(?:a|ios)?\//g)||r(/edge\//g)?s="edge":r(/opr/g)?s="opera":r(/chrome/g)?s="chrome":r(/safari/g)&&(s="safari")):r(/gecko/g)&&r(/firefox/g)?(c="gecko",s="firefox"):r(/presto/g)?(c="presto",s="opera"):r(/trident|compatible|msie/g)&&(c="trident",s="iexplore"),e=an(an({},e),{},{engine:c,supporter:s});var f="";"webkit"===c?f=n(/applewebkit\/[\d._]+/g):"gecko"===c?f=n(/gecko\/[\d._]+/g):"presto"===c?f=n(/presto\/[\d._]+/g):"trident"===c&&(f=n(/trident\/[\d._]+/g)),e=an(an({},e),{},{engineVs:f});var l="";"chrome"===s?l=n(/chrome\/[\d._]+/g):"safari"===s?l=n(/version\/[\d._]+/g):"firefox"===s?l=n(/firefox\/[\d._]+/g):"opera"===s?l=n(/opr\/[\d._]+/g):"iexplore"===s?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(l=n(/(?:edge|edg|edga|edgios)\/[\d._]+/g)),e=an(an({},e),{},{supporterVs:l});var d="",p="";r(/micromessenger/g)?(d="wechat",p=n(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(d="qq_browser",p=n(/qqbrowser\/[\d._]+/g)):r(/\sqq/g)?d="qq_app":r(/ucbrowser/g)?(d="uc",p=n(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?d="360":r(/2345explorer/g)?(d="2345",p=n(/2345explorer\/[\d._]+/g)):r(/metasr/g)?d="sougou":r(/lbbrowser/g)?d="liebao":r(/maxthon/g)?(d="maxthon",p=n(/maxthon\/[\d._]+/g)):r(/biliapp/g)&&(d="bilibili"),e=an(an({},e),{},{shell:d,shellVs:p});var v="";if(window.matchMedia){var h=window.matchMedia("(prefers-color-scheme: dark)"),g=window.matchMedia("(prefers-color-scheme: light)");h.matches?v="dark":g.matches&&(v="light")}return e=an(an({},e),{},{colorScheme:v}),window.MAZEY_BROWSER_INFO=e,e}catch(t){return tr.warn(t),e}}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",r=sn(),n=[];return["system","platform","engine","supporter","shell","appleType"].forEach(function(o){var i=r[o];if(i){var a="";e&&e.length>0&&(a="".concat(e).concat(t)),n.push("".concat(a).concat(i))}}),n}var ln="";function dn(){if(ln)return Promise.resolve("webp"===ln);return new Promise(function(e){var t=new Image;t.onload=function(){var r=t.width>0&&t.height>0;ln=r?"webp":"no-webp",e(r)},t.onerror=function(){ln="no-webp",e(!1)},t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="})}var pn=Object.freeze({system:"System",light:"Light",dark:"Dark"});function vn(e){return"light"===e||"dark"===e}function hn(e,t,r){return{preference:e,resolvedTheme:t,displayName:pn[e],source:r}}function gn(e){var t=function(e){var t,r;if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError("Theme options must be an object.");if("string"!=typeof e.storageKey||""===e.storageKey.trim())throw new TypeError("storageKey must be a non-empty string.");if(void 0!==e.queryParam&&("string"!=typeof e.queryParam||""===e.queryParam.trim()))throw new TypeError("queryParam must be a non-empty string.");if(void 0!==e.fallback&&!vn(e.fallback))throw new TypeError('fallback must be "light" or "dark".');if(void 0!==e.storage&&null!==e.storage&&("object"!=typeof e.storage||"function"!=typeof e.storage.getItem))throw new TypeError("storage must provide a getItem function.");if(void 0!==e.matchMedia&&"function"!=typeof e.matchMedia)throw new TypeError("matchMedia must be a function.");if(void 0!==e.url&&"string"!=typeof e.url&&!("undefined"!=typeof URL&&e.url instanceof URL))throw new TypeError("url must be a valid string or URL.");return{storageKey:e.storageKey,queryParam:null!==(t=e.queryParam)&&void 0!==t?t:"theme",fallback:null!==(r=e.fallback)&&void 0!==r?r:"light"}}(e),r=t.storageKey,n=t.queryParam,o=t.fallback,i=void 0===e.url?function(){if("undefined"==typeof window)return null;try{return new URL(window.location.href)}catch(e){return null}}():function(e){try{return new URL(e.toString())}catch(e){throw new TypeError("url must be a valid string or URL.")}}(e.url),a=void 0===e.storage?function(){if("undefined"==typeof window)return null;try{var e=window.localStorage;return e&&"function"==typeof e.getItem?e:null}catch(e){return null}}():e.storage,u=void 0===e.matchMedia?function(){if("undefined"==typeof window)return null;try{var e=window.matchMedia;return"function"==typeof e?function(t){return e.call(window,t)}:null}catch(e){return null}}():e.matchMedia,c=null==i?void 0:i.searchParams.get(n);if(vn(c))return hn(c,c,"query");var s=null;if(a)try{var f=a.getItem(r);s=function(e){return"system"===e||vn(e)}(f)?f:null}catch(e){s=null}if(s&&"system"!==s)return hn(s,s,"storage");var l=function(e){if(!e)return null;try{return e("(prefers-color-scheme: dark)").matches?"dark":"light"}catch(e){return null}}(u);return"system"===s?hn("system",null!=l?l:o,"storage"):l?hn("system",l,"system"):hn(o,o,"fallback")}export{or as addClass,gr as addEvent,ur as addStyle,n as calLongestCommonSubsequence,t as calLongestCommonSubstring,G as camelCase2Underscore,H as camelCaseToKebabCase,vr as cancelBubble,Ne as clearHTML,Ce as clearHtml,ct as convert10To26,Y as convertCamelToKebab,W as convertCamelToUnder,Bt as convertHttpToHttps,Z as convertKebabToCamel,It as convertObjectToQuery,je as convertToHtmlBreaks,V as convertUnderToCamel,ze as cutCHSString,Fe as cutZHString,se as debounce,I as deepCopy,q as deepCopyObject,$ as deepFreeze,Cr as delCookie,me as doFn,pr as extractElementText,yr as fireEvent,ue as floatFixed,ae as floatToPercent,ot as formatDate,nt as formatDistanceToNow,he as formatDurationFromMs,fn as genBrowserAttrs,er as genCustomConsole,qe as genHashCode,te as genRndNumString,fr as genStyleString,ne as genUniqueNumString,it as generateCalendarVersion,re as generateRndNum,oe as generateUniqueNum,Tt as getAllQueryParams,sn as getBrowserInfo,Qr as getCLS,kr as getCookie,st as getCurrentVersion,de as getDateDifference,hr as getDefineListeners,kt as getDomain,Yr as getFCP,Jr as getFID,Hr as getFP,$e as getFileSize,pe as getFriendlyInterval,Mt as getHashQueryParam,Vr as getLCP,Or as getLocalStorage,lr as getPageMeta,rn as getPerformance,_t as getQueryParam,zt as getScriptQueryParam,xr as getSessionStorage,en as getTTFB,Lt as getUrlFileType,Yt as getUrlHost,At as getUrlParam,Zt as getUrlPath,nr as hasClass,i as inRate,mr as invokeEvent,ye as invokeFn,Te as isArray,Oe as isBool,Ee as isBoolean,gt as isBrowser,xe as isFunction,o as isHit,Q as isJSONString,X as isJsonString,we as isNonEmptyArray,Ae as isNonEmptyObject,ge as isNumber,be as isPureObject,un as isSafePWAEnv,cn as isStandalonePWA,Se as isString,dn as isSupportWebp,qr as isSupportedEntryType,tt as isThisHour,Xe as isThisMonth,et as isThisWeek,Qe as isThisYear,Ke as isToday,_e as isUdfOrNul,dr as isValidCssSelector,Be as isValidData,Je as isValidDate,ut as isValidEmail,Ft as isValidHttpUrl,at as isValidPhoneNumber,Pt as isValidUrl,Rr as loadCSS,Ir as loadImage,Lr as loadScript,Br as loadScriptIfUndefined,r as longestComSubsequence,e as longestComSubstring,ie as mNow,K as mTrim,tr as mazeyCon,Me as newLine,Ht as onURLChange,Et as parseGitHubRepository,ee as parseJsonSafe,ar as removeClass,Nr as removeCookie,wr as removeEvent,ke as removeHTML,Pe as removeHtml,ft as repeatUntilConditionMet,$t as replaceHttp,gn as resolveThemePreference,De as sanitizeInput,ir as setClass,Pr as setCookie,cr as setImgSizeBySrc,sr as setImgWidHeiBySrc,Sr as setLocalStorage,br as setSessionStorage,Ye as sha256Hex,pt as sleep,ce as throttle,rr as timeCon,J as toJavaScriptGlobalName,Le as truncateZHString,Re as unsanitize,Ue as unsanitizeInput,jt as updateQueryParam,lt as waitTime,zr as windowLoaded,Ie as zAxiosIsValidRes};
|