mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
20 lines
23 KiB
JavaScript
20 lines
23 KiB
JavaScript
import{_ as ge}from"./dep-f6f516d9.c729faf9.js";import{c as _e,i as te,a as re}from"./index.3c6542a6.js";import{ai as T,N as me,t as pe,H as xe}from"./index.28b8c38d.js";import{i as he}from"./index.d796ce09.js";/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function be(a){return a==null}var Ie=be;/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function se(a,e,l,f,d,x,s){try{var u=a[x](s),y=u.value}catch(E){l(E);return}u.done?e(y):Promise.resolve(y).then(f,d)}function ye(a){return function(){var e=this,l=arguments;return new Promise(function(f,d){var x=a.apply(e,l);function s(y){se(x,f,d,s,u,"next",y)}function u(y){se(x,f,d,s,u,"throw",y)}s(void 0)})}}var le={exports:{}},fe={exports:{}};(function(a){function e(l){return a.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},a.exports.__esModule=!0,a.exports.default=a.exports,e(l)}a.exports=e,a.exports.__esModule=!0,a.exports.default=a.exports})(fe);fe.exports;(function(a){var e=fe.exports.default;function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a.exports=l=function(){return d},a.exports.__esModule=!0,a.exports.default=a.exports;var f,d={},x=Object.prototype,s=x.hasOwnProperty,u=Object.defineProperty||function(o,t,i){o[t]=i.value},y=typeof Symbol=="function"?Symbol:{},E=y.iterator||"@@iterator",L=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";function k(o,t,i){return Object.defineProperty(o,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),o[t]}try{k({},"")}catch{k=function(i,p,g){return i[p]=g}}function C(o,t,i,p){var g=t&&t.prototype instanceof h?t:h,v=Object.create(g.prototype),P=new J(p||[]);return u(v,"_invoke",{value:M(o,i,P)}),v}function N(o,t,i){try{return{type:"normal",arg:o.call(t,i)}}catch(p){return{type:"throw",arg:p}}}d.wrap=C;var c="suspendedStart",b="suspendedYield",w="executing",r="completed",n={};function h(){}function m(){}function S(){}var A={};k(A,E,function(){return this});var D=Object.getPrototypeOf,O=D&&D(D(ee([])));O&&O!==x&&s.call(O,E)&&(A=O);var F=S.prototype=h.prototype=Object.create(A);function I(o){["next","throw","return"].forEach(function(t){k(o,t,function(i){return this._invoke(t,i)})})}function R(o,t){function i(g,v,P,$){var q=N(o[g],o,v);if(q.type!=="throw"){var z=q.arg,G=z.value;return G&&e(G)=="object"&&s.call(G,"__await")?t.resolve(G.__await).then(function(H){i("next",H,P,$)},function(H){i("throw",H,P,$)}):t.resolve(G).then(function(H){z.value=H,P(z)},function(H){return i("throw",H,P,$)})}$(q.arg)}var p;u(this,"_invoke",{value:function(v,P){function $(){return new t(function(q,z){i(v,P,q,z)})}return p=p?p.then($,$):$()}})}function M(o,t,i){var p=c;return function(g,v){if(p===w)throw Error("Generator is already running");if(p===r){if(g==="throw")throw v;return{value:f,done:!0}}for(i.method=g,i.arg=v;;){var P=i.delegate;if(P){var $=Q(P,i);if($){if($===n)continue;return $}}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(p===c)throw p=r,i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);p=w;var q=N(o,t,i);if(q.type==="normal"){if(p=i.done?r:b,q.arg===n)continue;return{value:q.arg,done:i.done}}q.type==="throw"&&(p=r,i.method="throw",i.arg=q.arg)}}}function Q(o,t){var i=t.method,p=o.iterator[i];if(p===f)return t.delegate=null,i==="throw"&&o.iterator.return&&(t.method="return",t.arg=f,Q(o,t),t.method==="throw")||i!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),n;var g=N(p,o.iterator,t.arg);if(g.type==="throw")return t.method="throw",t.arg=g.arg,t.delegate=null,n;var v=g.arg;return v?v.done?(t[o.resultName]=v.value,t.next=o.nextLoc,t.method!=="return"&&(t.method="next",t.arg=f),t.delegate=null,n):v:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,n)}function V(o){var t={tryLoc:o[0]};1 in o&&(t.catchLoc=o[1]),2 in o&&(t.finallyLoc=o[2],t.afterLoc=o[3]),this.tryEntries.push(t)}function j(o){var t=o.completion||{};t.type="normal",delete t.arg,o.completion=t}function J(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(V,this),this.reset(!0)}function ee(o){if(o||o===""){var t=o[E];if(t)return t.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var i=-1,p=function g(){for(;++i<o.length;)if(s.call(o,i))return g.value=o[i],g.done=!1,g;return g.value=f,g.done=!0,g};return p.next=p}}throw new TypeError(e(o)+" is not iterable")}return m.prototype=S,u(F,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:m,configurable:!0}),m.displayName=k(S,_,"GeneratorFunction"),d.isGeneratorFunction=function(o){var t=typeof o=="function"&&o.constructor;return!!t&&(t===m||(t.displayName||t.name)==="GeneratorFunction")},d.mark=function(o){return Object.setPrototypeOf?Object.setPrototypeOf(o,S):(o.__proto__=S,k(o,_,"GeneratorFunction")),o.prototype=Object.create(F),o},d.awrap=function(o){return{__await:o}},I(R.prototype),k(R.prototype,L,function(){return this}),d.AsyncIterator=R,d.async=function(o,t,i,p,g){g===void 0&&(g=Promise);var v=new R(C(o,t,i,p),g);return d.isGeneratorFunction(t)?v:v.next().then(function(P){return P.done?P.value:v.next()})},I(F),k(F,_,"Generator"),k(F,E,function(){return this}),k(F,"toString",function(){return"[object Generator]"}),d.keys=function(o){var t=Object(o),i=[];for(var p in t)i.push(p);return i.reverse(),function g(){for(;i.length;){var v=i.pop();if(v in t)return g.value=v,g.done=!1,g}return g.done=!0,g}},d.values=ee,J.prototype={constructor:J,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(j),!t)for(var i in this)i.charAt(0)==="t"&&s.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=f)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function p(z,G){return P.type="throw",P.arg=t,i.next=z,G&&(i.method="next",i.arg=f),!!G}for(var g=this.tryEntries.length-1;g>=0;--g){var v=this.tryEntries[g],P=v.completion;if(v.tryLoc==="root")return p("end");if(v.tryLoc<=this.prev){var $=s.call(v,"catchLoc"),q=s.call(v,"finallyLoc");if($&&q){if(this.prev<v.catchLoc)return p(v.catchLoc,!0);if(this.prev<v.finallyLoc)return p(v.finallyLoc)}else if($){if(this.prev<v.catchLoc)return p(v.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<v.finallyLoc)return p(v.finallyLoc)}}}},abrupt:function(t,i){for(var p=this.tryEntries.length-1;p>=0;--p){var g=this.tryEntries[p];if(g.tryLoc<=this.prev&&s.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var v=g;break}}v&&(t==="break"||t==="continue")&&v.tryLoc<=i&&i<=v.finallyLoc&&(v=null);var P=v?v.completion:{};return P.type=t,P.arg=i,v?(this.method="next",this.next=v.finallyLoc,n):this.complete(P)},complete:function(t,i){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&i&&(this.next=i),n},finish:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var p=this.tryEntries[i];if(p.finallyLoc===t)return this.complete(p.completion,p.afterLoc),j(p),n}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var p=this.tryEntries[i];if(p.tryLoc===t){var g=p.completion;if(g.type==="throw"){var v=g.arg;j(p)}return v}}throw Error("illegal catch attempt")},delegateYield:function(t,i,p){return this.delegate={iterator:ee(t),resultName:i,nextLoc:p},this.method==="next"&&(this.arg=f),n}},d}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports})(le);le.exports;var K=le.exports(),X=K;try{regeneratorRuntime=K}catch{(typeof globalThis>"u"?"undefined":me(globalThis))==="object"?globalThis.regeneratorRuntime=K:Function("r","regeneratorRuntime = r")(K)}/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var we=ge;function Fe(a,e,l){return a==null?a:we(a,e,l)}var qe=Fe;/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var ne={exports:{}},Y={exports:{}};(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;for(var x in d)typeof f[x]>"u"&&(f[x]=d[x]);return f}a.exports=e.default,a.exports.default=e.default})(Y,Y.exports);Y.exports;(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=N;var l=f(Y.exports);function f(c){return c&&c.__esModule?c:{default:c}}function d(c,b){return u(c)||s(c,b)||E(c,b)||x()}function x(){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 s(c,b){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(c)))){var w=[],r=!0,n=!1,h=void 0;try{for(var m=c[Symbol.iterator](),S;!(r=(S=m.next()).done)&&(w.push(S.value),!(b&&w.length===b));r=!0);}catch(A){n=!0,h=A}finally{try{!r&&m.return!=null&&m.return()}finally{if(n)throw h}}return w}}function u(c){if(Array.isArray(c))return c}function y(c,b){var w;if(typeof Symbol>"u"||c[Symbol.iterator]==null){if(Array.isArray(c)||(w=E(c))||b&&c&&typeof c.length=="number"){w&&(c=w);var r=0,n=function(){};return{s:n,n:function(){return r>=c.length?{done:!0}:{done:!1,value:c[r++]}},e:function(D){throw D},f:n}}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 h=!0,m=!1,S;return{s:function(){w=c[Symbol.iterator]()},n:function(){var D=w.next();return h=D.done,D},e:function(D){m=!0,S=D},f:function(){try{!h&&w.return!=null&&w.return()}finally{if(m)throw S}}}}function E(c,b){if(!!c){if(typeof c=="string")return L(c,b);var w=Object.prototype.toString.call(c).slice(8,-1);if(w==="Object"&&c.constructor&&(w=c.constructor.name),w==="Map"||w==="Set")return Array.from(c);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return L(c,b)}}function L(c,b){(b==null||b>c.length)&&(b=c.length);for(var w=0,r=new Array(b);w<b;w++)r[w]=c[w];return r}var _={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function k(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 C(c,b){for(var w=[],r=Math.min(c.length,b.length),n=0;n<r;n++)w.push([c[n],b[n]]);return w}function N(c,b){if(typeof b=="string"?b=(0,l.default)({format:b},_):b=(0,l.default)(b,_),typeof c=="string"&&k(b.format)){var w=b.delimiters.find(function(M){return b.format.indexOf(M)!==-1}),r=b.strictMode?w:b.delimiters.find(function(M){return c.indexOf(M)!==-1}),n=C(c.split(r),b.format.toLowerCase().split(w)),h={},m=y(n),S;try{for(m.s();!(S=m.n()).done;){var A=d(S.value,2),D=A[0],O=A[1];if(D.length!==O.length)return!1;h[O.charAt(0)]=D}}catch(M){m.e(M)}finally{m.f()}var F=h.y;if(h.y.length===2){var I=parseInt(h.y,10);if(isNaN(I))return!1;var R=new Date().getFullYear()%100;I<R?F="20".concat(h.y):F="19".concat(h.y)}return new Date("".concat(F,"-").concat(h.m,"-").concat(h.d)).getDate()===+h.d}return b.strictMode?!1:Object.prototype.toString.call(c)==="[object Date]"&&isFinite(c)}a.exports=e.default,a.exports.default=e.default})(ne,ne.exports);var Se=T(ne.exports),ae={exports:{}},U={exports:{}};(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;function l(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(s){return typeof s}:l=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},l(d)}function f(d){var x=typeof d=="string"||d instanceof String;if(!x){var s=l(d);throw d===null?s="null":s==="object"&&(s=d.constructor.name),new TypeError("Expected a string but received a ".concat(s))}}a.exports=e.default,a.exports.default=e.default})(U,U.exports);U.exports;var Z={exports:{}};(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=x;var l=f(U.exports);function f(s){return s&&s.__esModule?s:{default:s}}function d(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(y){return typeof y}:d=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},d(s)}function x(s,u){(0,l.default)(s);var y,E;d(u)==="object"?(y=u.min||0,E=u.max):(y=arguments[1],E=arguments[2]);var L=encodeURI(s).split(/%..|./).length-1;return L>=y&&(typeof E>"u"||L<=E)}a.exports=e.default,a.exports.default=e.default})(Z,Z.exports);Z.exports;var W={exports:{}};(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var l=d(U.exports),f=d(Y.exports);function d(u){return u&&u.__esModule?u:{default:u}}var x={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function s(u,y){(0,l.default)(u),y=(0,f.default)(y,x),y.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),y.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var E=u.split("."),L=E[E.length-1];return y.require_tld&&(E.length<2||!y.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))||!y.allow_numeric_tld&&/^\d+$/.test(L)?!1:E.every(function(_){return!(_.length>63&&!y.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(_)||/[\uff01-\uff5e]/.test(_)||/^-|-$/.test(_)||!y.allow_underscores&&/_/.test(_))})}a.exports=e.default,a.exports.default=e.default})(W,W.exports);W.exports;var B={exports:{}};(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=E;var l=f(U.exports);function f(L){return L&&L.__esModule?L:{default:L}}var d="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",x="(".concat(d,"[.]){3}").concat(d),s=new RegExp("^".concat(x,"$")),u="(?:[0-9a-fA-F]{1,4})",y=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(x,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(x,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(x,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(x,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(x,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(x,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(x,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function E(L){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,l.default)(L),_=String(_),_?_==="4"?s.test(L):_==="6"?y.test(L):!1:E(L,4)||E(L,6)}a.exports=e.default,a.exports.default=e.default})(B,B.exports);B.exports;(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=w;var l=u(U.exports),f=u(Z.exports),d=u(W.exports),x=u(B.exports),s=u(Y.exports);function u(r){return r&&r.__esModule?r:{default:r}}var y={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},E=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,L=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,_=/^[a-z\d]+$/,k=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,C=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,N=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,c=254;function b(r){var n=r.replace(/^"(.+)"$/,"$1");if(!n.trim())return!1;var h=/[\.";<>]/.test(n);if(h){if(n===r)return!1;var m=n.split('"').length===n.split('\\"').length;if(!m)return!1}return!0}function w(r,n){if((0,l.default)(r),n=(0,s.default)(n,y),n.require_display_name||n.allow_display_name){var h=r.match(E);if(h){var m=h[1];if(r=r.replace(m,"").replace(/(^<|>$)/g,""),m.endsWith(" ")&&(m=m.slice(0,-1)),!b(m))return!1}else if(n.require_display_name)return!1}if(!n.ignore_max_length&&r.length>c)return!1;var S=r.split("@"),A=S.pop(),D=A.toLowerCase();if(n.host_blacklist.includes(D)||n.host_whitelist.length>0&&!n.host_whitelist.includes(D))return!1;var O=S.join("@");if(n.domain_specific_validation&&(D==="gmail.com"||D==="googlemail.com")){O=O.toLowerCase();var F=O.split("+")[0];if(!(0,f.default)(F.replace(/\./g,""),{min:6,max:30}))return!1;for(var I=F.split("."),R=0;R<I.length;R++)if(!_.test(I[R]))return!1}if(n.ignore_max_length===!1&&(!(0,f.default)(O,{max:64})||!(0,f.default)(A,{max:254})))return!1;if(!(0,d.default)(A,{require_tld:n.require_tld,ignore_max_length:n.ignore_max_length,allow_underscores:n.allow_underscores})){if(!n.allow_ip_domain)return!1;if(!(0,x.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var M=A.slice(1,-1);if(M.length===0||!(0,x.default)(M))return!1}}if(O[0]==='"')return O=O.slice(1,O.length-1),n.allow_utf8_local_part?N.test(O):k.test(O);for(var Q=n.allow_utf8_local_part?C:L,V=O.split("."),j=0;j<V.length;j++)if(!Q.test(V[j]))return!1;return!(n.blacklisted_chars&&O.search(new RegExp("[".concat(n.blacklisted_chars,"]+"),"g"))!==-1)}a.exports=e.default,a.exports.default=e.default})(ae,ae.exports);var Ee=T(ae.exports),ie={exports:{}};(function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=w;var l=s(U.exports),f=s(W.exports),d=s(B.exports),x=s(Y.exports);function s(r){return r&&r.__esModule?r:{default:r}}function u(r,n){return k(r)||_(r,n)||E(r,n)||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 E(r,n){if(!!r){if(typeof r=="string")return L(r,n);var h=Object.prototype.toString.call(r).slice(8,-1);if(h==="Object"&&r.constructor&&(h=r.constructor.name),h==="Map"||h==="Set")return Array.from(r);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return L(r,n)}}function L(r,n){(n==null||n>r.length)&&(n=r.length);for(var h=0,m=new Array(n);h<n;h++)m[h]=r[h];return m}function _(r,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(r)))){var h=[],m=!0,S=!1,A=void 0;try{for(var D=r[Symbol.iterator](),O;!(m=(O=D.next()).done)&&(h.push(O.value),!(n&&h.length===n));m=!0);}catch(F){S=!0,A=F}finally{try{!m&&D.return!=null&&D.return()}finally{if(S)throw A}}return h}}function k(r){if(Array.isArray(r))return r}var C={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},N=/^\[([^\]]+)\](?::([0-9]+))?$/;function c(r){return Object.prototype.toString.call(r)==="[object RegExp]"}function b(r,n){for(var h=0;h<n.length;h++){var m=n[h];if(r===m||c(m)&&m.test(r))return!0}return!1}function w(r,n){if((0,l.default)(r),!r||/[\s<>]/.test(r)||r.indexOf("mailto:")===0||(n=(0,x.default)(n,C),n.validate_length&&r.length>=2083)||!n.allow_fragments&&r.includes("#")||!n.allow_query_components&&(r.includes("?")||r.includes("&")))return!1;var h,m,S,A,D,O,F,I;if(F=r.split("#"),r=F.shift(),F=r.split("?"),r=F.shift(),F=r.split("://"),F.length>1){if(h=F.shift().toLowerCase(),n.require_valid_protocol&&n.protocols.indexOf(h)===-1)return!1}else{if(n.require_protocol)return!1;if(r.slice(0,2)==="//"){if(!n.allow_protocol_relative_urls)return!1;F[0]=r.slice(2)}}if(r=F.join("://"),r==="")return!1;if(F=r.split("/"),r=F.shift(),r===""&&!n.require_host)return!0;if(F=r.split("@"),F.length>1){if(n.disallow_auth||F[0]===""||(m=F.shift(),m.indexOf(":")>=0&&m.split(":").length>2))return!1;var R=m.split(":"),M=u(R,2),Q=M[0],V=M[1];if(Q===""&&V==="")return!1}A=F.join("@"),O=null,I=null;var j=A.match(N);if(j?(S="",I=j[1],O=j[2]||null):(F=A.split(":"),S=F.shift(),F.length&&(O=F.join(":"))),O!==null&&O.length>0){if(D=parseInt(O,10),!/^[0-9]+$/.test(O)||D<=0||D>65535)return!1}else if(n.require_port)return!1;return n.host_whitelist?b(S,n.host_whitelist):S===""&&!n.require_host?!0:!(!(0,d.default)(S)&&!(0,f.default)(S,n)&&(!I||!(0,d.default)(I,6))||(S=S||I,n.host_blacklist&&b(S,n.host_blacklist)))}a.exports=e.default,a.exports.default=e.default})(ie,ie.exports);var Oe=T(ie.exports);function ce(a,e){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);e&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),l.push.apply(l,f)}return l}function de(a){for(var e=1;e<arguments.length;e++){var l=arguments[e]!=null?arguments[e]:{};e%2?ce(Object(l),!0).forEach(function(f){_e(a,f,l[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(l)):ce(Object(l)).forEach(function(f){Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(l,f))})}return a}function ve(a){var e=Object.prototype.toString.call(a),l={Date:"[object Date]"};return e===l.Date?!1:pe(a)?xe(a):["",void 0,null].includes(a)}var Ae={date:Se,url:Oe,email:Ee,required:function(e){return!ve(e)},whitespace:function(e){return!(/^\s+$/.test(e)||e==="")},boolean:function(e){return he(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 Le(a,e){return oe.apply(this,arguments)}function oe(){return oe=ye(X.mark(function a(e,l){var f,d,x,s,u,y,E;return X.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:f={result:!0},d=Object.keys(l),u=0;case 3:if(!(u<d.length)){_.next=15;break}if(y=d[u],!(!l.required&&ve(e)&&!l.validator)){_.next=7;break}return _.abrupt("return",f);case 7:if(E=Ae[y],!(E&&(l[y]||l[y]===0))){_.next=12;break}return x=l[y]===!0?void 0:l[y],s=E,_.abrupt("break",15);case 12:u++,_.next=3;break;case 15:if(!s){_.next=23;break}return _.next=18,s(e,x);case 18:if(f=_.sent,!he(f)){_.next=21;break}return _.abrupt("return",de(de({},l),{},{result:f}));case 21:if(!pe(f)){_.next=23;break}return _.abrupt("return",f);case 23:return _.abrupt("return",f);case 24:case"end":return _.stop()}},a)})),oe.apply(this,arguments)}function Me(a,e){return ue.apply(this,arguments)}function ue(){return ue=ye(X.mark(function a(e,l){var f,d;return X.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return f=l.map(function(u){return Le(e,u)}),s.next=3,Promise.all(f);case 3:return d=s.sent,s.abrupt("return",d);case 5:case"end":return s.stop()}},a)})),ue.apply(this,arguments)}export{ye as _,Ie as i,X as r,qe as s,Me as v};
|