/**handles:swv**/ (()=>{var s={d:(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},a={};function t(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;let s=()=>{let i=new Map;return i.largestIndex=0,i.set=function(t,e){""===t?t=i.largestIndex++:/^[0-9]+$/.test(t)&&(t=parseInt(t),i.largestIndex<=t)&&(i.largestIndex=t+1),Map.prototype.set.call(i,t,e)},i},e=(this.tree=s(),/^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i);for(let[t,i]of this.formData){var a=t.match(e);if(a)if(""===a.groups.array)this.tree.set(a.groups.name,i);else{let t=[...a.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map(([t,e])=>e),e=(t.unshift(a.groups.name),t.pop());t.reduce((t,e)=>{var i;return/^[0-9]+$/.test(e)&&(e=parseInt(e)),t.get(e)instanceof Map?t.get(e):(i=s(),t.set(e,i),i)},this.tree).set(e,i)}}}s.r(a),s.d(a,{all:()=>D,any:()=>M,date:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>w,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>j,minitems:()=>v,minlength:()=>g,minnumber:()=>b,number:()=>m,required:()=>e,requiredfile:()=>i,stepnumber:()=>I,tel:()=>p,time:()=>c,url:()=>l}),t.prototype.entries=function(){return this.tree.entries()},t.prototype.get=function(t){return this.tree.get(t)},t.prototype.getAll=function(t){if(!this.has(t))return[];let a=t=>{var e=[];if(t instanceof Map)for(var[i,s]of t)e.push(...a(s));else""!==t&&e.push(t);return e};return a(this.get(t))},t.prototype.has=function(t){return this.tree.has(t)},t.prototype.keys=function(){return this.tree.keys()},t.prototype.values=function(){return this.tree.values()};let o=t;function n({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}let e=function(t){if(0===t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).length)throw new n(this)},i=function(t){if(0===t.getAll(this.field).length)throw new n(this)},r=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;var[t,e]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(t))return!1;if(/\.{2,}/.test(e))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(e))return!1;var e=e.split(".");if(e.length<2)return!1;for(let t of e){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0}))throw new n(this)},l=function(t){var e;if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{try{return-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(new URL(t).protocol.replace(/:$/,""))}catch{return!1}}))throw new n(this)},p=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t="+"+t.replace(/^[+0]+/,"")),!!/^[+]?[0-9]+$/.test(t)&&5t.trim()).filter(t=>""!==t).every(t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))throw new n(this)},f=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{var t;return!!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&(t=new Date(t),!Number.isNaN(t.valueOf()))}))throw new n(this)},c=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{var t=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/),e,i,t;return!!t&&(e=parseInt(t[1]),i=parseInt(t[2]),t=t[3]?parseInt(t[3]):0,0<=e)&&e<=23&&0<=i&&i<=59&&0<=t&&t<=59}))throw new n(this)},d=function(t){if(!t.getAll(this.field).every(e=>e instanceof File&&this.accept?.some(t=>/^\.[a-z0-9]+$/i.test(t)?e.name.toLowerCase().endsWith(t.toLowerCase()):(t=>{var i=[],s=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i),a;if(s){let t=s.groups.toplevel.toLowerCase(),e=s.groups.sub.toLowerCase();for(var[r,o]of((a=new Map).set("jpg|jpeg|jpe","image/jpeg"),a.set("gif","image/gif"),a.set("png","image/png"),a.set("bmp","image/bmp"),a.set("tiff|tif","image/tiff"),a.set("webp","image/webp"),a.set("ico","image/x-icon"),a.set("heic","image/heic"),a.set("asf|asx","video/x-ms-asf"),a.set("wmv","video/x-ms-wmv"),a.set("wmx","video/x-ms-wmx"),a.set("wm","video/x-ms-wm"),a.set("avi","video/avi"),a.set("divx","video/divx"),a.set("flv","video/x-flv"),a.set("mov|qt","video/quicktime"),a.set("mpeg|mpg|mpe","video/mpeg"),a.set("mp4|m4v","video/mp4"),a.set("ogv","video/ogg"),a.set("webm","video/webm"),a.set("mkv","video/x-matroska"),a.set("3gp|3gpp","video/3gpp"),a.set("3g2|3gp2","video/3gpp2"),a.set("txt|asc|c|cc|h|srt","text/plain"),a.set("csv","text/csv"),a.set("tsv","text/tab-separated-values"),a.set("ics","text/calendar"),a.set("rtx","text/richtext"),a.set("css","text/css"),a.set("htm|html","text/html"),a.set("vtt","text/vtt"),a.set("dfxp","application/ttaf+xml"),a.set("mp3|m4a|m4b","audio/mpeg"),a.set("aac","audio/aac"),a.set("ra|ram","audio/x-realaudio"),a.set("wav","audio/wav"),a.set("ogg|oga","audio/ogg"),a.set("flac","audio/flac"),a.set("mid|midi","audio/midi"),a.set("wma","audio/x-ms-wma"),a.set("wax","audio/x-ms-wax"),a.set("mka","audio/x-matroska"),a.set("rtf","application/rtf"),a.set("js","application/javascript"),a.set("pdf","application/pdf"),a.set("swf","application/x-shockwave-flash"),a.set("class","application/java"),a.set("tar","application/x-tar"),a.set("zip","application/zip"),a.set("gz|gzip","application/x-gzip"),a.set("rar","application/rar"),a.set("7z","application/x-7z-compressed"),a.set("exe","application/x-msdownload"),a.set("psd","application/octet-stream"),a.set("xcf","application/octet-stream"),a.set("doc","application/msword"),a.set("pot|pps|ppt","application/vnd.ms-powerpoint"),a.set("wri","application/vnd.ms-write"),a.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),a.set("mdb","application/vnd.ms-access"),a.set("mpp","application/vnd.ms-project"),a.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),a.set("docm","application/vnd.ms-word.document.macroEnabled.12"),a.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),a.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),a.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),a.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),a.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),a.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),a.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),a.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),a.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),a.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),a.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),a.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),a.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),a.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),a.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),a.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),a.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),a.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),a.set("oxps","application/oxps"),a.set("xps","application/vnd.ms-xpsdocument"),a.set("odt","application/vnd.oasis.opendocument.text"),a.set("odp","application/vnd.oasis.opendocument.presentation"),a.set("ods","application/vnd.oasis.opendocument.spreadsheet"),a.set("odg","application/vnd.oasis.opendocument.graphics"),a.set("odc","application/vnd.oasis.opendocument.chart"),a.set("odb","application/vnd.oasis.opendocument.database"),a.set("odf","application/vnd.oasis.opendocument.formula"),a.set("wp|wpd","application/wordperfect"),a.set("key","application/vnd.apple.keynote"),a.set("numbers","application/vnd.apple.numbers"),a.set("pages","application/vnd.apple.pages"),a))("*"===e&&o.startsWith(t+"/")||o===s[0])&&i.push(...r.split("|"))}return i})(t).some(t=>(t="."+t.trim(),e.name.toLowerCase().endsWith(t.toLowerCase()))))))throw new n(this)},h=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(e=>this.accept?.some(t=>e===String(t))))throw new n(this)},u=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{let e=0===(t=new Date(t).getDay())?7:t;var t;return this.accept?.some(t=>e===parseInt(t))}))throw new n(this)},v=function(t){if(t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).lengtht.trim()).filter(t=>""!==t);if(parseInt(this.threshold)t.trim()).filter(t=>""!==t);let e=0;if(t.forEach(t=>{"string"==typeof t&&(e+=t.length)}),0!==e&&et.trim()).filter(t=>""!==t);let e=0;if(t.forEach(t=>{"string"==typeof t&&(e+=t.length)}),parseInt(this.threshold)t.trim()).filter(t=>""!==t).every(t=>!(parseFloat(t)t.trim()).filter(t=>""!==t).every(t=>!(parseFloat(this.threshold)t.trim()).filter(t=>""!==t).every(t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&tt.trim()).filter(t=>""!==t).every(t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold{t instanceof File&&(e+=t.size)}),e{t instanceof File&&(e+=t.size)}),parseInt(this.threshold)t.trim()).filter(t=>""!==t),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0{var t=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(t).toFixed(6)||"0.000000"===Math.abs(t-s).toFixed(6)}))throw new n(this)},O=({ruleObj:t,options:e})=>{let{rule:i,...s}=t;return"function"==typeof a[i]&&("function"!=typeof a[i].matches||a[i].matches(s,e))},E=({ruleObj:t,formDataTree:e,options:i})=>{var{rule:s}=t;a[s].call(t,e,i)},k=[],F=t=>[...k].reduce((e,i)=>t=>i(t,e),t),D=function(e,i={}){let t=(this.rules??[]).filter(t=>O({ruleObj:t,options:i})),s=F(E);if(!t.every(t=>{try{s({ruleObj:t,formDataTree:e,options:i})}catch(t){if(!(t instanceof n))throw t;if(void 0!==t.error)throw t;return!1}return!0}))throw new n(this)},M=function(e,i={}){let t=(this.rules??[]).filter(t=>O({ruleObj:t,options:i})),s=F(E);if(!t.some(t=>{try{s({ruleObj:t,formDataTree:e,options:i})}catch(t){if(t instanceof n)return!1;throw t}return!0}))throw new n(this)},L;window.swv={validators:a,validate:(t,e,i={})=>{var t=(t.rules??[]).filter(t=>O({ruleObj:t,options:i}));if(!t.length)return new Map;let s=F(E),a=new o(e),r=t.reduce((t,e)=>{try{s({ruleObj:e,formDataTree:a,options:i})}catch(e){if(!(e instanceof n))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t},new Map);for(let t of a.keys())r.has(t)||r.set(t,{validInputs:a.getAll(t)});return r},use:t=>{k.push(t)},...null!=(L=window.swv)?L:{}}})();