gtsoft-snail-job-server/frontend/public/lib/assets/2mwtHj94.js

22 lines
1.9 MiB
JavaScript
Raw Normal View History

var e,t,n=Object.getOwnPropertyNames,o=(e={"assets/2mwtHj94.js"(e,t){function n(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const o={},r=[],i=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===S(e),g=e=>"[object Set]"===S(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,O=e=>(y(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,S=e=>w.call(e),$=e=>"[object Object]"===S(e),x=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,T=k((e=>e.replace(P,((e,t)=>t?t.toUpperCase():"")))),M=/\B([A-Z])/g,I=k((e=>e.replace(M,"-$1").toLowerCase())),E=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),A=k((e=>e?`on${E(e)}`:"")),D=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let j;const N=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function _(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=v(o)?F(o):_(o);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||y(e))return e}const Q=/;(?![^(]*\))/g,L=/:([^]+)/,H=/\/\*[^]*?\*\//g;function F(e){const t={};return e.replace(H,"").split(Q).forEach((e=>{if(e){const n=e.split(L);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const o=W(e[n]);o&&(t+=o+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const X=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Y(e){return!!e||""===e}const V=e=>v(e)?e:null==e?"":h(e)||y(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[U(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>U(e)))}:b(t)?U(t):!y(t)||h(t)||$(t)?t:String(t),U=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let K;class G{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=K,!e&&K&&(this.index=(K.scopes||(K.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=K;try{return K=this,e()}finally{K=t}}}on(){K=this}off(){K=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function q(e){return new G(e)}f
/*! #__NO_SIDE_EFFECTS__ */function jn(e,t){return m(e)?(()=>c({name:e.name},t,{setup:e}))():e}const Nn=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function Qn(e,t){Hn(e,"a",t)}function Ln(e,t){Hn(e,"da",t)}function Hn(e,t,n=Tr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Wn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)_n(e.parent.vnode)&&Fn(o,t,n,e),e=e.parent}}function Fn(e,t,n,o){const r=Wn(t,e,o,!0);Gn((()=>{u(o[t],r)}),n)}function Wn(e,t,n=Tr,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fe(),Dr(n);const r=At(t,n,e,o);return Rr(),ge(),r});return o?r.unshift(i):r.push(i),i}}const Xn=e=>(t,n=Tr)=>(!Br||"sp"===e)&&Wn(e,((...e)=>t(...e)),n),Yn=Xn("bm"),Vn=Xn("m"),Zn=Xn("bu"),Un=Xn("u"),Kn=Xn("bum"),Gn=Xn("um"),qn=Xn("sp"),Jn=Xn("rtg"),eo=Xn("rtc");function to(e,t=Tr){Wn("ec",e,t)}function no(e,t,n,o){let r;const i=n&&n[o];if(h(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(y(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o<l;o++){const l=n[o];r[o]=t(e[l],l,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}function oo(e,t,n={},o,r){if(en.isCE||en.parent&&Nn(en.parent)&&en.parent.isCE)return"default"!==t&&(n.name=t),br("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),lr();const l=i&&ro(i(n)),a=dr(er,{key:n.key||l&&l.key||`_${t}`},l||(o?o():[]),l&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ro(e){return e.some((e=>!pr(e)||e.type!==nr&&!(e.type===er&&!ro(e.children))))?e:null}const io=e=>e?zr(e)?Qr(e)||e.proxy:io(e.parent):null,lo=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>io(e.parent),$root:e=>io(e.root),$emit:e=>e.emit,$options:e=>mo(e),$forceUpdate:e=>e.f||(e.f=()=>Wt(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>On.bind(e)}),ao=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),so={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:a,type:s,appContext:c}=e;let u;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(ao(r,t))return a[t]=1,r[t];if(i!==o&&p(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return a[t]=3,l[t];if(n!==o&&p(n,t))return a[t]=4,n[t];po&&(a[t]=0)}}const d=lo[t];let h,f;return d?("$attrs"===t&&me(e,0,t),d(e)):(h=s.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(a[t]=4,n[t]):(f=c.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return ao(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(l[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},a){let s;return!!n[a]||e!==o&&p(e,a)||ao(t,a)||(s=l[0])&&p(s,a)||p(r,a)||p(lo,a)||p(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function co(){return function(){const e=Mr();return e.setupContext||(e.setupContext=_r(e))}().attrs}function uo(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let po=!0;function ho(e){const t=mo(e),n=e.proxy,o=e.ctx;po=!1,t.beforeCreate&&fo(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:a,watch:s,provide:c,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:b,deactivated:O,beforeDestroy:w,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:k,renderTriggered:P,errorCaptured:T,serverPrefetch:M,expose:I,inheritAttrs:E,components:A,directives:D,filters:R}=t;if(u&&function(e,t,n=i){h(e)&&(e=Oo(e));for(const o in e){const n=e[o];let r;r=y(n)?"default"in n?Mo(n.from||o,n.default,!0):Mo(n.from||o):Mo(n),vt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get
2023-12-19 16:06:30 +08:00
/*!
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
let Xi;const Yi=e=>Xi=e,Vi=Symbol();function Zi(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ui,Ki;(Ki=Ui||(Ui={})).direct="direct",Ki.patchObject="patch object",Ki.patchFunction="patch function";const Gi=()=>{};function qi(e,t,n,o=Gi){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&J()&&ee(r),r}function Ji(e,...t){e.slice().forEach((e=>{e(...t)}))}const el=e=>e();function tl(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Zi(r)&&Zi(o)&&e.hasOwnProperty(n)&&!vt(o)&&!at(o)?e[n]=tl(r,o):e[n]=o}return e}const nl=Symbol(),{assign:ol}=Object;function rl(e,t,n={},o,r,i){let l;const a=ol({actions:{}},n),s={deep:!0};let c,u,d,p=[],h=[];const f=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:Ui.patchFunction,storeId:e,events:d}):(tl(o.state.value[e],t),n={type:Ui.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();Ft().then((()=>{g===r&&(c=!0)})),u=!0,Ji(p,n,o.state.value[e])}i||f||(o.state.value[e]={}),bt({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ol(e,t)}))}:Gi;function b(t,n){return function(){Yi(o);const r=Array.from(arguments),i=[],l=[];let a;Ji(h,{args:r,name:t,store:y,after:function(e){i.push(e)},onError:function(e){l.push(e)}});try{a=n.apply(this&&this.$id===e?this:y,r)}catch(s){throw Ji(l,s),s}return a instanceof Promise?a.then((e=>(Ji(i,e),e))).catch((e=>(Ji(l,e),Promise.reject(e)))):(Ji(i,a),a)}}const y=rt({_p:o,$id:e,$onAction:qi.bind(null,h),$patch:m,$reset:v,$subscribe(t,n={}){const r=qi(p,t,n.detached,(()=>i())),i=l.run((()=>bn((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:Ui.direct,events:d},o)}),ol({},s,n))));return r},$dispose:function(){l.stop(),p=[],h=[],o._s.delete(e)}});o._s.set(e,y);const O=(o._a&&o._a.runWithContext||el)((()=>o._e.run((()=>(l=q()).run(t)))));for(const $ in O){const t=O[$];if(vt(t)&&(!vt(S=t)||!S.effect)||at(t))i||(!f||Zi(w=t)&&w.hasOwnProperty(nl)||(vt(t)?t.value=f[$]:tl(t,f[$])),o.state.value[e][$]=t);else if("function"==typeof t){const e=b($,t);O[$]=e,a.actions[$]=t}}var w,S;return ol(y,O),ol(dt(y),O),Object.defineProperty(y,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{ol(t,e)}))}}),o._p.forEach((e=>{ol(y,l.run((()=>e({store:y,app:o._a,pinia:o,options:a}))))})),f&&i&&n.hydrate&&n.hydrate(y.$state,f),c=!0,u=!0,y}function il(e){return(il="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)}function ll(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=il(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==il(t)?t:String(t)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){var o,r,i;o=e,r=t,i=n[t],(r=ll(r))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cl.apply(this,arguments)}const ul=Array.isArray,dl=e=>null!==e&&"object"==typeof e,pl=/
2023-12-19 16:06:30 +08:00
/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/
var UJ,KJ;!function(e){class t{static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,o){let l,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=s&&s<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");for(l=s;;l++){const n=8*t.getNumDataCodewords(l,o),r=i.getTotalBits(e,l);if(r<=n){a=r;break}if(l>=c)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&a<=8*t.getNumDataCodewords(l,n)&&(o=n);const p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}r(p.length==a);const h=8*t.getNumDataCodewords(l,o);r(p.length<=h),n(0,Math.min(4,h-p.length),p),n(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let t=236;p.length<h;t^=253)n(t,8,p);const f=[];for(;8*f.length<p.length;)f.push(0);return p.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(l,o,f,u)}constructor(e,n,o,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const l=[];for(let t=0;t<this.size;t++)l.push(!1);for(let t=0;t<this.size;t++)this.modules.push(l.slice()),this.isFunction.push(l.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(o);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}r(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let o=0;o<t;o++)0==n&&0==o||0==n&&o==t-1||n==t-1&&0==o||this.drawAlignmentPattern(e[n],e[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let o=0;o<10;o++)n=n<<1^1335*(n>>>9);const i=21522^(t<<10|n);r(i>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,o(i,r));this.setFunctionModule(8,7,o(i,6)),this.setFunctionModule(8,8,o(i,7)),this.setFunctionModule(7,8,o(i,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,o(i,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,o(i,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,o(i,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let n=0;n<18;n++){const e=o(t,n),r=this.size-11+n%3,i=Math.floor(n/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),i=e+o,l=t+n;0<=i&&i<this.size&&0<=l&&l<this.size&&this.setFunctionModule(i,l,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,o=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],l=t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),s=i-a%i,c=Math.floor(a/i),u=[],d=t.reedSolomonComputeDivisor(l
2023-12-19 16:06:30 +08:00
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function F0(e){return"[object Object]"===Object.prototype.toString.call(e)}function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},W0.apply(this,arguments)}function X0(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}const Y0={silent:!1,logLevel:"warn"},V0=["validator"],Z0=Object.prototype,U0=Z0.toString,K0=Z0.hasOwnProperty,G0=/^\s*function (\w+)/;function q0(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(G0);return e?e[1]:""}return""}const J0=function(e){var t,n;return!1!==F0(e)&&(void 0===(t=e.constructor)||!1!==F0(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};let e1=e=>e;const t1=(e,t)=>K0.call(e,t),n1=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o1=Array.isArray||function(e){return"[object Array]"===U0.call(e)},r1=e=>"[object Function]"===U0.call(e),i1=(e,t)=>J0(e)&&t1(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),l1=e=>J0(e)&&(t1(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>t1(e,t))));function a1(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function s1(e,t,n=!1){let o,r=!0,i="";o=J0(e)?e:{type:e};const l=i1(o)?o._vueTypes_name+" - ":"";if(l1(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&null==t)return r;o1(o.type)?(r=o.type.some((e=>!0===s1(e,t,!0))),i=o.type.map((e=>q0(e))).join(" or ")):(i=q0(o),r="Array"===i?o1(t):"Object"===i?J0(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";const t=e.constructor.toString().match(G0);return t?t[1].replace(/^Async/,""):""}(t)===i:t instanceof o.type)}if(!r){const e=`${l}value "${t}" should be of type "${i}"`;return!1===n?(e1(e),!1):e}if(t1(o,"validator")&&r1(o.validator)){const e=e1,i=[];if(e1=e=>{i.push(e)},r=o.validator(t),e1=e,!r){const e=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(e1(e),r):e}}return r}function c1(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(t1(this,"default")&&delete this.default,this):r1(e)||!0===s1(this,e,!0)?(this.default=o1(e)?()=>[...e]:J0(e)?()=>Object.assign({},e):e,this):(e1(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:o}=n;return r1(o)&&(n.validator=a1(o,n)),n}function u1(e,t){const n=c1(e,t);return Object.defineProperty(n,"validate",{value(e){return r1(this.validator)&&e1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=a1(e,this),this}})}function d1(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((n=>{t[n]=Object.getOwnPropertyDescriptor(e,n)})),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!J0(n))return o;const{validator:r}=n,i=X0(n,V0);if(r1(r)){let{validator:e}=o;e&&(e=null!==(a=(l=e).__original)&&void 0!==a?a:l),o.validator=a1(e?function(t){return e.call(this,t)&&r.call(this,t)}:r,o)}var l,a;return Object.assign(o,i)}function p1(e){return e.replace(/^(?!\s*$)/gm," ")}const h1=()=>u1("any",{}),f1=()=>u1("boolean",{type:Boolean}),g1=()=>u1("string",{type:String}),m1=()=>u1("object",{type:Object});function v1(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return c1(e.name||"<<anonymous function>>",{type:null,validator(n){const o=e(n);return o||e1(`${this._vueTypes_name} - ${t}`),o}})}function b1(e){if(!o1(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map((e=>"symbol"==typeof e?e.toString():e)).join('", "')}".`,n={va