PageSourceSearch

https://evisa.gov.vn/assets/js/vue-types-1074d2f5.js

js evisa.gov.vn collected 2026-10-02 03:27:10 UTC 9,100 bytes, 8 lines download raw bytes

1function x(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function A(e,r,n){return r&&x(e.prototype,r),n&&x(e,n),e}function T(){return(T=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function q(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function S(e,r){if(e==null)return{};var n,t,i={},u=Object.keys(e);for(t=0;t<u.length;t++)r.indexOf(n=u[t])>=0||(i[n]=e[n]);return i}function E(e){return((r=e)!=null&&typeof r=="object"&&Array.isArray(r)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var r}var N=Object.prototype,V=N.toString,z=N.hasOwnProperty,F=/^\s*function (\w+)/;function L(e){var r,n=(r=e==null?void 0:e.type)!==null&&r!==void 0?r:e;if(n){var t=n.toString().match(F);return t?t[1]:""}return""}var b=function(e){var r,n;return E(e)!==!1&&typeof(r=e.constructor)=="function"&&E(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},C=function(e){return e},l=C,j=function(e,r){return z.call(e,r)},I=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},O=Array.isArray||function(e){return V.call(e)==="[object Array]"},m=function(e){return V.call(e)==="[object Function]"},w=function(e){return b(e)&&j(e,"_vueTypes_name")},Y=function(e){return b(e)&&(j(e,"type")||["_vueTypes_name","validator","default","required"].some(function(r){return j(e,r)}))};function P(e,r){return Object.defineProperty(e.bind(r),"__original",{value:e})}function g(e,r,n){var t;n===void 0&&(n=!1);var i=!0,u="";t=b(e)?e:{type:e};var f=w(t)?t._vueTypes_name+" - ":"";if(Y(t)&&t.type!==null){if(t.type===void 0||t.type===!0||!t.required&&r===void 0)return i;O(t.type)?(i=t.type.some(function(a){return g(a,r,!0)===!0}),u=t.type.map(function(a){return L(a)}).join(" or ")):i=(u=L(t))==="Array"?O(r):u==="Object"?b(r):u==="String"||u==="Number"||u==="Boolean"||u==="Function"?function(a){if(a==null)return"";var p=a.constructor.toString().match(F);return p?p[1]:""}(r)===u:r instanceof t.type}if(!i){var s=f+'value "'+r+'" should be of type "'+u+'"';return n===!1?(l(s),!1):s}if(j(t,"validator")&&m(t.validator)){var o=l,c=[];if(l=function(a){c.push(a)},i=t.validator(r),l=o,!i){var y=(c.length>1?"* ":"")+c.join(`
2* `);return c.length=0,n===!1?(l(y),i):y}}return i}function v(e,r){var n=Object.defineProperties(r,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?m(i)||g(this,i,!0)===!0?(this.default=O(i)?function(){return[].concat(i)}:b(i)?function(){return Object.assign({},i)}:i,this):(l(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),t=n.validator;return m(t)&&(n.validator=P(t,n)),n}function d(e,r){var n=v(e,r);return Object.defineProperty(n,"validate",{value:function(t){return m(this.validator)&&l(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
3`+JSON.stringify(this)),this.validator=P(t,this),this}})}function B(e,r,n){var t,i,u=(t=r,i={},Object.getOwnPropertyNames(t).forEach(function(a){i[a]=Object.getOwnPropertyDescriptor(t,a)}),Object.defineProperties({},i));if(u._vueTypes_name=e,!b(n))return u;var f,s,o=n.validator,c=S(n,["validator"]);if(m(o)){var y=u.validator;y&&(y=(s=(f=y).__original)!==null&&s!==void 0?s:f),u.validator=P(y?function(a){return y.call(this,a)&&o.call(this,a)}:o,u)}return Object.assign(u,c)}function k(e){return e.replace(/^(?!\s*$)/gm,"  ")}var J=function(){return d("any",{})},M=function(){return d("function",{type:Function})},R=function(){return d("boolean",{type:Boolean})},$=function(){return d("string",{type:String})},G=function(){return d("number",{type:Number})},H=function(){return d("array",{type:Array})},K=function(){return d("object",{type:Object})},Q=function(){return v("integer",{type:Number,validator:function(e){return I(e)}})},U=function(){return v("symbol",{validator:function(e){return typeof e=="symbol"}})};function W(e,r){if(r===void 0&&(r="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return v(e.name||"<<anonymous function>>",{validator:function(n){var t=e(n);return t||l(this._vueTypes_name+" - "+r),t}})}function X(e){if(!O(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var r='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(t,i){if(i!=null){var u=i.constructor;t.indexOf(u)===-1&&t.push(u)}return t},[]);return v("oneOf",{type:n.length>0?n:void 0,validator:function(t){var i=e.indexOf(t)!==-1;return i||l(r),i}})}function Z(e){if(!O(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var r=!1,n=[],t=0;t<e.length;t+=1){var i=e[t];if(Y(i)){if(w(i)&&i._vueTypes_name==="oneOf"){n=n.concat(i.type);continue}if(m(i.validator)&&(r=!0),i.type!==!0&&i.type){n=n.concat(i.type);continue}}n.push(i)}return n=n.filter(function(u,f){return n.indexOf(u)===f}),v("oneOfType",r?{type:n,validator:function(u){var f=[],s=e.some(function(o){var c=g(w(o)&&o._vueTypes_name==="oneOf"?o.type||null:o,u,!0);return typeof c=="string"&&f.push(c),c===!0});return s||l("oneOfType - provided value does not match any of the "+f.length+` passed-in validators:
4`+k(f.join(`
5`))),s}}:{type:n})}function ee(e){return v("arrayOf",{type:Array,validator:function(r){var n,t=r.every(function(i){return(n=g(e,i,!0))===!0});return t||l(`arrayOf - value validation error:
6`+k(n)),t}})}function te(e){return v("instanceOf",{type:e})}function re(e){return v("objectOf",{type:Object,validator:function(r){var n,t=Object.keys(r).every(function(i){return(n=g(e,r[i],!0))===!0});return t||l(`objectOf - value validation error:
7`+k(n)),t}})}function ne(e){var r=Object.keys(e),n=r.filter(function(i){var u;return!!(!((u=e[i])===null||u===void 0)&&u.required)}),t=v("shape",{type:Object,validator:function(i){var u=this;if(!b(i))return!1;var f=Object.keys(i);if(n.length>0&&n.some(function(o){return f.indexOf(o)===-1})){var s=n.filter(function(o){return f.indexOf(o)===-1});return l(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}
7return f.every(function(o){if(r.indexOf(o)===-1)return u._vueTypes_isLoose===!0||(l('shape - shape definition does not include a "'+o+'" property. Allowed keys: "'+r.join('", "')+'".'),!1);var c=g(e[o],i[o],!0);return typeof c=="string"&&l('shape - "'+o+`" property validation error:
8 `+k(c)),c===!0})}});return Object.defineProperty(t,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(t,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),t}var h=function(){function e(){}return e.extend=function(r){var n=this;if(O(r))return r.forEach(function(a){return n.extend(a)}),this;var t=r.name,i=r.validate,u=i!==void 0&&i,f=r.getter,s=f!==void 0&&f,o=S(r,["name","validate","getter"]);if(j(this,t))throw new TypeError('[VueTypes error]: Type "'+t+'" already defined');var c,y=o.type;return w(y)?(delete o.type,Object.defineProperty(this,t,s?{get:function(){return B(t,y,o)}}:{value:function(){var a,p=B(t,y,o);return p.validator&&(p.validator=(a=p.validator).bind.apply(a,[p].concat([].slice.call(arguments)))),p}})):(c=s?{get:function(){var a=Object.assign({},o);return u?d(t,a):v(t,a)},enumerable:!0}:{value:function(){var a,p,_=Object.assign({},o);return a=u?d(t,_):v(t,_),_.validator&&(a.validator=(p=_.validator).bind.apply(p,[a].concat([].slice.call(arguments)))),a},enumerable:!0},Object.defineProperty(this,t,c))},A(e,null,[{key:"any",get:function(){return J()}},{key:"func",get:function(){return M().def(this.defaults.func)}},{key:"bool",get:function(){return R().def(this.defaults.bool)}},{key:"string",get:function(){return $().def(this.defaults.string)}},{key:"number",get:function(){return G().def(this.defaults.number)}},{key:"array",get:function(){return H().def(this.defaults.array)}},{key:"object",get:function(){return K().def(this.defaults.object)}},{key:"integer",get:function(){return Q().def(this.defaults.integer)}},{key:"symbol",get:function(){return U()}}]),e}();function D(e){var r;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(r=function(n){function t(){return n.apply(this,arguments)||this}return q(t,n),A(t,null,[{key:"sensibleDefaults",get:function(){return T({},this.defaults)},set:function(i){this.defaults=i!==!1?T({},i!==!0?i:e):{}}}]),t}(h)).defaults=T({},e),r}h.defaults={},h.custom=W,h.oneOf=X,h.instanceOf=te,h.oneOfType=Z,h.arrayOf=ee,h.objectOf=re,h.shape=ne,h.utils={validate:function(e,r){return g(r,e,!0)===!0},toType:function(e,r,n){return n===void 0&&(n=!1),n?d(e,r):v(e,r)}};var ie=function(e){function r(){return e.apply(this,arguments)||this}return q(r,e),r}(D());export{ie as C,D as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.