mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-28 14:42:43 +00:00
25 lines
23 KiB
JavaScript
25 lines
23 KiB
JavaScript
|
import{a7 as N,p as _e,a8 as me,a9 as xe,aa as be,Y as le,ab as we,U as ye,f as Fe,a5 as Se,l as te,W as re}from"./index.abba0c49.js";/**
|
||
|
* tdesign v1.9.9
|
||
|
* (c) 2024 tdesign
|
||
|
* @license MIT
|
||
|
*/function Ee(r){return r==null}var Ce=Ee;/**
|
||
|
* tdesign v1.9.9
|
||
|
* (c) 2024 tdesign
|
||
|
* @license MIT
|
||
|
*/function ce(r,e,l,f,s,y,p){try{var i=r[y](p),v=i.value}catch(S){return void l(S)}i.done?e(v):Promise.resolve(v).then(f,s)}function ve(r){return function(){var e=this,l=arguments;return new Promise(function(f,s){var y=r.apply(e,l);function p(v){ce(y,f,s,p,i,"next",v)}function i(v){ce(y,f,s,p,i,"throw",v)}p(void 0)})}}var fe={exports:{}},se={exports:{}};(function(r){function e(l){return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r.exports.__esModule=!0,r.exports.default=r.exports,e(l)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(se);se.exports;(function(r){var e=se.exports.default;function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r.exports=l=function(){return s},r.exports.__esModule=!0,r.exports.default=r.exports;var f,s={},y=Object.prototype,p=y.hasOwnProperty,i=Object.defineProperty||function(u,t,o){u[t]=o.value},v=typeof Symbol=="function"?Symbol:{},S=v.iterator||"@@iterator",L=v.asyncIterator||"@@asyncIterator",x=v.toStringTag||"@@toStringTag";function $(u,t,o){return Object.defineProperty(u,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),u[t]}try{$({},"")}catch{$=function(o,h,m){return o[h]=m}}function G(u,t,o,h){var m=t&&t.prototype instanceof d?t:d,g=Object.create(m.prototype),D=new J(h||[]);return i(g,"_invoke",{value:j(u,o,D)}),g}function C(u,t,o){try{return{type:"normal",arg:u.call(t,o)}}catch(h){return{type:"throw",arg:h}}}s.wrap=G;var c="suspendedStart",w="suspendedYield",_="executing",n="completed",a={};function d(){}function F(){}function O(){}var A={};$(A,S,function(){return this});var P=Object.getPrototypeOf,E=P&&P(P(ee([])));E&&E!==y&&p.call(E,S)&&(A=E);var b=O.prototype=d.prototype=Object.create(A);function I(u){["next","throw","return"].forEach(function(t){$(u,t,function(o){return this._invoke(t,o)})})}function M(u,t){function o(m,g,D,q){var R=C(u[m],u,g);if(R.type!=="throw"){var Y=R.arg,z=Y.value;return z&&e(z)=="object"&&p.call(z,"__await")?t.resolve(z.__await).then(function(H){o("next",H,D,q)},function(H){o("throw",H,D,q)}):t.resolve(z).then(function(H){Y.value=H,D(Y)},function(H){return o("throw",H,D,q)})}q(R.arg)}var h;i(this,"_invoke",{value:function(g,D){function q(){return new t(function(R,Y){o(g,D,R,Y)})}return h=h?h.then(q,q):q()}})}function j(u,t,o){var h=c;return function(m,g){if(h===_)throw Error("Generator is already running");if(h===n){if(m==="throw")throw g;return{value:f,done:!0}}for(o.method=m,o.arg=g;;){var D=o.delegate;if(D){var q=U(D,o);if(q){if(q===a)continue;return q}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(h===c)throw h=n,o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);h=_;var R=C(u,t,o);if(R.type==="normal"){if(h=o.done?n:w,R.arg===a)continue;return{value:R.arg,done:o.done}}R.type==="throw"&&(h=n,o.method="throw",o.arg=R.arg)}}}function U(u,t){var o=t.method,h=u.iterator[o];if(h===f)return t.delegate=null,o==="throw"&&u.iterator.return&&(t.method="return",t.arg=f,U(u,t),t.method==="throw")||o!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),a;var m=C(h,u.iterator,t.arg);if(m.type==="throw")return t.method="throw",t.arg=m.arg,t.delegate=null,a;var g=m.arg;return g?g.done?(t[u.resultName]=g.value,t.next=u.nextLoc,t.method!=="return"&&(t.method="next",t.arg=f),t.delegate=null,a):g:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,a)}function k(u){var t={tryLoc:u[0]};1 in u&&(t.catchLoc=u[1]),2 in u&&(t.finallyLoc=u[2],t.afterLoc=u[3]),this.tryEntries.push(t)}function T(u){var t=u.completion||{};t.type="normal",delete t.arg,u.completion=t}function J(u){this.tryEntries=[{tryLoc:"root"}],u.forEach(k,this),this.reset(!0)}function ee(u){if(u||u===""){var t=u[S];if(t)return t.call(u);if(typeof u.next=="function")return u;i
|
||
|
* tdesign v1.9.9
|
||
|
* (c) 2024 tdesign
|
||
|
* @license MIT
|
||
|
*/var Oe=me,Ae=xe,Le=be,de=le,Pe=we;function De(r,e,l,f){if(!de(r))return r;e=Ae(e,r);for(var s=-1,y=e.length,p=y-1,i=r;i!=null&&++s<y;){var v=Pe(e[s]),S=l;if(v==="__proto__"||v==="constructor"||v==="prototype")return r;if(s!=p){var L=i[v];S=f?f(L,v,i):void 0,S===void 0&&(S=de(L)?L:Le(e[s+1])?[]:{})}Oe(i,v,S),i=i[v]}return r}var Ie=De;/**
|
||
|
* tdesign v1.9.9
|
||
|
* (c) 2024 tdesign
|
||
|
* @license MIT
|
||
|
*/var $e=Ie;function qe(r,e,l){return r==null?r:$e(r,e,l)}var Ue=qe;/**
|
||
|
* tdesign v1.9.9
|
||
|
* (c) 2024 tdesign
|
||
|
* @license MIT
|
||
|
*/var ne={exports:{}},Q={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;for(var y in s)typeof f[y]>"u"&&(f[y]=s[y]);return f}r.exports=e.default,r.exports.default=e.default})(Q,Q.exports);Q.exports;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=C;var l=f(Q.exports);function f(c){return c&&c.__esModule?c:{default:c}}function s(c,w){return i(c)||p(c,w)||S(c,w)||y()}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(c,w){var _=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(_!=null){var n,a,d,F,O=[],A=!0,P=!1;try{if(d=(_=_.call(c)).next,w===0){if(Object(_)!==_)return;A=!1}else for(;!(A=(n=d.call(_)).done)&&(O.push(n.value),O.length!==w);A=!0);}catch(E){P=!0,a=E}finally{try{if(!A&&_.return!=null&&(F=_.return(),Object(F)!==F))return}finally{if(P)throw a}}return O}}function i(c){if(Array.isArray(c))return c}function v(c,w){var _=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!_){if(Array.isArray(c)||(_=S(c))||w&&c&&typeof c.length=="number"){_&&(c=_);var n=0,a=function(){};return{s:a,n:function(){return n>=c.length?{done:!0}:{done:!1,value:c[n++]}},e:function(P){throw P},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,F=!1,O;return{s:function(){_=_.call(c)},n:function(){var P=_.next();return d=P.done,P},e:function(P){F=!0,O=P},f:function(){try{!d&&_.return!=null&&_.return()}finally{if(F)throw O}}}}function S(c,w){if(!!c){if(typeof c=="string")return L(c,w);var _=Object.prototype.toString.call(c).slice(8,-1);if(_==="Object"&&c.constructor&&(_=c.constructor.name),_==="Map"||_==="Set")return Array.from(c);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return L(c,w)}}function L(c,w){(w==null||w>c.length)&&(w=c.length);for(var _=0,n=new Array(w);_<w;_++)n[_]=c[_];return n}var x={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function $(c){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(c)}function G(c,w){for(var _=[],n=Math.min(c.length,w.length),a=0;a<n;a++)_.push([c[a],w[a]]);return _}function C(c,w){if(typeof w=="string"?w=(0,l.default)({format:w},x):w=(0,l.default)(w,x),typeof c=="string"&&$(w.format)){var _=w.delimiters.find(function(k){return w.format.indexOf(k)!==-1}),n=w.strictMode?_:w.delimiters.find(function(k){return c.indexOf(k)!==-1}),a=G(c.split(n),w.format.toLowerCase().split(_)),d={},F=v(a),O;try{for(F.s();!(O=F.n()).done;){var A=s(O.value,2),P=A[0],E=A[1];if(P.length!==E.length)return!1;d[E.charAt(0)]=P}}catch(k){F.e(k)}finally{F.f()}var b=d.y;if(b.startsWith("-"))return!1;if(d.y.length===2){var I=parseInt(d.y,10);if(isNaN(I))return!1;var M=new Date().getFullYear()%100;I<M?b="20".concat(d.y):b="19".concat(d.y)}var j=d.m;d.m.length===1&&(j="0".concat(d.m));var U=d.d;return d.d.length===1&&(U="0".concat(d.d)),new Date("".concat(b,"-").concat(j,"-").concat(U,"T00:00:00.000Z")).getUTCDate()===+d.d}return w.strictMode?!1:Object.prototype.toString.call(c)==="[object Date]"&&isFinite(c)}r.exports=e.default,r.exports.default=e.default})(ne,ne.exports);var Me=N(ne.exports),ae={exports:{}},W={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;function l(s){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},l(s)}function f(s){var y=typeof s=="string"||s instanceof String;if(!y){var p=l(s);throw s===null?p="null":p==="object"&&(p=s.constructor.name),new TypeError("Expected a string but received a ".concat(p))}}r.exports=e.default,r.exports.default=e.default})(W,W.exports);W.exports;var X={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=y;var l=f(W.exports);function f(p){return p&&p.__esModule?p:{default:p}}function s(p){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s(p)}function y(p,i){(0,l.default)(p);var v,S;s(i)==="object"?(v=i.min||0,S=i.max):(v=arguments[1],S=arguments[2]);var L=encodeURI(p).split(/%..|./).length-1;return L>=v&&(typeof S>"u"||L<=S)}r.exports=e.default,r.exports.default=e.default})(X,X.exports);X.exports;var B={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var l=s(W.exports),f=s(Q.exports);function s(i){return i&&i.__esModule?i:{default:i}}var y={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function p(i,v){(0,l.default)(i),v=(0,f.default)(v,y),v.allow_trailing_dot&&i[i.length-1]==="."&&(i=i.substring(0,i.length-1)),v.allow_wildcard===!0&&i.indexOf("*.")===0&&(i=i.substring(2));var S=i.split("."),L=S[S.length-1];return v.require_tld&&(S.length<2||!v.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(L)||/\s/.test(L))||!v.allow_numeric_tld&&/^\d+$/.test(L)?!1:S.every(function(x){return!(x.length>63&&!v.ignore_max_length||!/^[
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(n,a){if(!!n){if(typeof n=="string")return L(n,a);var d=Object.prototype.toString.call(n).slice(8,-1);if(d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set")return Array.from(n);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return L(n,a)}}function L(n,a){(a==null||a>n.length)&&(a=n.length);for(var d=0,F=new Array(a);d<a;d++)F[d]=n[d];return F}function x(n,a){var d=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(d!=null){var F,O,A,P,E=[],b=!0,I=!1;try{if(A=(d=d.call(n)).next,a===0){if(Object(d)!==d)return;b=!1}else for(;!(b=(F=A.call(d)).done)&&(E.push(F.value),E.length!==a);b=!0);}catch(M){I=!0,O=M}finally{try{if(!b&&d.return!=null&&(P=d.return(),Object(P)!==P))return}finally{if(I)throw O}}return E}}function $(n){if(Array.isArray(n))return n}var G={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},C=/^\[([^\]]+)\](?::([0-9]+))?$/;function c(n){return Object.prototype.toString.call(n)==="[object RegExp]"}function w(n,a){for(var d=0;d<a.length;d++){var F=a[d];if(n===F||c(F)&&F.test(n))return!0}return!1}function _(n,a){if((0,l.default)(n),!n||/[\s<>]/.test(n)||n.indexOf("mailto:")===0||(a=(0,y.default)(a,G),a.validate_length&&n.length>=2083)||!a.allow_fragments&&n.includes("#")||!a.allow_query_components&&(n.includes("?")||n.includes("&")))return!1;var d,F,O,A,P,E,b,I;if(b=n.split("#"),n=b.shift(),b=n.split("?"),n=b.shift(),b=n.split("://"),b.length>1){if(d=b.shift().toLowerCase(),a.require_valid_protocol&&a.protocols.indexOf(d)===-1)return!1}else{if(a.require_protocol)return!1;if(n.slice(0,2)==="//"){if(!a.allow_protocol_relative_urls)return!1;b[0]=n.slice(2)}}if(n=b.join("://"),n==="")return!1;if(b=n.split("/"),n=b.shift(),n===""&&!a.require_host)return!0;if(b=n.split("@"),b.length>1){if(a.disallow_auth||b[0]===""||(F=b.shift(),F.indexOf(":")>=0&&F.split(":").length>2))return!1;var M=F.split(":"),j=i(M,2),U=j[0],k=j[1];if(U===""&&k==="")return!1}A=b.join("@"),E=null,I=null;var T=A.match(C);if(T?(O="",I=T[1],E=T[2]||null):(b=A.split(":"),O=b.shift(),b.length&&(E=b.join(":"))),E!==null&&E.length>0){if(P=parseInt(E,10),!/^[0-9]+$/.test(E)||P<=0||P>65535)return!1}else if(a.require_port)return!1;return a.host_whitelist?w(O,a.host_whitelist):O===""&&!a.require_host?!0:!(!(0,s.default)(O)&&!(0,f.default)(O,a)&&(!I||!(0,s.default)(I,6))||(O=O||I,a.host_blacklist&&w(O,a.host_blacklist)))}r.exports=e.default,r.exports.default=e.default})(ie,ie.exports);var ke=N(ie.exports);function pe(r,e){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(r);e&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),l.push.apply(l,f)}return l}function he(r){for(var e=1;e<arguments.length;e++){var l=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(l),!0).forEach(function(f){Fe(r,f,l[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):pe(Object(l)).forEach(function(f){Object.defineProperty(r,f,Object.getOwnPropertyDescriptor(l,f))})}return r}function ge(r){var e=Object.prototype.toString.call(r),l={Date:"[object Date]"};return e===l.Date?!1:le(r)?Se(r):["",void 0,null].includes(r)}var Te={date:Me,url:ke,email:Re,required:function(e){return!ge(e)},whitespace:function(e){return!(/^\s+$/.test(e)||e==="")},boolean:function(e){return ye(e)},max:function(e,l){return te(e)?e<=l:re(e)<=l},min:function(e,l){return te(e)?e>=l:re(e)>=l},len:function(e,l){return re(String(e))===l},number:function(e){return te(e)},enum:function(e,l){return l.includes(e)},idcard:function(e){return/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/i.test(e)},telnumber:function(e){return/^1[3-9]\d{9}$/.test(e)},pattern:function(e,l){return l.test(e)},validator:function(e,l){return l(e)}};function je(r,e){return
|