From a85cf7ae85f33c72c5f3148e0e1a6479287e4fd6 Mon Sep 17 00:00:00 2001 From: Anthony Mugendi Date: Thu, 2 May 2024 06:56:28 +0300 Subject: [PATCH] ... --- build/svelte-former.js | 2 +- src/elements/controls/Input.svelte | 4 ++-- src/styles/form.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/svelte-former.js b/build/svelte-former.js index 8ef34d2..0d115ce 100644 --- a/build/svelte-former.js +++ b/build/svelte-former.js @@ -1 +1 @@ -var SvelteFormer=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function i(t){t.forEach(n)}function a(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l;function s(t,e){return t===e||(l||(l=document.createElement("a")),l.href=e,t===l.href)}function u(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e){for(const t of n)t(void 0);return t}const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function c(t,e){t.appendChild(e)}function p(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){for(let n=0;nt.removeEventListener(e,n,r)}function w(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const v=["width","height"];function y(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===v.indexOf(r)?t[r]=e[r]:w(t,r,e[r])}function k(t,e){e=""+e,t.data!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function j(t,e,n){for(let n=0;n{V.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function J(t){return void 0!==t?.length?t:Array.from(t)}function X(t,e){const n={},r={},i={$$scope:1};let a=t.length;for(;a--;){const o=t[a],l=e[a];if(l){for(const t in o)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[a]=l}else for(const t in o)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function W(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function K(t){t&&t.c()}function Z(t,e,r){const{fragment:o,after_update:l}=t.$$;o&&o.m(e,r),L((()=>{const e=t.$$.on_mount.map(n).filter(a);t.$$.on_destroy?t.$$.on_destroy.push(...e):i(e),t.$$.on_mount=[]})),l.forEach(L)}function G(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];M.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),M=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(t,e){-1===t.$$.dirty[0]&&(A.push(t),I||(I=!0,N.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const i=r.length?r[0]:n;return f.ctx&&l(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),d&&Q(e,t)),n})):[],f.update(),d=!0,i(f.before_update),f.fragment=!!o&&o(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(m)}else f.fragment&&f.fragment.c();n.intro&&B(e.$$.fragment),Z(e,n.target,n.anchor),R()}_(p)}class et{$$=void 0;$$set=void 0;$destroy(){G(this,1),this.$destroy=t}$on(e,n){if(!a(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var nt=[],rt=[];function it(t,e){if(t&&"undefined"!=typeof document){var n,r=!0===e.prepend?"prepend":"append",i=!0===e.singleTag,a="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(i){var o=nt.indexOf(a);-1===o&&(o=nt.push(a)-1,rt[o]={}),n=rt[o]&&rt[o][r]?rt[o][r]:rt[o][r]=l()}else n=l();65279===t.charCodeAt(0)&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function l(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var n=Object.keys(e.attributes),i=0;i .col,\n.no-gutters > [class*=col-] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col,\n.col-1,\n.col-10,\n.col-11,\n.col-12,\n.col-2,\n.col-3,\n.col-4,\n.col-5,\n.col-6,\n.col-7,\n.col-8,\n.col-9,\n.col-auto,\n.col-lg,\n.col-lg-1,\n.col-lg-10,\n.col-lg-11,\n.col-lg-12,\n.col-lg-2,\n.col-lg-3,\n.col-lg-4,\n.col-lg-5,\n.col-lg-6,\n.col-lg-7,\n.col-lg-8,\n.col-lg-9,\n.col-lg-auto,\n.col-md,\n.col-md-1,\n.col-md-10,\n.col-md-11,\n.col-md-12,\n.col-md-2,\n.col-md-3,\n.col-md-4,\n.col-md-5,\n.col-md-6,\n.col-md-7,\n.col-md-8,\n.col-md-9,\n.col-md-auto,\n.col-sm,\n.col-sm-1,\n.col-sm-10,\n.col-sm-11,\n.col-sm-12,\n.col-sm-2,\n.col-sm-3,\n.col-sm-4,\n.col-sm-5,\n.col-sm-6,\n.col-sm-7,\n.col-sm-8,\n.col-sm-9,\n.col-sm-auto,\n.col-xl,\n.col-xl-1,\n.col-xl-10,\n.col-xl-11,\n.col-xl-12,\n.col-xl-2,\n.col-xl-3,\n.col-xl-4,\n.col-xl-5,\n.col-xl-6,\n.col-xl-7,\n.col-xl-8,\n.col-xl-9,\n.col-xl-auto {\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: 5px;\n padding-left: 5px;\n}\n\n.col {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.col-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n}\n\n.col-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-sm-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-sm-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n@media (min-width: 768px) {\n .col-md {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-md-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-md-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n@media (min-width: 992px) {\n .col-lg {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-lg-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-lg-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n@media (min-width: 1200px) {\n .col-xl {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-xl-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-xl-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n.order-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n}\n\n.order-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n}\n\n.order-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n}\n\n.flex-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n}\n\n.flex-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n}\n\n.justify-content-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n}\n\n.justify-content-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n}\n\n.align-items-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n}\n\n.align-items-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n}\n\n.align-items-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n}\n\n.align-items-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n}\n\n.align-content-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n}\n\n.align-content-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n}\n\n.align-content-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n}\n\n.align-content-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n}\n\n.align-content-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n}\n\n.align-self-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n}\n\n.align-self-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n}\n\n.align-self-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n}\n\n.align-self-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n}\n\n.align-self-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .order-sm-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-sm-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-sm-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-sm-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-sm-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-sm-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-sm-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-sm-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-sm-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-sm-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-sm-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-sm-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-sm-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n@media (min-width: 768px) {\n .order-md-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-md-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-md-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-md-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-md-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-md-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-md-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-md-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-md-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-md-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-md-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-md-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-md-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-md-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-md-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-md-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-md-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-md-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-md-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-md-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-md-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n@media (min-width: 992px) {\n .order-lg-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-lg-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-lg-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-lg-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-lg-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-lg-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-lg-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-lg-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-lg-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-lg-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-lg-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-lg-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-lg-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n@media (min-width: 1200px) {\n .order-xl-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-xl-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-xl-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-xl-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-xl-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-xl-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-xl-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-xl-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-xl-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-xl-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-xl-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-xl-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-xl-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}",{});it("/**\n * Copyright (c) 2024 Anthony Mugendi\n * \n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n.former {\n /* CSS */\n}\n.former .svlete-former-control-buttons {\n padding: 10px;\n margin: 2px 0;\n}\n.former .svlete-former-control-group {\n padding: 5px;\n border-radius: 10px;\n border: 1px solid #fafafa;\n margin: 5px 0;\n}\n.former .svlete-former-control-group .label-container {\n display: flex;\n justify-content: space-between;\n align-items: end;\n margin-bottom: 5px;\n}\n.former .svlete-former-control-group .label-container .radio, .former .svlete-former-control-group .label-container .checkbox {\n text-wrap: nowrap;\n margin-top: 5px;\n}\n.former .svlete-former-control-group .label-container .label {\n font-size: 1rem;\n font-weight: 600;\n margin-right: 5px;\n cursor: pointer;\n text-wrap: nowrap;\n}\n.former .svlete-former-control-group .label-container .label.small {\n font-weight: 500;\n font-size: 0.8rem;\n}\n.former .svlete-former-control-group .label-container .label.pad-left {\n padding-left: 5px;\n}\n.former .svlete-former-control-group:hover {\n background: #f9f9f9;\n}\n.former .svlete-former-control-group.hidden {\n display: none;\n}\n.former .svlete-former-control-group.has-error {\n background: #fee;\n color: #922;\n}\n.former .svlete-former-control-group.has-error:hover {\n background: #fee;\n}\n.former .svlete-former-control-group.has-error .label-container .error {\n font-size: 0.7rem;\n text-wrap: wrap;\n border-left: 1px #caa solid;\n padding-left: 5px;\n}\n.former .svlete-former-control-group textarea {\n min-height: 200px;\n}\n.former .svlete-former-control-group input,\n.former .svlete-former-control-group textarea,\n.former .svlete-former-control-group select {\n display: block;\n padding: 5px;\n border: none;\n outline: none;\n box-sizing: border-box;\n font-size: 0.95rem;\n color: #444;\n background: #fff;\n box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;\n border-radius: 5px;\n width: 100%;\n}\n.former .svlete-former-control-group input[placeholder],\n.former .svlete-former-control-group textarea[placeholder],\n.former .svlete-former-control-group select[placeholder] {\n color: #999;\n}\n.former .svlete-former-control-group input[disabled],\n.former .svlete-former-control-group textarea[disabled],\n.former .svlete-former-control-group select[disabled] {\n background: #f5f5f5;\n cursor: crosshair;\n}\n.former .svlete-former-control-group input[type=radio],\n.former .svlete-former-control-group input[type=checkbox] {\n display: inline-block;\n width: auto;\n box-shadow: none;\n}\n.former .svlete-former-control-group select {\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z' fill='%23212121'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 0.5rem center;\n}\n.former .button {\n background-image: linear-gradient(rgba(247, 248, 250, 0.8078431373), #e7e9ec);\n border-color: #adb1b8 #a2a6ac #8d9096;\n border-style: solid;\n border-width: 1px;\n border-radius: 3px;\n box-shadow: rgba(255, 255, 255, 0.6) 0 1px 0 inset;\n box-sizing: border-box;\n color: #0f1111;\n cursor: pointer;\n display: inline-block;\n font-family: \"Amazon Ember\", Arial, sans-serif;\n font-size: 14px;\n height: 29px;\n font-size: 13px;\n outline: 0;\n overflow: hidden;\n padding: 0 11px;\n text-align: center;\n text-decoration: none;\n text-overflow: ellipsis;\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n white-space: nowrap;\n}\n.former .button + .button {\n margin-left: 2px;\n}\n.former .button:hover, .former .button:active, .former .button:active:hover, .former .button:focus {\n border-color: #a2a6ac #979aa1 #82858a;\n filter: brightness(103%);\n}\n\n@media (max-width: 575px) {\n .former .control-group:hover {\n background: #f9f9f9;\n }\n .former .control-group .label-container {\n flex-direction: column;\n align-items: start;\n }\n}",{});var at="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ot(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lt,st,ut={exports:{}};lt=ut,(st=st||{}).scope={},st.arrayIteratorImpl=function(t){var e=0;return function(){return e>>0,st.propertyToPolyfillSymbol[r]=st.IS_SYMBOL_NATIVE?st.global.Symbol(r):st.POLYFILL_PREFIX+t+"$"+r),st.defineProperty(i,st.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:e})))},st.initSymbol=function(){},st.polyfill("Symbol",(function(t){function e(t,e){this.$jscomp$symbol$id_=t,st.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}if(t)return t;e.prototype.toString=function(){return this.$jscomp$symbol$id_};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return function t(i){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(i||"")+"_"+r++,i)}}),"es6","es3"),st.polyfill("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n=i}}),"es6","es3"),st.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},st.assign=st.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(t,e){for(var n=1;n=r}}),"es6","es3"),st.polyfill("Number.isNaN",(function(t){return t||function(t){return"number"==typeof t&&isNaN(t)}}),"es6","es3"),st.polyfill("Object.entries",(function(t){return t||function(t){var e,n=[];for(e in t)st.owns(t,e)&&n.push([e,t[e]]);return n}}),"es8","es3"),lt.exports=function(){function t(t){if(this.opts={},this.defaults={},this.messages=Object.assign({},A),this.rules={any:j,array:$,boolean:k,class:y,custom:v,currency:w,date:g,email:b,enum:h,equal:x,forbidden:d,function:f,multi:m,number:p,object:c,objectID:u,record:s,string:l,tuple:o,url:a,uuid:i,mac:r,luhn:n},this.aliases={},this.cache=new Map,t){if(S(this.opts,t),t.defaults&&S(this.defaults,t.defaults),t.messages)for(var E in t.messages)this.addMessage(E,t.messages[E]);if(t.aliases)for(var _ in t.aliases)this.alias(_,t.aliases[_]);if(t.customRules)for(var O in t.customRules)this.add(O,t.customRules[O]);if(t.plugins){if(t=t.plugins,!Array.isArray(t))throw Error("Plugins type must be array");t.forEach(this.plugin.bind(this))}this.opts.debug&&(t=function(t){return t},"undefined"==typeof window&&(t=e),this._formatter=t)}}function e(t){return T||(T=O(),M={parser:"babel",useTabs:!1,printWidth:120,trailingComma:"none",tabWidth:4,singleQuote:!1,semi:!0,bracketSpacing:!0},C=O(),N={language:"js",theme:C.fromJson({keyword:["white","bold"],built_in:"magenta",literal:"cyan",number:"magenta",regexp:"red",string:["yellow","bold"],symbol:"plain",class:"blue",attr:"plain",function:["white","bold"],title:"plain",params:"green",comment:"grey"})}),t=T.format(t,M),C.highlight(t,N)}function n(t){return t.schema,t=t.messages,{source:'\n\t\t\tif (typeof value !== "string") {\n\t\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+'\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tif (typeof value !== "string")\n\t\t\t\tvalue = String(value);\n\n\t\t\tval = value.replace(/\\D+/g, "");\n\n\t\t\tvar array = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];\n\t\t\tvar len = val ? val.length : 0,\n\t\t\t\tbit = 1,\n\t\t\t\tsum = 0;\n\t\t\twhile (len--) {\n\t\t\t\tsum += !(bit ^= 1) ? parseInt(val[len], 10) : array[val[len]];\n\t\t\t}\n\n\t\t\tif (!(sum % 10 === 0 && sum > 0)) {\n\t\t\t\t'+this.makeError({type:"luhn",actual:"value",messages:t})+"\n\t\t\t}\n\n\t\t\treturn value;\n\t\t"}}function r(t){return t.schema,t=t.messages,{source:'\n\t\t\tif (typeof value !== "string") {\n\t\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+"\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tvar v = value.toLowerCase();\n\t\t\tif (!"+Y.toString()+".test(v)) {\n\t\t\t\t"+this.makeError({type:"mac",actual:"value",messages:t})+"\n\t\t\t}\n\t\t\t\n\t\t\treturn value;\n\t\t"}}function i(t){var e=t.schema;t=t.messages;var n=[];return n.push('\n\t\tif (typeof value !== "string") {\n\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tvar val = value.toLowerCase();\n\t\tif (!"+B.toString()+".test(val)) {\n\t\t\t"+this.makeError({type:"uuid",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tconst version = val.charAt(14) | 0;\n\t"),7>parseInt(e.version)&&n.push("\n\t\t\tif ("+e.version+" !== version) {\n\t\t\t\t"+this.makeError({type:"uuidVersion",expected:e.version,actual:"version",messages:t})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),n.push('\n\t\tswitch (version) {\n\t\tcase 0:\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 6:\n\t\t\tbreak;\n\t\tcase 3:\n\t\tcase 4:\n\t\tcase 5:\n\t\t\tif (["8", "9", "a", "b"].indexOf(val.charAt(19)) === -1) {\n\t\t\t\t'+this.makeError({type:"uuid",actual:"value",messages:t})+"\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t"),{source:n.join("\n")}}function a(t){var e=t.schema;t=t.messages;var n=[];return n.push('\n\t\tif (typeof value !== "string") {\n\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\t"),e.empty?n.push("\n\t\t\tif (value.length === 0) return value;\n\t\t"):n.push("\n\t\t\tif (value.length === 0) {\n\t\t\t\t"+this.makeError({type:"urlEmpty",actual:"value",messages:t})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),n.push("\n\t\tif (!"+H.toString()+".test(value)) {\n\t\t\t"+this.makeError({type:"url",actual:"value",messages:t})+"\n\t\t}\n\n\t\treturn value;\n\t"),{source:n.join("\n")}}function o(t,e,n){var r=t.schema,i=t.messages;if(t=[],null!=r.items){if(!Array.isArray(r.items))throw Error("Invalid '"+r.type+"' schema. The 'items' field must be an array.");if(0===r.items.length)throw Error("Invalid '"+r.type+"' schema. The 'items' field must not be an empty array.")}if(t.push("\n\t\tif (!Array.isArray(value)) {\n\t\t\t"+this.makeError({type:"tuple",actual:"value",messages:i})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tvar len = value.length;\n\t"),!1===r.empty&&t.push("\n\t\t\tif (len === 0) {\n\t\t\t\t"+this.makeError({type:"tupleEmpty",actual:"value",messages:i})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),null!=r.items){for(t.push("\n\t\t\tif ("+r.empty+" !== false && len === 0) {\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tif (len !== "+r.items.length+") {\n\t\t\t\t"+this.makeError({type:"tupleLength",expected:r.items.length,actual:"len",messages:i})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),t.push("\n\t\t\tvar arr = value;\n\t\t\tvar parentField = field;\n\t\t"),i=0;i "+e.max+") {\n\t\t\t\t"+this.makeError({type:"stringMax",expected:e.max,actual:"len",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.length&&n.push("\n\t\t\tif (len !== "+e.length+") {\n\t\t\t\t"+this.makeError({type:"stringLength",expected:e.length,actual:"len",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.pattern){var i=e.pattern;"string"==typeof e.pattern&&(i=new RegExp(e.pattern,e.patternFlags)),n.push("\n\t\t\tif (!"+i.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringPattern",expected:'"'+i.toString().replace(/"/g,"\\$&")+'"',actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t")}return null!=e.contains&&n.push('\n\t\t\tif (value.indexOf("'+e.contains+'") === -1) {\n\t\t\t\t'+this.makeError({type:"stringContains",expected:'"'+e.contains+'"',actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.enum&&(i=JSON.stringify(e.enum),n.push("\n\t\t\tif ("+i+".indexOf(value) === -1) {\n\t\t\t\t"+this.makeError({type:"stringEnum",expected:'"'+e.enum.join(", ")+'"',actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t")),!0===e.numeric&&n.push("\n\t\t\tif (!"+F.toString()+".test(value) ) {\n\t\t\t\t"+this.makeError({type:"stringNumeric",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.alpha&&n.push("\n\t\t\tif(!"+R.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringAlpha",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.alphanum&&n.push("\n\t\t\tif(!"+q.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringAlphanum",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.alphadash&&n.push("\n\t\t\tif(!"+V.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringAlphadash",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.hex&&n.push("\n\t\t\tif(value.length % 2 !== 0 || !"+U.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringHex",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.singleLine&&n.push('\n\t\t\tif(value.includes("\\n")) {\n\t\t\t\t'+this.makeError({type:"stringSingleLine",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.base64&&n.push("\n\t\t\tif(!"+D.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringBase64",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),n.push("\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function s(t,e,n){var r=t.schema,i=[];for(var a in i.push('\n\t\tif (typeof value !== "object" || value === null || Array.isArray(value)) {\n\t\t\t'+this.makeError({type:"record",actual:"value",messages:t.messages})+"\n\t\t\treturn value;\n\t\t}\n\t"),t=r.key||"string",r=r.value||"any",i.push("\n\t\tconst record = value;\n\t\tlet sanitizedKey, sanitizedValue;\n\t\tconst result = {};\n\t\tfor (let key in value) {\n\t"),i.push("sanitizedKey = value = key;"),(t=this.getRuleFromSchema(t)).messages)a.startsWith("string")&&(t.messages[a]=t.messages[a].replace(" field "," key "));return i.push(this.compileRule(t,n,null,"\n\t\tsanitizedKey = "+(n.async?"await ":"")+'context.fn[%%INDEX%%](key, field ? field + "." + key : key, record, errors, context);\n\t',"sanitizedKey")),i.push("sanitizedValue = value = record[key];"),a=this.getRuleFromSchema(r),i.push(this.compileRule(a,n,e+"[key]","\n\t\tsanitizedValue = "+(n.async?"await ":"")+'context.fn[%%INDEX%%](value, field ? field + "." + key : key, record, errors, context);\n\t',"sanitizedValue")),i.push("result[sanitizedKey] = sanitizedValue;"),i.push("\n\t\t}\n\t"),i.push("return result;"),{source:i.join("\n")}}function u(t,e,n){e=t.schema;var r=t.messages;t=t.index;var i=[];return n.customs[t]?n.customs[t].schema=e:n.customs[t]={schema:e},i.push("\n\t\tconst ObjectID = context.customs["+t+"].schema.ObjectID;\n\t\tif (!ObjectID.isValid(value)) {\n\t\t\t"+this.makeError({type:"objectID",actual:"value",messages:r})+"\n\t\t\treturn;\n\t\t}\n\t"),!0===e.convert?i.push("return new ObjectID(value)"):"hexString"===e.convert?i.push("return value.toString()"):i.push("return value"),{source:i.join("\n")}}function c(t,e,n){var r=this,i=t.schema;t=t.messages;var a=[];a.push('\n\t\tif (typeof value !== "object" || value === null || Array.isArray(value)) {\n\t\t\t'+this.makeError({type:"object",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\t");var o=i.properties||i.props;if(o){a.push("var parentObj = value;"),a.push("var parentField = field;");for(var l=Object.keys(o).filter((function(t){return!r.isMetaKey(t)})),s=0;s "+i.maxProps+") {\n\t\t\t\t"+this.makeError({type:"objectMaxProps",expected:i.maxProps,actual:"props.length",messages:t})+"\n\t\t\t}\n\t\t"),o?a.push("\n\t\t\treturn parentObj;\n\t\t"):a.push("\n\t\t\treturn value;\n\t\t"),{source:a.join("\n")}}function p(t){var e=t.schema;t=t.messages;var n=[];n.push("\n\t\tvar origValue = value;\n\t");var r=!1;return!0===e.convert&&(r=!0,n.push('\n\t\t\tif (typeof value !== "number") {\n\t\t\t\tvalue = Number(value);\n\t\t\t}\n\t\t')),n.push('\n\t\tif (typeof value !== "number" || isNaN(value) || !isFinite(value)) {\n\t\t\t'+this.makeError({type:"number",actual:"origValue",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\t"),null!=e.min&&n.push("\n\t\t\tif (value < "+e.min+") {\n\t\t\t\t"+this.makeError({type:"numberMin",expected:e.min,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.max&&n.push("\n\t\t\tif (value > "+e.max+") {\n\t\t\t\t"+this.makeError({type:"numberMax",expected:e.max,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.equal&&n.push("\n\t\t\tif (value !== "+e.equal+") {\n\t\t\t\t"+this.makeError({type:"numberEqual",expected:e.equal,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.notEqual&&n.push("\n\t\t\tif (value === "+e.notEqual+") {\n\t\t\t\t"+this.makeError({type:"numberNotEqual",expected:e.notEqual,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.integer&&n.push("\n\t\t\tif (value % 1 !== 0) {\n\t\t\t\t"+this.makeError({type:"numberInteger",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.positive&&n.push("\n\t\t\tif (value <= 0) {\n\t\t\t\t"+this.makeError({type:"numberPositive",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.negative&&n.push("\n\t\t\tif (value >= 0) {\n\t\t\t\t"+this.makeError({type:"numberNegative",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),n.push("\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function m(t,e,n){var r=t.schema;t.messages,(t=[]).push("\n\t\tvar hasValid = false;\n\t\tvar newVal = value;\n\t\tvar checkErrors = [];\n\t\tvar errorsSize = errors.length;\n\t");for(var i=0;i "+e.max+") {\n\t\t\t\t"+this.makeError({type:"emailMax",expected:e.max,actual:"value.length",messages:t})+"\n\t\t\t}\n\t\t"),n.push("\n\t\tif (!"+r.toString()+".test(value)) {\n\t\t\t"+this.makeError({type:"email",actual:"value",messages:t})+"\n\t\t}\n\n\t\treturn value;\n\t"),{sanitized:i,source:n.join("\n")}}function g(t){var e=t.schema;t=t.messages;var n=[],r=!1;return n.push("\n\t\tvar origValue = value;\n\t"),!0===e.convert&&(r=!0,n.push("\n\t\t\tif (!(value instanceof Date)) {\n\t\t\t\tvalue = new Date(value.length && !isNaN(+value) ? +value : value);\n\t\t\t}\n\t\t")),n.push("\n\t\tif (!(value instanceof Date) || isNaN(value.getTime()))\n\t\t\t"+this.makeError({type:"date",actual:"origValue",messages:t})+"\n\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function w(t){var e=t.schema;t=t.messages;var n=e.currencySymbol||null,r=e.thousandSeparator||",",i=e.decimalSeparator||".",a=e.customRegex;return e=!e.symbolOptional,e="(?=.*\\d)^(-?~1|~1-?)(([0-9]\\d{0,2}(~2\\d{3})*)|0)?(\\~3\\d{1,2})?$".replace(/~1/g,n?"\\"+n+(e?"":"?"):"").replace("~2",r).replace("~3",i),(n=[]).push("\n\t\tif (!value.match("+(a||new RegExp(e))+")) {\n\t\t\t"+this.makeError({type:"currency",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\n\t\treturn value;\n\t"),{source:n.join("\n")}}function v(t,e,n){var r=[];return r.push("\n\t\t"+this.makeCustomValidator({fnName:"check",path:e,schema:t.schema,messages:t.messages,context:n,ruleIndex:t.index})+"\n\t\treturn value;\n\t"),{source:r.join("\n")}}function y(t,e,n){e=t.schema;var r=t.messages;t=t.index;var i=[],a=e.instanceOf.name?e.instanceOf.name:"";return n.customs[t]?n.customs[t].schema=e:n.customs[t]={schema:e},i.push("\n\t\tif (!(value instanceof context.customs["+t+"].schema.instanceOf))\n\t\t\t"+this.makeError({type:"classInstanceOf",actual:"value",expected:"'"+a+"'",messages:r})+"\n\t"),i.push("\n\t\treturn value;\n\t"),{source:i.join("\n")}}function k(t){var e=t.schema;t=t.messages;var n=[],r=!1;return n.push("\n\t\tvar origValue = value;\n\t"),!0===e.convert&&(r=!0,n.push('\n\t\t\tif (typeof value !== "boolean") {\n\t\t\t\tif (\n\t\t\t\tvalue === 1\n\t\t\t\t|| value === "true"\n\t\t\t\t|| value === "1"\n\t\t\t\t|| value === "on"\n\t\t\t\t) {\n\t\t\t\t\tvalue = true;\n\t\t\t\t} else if (\n\t\t\t\tvalue === 0\n\t\t\t\t|| value === "false"\n\t\t\t\t|| value === "0"\n\t\t\t\t|| value === "off"\n\t\t\t\t) {\n\t\t\t\t\tvalue = false;\n\t\t\t\t}\n\t\t\t}\n\t\t')),n.push('\n\t\tif (typeof value !== "boolean") {\n\t\t\t'+this.makeError({type:"boolean",actual:"origValue",messages:t})+"\n\t\t}\n\t\t\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function $(t,e,n){var r=t.schema,i=t.messages;t=[];var a=!1;if(!0===r.convert&&(a=!0,t.push("\n\t\t\tif (!Array.isArray(value) && value != null) {\n\t\t\t\tvalue = [value];\n\t\t\t}\n\t\t")),t.push("\n\t\tif (!Array.isArray(value)) {\n\t\t\t"+this.makeError({type:"array",actual:"value",messages:i})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tvar len = value.length;\n\t"),!1===r.empty&&t.push("\n\t\t\tif (len === 0) {\n\t\t\t\t"+this.makeError({type:"arrayEmpty",actual:"value",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.min&&t.push("\n\t\t\tif (len < "+r.min+") {\n\t\t\t\t"+this.makeError({type:"arrayMin",expected:r.min,actual:"len",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.max&&t.push("\n\t\t\tif (len > "+r.max+") {\n\t\t\t\t"+this.makeError({type:"arrayMax",expected:r.max,actual:"len",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.length&&t.push("\n\t\t\tif (len !== "+r.length+") {\n\t\t\t\t"+this.makeError({type:"arrayLength",expected:r.length,actual:"len",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.contains&&t.push("\n\t\t\tif (value.indexOf("+JSON.stringify(r.contains)+") === -1) {\n\t\t\t\t"+this.makeError({type:"arrayContains",expected:JSON.stringify(r.contains),actual:"value",messages:i})+"\n\t\t\t}\n\t\t"),!0===r.unique&&t.push("\n\t\t\tif(len > (new Set(value)).size) {\n\t\t\t\t"+this.makeError({type:"arrayUnique",expected:"Array.from(new Set(value.filter((item, index) => value.indexOf(item) !== index)))",actual:"value",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.enum){var o=JSON.stringify(r.enum);t.push("\n\t\t\tfor (var i = 0; i < value.length; i++) {\n\t\t\t\tif ("+o+".indexOf(value[i]) === -1) {\n\t\t\t\t\t"+this.makeError({type:"arrayEnum",expected:'"'+r.enum.join(", ")+'"',actual:"value[i]",messages:i})+"\n\t\t\t\t}\n\t\t\t}\n\t\t")}return null!=r.items?(t.push("\n\t\t\tvar arr = value;\n\t\t\tvar parentField = field;\n\t\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\t\tvalue = arr[i];\n\t\t"),e+="[]",r=this.getRuleFromSchema(r.items),t.push(this.compileRule(r,n,e,"arr[i] = "+(n.async?"await ":"")+'context.fn[%%INDEX%%](arr[i], (parentField ? parentField : "") + "[" + i + "]", parent, errors, context)',"arr[i]")),t.push("\n\t\t\t}\n\t\t"),t.push("\n\t\treturn arr;\n\t")):t.push("\n\t\treturn value;\n\t"),{sanitized:a,source:t.join("\n")}}function j(){var t=[];return t.push("\n\t\treturn value;\n\t"),{source:t.join("\n")}}function E(t,e,n){return t.replace(e,null==n?"":"function"==typeof n.toString?n:typeof n)}function S(t,e,n){for(var r in void 0===n&&(n={}),e){var i=e[r];(i="object"==typeof i&&!Array.isArray(i)&&null!=i&&0()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,L=/^\S+@\S+\.\S+$/,P=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/,z=/["'\\\n\r\u2028\u2029]/g,F=/^-?[0-9]\d*(\.\d+)?$/,R=/^[a-zA-Z]+$/,q=/^[a-zA-Z0-9]+$/,V=/^[a-zA-Z0-9_-]+$/,U=/^[0-9a-fA-F]+$/,D=/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+/]{3}=)?$/,H=/^https?:\/\/\S+/,B=/^([0-9a-f]{8}-[0-9a-f]{4}-[1-6][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}|[0]{8}-[0]{4}-[0]{4}-[0]{4}-[0]{12})$/i,Y=/^((([a-f0-9][a-f0-9]+[-]){5}|([a-f0-9][a-f0-9]+[:]){5})([a-f0-9][a-f0-9])$)|(^([a-f0-9][a-f0-9][a-f0-9][a-f0-9]+[.]){2}([a-f0-9][a-f0-9][a-f0-9][a-f0-9]))$/i;try{var J=new Function("return Object.getPrototypeOf(async function(){}).constructor")()}catch(t){}return t.prototype.validate=function(t,e){return this.compile(e)(t)},t.prototype.wrapRequiredCheckSourceCode=function(t,e,n,r){var i=[],a=this.opts.considerNullAsAValue;void 0===a&&(a=!1);var o=!0===t.schema.optional||"forbidden"===t.schema.type,l=a?!1!==t.schema.nullable||"forbidden"===t.schema.type:!0===t.schema.optional||!0===t.schema.nullable||"forbidden"===t.schema.type;return(a?null!=t.schema.default&&null!=t.schema.default:null!=t.schema.default)?(o=!1,a?!1===t.schema.nullable&&(l=!1):!0!==t.schema.nullable&&(l=!1),"function"==typeof t.schema.default?(n.customs[t.index]||(n.customs[t.index]={}),n.customs[t.index].defaultFn=t.schema.default,t="context.customs["+t.index+"].defaultFn.call(this, context.rules["+t.index+"].schema, field, parent, context)"):t=JSON.stringify(t.schema.default),r="\n\t\t\t\tvalue = "+t+";\n\t\t\t\t"+r+" = value;\n\t\t\t"):r=this.makeError({type:"required",actual:"value",messages:t.messages}),i.push("\n\t\t\tif (value === undefined) { "+(o?"\n// allow undefined\n":r)+" }\n\t\t\telse if (value === null) { "+(l?"\n// allow null\n":r)+" }\n\t\t\t"+(e?"else { "+e+" }":"")+"\n\t\t"),i.join("\n")},t.prototype.isMetaKey=function(t){return t.startsWith("$$")},t.prototype.removeMetasKeys=function(t){var e=this;Object.keys(t).forEach((function(n){e.isMetaKey(n)&&delete t[n]}))},t.prototype.compile=function(t){function e(t,e){return r.data=t,e&&e.meta&&(r.meta=e.meta),a.call(n,t,r)}if(null===t||"object"!=typeof t)throw Error("Invalid schema.");var n=this,r={index:0,async:!0===t.$$async,rules:[],fn:[],customs:{},utils:{replace:E}};if(this.cache.clear(),delete t.$$async,r.async&&!J)throw Error("Asynchronous mode is not supported.");if(!0!==t.$$root)if(Array.isArray(t))t=this.getRuleFromSchema(t).schema;else{var i=Object.assign({},t);t={type:"object",strict:i.$$strict,properties:i},this.removeMetasKeys(i)}i=["var errors = [];","var field;","var parent = null;","var label = "+(t.label?'"'+t.label+'"':"null")+";"],t=this.getRuleFromSchema(t),i.push(this.compileRule(t,r,null,(r.async?"await ":"")+"context.fn[%%INDEX%%](value, field, null, errors, context, label);","value")),i.push("if (errors.length) {"),i.push("\n\t\t\treturn errors.map(err => {\n\t\t\t\tif (err.message) {\n\t\t\t\t\terr.message = context.utils.replace(err.message, /\\{field\\}/g, err.label || err.field);\n\t\t\t\t\terr.message = context.utils.replace(err.message, /\\{expected\\}/g, err.expected);\n\t\t\t\t\terr.message = context.utils.replace(err.message, /\\{actual\\}/g, err.actual);\n\t\t\t\t}\n\t\t\t\tif(!err.label) delete err.label\n\t\t\t\treturn err;\n\t\t\t});\n\t\t"),i.push("}"),i.push("return true;"),t=i.join("\n");var a=new(r.async?J:Function)("value","context",t);return this.opts.debug&&console.log(this._formatter("// Main check function\n"+a.toString())),this.cache.clear(),e.async=r.async,e},t.prototype.compileRule=function(t,e,n,r,i){var a=[],o=this.cache.get(t.schema);return o?((t=o).cycle=!0,t.cycleStack=[],a.push(this.wrapRequiredCheckSourceCode(t,"\n\t\t\t\tvar rule = context.rules["+t.index+"];\n\t\t\t\tif (rule.cycleStack.indexOf(value) === -1) {\n\t\t\t\t\trule.cycleStack.push(value);\n\t\t\t\t\t"+r.replace(/%%INDEX%%/g,t.index)+"\n\t\t\t\t\trule.cycleStack.pop(value);\n\t\t\t\t}\n\t\t\t",e,i))):(this.cache.set(t.schema,t),t.index=e.index,e.rules[e.index]=t,o=null!=n?n:"$$root",e.index++,(n=t.ruleFunction.call(this,t,n,e)).source=n.source.replace(/%%INDEX%%/g,t.index),n=new(e.async?J:Function)("value","field","parent","errors","context","label",n.source),e.fn[t.index]=n.bind(this),a.push(this.wrapRequiredCheckSourceCode(t,r.replace(/%%INDEX%%/g,t.index),e,i)),a.push(this.makeCustomValidator({vName:i,path:o,schema:t.schema,context:e,messages:t.messages,ruleIndex:t.index})),this.opts.debug&&console.log(this._formatter("// Context.fn["+t.index+"]\n"+n.toString()))),a.join("\n")},t.prototype.getRuleFromSchema=function(t){t=this.resolveType(t);var e=this.aliases[t.type];if(e&&(delete t.type,t=S(t,e,{skipIfExist:!0})),!(e=this.rules[t.type]))throw Error("Invalid '"+t.type+"' type in validator schema.");return{messages:Object.assign({},this.messages,t.messages),schema:S(t,this.defaults[t.type],{skipIfExist:!0}),ruleFunction:e}},t.prototype.parseShortHand=function(t){var e=(t=t.split("|").map((function(t){return t.trim()})))[0],n=e.endsWith("[]")?this.getRuleFromSchema({type:"array",items:e.slice(0,-2)}).schema:{type:t[0]};return t.slice(1).map((function(t){var e=t.indexOf(":");if(-1!==e){var r=t.substr(0,e).trim();"true"===(t=t.substr(e+1).trim())||"false"===t?t="true"===t:Number.isNaN(Number(t))||(t=Number(t)),n[r]=t}else t.startsWith("no-")?n[t.slice(3)]=!1:n[t]=!0})),n},t.prototype.makeError=function(t){var e=t.type,n=t.field,r=t.expected,i=t.actual,a={type:'"'+e+'"',message:'"'+t.messages[e]+'"'};return a.field=n?'"'+n+'"':"field",null!=r&&(a.expected=r),null!=i&&(a.actual=i),a.label="label","errors.push({ "+Object.keys(a).map((function(t){return t+": "+a[t]})).join(", ")+" });"},t.prototype.makeCustomValidator=function(t){var e=t.vName;void 0===e&&(e="value");var n=t.fnName;void 0===n&&(n="custom");var r=t.ruleIndex,i=t.path,a=t.schema,o=t.context,l=t.messages;t="rule"+r;var s="fnCustomErrors"+r;return"function"==typeof a[n]?(o.customs[r]?(o.customs[r].messages=l,o.customs[r].schema=a):o.customs[r]={messages:l,schema:a},this.opts.useNewCustomCheckerFunction?"\n \t\tconst "+t+" = context.customs["+r+"];\n\t\t\t\t\tconst "+s+" = [];\n\t\t\t\t\t"+e+" = "+(o.async?"await ":"")+t+".schema."+n+".call(this, "+e+", "+s+" , "+t+'.schema, "'+i+'", parent, context);\n\t\t\t\t\tif (Array.isArray('+s+" )) {\n \t\t"+s+" .forEach(err => errors.push(Object.assign({ message: "+t+".messages[err.type], field }, err)));\n\t\t\t\t\t}\n\t\t\t\t":"\n\t\t\t\tconst "+t+" = context.customs["+r+"];\n\t\t\t\tconst "+(a="res_"+t)+" = "+(o.async?"await ":"")+t+".schema."+n+".call(this, "+e+", "+t+'.schema, "'+i+'", parent, context);\n\t\t\t\tif (Array.isArray('+a+")) {\n\t\t\t\t\t"+a+".forEach(err => errors.push(Object.assign({ message: "+t+".messages[err.type], field }, err)));\n\t\t\t\t}\n\t\t"):""},t.prototype.add=function(t,e){this.rules[t]=e},t.prototype.addMessage=function(t,e){this.messages[t]=e},t.prototype.alias=function(t,e){if(this.rules[t])throw Error("Alias name must not be a rule name");this.aliases[t]=e},t.prototype.plugin=function(t){if("function"!=typeof t)throw Error("Plugin fn type must be function");return t(this)},t.prototype.resolveType=function(t){var e=this;if("string"==typeof t)t=this.parseShortHand(t);else if(Array.isArray(t)){if(0===t.length)throw Error("Invalid schema.");(t={type:"multi",rules:t}).rules.map((function(t){return e.getRuleFromSchema(t)})).every((function(t){return!0===t.schema.optional}))&&(t.optional=!0);var n=!this.opts.considerNullAsAValue;t.rules.map((function(t){return e.getRuleFromSchema(t)})).every((function(t){return t.schema.nullable===n}))&&(t.nullable=n)}if(t.$$type){var r=this.getRuleFromSchema(t.$$type).schema;delete t.$$type;var i,a=Object.assign({},t);for(i in t)delete t[i];S(t,r,{skipIfExist:!0}),t.props=a}return t},t.prototype.normalize=function(t){var e=this,n=this.resolveType(t);return this.aliases[n.type]&&(n=S(n,this.normalize(this.aliases[n.type]),{skipIfExists:!0})),"multi"===(n=S(n,this.defaults[n.type],{skipIfExist:!0})).type?(n.rules=n.rules.map((function(t){return e.normalize(t)})),n.optional=n.rules.every((function(t){return!0===t.optional})),n):"array"===n.type?(n.items=this.normalize(n.items),n):("object"===n.type&&n.props&&Object.entries(n.props).forEach((function(t){return n.props[t[0]]=e.normalize(t[1])})),"object"==typeof t&&(t.type?(t=this.normalize(t.type),S(n,t,{skipIfExists:!0})):Object.entries(t).forEach((function(t){return n[t[0]]=e.normalize(t[1])}))),n)},t}();var ct=ot(ut.exports);const pt={$$root:!0,type:"object",props:{element:{type:"string",optional:!0,default:"input",lowercase:!0,enum:["input","textarea","select","richtext","div","hr","br","h1","h2","h3","h4","h5","h6"]},attributes:{type:"object",props:{name:{type:"string"},type:{type:"string",optional:!0,default:"text",lowercase:!0,enum:["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"]},value:{type:"any",optional:!0},id:{type:"string",optional:!0},class:{type:"string",optional:!0},style:{type:"string",optional:!0},title:{type:"string",optional:!0},placeholder:{type:"string",optional:!0},autocomplete:{type:"string",optional:!0,enum:[0]},form:{type:"string",optional:!0},formaction:{type:"string",optional:!0},formtarget:{type:"string",optional:!0},formenctype:{type:"string",optional:!0},formmethod:{type:"string",optional:!0},formnovalidate:{type:"string",optional:!0},accept:{type:"string",optional:!0},pattern:{type:"string",optional:!0},list:{type:"string",optional:!0},dirname:{type:"string",optional:!0},lang:{type:"string",optional:!0},required:{type:"boolean",optional:!0,convert:!0},readonly:{type:"boolean",optional:!0,convert:!0},disabled:{type:"boolean",optional:!0,convert:!0},checked:{type:"boolean",optional:!0,convert:!0},hidden:{type:"boolean",optional:!0,convert:!0},autofocus:{type:"boolean",optional:!0,convert:!0},multiple:{type:"boolean",optional:!0,convert:!0},tabindex:{type:"number",optional:!0,convert:!0},maxlength:{type:"number",optional:!0,convert:!0},size:{type:"number",optional:!0,convert:!0},width:{type:"number",optional:!0,convert:!0},height:{type:"number",optional:!0,convert:!0},min:{type:"number",optional:!0,convert:!0},max:{type:"number",optional:!0,convert:!0},step:{type:"number",optional:!0,convert:!0},cols:{type:"number",optional:!0,convert:!0},rows:{type:"number",optional:!0,convert:!0}}},label:{type:"multi",optional:!0,rules:[{type:"string"},{type:"object",props:{text:"string",classes:{type:"array",items:"string",optional:!0}}}]},validation:{type:"object",optional:!0,props:{enum:{type:"array",optional:!0},type:{type:"string",optional:!0,default:"string"},required:{type:"boolean",optional:!0},name:{type:"string",optional:!0},lowercase:{type:"boolean",optional:!0},min:{type:"number",optional:!0},max:{type:"number",optional:!0},contains:{type:"any",optional:!0},equal:{type:"any",optional:!0},notEqual:{type:"any",optional:!0},positive:{type:"boolean",optional:!0},negative:{type:"boolean",optional:!0},integer:{type:"boolean",optional:!0},minProps:{type:"number",optional:!0,positive:!0},maxProps:{type:"number",optional:!0,positive:!0},alphanum:{type:"boolean",optional:!0},alphadash:{type:"boolean",optional:!0},hex:{type:"boolean",optional:!0},singleLine:{type:"boolean",optional:!0},base64:{type:"boolean",optional:!0},lowercase:{type:"boolean",optional:!0},uppercase:{type:"boolean",optional:!0},localeLowercase:{type:"boolean",optional:!0},localeUppercase:{type:"boolean",optional:!0},padStart:{type:"number",optional:!0},padEnd:{type:"number",optional:!0},padStart:{type:"number",optional:!0},trimLeft:{type:"boolean",optional:!0},trimRight:{type:"boolean",optional:!0},trim:{type:"boolean",optional:!0},normalize:{type:"boolean",optional:!0}}},options:{type:"array",optional:!0,items:{type:"multi",rules:[{type:"any"},{type:"object",props:{text:"string",value:"any"}}]}},content:{type:"string",optional:!0},classes:{type:"array",default:["col-sm-12"],optional:!0,items:"string"},onChange:{type:"array",optional:!0,items:{type:"object",props:{value:{type:"any",optional:!0},set:{type:"multi",rules:[{type:"object"},{type:"function"}]}}}},onChangeResets:{type:"object",optional:!0,default:{}},creationMethod:{type:"string",optional:!0,default:"normal"}}},mt=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1},ft=(...t)=>t.reduce(((t,e)=>{if(Array.isArray(e))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(e).forEach((n=>{["__proto__","constructor","prototype"].includes(n)||(Array.isArray(t[n])&&Array.isArray(e[n])?t[n]=ft.options.mergeArrays?ft.options.uniqueArrayItems?Array.from(new Set(t[n].concat(e[n]))):[...t[n],...e[n]]:e[n]:mt(t[n])&&mt(e[n])?t[n]=ft(t[n],e[n]):t[n]=void 0===e[n]?ft.options.allowUndefinedOverrides?e[n]:t[n]:e[n])})),t}),{}),dt={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};ft.options=dt,ft.withOptions=(t,...e)=>{ft.options={...dt,...t};const n=ft(...e);return ft.options=dt,n};let xt=["input","select","textarea","richtext"];const ht=/^[a-zà-öø-ÿ]+|[A-ZÀ-ÖØ-ß][a-zà-öø-ÿ]+|[a-zà-öø-ÿ]+|[0-9]+|[A-ZÀ-ÖØ-ß]+(?![a-zà-öø-ÿ])/g;function bt(t){let e;return e=t.label?t.label.text||t.label:function(t){const e=t.matchAll(ht).next().value,n=e?e.index:0;return t.slice(0,n+1).toUpperCase()+t.slice(n+1).toLowerCase()}(t.attributes.name),e}const gt=new ct({messages:{color:"The '{field}' field must be an even number! Actual: {actual}",month:"The '{field}' field must be a valid month! Actual: {actual}",time:"The '{field}' field must be a valid time! Actual: {actual}"}});gt.add("color",(function({schema:t,messages:e},n,r){return{source:`\n function isColor(strColor) {\n const s = new Option().style;\n s.color = strColor;\n return s.color !== '';\n }\n if ( !isColor(value) ){\n ${this.makeError({type:"color",actual:"value",messages:e})}\n }\n\n return value;\n `}})),gt.add("month",(function({schema:t,messages:e},n,r){return{source:` \n let months = [], d, s;\n\n for (let i = 0; i <= 11; i++) {\n d = new Date().setMonth(i);\n s = new Date(d).toLocaleString("en-US", { month: "short" });\n months.push(\n String(i + 1),\n new Date(d).toLocaleString("en-US", { month: "long" }).toLowerCase(),\n s.toLowerCase()\n );\n }\n\n function isMonth(m) {\n return months.indexOf(String(m).toLowerCase()) > -1;\n }\n\n if ( isMonth(value)===false ){\n ${this.makeError({type:"month",actual:"value",messages:e})}\n }\n\n return value;`}})),gt.add("time",(function({schema:t,messages:e},n,r){return{source:` \n function isTime(str) {\n\n let numPat = /^[0-9]+$/;\n let numPatAMPM = /^([\\.apm0-9]+)$/i;\n let arr = str.split(/(:|\\s+)/).filter((s) => /^[^:\\s]+$/.test(s));\n \n if (numPat.test(arr[0]) === false || Number(arr[0]) >= 23) {\n return false;\n }\n \n if (numPat.test(arr[1]) === false || Number(arr[1]) >= 59) {\n return false;\n }\n\n \n if (arr[2]) {\n if (numPatAMPM.test(arr[2]) === false) {\n return false;\n }\n if (numPat.test(arr[2]) && Number(arr[2]) >= 59) {\n return false;\n }\n }\n\n if (arr[3] && numPatAMPM.test(arr[2]) === false) {\n return false;\n }\n \n return true;\n }\n\n if ( isTime(value)===false ){\n ${this.makeError({type:"time",actual:"value",messages:e})}\n }\n\n return value;`}}));const wt={date:"date","datetime-local":"date",email:"email",number:"number",url:"url",password:"string",text:"string",color:"color",month:"month",time:"time"};function vt(t,e,n="",r=!0){const i=gt.compile(e)(t);if(!0!==i){let t=n+i.map((t=>t.message)).join("\n\t");if(r)throw new Error(t);return t}return null}function yt(t){let e=(n=pt,JSON.parse(JSON.stringify(n)));var n;return("select"==t.element||"input"==t.element&&"radio"==t.attributes.type)&&(e.props.options.optional=!1),"input"==t.element&&"hidden"==t.attributes.type&&(e.props.attributes.value="any"),-1==xt.indexOf(t.element)&&(e.props.attributes.optional=!0,e.props.attributes.props.name.optional=!0,e.props.content.optional=!1),vt(t,e,"Control["+t.idx+"] "),e}function kt(t){let e=bt(t),n={type:wt[t.attributes.type]||"string",label:e,optional:!0,convert:!0};"validation"in t&&(n=ft(n,t.validation)),t.required&&(n.optional=!1,"checkbox"==t.attributes.type&&!1===t.attributes.value&&(t.attributes.value=null)),"min"in t.attributes&&(n.min=t.attributes.min),"max"in t.attributes&&(n.max=t.attributes.max),"minlength"in t.attributes&&(n.min=t.attributes.minlength),"maxlength"in t.attributes&&(n.max=t.attributes.maxlength),"pattern"in t.attributes&&(n.pattern=new RegExp(t.attributes.pattern));let r={value:n},i={value:t.attributes.value||void 0},a=vt(i,r,"",!1);t.attributes.value=i.value,t.error=a}function $t(e){let n,r=(e[0].error||"")+"";return{c(){n=d("div"),w(n,"class","error")},m(t,e){p(t,n,e),n.innerHTML=r},p(t,[e]){1&e&&r!==(r=(t[0].error||"")+"")&&(n.innerHTML=r)},i:t,o:t,d(t){t&&m(n)}}}function jt(t,e,n){let{control:r}=e;return t.$$set=t=>{"control"in t&&n(0,r=t.control)},[r]}let Et=class extends et{constructor(t){super(),tt(this,t,jt,$t,o,{control:0})}};function St(n){let r,i,a=(n[0].text||n[0])+"",o=[{for:i=n[2]||n[1].attributes.id},n[0].attributes,{class:n[3]}],l={};for(let t=0;t{"control"in t&&n(1,r=t.control),"id"in t&&n(2,i=t.id),"label"in t&&n(0,a=t.label),"cls"in t&&n(3,o=t.cls)},[a,r,i,o]}class Ot extends et{constructor(t){super(),tt(this,t,_t,St,o,{control:1,id:2,label:0,cls:3})}}function At(t,e,n){const r=t.slice();return r[15]=e[n],r[17]=n,r}function Tt(t){let n,r,o,l,s,u,f,x,b,v,k;function $(e){t[12](e)}let j={};function E(e){t[13](e)}void 0!==t[0]&&(j.control=t[0]),r=new Ot({props:j}),T.push((()=>W(r,"control",$)));let S={};void 0!==t[0]&&(S.control=t[0]),s=new Et({props:S}),T.push((()=>W(s,"control",E)));let _=[t[0].attributes],O={};for(let t=0;t<_.length;t+=1)O=e(O,_[t]);return{c(){n=d("div"),K(r.$$.fragment),l=h(),K(s.$$.fragment),f=h(),x=d("input"),w(n,"class","label-container"),y(x,O)},m(e,i){p(e,n,i),Z(r,n,null),c(n,l),Z(s,n,null),p(e,f,i),p(e,x,i),x.autofocus&&x.focus(),t[14](x),b=!0,v||(k=[g(x,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(x,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],v=!0)},p(e,n){t=e;const i={};!o&&1&n&&(o=!0,i.control=t[0],P((()=>o=!1))),r.$set(i);const a={};!u&&1&n&&(u=!0,a.control=t[0],P((()=>u=!1))),s.$set(a),y(x,O=X(_,[1&n&&t[0].attributes]))},i(t){b||(B(r.$$.fragment,t),B(s.$$.fragment,t),b=!0)},o(t){Y(r.$$.fragment,t),Y(s.$$.fragment,t),b=!1},d(e){e&&(m(n),m(f),m(x)),G(r),G(s),t[14](null),v=!1,i(k)}}}function Mt(n){let r,o,l,s=[n[0].attributes],u={};for(let t=0;tW(s,"control",S)));let A={};return void 0!==t[0]&&(A.control=t[0]),x=new Et({props:A}),T.push((()=>W(x,"control",O))),{c(){n=d("div"),r=d("div"),o=d("input"),l=h(),K(s.$$.fragment),f=h(),K(x.$$.fragment),y(o,E),w(r,"class","checkbox"),w(n,"class","label-container")},m(e,i){p(e,n,i),c(n,r),c(r,o),o.autofocus&&o.focus(),t[8](o),c(r,l),Z(s,r,null),c(n,f),Z(x,n,null),v=!0,k||($=[g(o,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(o,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],k=!0)},p(e,n){t=e,y(o,E=X(j,[1&n&&t[0].attributes]));const r={};!u&&1&n&&(u=!0,r.control=t[0],P((()=>u=!1))),s.$set(r);const i={};!b&&1&n&&(b=!0,i.control=t[0],P((()=>b=!1))),x.$set(i)},i(t){v||(B(s.$$.fragment,t),B(x.$$.fragment,t),v=!0)},o(t){Y(s.$$.fragment,t),Y(x.$$.fragment,t),v=!1},d(e){e&&m(n),t[8](null),G(s),G(x),k=!1,i($)}}}function Nt(t){let e,n,r,i,a,o,l,s,u,x;function b(e){t[4](e)}let g={cls:"label pad-left"};void 0!==t[0]&&(g.control=t[0]),r=new Ot({props:g}),T.push((()=>W(r,"control",b)));let v=J(t[0].options),y=[];for(let e=0;eY(y[t],1,1,(()=>{y[t]=null}));function $(e){t[7](e)}let j={};return void 0!==t[0]&&(j.control=t[0]),s=new Et({props:j}),T.push((()=>W(s,"control",$))),{c(){e=d("div"),n=d("div"),K(r.$$.fragment),a=h(),o=d("div");for(let t=0;ti=!1))),r.$set(n),11&e){let n;for(v=J(t[0].options),n=0;nu=!1))),s.$set(a)},i(t){if(!x){B(r.$$.fragment,t);for(let t=0;tW(c,"control",S))),{c(){n=x($),r=h(),o=d("input"),u=h(),K(c.$$.fragment),y(o,E)},m(e,i){p(e,n,i),p(e,r,i),p(e,o,i),"value"in E&&(o.value=E.value),o.autofocus&&o.focus(),p(e,u,i),Z(c,e,i),b=!0,w||(v=[g(o,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(o,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],w=!0)},p(e,r){t=e,(!b||1&r)&&$!==($=((t[3]=t[15].value||t[15])&&"")+"")&&k(n,$),y(o,E=X(j,[1&r&&t[0].attributes,(!b||1&r&&l!==(l=t[0].attributes.id+"-"+(t[17]+1)))&&{id:l},{value:t[3]},(!b||1&r&&s!==(s=t[3]==t[0].attributes.value))&&{checked:s}])),"value"in E&&(o.value=E.value);const i={};1&r&&(i.label=t[15].text||t[15]),1&r&&(i.id=t[0].attributes.id+"-"+(t[17]+1)),!f&&1&r&&(f=!0,i.control=t[0],P((()=>f=!1))),c.$set(i)},i(t){b||(B(c.$$.fragment,t),b=!0)},o(t){Y(c.$$.fragment,t),b=!1},d(t){t&&(m(n),m(r),m(o),m(u)),G(c,t),w=!1,i(v)}}}function Lt(t){let e,n,r,i;const a=[Nt,Ct,Mt,Tt],o=[];function l(t,e){return"radio"==t[2]?0:"checkbox"==t[2]?1:"hidden"==t[2]?2:3}return e=l(t),n=o[e]=a[e](t),{c(){n.c(),r=b()},m(t,n){o[e].m(t,n),p(t,r,n),i=!0},p(t,[i]){let s=e;e=l(t),e===s?o[e].p(t,i):(D(),Y(o[s],1,1,(()=>{o[s]=null})),H(),n=o[e],n?n.p(t,i):(n=o[e]=a[e](t),n.c()),B(n,1),n.m(r.parentNode,r))},i(t){i||(B(n),i=!0)},o(t){Y(n),i=!1},d(t){t&&m(r),o[e].d(t)}}}function Pt(t,e,n){let r,{control:i}=e,{onChange:a}=e;return t.$$set=t=>{"control"in t&&n(0,i=t.control),"onChange"in t&&n(1,a=t.onChange)},t.$$.update=()=>{5&t.$$.dirty&&(n(2,r=i.attributes.type),"hidden"==r&&delete i.attributes.required)},[i,a,r,undefined,function(t){i=t,n(0,i)},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))},function(t){i=t,n(0,i)},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))},function(t){i=t,n(0,i)},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))}]}class zt extends et{constructor(t){super(),tt(this,t,Pt,Lt,o,{control:0,onChange:1})}}function Ft(t,e,n){const r=t.slice();return r[5]=e[n],r}function Rt(t){let e,n,r=t[0].attributes.placeholder+"";return{c(){e=d("option"),n=x(r),e.__value=null,$(e,e.__value),e.selected=!0,e.disabled=!0},m(t,r){p(t,e,r),c(e,n)},p(t,e){1&e&&r!==(r=t[0].attributes.placeholder+"")&&k(n,r)},d(t){t&&m(e)}}}function qt(t){let e,n,r,i=(t[5].text||t[5])+"";return{c(){e=d("option"),n=x(i),e.__value=r=String(t[5].value||t[5]),$(e,e.__value)},m(t,r){p(t,e,r),c(e,n)},p(t,a){1&a&&i!==(i=(t[5].text||t[5])+"")&&k(n,i),1&a&&r!==(r=String(t[5].value||t[5]))&&(e.__value=r,$(e,e.__value))},d(t){t&&m(e)}}}function Vt(t){let n,r,i,o,l,s,u,x,v,k,$,S,_;function O(e){t[2](e)}let A={};function M(e){t[3](e)}void 0!==t[0]&&(A.control=t[0]),r=new Ot({props:A}),T.push((()=>W(r,"control",O)));let C={};void 0!==t[0]&&(C.control=t[0]),l=new Et({props:C}),T.push((()=>W(l,"control",M)));let N=t[0].attributes.placeholder&&Rt(t),I=J(t[0].options),L=[];for(let e=0;ei=!1))),r.$set(a);const o={};if(!s&&1&n&&(s=!0,o.control=t[0],P((()=>s=!1))),l.$set(o),t[0].attributes.placeholder?N?N.p(t,n):(N=Rt(t),N.c(),N.m(x,v)):N&&(N.d(1),N=null),1&n){let e;for(I=J(t[0].options),e=0;e{"control"in t&&n(0,r=t.control),"onChange"in t&&n(1,i=t.onChange)},t.$$.update=()=>{1&t.$$.dirty&&r&&r.attributes&&(n(0,r.attributes.value=r.attributes.value||null,r),n(0,r.attributes.placeholder=r.attributes.placeholder||"Select Value",r))},[r,i,function(t){r=t,n(0,r)},function(t){r=t,n(0,r)},function(t){T[t?"unshift":"push"]((()=>{r.node=t,n(0,r)}))}]}class Dt extends et{constructor(t){super(),tt(this,t,Ut,Vt,o,{control:0,onChange:1})}}function Ht(t){let n,r,o,l,s,u,f,x,b,v,k;function $(e){t[2](e)}let j={};function E(e){t[3](e)}void 0!==t[0]&&(j.control=t[0]),r=new Ot({props:j}),T.push((()=>W(r,"control",$)));let S={};void 0!==t[0]&&(S.control=t[0]),s=new Et({props:S}),T.push((()=>W(s,"control",E)));let _=[t[0].attributes],O={};for(let t=0;t<_.length;t+=1)O=e(O,_[t]);return{c(){n=d("div"),K(r.$$.fragment),l=h(),K(s.$$.fragment),f=h(),x=d("textarea"),w(n,"class","label-container"),y(x,O)},m(e,i){p(e,n,i),Z(r,n,null),c(n,l),Z(s,n,null),p(e,f,i),p(e,x,i),x.autofocus&&x.focus(),t[4](x),b=!0,v||(k=[g(x,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(x,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],v=!0)},p(e,[n]){t=e;const i={};!o&&1&n&&(o=!0,i.control=t[0],P((()=>o=!1))),r.$set(i);const a={};!u&&1&n&&(u=!0,a.control=t[0],P((()=>u=!1))),s.$set(a),y(x,O=X(_,[1&n&&t[0].attributes]))},i(t){b||(B(r.$$.fragment,t),B(s.$$.fragment,t),b=!0)},o(t){Y(r.$$.fragment,t),Y(s.$$.fragment,t),b=!1},d(e){e&&(m(n),m(f),m(x)),G(r),G(s),t[4](null),v=!1,i(k)}}}function Bt(t,e,n){let{control:r}=e,{onChange:i}=e;return t.$$set=t=>{"control"in t&&n(0,r=t.control),"onChange"in t&&n(1,i=t.onChange)},[r,i,function(t){r=t,n(0,r)},function(t){r=t,n(0,r)},function(t){T[t?"unshift":"push"]((()=>{r.node=t,n(0,r)}))}]}class Yt extends et{constructor(t){super(),tt(this,t,Bt,Ht,o,{control:0,onChange:1})}}const Jt=[];function Xt(e,n=t){let r;const i=new Set;function a(t){if(o(e,t)&&(e=t,r)){const t=!Jt.length;for(const t of i)t[1](),Jt.push(t,e);if(t){for(let t=0;t{i.delete(u),0===i.size&&r&&(r(),r=null)}}}}const Wt=Xt({}),Kt=Xt({}),Zt=Xt({});function Gt(t){let n,r,o,l,u,f,x,b,v,k,$,j,E,S,_,O,A,M,C;function N(e){t[3](e)}let I={};function L(e){t[4](e)}void 0!==t[0]&&(I.control=t[0]),r=new Ot({props:I}),T.push((()=>W(r,"control",N)));let z={};void 0!==t[0]&&(z.control=t[0]),u=new Et({props:z}),T.push((()=>W(u,"control",L)));let F=[t[0].attributes],R={};for(let t=0;to=!1))),r.$set(i);const a={};!f&&1&n&&(f=!0,a.control=t[0],P((()=>f=!1))),u.$set(a),y(O,R=X(F,[1&n&&t[0].attributes]))},i(t){A||(B(r.$$.fragment,t),B(u.$$.fragment,t),A=!0)},o(t){Y(r.$$.fragment,t),Y(u.$$.fragment,t),A=!1},d(e){e&&(m(n),m(x),m(S),m(_)),G(r),G(u),m(b),m(v),m(k),m(j),t[5](null),t[6](null),M=!1,i(C)}}}function Qt(t=1e3){return new Promise((e=>setTimeout(e,t)))}function te(t,e,n){let r,i,{control:a}=e,{onChange:o}=e;const l=new Event("change");return a&&a.attributes&&a.attributes.required&&delete a.attributes.required,O((async()=>{for(;"SUNEDITOR"in window==!1;)await Qt(100);i=SUNEDITOR.create(r,{katex:katex,buttonList:[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],["bold","underline","italic","strike","subscript","superscript"],["fontColor","hiliteColor","textStyle"],["removeFormat"],["outdent","indent"],["align","horizontalRule","list","lineHeight"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"],["-right",":r-More Rich-default.more_plus","table","math","imageGallery"],["-right","image","video","audio","link"],["%992",[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],["bold","underline","italic","strike"],[":t-More Text-default.more_text","subscript","superscript","fontColor","hiliteColor","textStyle"],["removeFormat"],["outdent","indent"],["align","horizontalRule","list","lineHeight"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"],["-right",":r-More Rich-default.more_plus","table","link","image","video","audio","math","imageGallery"]]],["%767",[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],[":t-More Text-default.more_text","bold","underline","italic","strike","subscript","superscript","fontColor","hiliteColor","textStyle"],["removeFormat"],["outdent","indent"],[":e-More Line-default.more_horizontal","align","horizontalRule","list","lineHeight"],[":r-More Rich-default.more_plus","table","link","image","video","audio","math","imageGallery"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"]]],["%480",[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],[":t-More Text-default.more_text","bold","underline","italic","strike","subscript","superscript","fontColor","hiliteColor","textStyle","removeFormat"],[":e-More Line-default.more_horizontal","outdent","indent","align","horizontalRule","list","lineHeight"],[":r-More Rich-default.more_plus","table","link","image","video","audio","math","imageGallery"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"]]]]}),i.onChange=function(t,e){t=t.replace("


",""),n(2,r.value=t||null,r),r.dispatchEvent(l)}})),t.$$set=t=>{"control"in t&&n(0,a=t.control),"onChange"in t&&n(1,o=t.onChange)},[a,o,r,function(t){a=t,n(0,a)},function(t){a=t,n(0,a)},function(t){T[t?"unshift":"push"]((()=>{r=t,n(2,r)}))},function(t){T[t?"unshift":"push"]((()=>{a.node=t,n(0,a)}))}]}class ee extends et{constructor(t){super(),tt(this,t,te,Gt,o,{control:0,onChange:1})}}function ne(e){let n,r=e[0].element,i=e[0].element&&le(e);return{c(){i&&i.c(),n=b()},m(t,e){i&&i.m(t,e),p(t,n,e)},p(t,e){t[0].element?r?o(r,t[0].element)?(i.d(1),i=le(t),r=t[0].element,i.c(),i.m(n.parentNode,n)):i.p(t,e):(i=le(t),r=t[0].element,i.c(),i.m(n.parentNode,n)):r&&(i.d(1),i=null,r=t[0].element)},i:t,o:t,d(t){t&&m(n),i&&i.d(t)}}}function re(t){let e,n,r;function i(e){t[6](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new ee({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function ie(t){let e,n,r;function i(e){t[5](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new Yt({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function ae(t){let e,n,r;function i(e){t[4](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new Dt({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function oe(t){let e,n,r;function i(e){t[3](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new zt({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function le(t){let e,n=t[0].content+"";return{c(){e=d(t[0].element)},m(r,i){p(r,e,i),e.innerHTML=n,t[7](e)},p(t,r){1&r&&n!==(n=t[0].content+"")&&(e.innerHTML=n)},d(n){n&&m(e),t[7](null)}}}function se(t){let e,n,r,i,a,o,l;const s=[oe,ae,ie,re,ne],u=[];function f(t,e){return"input"==t[0].element?0:"select"==t[0].element?1:"textarea"==t[0].element?2:"richtext"==t[0].element?3:4}return r=f(t),i=u[r]=s[r](t),{c(){e=d("div"),n=d("div"),i.c(),w(n,"class",a="svlete-former-control-group"+(t[0].error?" has-error":"")+" "+(t[1]||" content")),w(e,"class",o=t[0].classes.join(" "))},m(t,i){p(t,e,i),c(e,n),u[r].m(n,null),l=!0},p(t,[c]){let p=r;r=f(t),r===p?u[r].p(t,c):(D(),Y(u[p],1,1,(()=>{u[p]=null})),H(),i=u[r],i?i.p(t,c):(i=u[r]=s[r](t),i.c()),B(i,1),i.m(n,null)),(!l||3&c&&a!==(a="svlete-former-control-group"+(t[0].error?" has-error":"")+" "+(t[1]||" content")))&&w(n,"class",a),(!l||1&c&&o!==(o=t[0].classes.join(" ")))&&w(e,"class",o)},i(t){l||(B(i),l=!0)},o(t){Y(i),l=!1},d(t){t&&m(e),u[r].d()}}}function ue(t,e,n){let r;u(t,Kt,(t=>n(9,r=t)));let i,a,{control:o}=e;function l(t,e,l){let s;clearTimeout(a),a=setTimeout((()=>{if(t){let e=t.target;e.tagName.toLowerCase(),n(1,i=e.type),s="checkbox"==e.type?e.checked:e.value}else n(1,i=o.attributes.type),s=e;n(0,o.attributes.value=s,o),kt(o),Wt.update((t=>o));let a=Object.assign({},r);o.error?a[o.attributes.name]=o.error:delete a[o.attributes.name],Kt.update((t=>a))}),250)}return O((function(){setTimeout((()=>{l(null,o.attributes.value,o.element)}),1)})),t.$$set=t=>{"control"in t&&n(0,o=t.control)},t.$$.update=()=>{1&t.$$.dirty&&o&&(n(0,o.required=o.required||!!o.attributes.required,o),xt.indexOf(o.element)>-1&&n(1,i=o.attributes.type||o.element),"dynamic"==o.creationMethod&&kt(o))},[o,i,l,function(t){o=t,n(0,o)},function(t){o=t,n(0,o)},function(t){o=t,n(0,o)},function(t){o=t,n(0,o)},function(t){T[t?"unshift":"push"]((()=>{o.node=t,n(0,o)}))}]}class ce extends et{constructor(t){super(),tt(this,t,ue,se,o,{control:0})}}function pe(t,e,n){const r=t.slice();return r[5]=e[n],r}function me(t){let n,r,i,o=t[5].text+"",l=[t[5].attributes],s={};for(let t=0;tn(3,r=t))),u(t,Kt,(t=>n(4,i=t)));let{buttons:a=[{text:"Submit"}]}=e,{formEl:o}=e;return a=a.map((t=>t=ft({attributes:{type:"submit",class:"button"},text:"Submit"},t||{}))),t.$$set=t=>{"buttons"in t&&n(0,a=t.buttons),"formEl"in t&&n(2,o=t.formEl)},[a,function(t,e){"function"==typeof t.onClick&&t.onClick.bind()(e,{form:o,errors:i,values:r,controls:controls})},o]}class xe extends et{constructor(t){super(),tt(this,t,de,fe,o,{buttons:0,formEl:2})}}function he(t,e,n){const r=t.slice();return r[16]=e[n],r[17]=e,r[18]=n,r}function be(t){let e,n,r,i,o,l,s,u,x,b,v=J(t[0]),y=[];for(let e=0;eY(y[t],1,1,(()=>{y[t]=null}));return s=new xe({props:{buttons:t[4],formEl:t[6]}}),{c(){e=d("div"),n=d("form"),r=d("div");for(let t=0;tW(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(r,i){t=r;const a={};!n&&1&i&&(n=!0,a.control=t[16],P((()=>n=!1))),e.$set(a)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function we(t){let e,n,r=t[5]&&be(t);return{c(){r&&r.c(),e=b()},m(t,i){r&&r.m(t,i),p(t,e,i),n=!0},p(t,[n]){t[5]?r?(r.p(t,n),32&n&&B(r,1)):(r=be(t),r.c(),B(r,1),r.m(e.parentNode,e)):r&&(D(),Y(r,1,1,(()=>{r=null})),H())},i(t){n||(B(r),n=!0)},o(t){Y(r),n=!1},d(t){t&&m(e),r&&r.d(t)}}}function ve(t,e,n){let r,i;u(t,Kt,(t=>n(12,r=t))),u(t,Wt,(t=>n(9,i=t)));let a,{controls:o=[]}=e,{method:l="POST"}=e,{action:s=""}=e,{failOnError:c=!0}=e,{onSubmit:p=function(t){c&&x()&&t.preventDefault()}}=e,{buttons:m=[]}=e,f=!1,d={};function x(){return Object.keys(r).length>0}return function(){let t={},e={};for(let r in o)n(0,o[r].idx=Number(r)+1,o),"error"in o[r]&&o[r].error&&(t[o[r].attributes.name]=o[r].error),o[r].attributes&&"value"in o[r].attributes&&("checkbox"==o[r].attributes.type&&n(0,o[r].attributes.value="true"==o[r].attributes.value,o),e[o[r].attributes.name]=o[r].attributes.value);Kt.update((e=>t)),Zt.update((t=>e))}(),O((function(){!function(t){let e,n={},r={};for(let i in t)if(i=Number(i),e=t[i],yt(e),e.attributes){if(e.attributes.name in n)throw new Error("Control["+(i+1)+'] attributes.name "'+e.attributes.name+'" has already been used with Control['+(n[e.attributes.name]+1)+"]");if(n[e.attributes.name]=i,"id"in e.attributes&&e.attributes.id in r)throw new Error("Control["+(i+1)+'] attributes.id "'+e.attributes.id+'" has already been used with Control['+(r[e.attributes.id]+1)+"]");r[e.attributes.id]=i,"id"in e.attributes==0&&(e.attributes.id="control-"+e.element+"-"+(i+1))}n=null,r=null,e=null}(o),n(5,f=!0)})),t.$$set=t=>{"controls"in t&&n(0,o=t.controls),"method"in t&&n(1,l=t.method),"action"in t&&n(2,s=t.action),"failOnError"in t&&n(7,c=t.failOnError),"onSubmit"in t&&n(3,p=t.onSubmit),"buttons"in t&&n(4,m=t.buttons)},t.$$.update=()=>{768&t.$$.dirty&&i&&(!async function(t){try{if("onChange"in t==0)return;let e,r;for(let a in t.onChange)e=t.onChange[a],"function"==typeof e.set?await e.set.bind(t)(t.attributes.value,i):i(e.set);function i(i){if(r=i,"object"==typeof r)for(let i in r)for(let a in o){let l=null;"attributes"in o[a]!=0&&i===o[a].attributes.name&&("dynamic"==o[a].creationMethod&&t.onChangeResets[i]&&(n(0,o[a]=t.onChangeResets[i],o),o[a].creationMethod),"value"in e&&t.attributes.value!==e.value||(t.onChangeResets[i]=t.onChangeResets[i]||ft({},o[a]),l=ft(o[a],r[i],{element:o[a].element,attributes:{id:o[a].attributes.id,name:o[a].attributes.name,type:o[a].attributes.type},creationMethod:"dynamic"}),yt(l),n(0,o[a]=l,o),Wt.update((t=>o[a]))))}}}catch(l){throw l}}(i),i&&i.attributes&&(n(8,d[i.attributes.name]=i.attributes.value,d),Zt.update((t=>d))))},[o,l,s,p,m,f,a,c,d,i,function(t,e,r,i){r[i]=t,n(0,o)},function(t){T[t?"unshift":"push"]((()=>{a=t,n(6,a)}))}]}return class extends et{constructor(t){super(),tt(this,t,ve,we,o,{controls:0,method:1,action:2,failOnError:7,onSubmit:3,buttons:4})}}}(); +var SvelteFormer=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function i(t){t.forEach(n)}function a(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l;function s(t,e){return t===e||(l||(l=document.createElement("a")),l.href=e,t===l.href)}function u(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e){for(const t of n)t(void 0);return t}const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function c(t,e){t.appendChild(e)}function p(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){for(let n=0;nt.removeEventListener(e,n,r)}function w(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const v=["width","height"];function y(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===v.indexOf(r)?t[r]=e[r]:w(t,r,e[r])}function k(t,e){e=""+e,t.data!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function j(t,e,n){for(let n=0;n{V.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function J(t){return void 0!==t?.length?t:Array.from(t)}function X(t,e){const n={},r={},i={$$scope:1};let a=t.length;for(;a--;){const o=t[a],l=e[a];if(l){for(const t in o)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[a]=l}else for(const t in o)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function W(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function K(t){t&&t.c()}function Z(t,e,r){const{fragment:o,after_update:l}=t.$$;o&&o.m(e,r),L((()=>{const e=t.$$.on_mount.map(n).filter(a);t.$$.on_destroy?t.$$.on_destroy.push(...e):i(e),t.$$.on_mount=[]})),l.forEach(L)}function G(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];M.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),M=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(t,e){-1===t.$$.dirty[0]&&(A.push(t),I||(I=!0,N.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const i=r.length?r[0]:n;return f.ctx&&l(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),d&&Q(e,t)),n})):[],f.update(),d=!0,i(f.before_update),f.fragment=!!o&&o(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(m)}else f.fragment&&f.fragment.c();n.intro&&B(e.$$.fragment),Z(e,n.target,n.anchor),R()}_(p)}class et{$$=void 0;$$set=void 0;$destroy(){G(this,1),this.$destroy=t}$on(e,n){if(!a(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var nt=[],rt=[];function it(t,e){if(t&&"undefined"!=typeof document){var n,r=!0===e.prepend?"prepend":"append",i=!0===e.singleTag,a="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(i){var o=nt.indexOf(a);-1===o&&(o=nt.push(a)-1,rt[o]={}),n=rt[o]&&rt[o][r]?rt[o][r]:rt[o][r]=l()}else n=l();65279===t.charCodeAt(0)&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function l(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var n=Object.keys(e.attributes),i=0;i .col,\n.no-gutters > [class*=col-] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col,\n.col-1,\n.col-10,\n.col-11,\n.col-12,\n.col-2,\n.col-3,\n.col-4,\n.col-5,\n.col-6,\n.col-7,\n.col-8,\n.col-9,\n.col-auto,\n.col-lg,\n.col-lg-1,\n.col-lg-10,\n.col-lg-11,\n.col-lg-12,\n.col-lg-2,\n.col-lg-3,\n.col-lg-4,\n.col-lg-5,\n.col-lg-6,\n.col-lg-7,\n.col-lg-8,\n.col-lg-9,\n.col-lg-auto,\n.col-md,\n.col-md-1,\n.col-md-10,\n.col-md-11,\n.col-md-12,\n.col-md-2,\n.col-md-3,\n.col-md-4,\n.col-md-5,\n.col-md-6,\n.col-md-7,\n.col-md-8,\n.col-md-9,\n.col-md-auto,\n.col-sm,\n.col-sm-1,\n.col-sm-10,\n.col-sm-11,\n.col-sm-12,\n.col-sm-2,\n.col-sm-3,\n.col-sm-4,\n.col-sm-5,\n.col-sm-6,\n.col-sm-7,\n.col-sm-8,\n.col-sm-9,\n.col-sm-auto,\n.col-xl,\n.col-xl-1,\n.col-xl-10,\n.col-xl-11,\n.col-xl-12,\n.col-xl-2,\n.col-xl-3,\n.col-xl-4,\n.col-xl-5,\n.col-xl-6,\n.col-xl-7,\n.col-xl-8,\n.col-xl-9,\n.col-xl-auto {\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: 5px;\n padding-left: 5px;\n}\n\n.col {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.col-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n}\n\n.col-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-sm-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-sm-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n@media (min-width: 768px) {\n .col-md {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-md-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-md-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n@media (min-width: 992px) {\n .col-lg {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-lg-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-lg-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n@media (min-width: 1200px) {\n .col-xl {\n -webkit-flex-basis: 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-xl-auto {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 auto;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-xl-1 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 8.333333%;\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 16.666667%;\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 25%;\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 33.333333%;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 41.666667%;\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 58.333333%;\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 66.666667%;\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 75%;\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 83.333333%;\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 91.666667%;\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n -webkit-box-flex: 0;\n -webkit-flex: 0 0 100%;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n}\n.order-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n}\n\n.order-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n}\n\n.order-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n}\n\n.flex-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n}\n\n.flex-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n}\n\n.justify-content-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n}\n\n.justify-content-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n}\n\n.align-items-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n}\n\n.align-items-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n}\n\n.align-items-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n}\n\n.align-items-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n}\n\n.align-content-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n}\n\n.align-content-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n}\n\n.align-content-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n}\n\n.align-content-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n}\n\n.align-content-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n}\n\n.align-self-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n}\n\n.align-self-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n}\n\n.align-self-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n}\n\n.align-self-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n}\n\n.align-self-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .order-sm-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-sm-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-sm-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-sm-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-sm-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-sm-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-sm-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-sm-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-sm-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-sm-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-sm-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-sm-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-sm-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n@media (min-width: 768px) {\n .order-md-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-md-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-md-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-md-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-md-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-md-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-md-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-md-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-md-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-md-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-md-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-md-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-md-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-md-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-md-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-md-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-md-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-md-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-md-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-md-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-md-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n@media (min-width: 992px) {\n .order-lg-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-lg-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-lg-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-lg-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-lg-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-lg-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-lg-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-lg-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-lg-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-lg-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-lg-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-lg-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-lg-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n@media (min-width: 1200px) {\n .order-xl-first {\n -webkit-box-ordinal-group: 0;\n -webkit-order: -1;\n -ms-flex-order: -1;\n order: -1;\n }\n .order-xl-last {\n -webkit-box-ordinal-group: 2;\n -webkit-order: 1;\n -ms-flex-order: 1;\n order: 1;\n }\n .order-xl-0 {\n -webkit-box-ordinal-group: 1;\n -webkit-order: 0;\n -ms-flex-order: 0;\n order: 0;\n }\n .flex-xl-row {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: row !important;\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-xl-column {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: normal !important;\n -webkit-flex-direction: column !important;\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n -webkit-box-orient: horizontal !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: row-reverse !important;\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n -webkit-box-orient: vertical !important;\n -webkit-box-direction: reverse !important;\n -webkit-flex-direction: column-reverse !important;\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n -webkit-flex-wrap: wrap !important;\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n -webkit-flex-wrap: nowrap !important;\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n -webkit-flex-wrap: wrap-reverse !important;\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-xl-start {\n -webkit-box-pack: start !important;\n -webkit-justify-content: flex-start !important;\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n -webkit-box-pack: end !important;\n -webkit-justify-content: flex-end !important;\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n -webkit-box-pack: center !important;\n -webkit-justify-content: center !important;\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-xl-between {\n -webkit-box-pack: justify !important;\n -webkit-justify-content: space-between !important;\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n -webkit-justify-content: space-around !important;\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n -webkit-box-align: start !important;\n -webkit-align-items: flex-start !important;\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n -webkit-box-align: end !important;\n -webkit-align-items: flex-end !important;\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n -webkit-box-align: center !important;\n -webkit-align-items: center !important;\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-xl-baseline {\n -webkit-box-align: baseline !important;\n -webkit-align-items: baseline !important;\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n -webkit-box-align: stretch !important;\n -webkit-align-items: stretch !important;\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-xl-start {\n -webkit-align-content: flex-start !important;\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n -webkit-align-content: flex-end !important;\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n -webkit-align-content: center !important;\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-xl-between {\n -webkit-align-content: space-between !important;\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-xl-around {\n -webkit-align-content: space-around !important;\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n -webkit-align-content: stretch !important;\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n -webkit-align-self: auto !important;\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-xl-start {\n -webkit-align-self: flex-start !important;\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n -webkit-align-self: flex-end !important;\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n -webkit-align-self: center !important;\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-xl-baseline {\n -webkit-align-self: baseline !important;\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n -webkit-align-self: stretch !important;\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}",{});it("/**\n * Copyright (c) 2024 Anthony Mugendi\n * \n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n.former {\n /* CSS */\n}\n.former .svlete-former-control-buttons {\n padding: 10px;\n margin: 2px 0;\n}\n.former .svlete-former-control-group {\n padding: 5px;\n border-radius: 10px;\n border: 1px solid #fafafa;\n margin: 5px 0;\n}\n.former .svlete-former-control-group .label-container {\n display: flex;\n justify-content: space-between;\n align-items: end;\n margin-bottom: 5px;\n}\n.former .svlete-former-control-group .label-container .radio-control, .former .svlete-former-control-group .label-container .checkbox-control {\n text-wrap: nowrap;\n margin-top: 5px;\n}\n.former .svlete-former-control-group .label-container .label {\n font-size: 1rem;\n font-weight: 600;\n margin-right: 5px;\n cursor: pointer;\n text-wrap: nowrap;\n}\n.former .svlete-former-control-group .label-container .label.small {\n font-weight: 500;\n font-size: 0.8rem;\n}\n.former .svlete-former-control-group .label-container .label.pad-left {\n padding-left: 5px;\n}\n.former .svlete-former-control-group:hover {\n background: #f9f9f9;\n}\n.former .svlete-former-control-group.hidden {\n display: none;\n}\n.former .svlete-former-control-group.has-error {\n background: #fee;\n color: #922;\n}\n.former .svlete-former-control-group.has-error:hover {\n background: #fee;\n}\n.former .svlete-former-control-group.has-error .label-container .error {\n font-size: 0.7rem;\n text-wrap: wrap;\n border-left: 1px #caa solid;\n padding-left: 5px;\n}\n.former .svlete-former-control-group textarea {\n min-height: 200px;\n}\n.former .svlete-former-control-group input,\n.former .svlete-former-control-group textarea,\n.former .svlete-former-control-group select {\n display: block;\n padding: 5px;\n border: none;\n outline: none;\n box-sizing: border-box;\n font-size: 0.95rem;\n color: #444;\n background: #fff;\n box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;\n border-radius: 5px;\n width: 100%;\n}\n.former .svlete-former-control-group input[placeholder],\n.former .svlete-former-control-group textarea[placeholder],\n.former .svlete-former-control-group select[placeholder] {\n color: #999;\n}\n.former .svlete-former-control-group input[disabled],\n.former .svlete-former-control-group textarea[disabled],\n.former .svlete-former-control-group select[disabled] {\n background: #f5f5f5;\n cursor: crosshair;\n}\n.former .svlete-former-control-group input[type=radio],\n.former .svlete-former-control-group input[type=checkbox] {\n display: inline-block;\n width: auto;\n box-shadow: none;\n}\n.former .svlete-former-control-group select {\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z' fill='%23212121'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 0.5rem center;\n}\n.former .button {\n background-image: linear-gradient(rgba(247, 248, 250, 0.8078431373), #e7e9ec);\n border-color: #adb1b8 #a2a6ac #8d9096;\n border-style: solid;\n border-width: 1px;\n border-radius: 3px;\n box-shadow: rgba(255, 255, 255, 0.6) 0 1px 0 inset;\n box-sizing: border-box;\n color: #0f1111;\n cursor: pointer;\n display: inline-block;\n font-family: \"Amazon Ember\", Arial, sans-serif;\n font-size: 14px;\n height: 29px;\n font-size: 13px;\n outline: 0;\n overflow: hidden;\n padding: 0 11px;\n text-align: center;\n text-decoration: none;\n text-overflow: ellipsis;\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n white-space: nowrap;\n}\n.former .button + .button {\n margin-left: 2px;\n}\n.former .button:hover, .former .button:active, .former .button:active:hover, .former .button:focus {\n border-color: #a2a6ac #979aa1 #82858a;\n filter: brightness(103%);\n}\n\n@media (max-width: 575px) {\n .former .control-group:hover {\n background: #f9f9f9;\n }\n .former .control-group .label-container {\n flex-direction: column;\n align-items: start;\n }\n}",{});var at="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ot(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lt,st,ut={exports:{}};lt=ut,(st=st||{}).scope={},st.arrayIteratorImpl=function(t){var e=0;return function(){return e>>0,st.propertyToPolyfillSymbol[r]=st.IS_SYMBOL_NATIVE?st.global.Symbol(r):st.POLYFILL_PREFIX+t+"$"+r),st.defineProperty(i,st.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:e})))},st.initSymbol=function(){},st.polyfill("Symbol",(function(t){function e(t,e){this.$jscomp$symbol$id_=t,st.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}if(t)return t;e.prototype.toString=function(){return this.$jscomp$symbol$id_};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return function t(i){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(i||"")+"_"+r++,i)}}),"es6","es3"),st.polyfill("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n=i}}),"es6","es3"),st.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},st.assign=st.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(t,e){for(var n=1;n=r}}),"es6","es3"),st.polyfill("Number.isNaN",(function(t){return t||function(t){return"number"==typeof t&&isNaN(t)}}),"es6","es3"),st.polyfill("Object.entries",(function(t){return t||function(t){var e,n=[];for(e in t)st.owns(t,e)&&n.push([e,t[e]]);return n}}),"es8","es3"),lt.exports=function(){function t(t){if(this.opts={},this.defaults={},this.messages=Object.assign({},A),this.rules={any:j,array:$,boolean:k,class:y,custom:v,currency:w,date:g,email:b,enum:h,equal:x,forbidden:d,function:f,multi:m,number:p,object:c,objectID:u,record:s,string:l,tuple:o,url:a,uuid:i,mac:r,luhn:n},this.aliases={},this.cache=new Map,t){if(S(this.opts,t),t.defaults&&S(this.defaults,t.defaults),t.messages)for(var E in t.messages)this.addMessage(E,t.messages[E]);if(t.aliases)for(var _ in t.aliases)this.alias(_,t.aliases[_]);if(t.customRules)for(var O in t.customRules)this.add(O,t.customRules[O]);if(t.plugins){if(t=t.plugins,!Array.isArray(t))throw Error("Plugins type must be array");t.forEach(this.plugin.bind(this))}this.opts.debug&&(t=function(t){return t},"undefined"==typeof window&&(t=e),this._formatter=t)}}function e(t){return T||(T=O(),M={parser:"babel",useTabs:!1,printWidth:120,trailingComma:"none",tabWidth:4,singleQuote:!1,semi:!0,bracketSpacing:!0},C=O(),N={language:"js",theme:C.fromJson({keyword:["white","bold"],built_in:"magenta",literal:"cyan",number:"magenta",regexp:"red",string:["yellow","bold"],symbol:"plain",class:"blue",attr:"plain",function:["white","bold"],title:"plain",params:"green",comment:"grey"})}),t=T.format(t,M),C.highlight(t,N)}function n(t){return t.schema,t=t.messages,{source:'\n\t\t\tif (typeof value !== "string") {\n\t\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+'\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tif (typeof value !== "string")\n\t\t\t\tvalue = String(value);\n\n\t\t\tval = value.replace(/\\D+/g, "");\n\n\t\t\tvar array = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];\n\t\t\tvar len = val ? val.length : 0,\n\t\t\t\tbit = 1,\n\t\t\t\tsum = 0;\n\t\t\twhile (len--) {\n\t\t\t\tsum += !(bit ^= 1) ? parseInt(val[len], 10) : array[val[len]];\n\t\t\t}\n\n\t\t\tif (!(sum % 10 === 0 && sum > 0)) {\n\t\t\t\t'+this.makeError({type:"luhn",actual:"value",messages:t})+"\n\t\t\t}\n\n\t\t\treturn value;\n\t\t"}}function r(t){return t.schema,t=t.messages,{source:'\n\t\t\tif (typeof value !== "string") {\n\t\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+"\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tvar v = value.toLowerCase();\n\t\t\tif (!"+Y.toString()+".test(v)) {\n\t\t\t\t"+this.makeError({type:"mac",actual:"value",messages:t})+"\n\t\t\t}\n\t\t\t\n\t\t\treturn value;\n\t\t"}}function i(t){var e=t.schema;t=t.messages;var n=[];return n.push('\n\t\tif (typeof value !== "string") {\n\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tvar val = value.toLowerCase();\n\t\tif (!"+B.toString()+".test(val)) {\n\t\t\t"+this.makeError({type:"uuid",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tconst version = val.charAt(14) | 0;\n\t"),7>parseInt(e.version)&&n.push("\n\t\t\tif ("+e.version+" !== version) {\n\t\t\t\t"+this.makeError({type:"uuidVersion",expected:e.version,actual:"version",messages:t})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),n.push('\n\t\tswitch (version) {\n\t\tcase 0:\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 6:\n\t\t\tbreak;\n\t\tcase 3:\n\t\tcase 4:\n\t\tcase 5:\n\t\t\tif (["8", "9", "a", "b"].indexOf(val.charAt(19)) === -1) {\n\t\t\t\t'+this.makeError({type:"uuid",actual:"value",messages:t})+"\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t"),{source:n.join("\n")}}function a(t){var e=t.schema;t=t.messages;var n=[];return n.push('\n\t\tif (typeof value !== "string") {\n\t\t\t'+this.makeError({type:"string",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\t"),e.empty?n.push("\n\t\t\tif (value.length === 0) return value;\n\t\t"):n.push("\n\t\t\tif (value.length === 0) {\n\t\t\t\t"+this.makeError({type:"urlEmpty",actual:"value",messages:t})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),n.push("\n\t\tif (!"+H.toString()+".test(value)) {\n\t\t\t"+this.makeError({type:"url",actual:"value",messages:t})+"\n\t\t}\n\n\t\treturn value;\n\t"),{source:n.join("\n")}}function o(t,e,n){var r=t.schema,i=t.messages;if(t=[],null!=r.items){if(!Array.isArray(r.items))throw Error("Invalid '"+r.type+"' schema. The 'items' field must be an array.");if(0===r.items.length)throw Error("Invalid '"+r.type+"' schema. The 'items' field must not be an empty array.")}if(t.push("\n\t\tif (!Array.isArray(value)) {\n\t\t\t"+this.makeError({type:"tuple",actual:"value",messages:i})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tvar len = value.length;\n\t"),!1===r.empty&&t.push("\n\t\t\tif (len === 0) {\n\t\t\t\t"+this.makeError({type:"tupleEmpty",actual:"value",messages:i})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),null!=r.items){for(t.push("\n\t\t\tif ("+r.empty+" !== false && len === 0) {\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tif (len !== "+r.items.length+") {\n\t\t\t\t"+this.makeError({type:"tupleLength",expected:r.items.length,actual:"len",messages:i})+"\n\t\t\t\treturn value;\n\t\t\t}\n\t\t"),t.push("\n\t\t\tvar arr = value;\n\t\t\tvar parentField = field;\n\t\t"),i=0;i "+e.max+") {\n\t\t\t\t"+this.makeError({type:"stringMax",expected:e.max,actual:"len",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.length&&n.push("\n\t\t\tif (len !== "+e.length+") {\n\t\t\t\t"+this.makeError({type:"stringLength",expected:e.length,actual:"len",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.pattern){var i=e.pattern;"string"==typeof e.pattern&&(i=new RegExp(e.pattern,e.patternFlags)),n.push("\n\t\t\tif (!"+i.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringPattern",expected:'"'+i.toString().replace(/"/g,"\\$&")+'"',actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t")}return null!=e.contains&&n.push('\n\t\t\tif (value.indexOf("'+e.contains+'") === -1) {\n\t\t\t\t'+this.makeError({type:"stringContains",expected:'"'+e.contains+'"',actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.enum&&(i=JSON.stringify(e.enum),n.push("\n\t\t\tif ("+i+".indexOf(value) === -1) {\n\t\t\t\t"+this.makeError({type:"stringEnum",expected:'"'+e.enum.join(", ")+'"',actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t")),!0===e.numeric&&n.push("\n\t\t\tif (!"+F.toString()+".test(value) ) {\n\t\t\t\t"+this.makeError({type:"stringNumeric",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.alpha&&n.push("\n\t\t\tif(!"+R.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringAlpha",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.alphanum&&n.push("\n\t\t\tif(!"+q.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringAlphanum",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.alphadash&&n.push("\n\t\t\tif(!"+V.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringAlphadash",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.hex&&n.push("\n\t\t\tif(value.length % 2 !== 0 || !"+U.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringHex",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.singleLine&&n.push('\n\t\t\tif(value.includes("\\n")) {\n\t\t\t\t'+this.makeError({type:"stringSingleLine",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.base64&&n.push("\n\t\t\tif(!"+D.toString()+".test(value)) {\n\t\t\t\t"+this.makeError({type:"stringBase64",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),n.push("\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function s(t,e,n){var r=t.schema,i=[];for(var a in i.push('\n\t\tif (typeof value !== "object" || value === null || Array.isArray(value)) {\n\t\t\t'+this.makeError({type:"record",actual:"value",messages:t.messages})+"\n\t\t\treturn value;\n\t\t}\n\t"),t=r.key||"string",r=r.value||"any",i.push("\n\t\tconst record = value;\n\t\tlet sanitizedKey, sanitizedValue;\n\t\tconst result = {};\n\t\tfor (let key in value) {\n\t"),i.push("sanitizedKey = value = key;"),(t=this.getRuleFromSchema(t)).messages)a.startsWith("string")&&(t.messages[a]=t.messages[a].replace(" field "," key "));return i.push(this.compileRule(t,n,null,"\n\t\tsanitizedKey = "+(n.async?"await ":"")+'context.fn[%%INDEX%%](key, field ? field + "." + key : key, record, errors, context);\n\t',"sanitizedKey")),i.push("sanitizedValue = value = record[key];"),a=this.getRuleFromSchema(r),i.push(this.compileRule(a,n,e+"[key]","\n\t\tsanitizedValue = "+(n.async?"await ":"")+'context.fn[%%INDEX%%](value, field ? field + "." + key : key, record, errors, context);\n\t',"sanitizedValue")),i.push("result[sanitizedKey] = sanitizedValue;"),i.push("\n\t\t}\n\t"),i.push("return result;"),{source:i.join("\n")}}function u(t,e,n){e=t.schema;var r=t.messages;t=t.index;var i=[];return n.customs[t]?n.customs[t].schema=e:n.customs[t]={schema:e},i.push("\n\t\tconst ObjectID = context.customs["+t+"].schema.ObjectID;\n\t\tif (!ObjectID.isValid(value)) {\n\t\t\t"+this.makeError({type:"objectID",actual:"value",messages:r})+"\n\t\t\treturn;\n\t\t}\n\t"),!0===e.convert?i.push("return new ObjectID(value)"):"hexString"===e.convert?i.push("return value.toString()"):i.push("return value"),{source:i.join("\n")}}function c(t,e,n){var r=this,i=t.schema;t=t.messages;var a=[];a.push('\n\t\tif (typeof value !== "object" || value === null || Array.isArray(value)) {\n\t\t\t'+this.makeError({type:"object",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\t");var o=i.properties||i.props;if(o){a.push("var parentObj = value;"),a.push("var parentField = field;");for(var l=Object.keys(o).filter((function(t){return!r.isMetaKey(t)})),s=0;s "+i.maxProps+") {\n\t\t\t\t"+this.makeError({type:"objectMaxProps",expected:i.maxProps,actual:"props.length",messages:t})+"\n\t\t\t}\n\t\t"),o?a.push("\n\t\t\treturn parentObj;\n\t\t"):a.push("\n\t\t\treturn value;\n\t\t"),{source:a.join("\n")}}function p(t){var e=t.schema;t=t.messages;var n=[];n.push("\n\t\tvar origValue = value;\n\t");var r=!1;return!0===e.convert&&(r=!0,n.push('\n\t\t\tif (typeof value !== "number") {\n\t\t\t\tvalue = Number(value);\n\t\t\t}\n\t\t')),n.push('\n\t\tif (typeof value !== "number" || isNaN(value) || !isFinite(value)) {\n\t\t\t'+this.makeError({type:"number",actual:"origValue",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\t"),null!=e.min&&n.push("\n\t\t\tif (value < "+e.min+") {\n\t\t\t\t"+this.makeError({type:"numberMin",expected:e.min,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.max&&n.push("\n\t\t\tif (value > "+e.max+") {\n\t\t\t\t"+this.makeError({type:"numberMax",expected:e.max,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.equal&&n.push("\n\t\t\tif (value !== "+e.equal+") {\n\t\t\t\t"+this.makeError({type:"numberEqual",expected:e.equal,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),null!=e.notEqual&&n.push("\n\t\t\tif (value === "+e.notEqual+") {\n\t\t\t\t"+this.makeError({type:"numberNotEqual",expected:e.notEqual,actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.integer&&n.push("\n\t\t\tif (value % 1 !== 0) {\n\t\t\t\t"+this.makeError({type:"numberInteger",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.positive&&n.push("\n\t\t\tif (value <= 0) {\n\t\t\t\t"+this.makeError({type:"numberPositive",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),!0===e.negative&&n.push("\n\t\t\tif (value >= 0) {\n\t\t\t\t"+this.makeError({type:"numberNegative",actual:"origValue",messages:t})+"\n\t\t\t}\n\t\t"),n.push("\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function m(t,e,n){var r=t.schema;t.messages,(t=[]).push("\n\t\tvar hasValid = false;\n\t\tvar newVal = value;\n\t\tvar checkErrors = [];\n\t\tvar errorsSize = errors.length;\n\t");for(var i=0;i "+e.max+") {\n\t\t\t\t"+this.makeError({type:"emailMax",expected:e.max,actual:"value.length",messages:t})+"\n\t\t\t}\n\t\t"),n.push("\n\t\tif (!"+r.toString()+".test(value)) {\n\t\t\t"+this.makeError({type:"email",actual:"value",messages:t})+"\n\t\t}\n\n\t\treturn value;\n\t"),{sanitized:i,source:n.join("\n")}}function g(t){var e=t.schema;t=t.messages;var n=[],r=!1;return n.push("\n\t\tvar origValue = value;\n\t"),!0===e.convert&&(r=!0,n.push("\n\t\t\tif (!(value instanceof Date)) {\n\t\t\t\tvalue = new Date(value.length && !isNaN(+value) ? +value : value);\n\t\t\t}\n\t\t")),n.push("\n\t\tif (!(value instanceof Date) || isNaN(value.getTime()))\n\t\t\t"+this.makeError({type:"date",actual:"origValue",messages:t})+"\n\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function w(t){var e=t.schema;t=t.messages;var n=e.currencySymbol||null,r=e.thousandSeparator||",",i=e.decimalSeparator||".",a=e.customRegex;return e=!e.symbolOptional,e="(?=.*\\d)^(-?~1|~1-?)(([0-9]\\d{0,2}(~2\\d{3})*)|0)?(\\~3\\d{1,2})?$".replace(/~1/g,n?"\\"+n+(e?"":"?"):"").replace("~2",r).replace("~3",i),(n=[]).push("\n\t\tif (!value.match("+(a||new RegExp(e))+")) {\n\t\t\t"+this.makeError({type:"currency",actual:"value",messages:t})+"\n\t\t\treturn value;\n\t\t}\n\n\t\treturn value;\n\t"),{source:n.join("\n")}}function v(t,e,n){var r=[];return r.push("\n\t\t"+this.makeCustomValidator({fnName:"check",path:e,schema:t.schema,messages:t.messages,context:n,ruleIndex:t.index})+"\n\t\treturn value;\n\t"),{source:r.join("\n")}}function y(t,e,n){e=t.schema;var r=t.messages;t=t.index;var i=[],a=e.instanceOf.name?e.instanceOf.name:"";return n.customs[t]?n.customs[t].schema=e:n.customs[t]={schema:e},i.push("\n\t\tif (!(value instanceof context.customs["+t+"].schema.instanceOf))\n\t\t\t"+this.makeError({type:"classInstanceOf",actual:"value",expected:"'"+a+"'",messages:r})+"\n\t"),i.push("\n\t\treturn value;\n\t"),{source:i.join("\n")}}function k(t){var e=t.schema;t=t.messages;var n=[],r=!1;return n.push("\n\t\tvar origValue = value;\n\t"),!0===e.convert&&(r=!0,n.push('\n\t\t\tif (typeof value !== "boolean") {\n\t\t\t\tif (\n\t\t\t\tvalue === 1\n\t\t\t\t|| value === "true"\n\t\t\t\t|| value === "1"\n\t\t\t\t|| value === "on"\n\t\t\t\t) {\n\t\t\t\t\tvalue = true;\n\t\t\t\t} else if (\n\t\t\t\tvalue === 0\n\t\t\t\t|| value === "false"\n\t\t\t\t|| value === "0"\n\t\t\t\t|| value === "off"\n\t\t\t\t) {\n\t\t\t\t\tvalue = false;\n\t\t\t\t}\n\t\t\t}\n\t\t')),n.push('\n\t\tif (typeof value !== "boolean") {\n\t\t\t'+this.makeError({type:"boolean",actual:"origValue",messages:t})+"\n\t\t}\n\t\t\n\t\treturn value;\n\t"),{sanitized:r,source:n.join("\n")}}function $(t,e,n){var r=t.schema,i=t.messages;t=[];var a=!1;if(!0===r.convert&&(a=!0,t.push("\n\t\t\tif (!Array.isArray(value) && value != null) {\n\t\t\t\tvalue = [value];\n\t\t\t}\n\t\t")),t.push("\n\t\tif (!Array.isArray(value)) {\n\t\t\t"+this.makeError({type:"array",actual:"value",messages:i})+"\n\t\t\treturn value;\n\t\t}\n\n\t\tvar len = value.length;\n\t"),!1===r.empty&&t.push("\n\t\t\tif (len === 0) {\n\t\t\t\t"+this.makeError({type:"arrayEmpty",actual:"value",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.min&&t.push("\n\t\t\tif (len < "+r.min+") {\n\t\t\t\t"+this.makeError({type:"arrayMin",expected:r.min,actual:"len",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.max&&t.push("\n\t\t\tif (len > "+r.max+") {\n\t\t\t\t"+this.makeError({type:"arrayMax",expected:r.max,actual:"len",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.length&&t.push("\n\t\t\tif (len !== "+r.length+") {\n\t\t\t\t"+this.makeError({type:"arrayLength",expected:r.length,actual:"len",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.contains&&t.push("\n\t\t\tif (value.indexOf("+JSON.stringify(r.contains)+") === -1) {\n\t\t\t\t"+this.makeError({type:"arrayContains",expected:JSON.stringify(r.contains),actual:"value",messages:i})+"\n\t\t\t}\n\t\t"),!0===r.unique&&t.push("\n\t\t\tif(len > (new Set(value)).size) {\n\t\t\t\t"+this.makeError({type:"arrayUnique",expected:"Array.from(new Set(value.filter((item, index) => value.indexOf(item) !== index)))",actual:"value",messages:i})+"\n\t\t\t}\n\t\t"),null!=r.enum){var o=JSON.stringify(r.enum);t.push("\n\t\t\tfor (var i = 0; i < value.length; i++) {\n\t\t\t\tif ("+o+".indexOf(value[i]) === -1) {\n\t\t\t\t\t"+this.makeError({type:"arrayEnum",expected:'"'+r.enum.join(", ")+'"',actual:"value[i]",messages:i})+"\n\t\t\t\t}\n\t\t\t}\n\t\t")}return null!=r.items?(t.push("\n\t\t\tvar arr = value;\n\t\t\tvar parentField = field;\n\t\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\t\tvalue = arr[i];\n\t\t"),e+="[]",r=this.getRuleFromSchema(r.items),t.push(this.compileRule(r,n,e,"arr[i] = "+(n.async?"await ":"")+'context.fn[%%INDEX%%](arr[i], (parentField ? parentField : "") + "[" + i + "]", parent, errors, context)',"arr[i]")),t.push("\n\t\t\t}\n\t\t"),t.push("\n\t\treturn arr;\n\t")):t.push("\n\t\treturn value;\n\t"),{sanitized:a,source:t.join("\n")}}function j(){var t=[];return t.push("\n\t\treturn value;\n\t"),{source:t.join("\n")}}function E(t,e,n){return t.replace(e,null==n?"":"function"==typeof n.toString?n:typeof n)}function S(t,e,n){for(var r in void 0===n&&(n={}),e){var i=e[r];(i="object"==typeof i&&!Array.isArray(i)&&null!=i&&0()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,L=/^\S+@\S+\.\S+$/,P=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/,z=/["'\\\n\r\u2028\u2029]/g,F=/^-?[0-9]\d*(\.\d+)?$/,R=/^[a-zA-Z]+$/,q=/^[a-zA-Z0-9]+$/,V=/^[a-zA-Z0-9_-]+$/,U=/^[0-9a-fA-F]+$/,D=/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+/]{3}=)?$/,H=/^https?:\/\/\S+/,B=/^([0-9a-f]{8}-[0-9a-f]{4}-[1-6][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}|[0]{8}-[0]{4}-[0]{4}-[0]{4}-[0]{12})$/i,Y=/^((([a-f0-9][a-f0-9]+[-]){5}|([a-f0-9][a-f0-9]+[:]){5})([a-f0-9][a-f0-9])$)|(^([a-f0-9][a-f0-9][a-f0-9][a-f0-9]+[.]){2}([a-f0-9][a-f0-9][a-f0-9][a-f0-9]))$/i;try{var J=new Function("return Object.getPrototypeOf(async function(){}).constructor")()}catch(t){}return t.prototype.validate=function(t,e){return this.compile(e)(t)},t.prototype.wrapRequiredCheckSourceCode=function(t,e,n,r){var i=[],a=this.opts.considerNullAsAValue;void 0===a&&(a=!1);var o=!0===t.schema.optional||"forbidden"===t.schema.type,l=a?!1!==t.schema.nullable||"forbidden"===t.schema.type:!0===t.schema.optional||!0===t.schema.nullable||"forbidden"===t.schema.type;return(a?null!=t.schema.default&&null!=t.schema.default:null!=t.schema.default)?(o=!1,a?!1===t.schema.nullable&&(l=!1):!0!==t.schema.nullable&&(l=!1),"function"==typeof t.schema.default?(n.customs[t.index]||(n.customs[t.index]={}),n.customs[t.index].defaultFn=t.schema.default,t="context.customs["+t.index+"].defaultFn.call(this, context.rules["+t.index+"].schema, field, parent, context)"):t=JSON.stringify(t.schema.default),r="\n\t\t\t\tvalue = "+t+";\n\t\t\t\t"+r+" = value;\n\t\t\t"):r=this.makeError({type:"required",actual:"value",messages:t.messages}),i.push("\n\t\t\tif (value === undefined) { "+(o?"\n// allow undefined\n":r)+" }\n\t\t\telse if (value === null) { "+(l?"\n// allow null\n":r)+" }\n\t\t\t"+(e?"else { "+e+" }":"")+"\n\t\t"),i.join("\n")},t.prototype.isMetaKey=function(t){return t.startsWith("$$")},t.prototype.removeMetasKeys=function(t){var e=this;Object.keys(t).forEach((function(n){e.isMetaKey(n)&&delete t[n]}))},t.prototype.compile=function(t){function e(t,e){return r.data=t,e&&e.meta&&(r.meta=e.meta),a.call(n,t,r)}if(null===t||"object"!=typeof t)throw Error("Invalid schema.");var n=this,r={index:0,async:!0===t.$$async,rules:[],fn:[],customs:{},utils:{replace:E}};if(this.cache.clear(),delete t.$$async,r.async&&!J)throw Error("Asynchronous mode is not supported.");if(!0!==t.$$root)if(Array.isArray(t))t=this.getRuleFromSchema(t).schema;else{var i=Object.assign({},t);t={type:"object",strict:i.$$strict,properties:i},this.removeMetasKeys(i)}i=["var errors = [];","var field;","var parent = null;","var label = "+(t.label?'"'+t.label+'"':"null")+";"],t=this.getRuleFromSchema(t),i.push(this.compileRule(t,r,null,(r.async?"await ":"")+"context.fn[%%INDEX%%](value, field, null, errors, context, label);","value")),i.push("if (errors.length) {"),i.push("\n\t\t\treturn errors.map(err => {\n\t\t\t\tif (err.message) {\n\t\t\t\t\terr.message = context.utils.replace(err.message, /\\{field\\}/g, err.label || err.field);\n\t\t\t\t\terr.message = context.utils.replace(err.message, /\\{expected\\}/g, err.expected);\n\t\t\t\t\terr.message = context.utils.replace(err.message, /\\{actual\\}/g, err.actual);\n\t\t\t\t}\n\t\t\t\tif(!err.label) delete err.label\n\t\t\t\treturn err;\n\t\t\t});\n\t\t"),i.push("}"),i.push("return true;"),t=i.join("\n");var a=new(r.async?J:Function)("value","context",t);return this.opts.debug&&console.log(this._formatter("// Main check function\n"+a.toString())),this.cache.clear(),e.async=r.async,e},t.prototype.compileRule=function(t,e,n,r,i){var a=[],o=this.cache.get(t.schema);return o?((t=o).cycle=!0,t.cycleStack=[],a.push(this.wrapRequiredCheckSourceCode(t,"\n\t\t\t\tvar rule = context.rules["+t.index+"];\n\t\t\t\tif (rule.cycleStack.indexOf(value) === -1) {\n\t\t\t\t\trule.cycleStack.push(value);\n\t\t\t\t\t"+r.replace(/%%INDEX%%/g,t.index)+"\n\t\t\t\t\trule.cycleStack.pop(value);\n\t\t\t\t}\n\t\t\t",e,i))):(this.cache.set(t.schema,t),t.index=e.index,e.rules[e.index]=t,o=null!=n?n:"$$root",e.index++,(n=t.ruleFunction.call(this,t,n,e)).source=n.source.replace(/%%INDEX%%/g,t.index),n=new(e.async?J:Function)("value","field","parent","errors","context","label",n.source),e.fn[t.index]=n.bind(this),a.push(this.wrapRequiredCheckSourceCode(t,r.replace(/%%INDEX%%/g,t.index),e,i)),a.push(this.makeCustomValidator({vName:i,path:o,schema:t.schema,context:e,messages:t.messages,ruleIndex:t.index})),this.opts.debug&&console.log(this._formatter("// Context.fn["+t.index+"]\n"+n.toString()))),a.join("\n")},t.prototype.getRuleFromSchema=function(t){t=this.resolveType(t);var e=this.aliases[t.type];if(e&&(delete t.type,t=S(t,e,{skipIfExist:!0})),!(e=this.rules[t.type]))throw Error("Invalid '"+t.type+"' type in validator schema.");return{messages:Object.assign({},this.messages,t.messages),schema:S(t,this.defaults[t.type],{skipIfExist:!0}),ruleFunction:e}},t.prototype.parseShortHand=function(t){var e=(t=t.split("|").map((function(t){return t.trim()})))[0],n=e.endsWith("[]")?this.getRuleFromSchema({type:"array",items:e.slice(0,-2)}).schema:{type:t[0]};return t.slice(1).map((function(t){var e=t.indexOf(":");if(-1!==e){var r=t.substr(0,e).trim();"true"===(t=t.substr(e+1).trim())||"false"===t?t="true"===t:Number.isNaN(Number(t))||(t=Number(t)),n[r]=t}else t.startsWith("no-")?n[t.slice(3)]=!1:n[t]=!0})),n},t.prototype.makeError=function(t){var e=t.type,n=t.field,r=t.expected,i=t.actual,a={type:'"'+e+'"',message:'"'+t.messages[e]+'"'};return a.field=n?'"'+n+'"':"field",null!=r&&(a.expected=r),null!=i&&(a.actual=i),a.label="label","errors.push({ "+Object.keys(a).map((function(t){return t+": "+a[t]})).join(", ")+" });"},t.prototype.makeCustomValidator=function(t){var e=t.vName;void 0===e&&(e="value");var n=t.fnName;void 0===n&&(n="custom");var r=t.ruleIndex,i=t.path,a=t.schema,o=t.context,l=t.messages;t="rule"+r;var s="fnCustomErrors"+r;return"function"==typeof a[n]?(o.customs[r]?(o.customs[r].messages=l,o.customs[r].schema=a):o.customs[r]={messages:l,schema:a},this.opts.useNewCustomCheckerFunction?"\n \t\tconst "+t+" = context.customs["+r+"];\n\t\t\t\t\tconst "+s+" = [];\n\t\t\t\t\t"+e+" = "+(o.async?"await ":"")+t+".schema."+n+".call(this, "+e+", "+s+" , "+t+'.schema, "'+i+'", parent, context);\n\t\t\t\t\tif (Array.isArray('+s+" )) {\n \t\t"+s+" .forEach(err => errors.push(Object.assign({ message: "+t+".messages[err.type], field }, err)));\n\t\t\t\t\t}\n\t\t\t\t":"\n\t\t\t\tconst "+t+" = context.customs["+r+"];\n\t\t\t\tconst "+(a="res_"+t)+" = "+(o.async?"await ":"")+t+".schema."+n+".call(this, "+e+", "+t+'.schema, "'+i+'", parent, context);\n\t\t\t\tif (Array.isArray('+a+")) {\n\t\t\t\t\t"+a+".forEach(err => errors.push(Object.assign({ message: "+t+".messages[err.type], field }, err)));\n\t\t\t\t}\n\t\t"):""},t.prototype.add=function(t,e){this.rules[t]=e},t.prototype.addMessage=function(t,e){this.messages[t]=e},t.prototype.alias=function(t,e){if(this.rules[t])throw Error("Alias name must not be a rule name");this.aliases[t]=e},t.prototype.plugin=function(t){if("function"!=typeof t)throw Error("Plugin fn type must be function");return t(this)},t.prototype.resolveType=function(t){var e=this;if("string"==typeof t)t=this.parseShortHand(t);else if(Array.isArray(t)){if(0===t.length)throw Error("Invalid schema.");(t={type:"multi",rules:t}).rules.map((function(t){return e.getRuleFromSchema(t)})).every((function(t){return!0===t.schema.optional}))&&(t.optional=!0);var n=!this.opts.considerNullAsAValue;t.rules.map((function(t){return e.getRuleFromSchema(t)})).every((function(t){return t.schema.nullable===n}))&&(t.nullable=n)}if(t.$$type){var r=this.getRuleFromSchema(t.$$type).schema;delete t.$$type;var i,a=Object.assign({},t);for(i in t)delete t[i];S(t,r,{skipIfExist:!0}),t.props=a}return t},t.prototype.normalize=function(t){var e=this,n=this.resolveType(t);return this.aliases[n.type]&&(n=S(n,this.normalize(this.aliases[n.type]),{skipIfExists:!0})),"multi"===(n=S(n,this.defaults[n.type],{skipIfExist:!0})).type?(n.rules=n.rules.map((function(t){return e.normalize(t)})),n.optional=n.rules.every((function(t){return!0===t.optional})),n):"array"===n.type?(n.items=this.normalize(n.items),n):("object"===n.type&&n.props&&Object.entries(n.props).forEach((function(t){return n.props[t[0]]=e.normalize(t[1])})),"object"==typeof t&&(t.type?(t=this.normalize(t.type),S(n,t,{skipIfExists:!0})):Object.entries(t).forEach((function(t){return n[t[0]]=e.normalize(t[1])}))),n)},t}();var ct=ot(ut.exports);const pt={$$root:!0,type:"object",props:{element:{type:"string",optional:!0,default:"input",lowercase:!0,enum:["input","textarea","select","richtext","div","hr","br","h1","h2","h3","h4","h5","h6"]},attributes:{type:"object",props:{name:{type:"string"},type:{type:"string",optional:!0,default:"text",lowercase:!0,enum:["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"]},value:{type:"any",optional:!0},id:{type:"string",optional:!0},class:{type:"string",optional:!0},style:{type:"string",optional:!0},title:{type:"string",optional:!0},placeholder:{type:"string",optional:!0},autocomplete:{type:"string",optional:!0,enum:[0]},form:{type:"string",optional:!0},formaction:{type:"string",optional:!0},formtarget:{type:"string",optional:!0},formenctype:{type:"string",optional:!0},formmethod:{type:"string",optional:!0},formnovalidate:{type:"string",optional:!0},accept:{type:"string",optional:!0},pattern:{type:"string",optional:!0},list:{type:"string",optional:!0},dirname:{type:"string",optional:!0},lang:{type:"string",optional:!0},required:{type:"boolean",optional:!0,convert:!0},readonly:{type:"boolean",optional:!0,convert:!0},disabled:{type:"boolean",optional:!0,convert:!0},checked:{type:"boolean",optional:!0,convert:!0},hidden:{type:"boolean",optional:!0,convert:!0},autofocus:{type:"boolean",optional:!0,convert:!0},multiple:{type:"boolean",optional:!0,convert:!0},tabindex:{type:"number",optional:!0,convert:!0},maxlength:{type:"number",optional:!0,convert:!0},size:{type:"number",optional:!0,convert:!0},width:{type:"number",optional:!0,convert:!0},height:{type:"number",optional:!0,convert:!0},min:{type:"number",optional:!0,convert:!0},max:{type:"number",optional:!0,convert:!0},step:{type:"number",optional:!0,convert:!0},cols:{type:"number",optional:!0,convert:!0},rows:{type:"number",optional:!0,convert:!0}}},label:{type:"multi",optional:!0,rules:[{type:"string"},{type:"object",props:{text:"string",classes:{type:"array",items:"string",optional:!0}}}]},validation:{type:"object",optional:!0,props:{enum:{type:"array",optional:!0},type:{type:"string",optional:!0,default:"string"},required:{type:"boolean",optional:!0},name:{type:"string",optional:!0},lowercase:{type:"boolean",optional:!0},min:{type:"number",optional:!0},max:{type:"number",optional:!0},contains:{type:"any",optional:!0},equal:{type:"any",optional:!0},notEqual:{type:"any",optional:!0},positive:{type:"boolean",optional:!0},negative:{type:"boolean",optional:!0},integer:{type:"boolean",optional:!0},minProps:{type:"number",optional:!0,positive:!0},maxProps:{type:"number",optional:!0,positive:!0},alphanum:{type:"boolean",optional:!0},alphadash:{type:"boolean",optional:!0},hex:{type:"boolean",optional:!0},singleLine:{type:"boolean",optional:!0},base64:{type:"boolean",optional:!0},lowercase:{type:"boolean",optional:!0},uppercase:{type:"boolean",optional:!0},localeLowercase:{type:"boolean",optional:!0},localeUppercase:{type:"boolean",optional:!0},padStart:{type:"number",optional:!0},padEnd:{type:"number",optional:!0},padStart:{type:"number",optional:!0},trimLeft:{type:"boolean",optional:!0},trimRight:{type:"boolean",optional:!0},trim:{type:"boolean",optional:!0},normalize:{type:"boolean",optional:!0}}},options:{type:"array",optional:!0,items:{type:"multi",rules:[{type:"any"},{type:"object",props:{text:"string",value:"any"}}]}},content:{type:"string",optional:!0},classes:{type:"array",default:["col-sm-12"],optional:!0,items:"string"},onChange:{type:"array",optional:!0,items:{type:"object",props:{value:{type:"any",optional:!0},set:{type:"multi",rules:[{type:"object"},{type:"function"}]}}}},onChangeResets:{type:"object",optional:!0,default:{}},creationMethod:{type:"string",optional:!0,default:"normal"}}},mt=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1},ft=(...t)=>t.reduce(((t,e)=>{if(Array.isArray(e))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(e).forEach((n=>{["__proto__","constructor","prototype"].includes(n)||(Array.isArray(t[n])&&Array.isArray(e[n])?t[n]=ft.options.mergeArrays?ft.options.uniqueArrayItems?Array.from(new Set(t[n].concat(e[n]))):[...t[n],...e[n]]:e[n]:mt(t[n])&&mt(e[n])?t[n]=ft(t[n],e[n]):t[n]=void 0===e[n]?ft.options.allowUndefinedOverrides?e[n]:t[n]:e[n])})),t}),{}),dt={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};ft.options=dt,ft.withOptions=(t,...e)=>{ft.options={...dt,...t};const n=ft(...e);return ft.options=dt,n};let xt=["input","select","textarea","richtext"];const ht=/^[a-zà-öø-ÿ]+|[A-ZÀ-ÖØ-ß][a-zà-öø-ÿ]+|[a-zà-öø-ÿ]+|[0-9]+|[A-ZÀ-ÖØ-ß]+(?![a-zà-öø-ÿ])/g;function bt(t){let e;return e=t.label?t.label.text||t.label:function(t){const e=t.matchAll(ht).next().value,n=e?e.index:0;return t.slice(0,n+1).toUpperCase()+t.slice(n+1).toLowerCase()}(t.attributes.name),e}const gt=new ct({messages:{color:"The '{field}' field must be an even number! Actual: {actual}",month:"The '{field}' field must be a valid month! Actual: {actual}",time:"The '{field}' field must be a valid time! Actual: {actual}"}});gt.add("color",(function({schema:t,messages:e},n,r){return{source:`\n function isColor(strColor) {\n const s = new Option().style;\n s.color = strColor;\n return s.color !== '';\n }\n if ( !isColor(value) ){\n ${this.makeError({type:"color",actual:"value",messages:e})}\n }\n\n return value;\n `}})),gt.add("month",(function({schema:t,messages:e},n,r){return{source:` \n let months = [], d, s;\n\n for (let i = 0; i <= 11; i++) {\n d = new Date().setMonth(i);\n s = new Date(d).toLocaleString("en-US", { month: "short" });\n months.push(\n String(i + 1),\n new Date(d).toLocaleString("en-US", { month: "long" }).toLowerCase(),\n s.toLowerCase()\n );\n }\n\n function isMonth(m) {\n return months.indexOf(String(m).toLowerCase()) > -1;\n }\n\n if ( isMonth(value)===false ){\n ${this.makeError({type:"month",actual:"value",messages:e})}\n }\n\n return value;`}})),gt.add("time",(function({schema:t,messages:e},n,r){return{source:` \n function isTime(str) {\n\n let numPat = /^[0-9]+$/;\n let numPatAMPM = /^([\\.apm0-9]+)$/i;\n let arr = str.split(/(:|\\s+)/).filter((s) => /^[^:\\s]+$/.test(s));\n \n if (numPat.test(arr[0]) === false || Number(arr[0]) >= 23) {\n return false;\n }\n \n if (numPat.test(arr[1]) === false || Number(arr[1]) >= 59) {\n return false;\n }\n\n \n if (arr[2]) {\n if (numPatAMPM.test(arr[2]) === false) {\n return false;\n }\n if (numPat.test(arr[2]) && Number(arr[2]) >= 59) {\n return false;\n }\n }\n\n if (arr[3] && numPatAMPM.test(arr[2]) === false) {\n return false;\n }\n \n return true;\n }\n\n if ( isTime(value)===false ){\n ${this.makeError({type:"time",actual:"value",messages:e})}\n }\n\n return value;`}}));const wt={date:"date","datetime-local":"date",email:"email",number:"number",url:"url",password:"string",text:"string",color:"color",month:"month",time:"time"};function vt(t,e,n="",r=!0){const i=gt.compile(e)(t);if(!0!==i){let t=n+i.map((t=>t.message)).join("\n\t");if(r)throw new Error(t);return t}return null}function yt(t){let e=(n=pt,JSON.parse(JSON.stringify(n)));var n;return("select"==t.element||"input"==t.element&&"radio"==t.attributes.type)&&(e.props.options.optional=!1),"input"==t.element&&"hidden"==t.attributes.type&&(e.props.attributes.value="any"),-1==xt.indexOf(t.element)&&(e.props.attributes.optional=!0,e.props.attributes.props.name.optional=!0,e.props.content.optional=!1),vt(t,e,"Control["+t.idx+"] "),e}function kt(t){let e=bt(t),n={type:wt[t.attributes.type]||"string",label:e,optional:!0,convert:!0};"validation"in t&&(n=ft(n,t.validation)),t.required&&(n.optional=!1,"checkbox"==t.attributes.type&&!1===t.attributes.value&&(t.attributes.value=null)),"min"in t.attributes&&(n.min=t.attributes.min),"max"in t.attributes&&(n.max=t.attributes.max),"minlength"in t.attributes&&(n.min=t.attributes.minlength),"maxlength"in t.attributes&&(n.max=t.attributes.maxlength),"pattern"in t.attributes&&(n.pattern=new RegExp(t.attributes.pattern));let r={value:n},i={value:t.attributes.value||void 0},a=vt(i,r,"",!1);t.attributes.value=i.value,t.error=a}function $t(e){let n,r=(e[0].error||"")+"";return{c(){n=d("div"),w(n,"class","error")},m(t,e){p(t,n,e),n.innerHTML=r},p(t,[e]){1&e&&r!==(r=(t[0].error||"")+"")&&(n.innerHTML=r)},i:t,o:t,d(t){t&&m(n)}}}function jt(t,e,n){let{control:r}=e;return t.$$set=t=>{"control"in t&&n(0,r=t.control)},[r]}let Et=class extends et{constructor(t){super(),tt(this,t,jt,$t,o,{control:0})}};function St(n){let r,i,a=(n[0].text||n[0])+"",o=[{for:i=n[2]||n[1].attributes.id},n[0].attributes,{class:n[3]}],l={};for(let t=0;t{"control"in t&&n(1,r=t.control),"id"in t&&n(2,i=t.id),"label"in t&&n(0,a=t.label),"cls"in t&&n(3,o=t.cls)},[a,r,i,o]}class Ot extends et{constructor(t){super(),tt(this,t,_t,St,o,{control:1,id:2,label:0,cls:3})}}function At(t,e,n){const r=t.slice();return r[15]=e[n],r[17]=n,r}function Tt(t){let n,r,o,l,s,u,f,x,b,v,k;function $(e){t[12](e)}let j={};function E(e){t[13](e)}void 0!==t[0]&&(j.control=t[0]),r=new Ot({props:j}),T.push((()=>W(r,"control",$)));let S={};void 0!==t[0]&&(S.control=t[0]),s=new Et({props:S}),T.push((()=>W(s,"control",E)));let _=[t[0].attributes],O={};for(let t=0;t<_.length;t+=1)O=e(O,_[t]);return{c(){n=d("div"),K(r.$$.fragment),l=h(),K(s.$$.fragment),f=h(),x=d("input"),w(n,"class","label-container"),y(x,O)},m(e,i){p(e,n,i),Z(r,n,null),c(n,l),Z(s,n,null),p(e,f,i),p(e,x,i),x.autofocus&&x.focus(),t[14](x),b=!0,v||(k=[g(x,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(x,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],v=!0)},p(e,n){t=e;const i={};!o&&1&n&&(o=!0,i.control=t[0],P((()=>o=!1))),r.$set(i);const a={};!u&&1&n&&(u=!0,a.control=t[0],P((()=>u=!1))),s.$set(a),y(x,O=X(_,[1&n&&t[0].attributes]))},i(t){b||(B(r.$$.fragment,t),B(s.$$.fragment,t),b=!0)},o(t){Y(r.$$.fragment,t),Y(s.$$.fragment,t),b=!1},d(e){e&&(m(n),m(f),m(x)),G(r),G(s),t[14](null),v=!1,i(k)}}}function Mt(n){let r,o,l,s=[n[0].attributes],u={};for(let t=0;tW(s,"control",S)));let A={};return void 0!==t[0]&&(A.control=t[0]),x=new Et({props:A}),T.push((()=>W(x,"control",O))),{c(){n=d("div"),r=d("div"),o=d("input"),l=h(),K(s.$$.fragment),f=h(),K(x.$$.fragment),y(o,E),w(r,"class","checkbox-control"),w(n,"class","label-container")},m(e,i){p(e,n,i),c(n,r),c(r,o),o.autofocus&&o.focus(),t[8](o),c(r,l),Z(s,r,null),c(n,f),Z(x,n,null),v=!0,k||($=[g(o,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(o,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],k=!0)},p(e,n){t=e,y(o,E=X(j,[1&n&&t[0].attributes]));const r={};!u&&1&n&&(u=!0,r.control=t[0],P((()=>u=!1))),s.$set(r);const i={};!b&&1&n&&(b=!0,i.control=t[0],P((()=>b=!1))),x.$set(i)},i(t){v||(B(s.$$.fragment,t),B(x.$$.fragment,t),v=!0)},o(t){Y(s.$$.fragment,t),Y(x.$$.fragment,t),v=!1},d(e){e&&m(n),t[8](null),G(s),G(x),k=!1,i($)}}}function Nt(t){let e,n,r,i,a,o,l,s,u,x;function b(e){t[4](e)}let g={cls:"label pad-left"};void 0!==t[0]&&(g.control=t[0]),r=new Ot({props:g}),T.push((()=>W(r,"control",b)));let v=J(t[0].options),y=[];for(let e=0;eY(y[t],1,1,(()=>{y[t]=null}));function $(e){t[7](e)}let j={};return void 0!==t[0]&&(j.control=t[0]),s=new Et({props:j}),T.push((()=>W(s,"control",$))),{c(){e=d("div"),n=d("div"),K(r.$$.fragment),a=h(),o=d("div");for(let t=0;ti=!1))),r.$set(n),11&e){let n;for(v=J(t[0].options),n=0;nu=!1))),s.$set(a)},i(t){if(!x){B(r.$$.fragment,t);for(let t=0;tW(c,"control",S))),{c(){n=x($),r=h(),o=d("input"),u=h(),K(c.$$.fragment),y(o,E)},m(e,i){p(e,n,i),p(e,r,i),p(e,o,i),"value"in E&&(o.value=E.value),o.autofocus&&o.focus(),p(e,u,i),Z(c,e,i),b=!0,w||(v=[g(o,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(o,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],w=!0)},p(e,r){t=e,(!b||1&r)&&$!==($=((t[3]=t[15].value||t[15])&&"")+"")&&k(n,$),y(o,E=X(j,[1&r&&t[0].attributes,(!b||1&r&&l!==(l=t[0].attributes.id+"-"+(t[17]+1)))&&{id:l},{value:t[3]},(!b||1&r&&s!==(s=t[3]==t[0].attributes.value))&&{checked:s}])),"value"in E&&(o.value=E.value);const i={};1&r&&(i.label=t[15].text||t[15]),1&r&&(i.id=t[0].attributes.id+"-"+(t[17]+1)),!f&&1&r&&(f=!0,i.control=t[0],P((()=>f=!1))),c.$set(i)},i(t){b||(B(c.$$.fragment,t),b=!0)},o(t){Y(c.$$.fragment,t),b=!1},d(t){t&&(m(n),m(r),m(o),m(u)),G(c,t),w=!1,i(v)}}}function Lt(t){let e,n,r,i;const a=[Nt,Ct,Mt,Tt],o=[];function l(t,e){return"radio"==t[2]?0:"checkbox"==t[2]?1:"hidden"==t[2]?2:3}return e=l(t),n=o[e]=a[e](t),{c(){n.c(),r=b()},m(t,n){o[e].m(t,n),p(t,r,n),i=!0},p(t,[i]){let s=e;e=l(t),e===s?o[e].p(t,i):(D(),Y(o[s],1,1,(()=>{o[s]=null})),H(),n=o[e],n?n.p(t,i):(n=o[e]=a[e](t),n.c()),B(n,1),n.m(r.parentNode,r))},i(t){i||(B(n),i=!0)},o(t){Y(n),i=!1},d(t){t&&m(r),o[e].d(t)}}}function Pt(t,e,n){let r,{control:i}=e,{onChange:a}=e;return t.$$set=t=>{"control"in t&&n(0,i=t.control),"onChange"in t&&n(1,a=t.onChange)},t.$$.update=()=>{5&t.$$.dirty&&(n(2,r=i.attributes.type),"hidden"==r&&delete i.attributes.required)},[i,a,r,undefined,function(t){i=t,n(0,i)},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))},function(t){i=t,n(0,i)},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))},function(t){i=t,n(0,i)},function(t){i=t,n(0,i)},function(t){T[t?"unshift":"push"]((()=>{i.node=t,n(0,i)}))}]}class zt extends et{constructor(t){super(),tt(this,t,Pt,Lt,o,{control:0,onChange:1})}}function Ft(t,e,n){const r=t.slice();return r[5]=e[n],r}function Rt(t){let e,n,r=t[0].attributes.placeholder+"";return{c(){e=d("option"),n=x(r),e.__value=null,$(e,e.__value),e.selected=!0,e.disabled=!0},m(t,r){p(t,e,r),c(e,n)},p(t,e){1&e&&r!==(r=t[0].attributes.placeholder+"")&&k(n,r)},d(t){t&&m(e)}}}function qt(t){let e,n,r,i=(t[5].text||t[5])+"";return{c(){e=d("option"),n=x(i),e.__value=r=String(t[5].value||t[5]),$(e,e.__value)},m(t,r){p(t,e,r),c(e,n)},p(t,a){1&a&&i!==(i=(t[5].text||t[5])+"")&&k(n,i),1&a&&r!==(r=String(t[5].value||t[5]))&&(e.__value=r,$(e,e.__value))},d(t){t&&m(e)}}}function Vt(t){let n,r,i,o,l,s,u,x,v,k,$,S,_;function O(e){t[2](e)}let A={};function M(e){t[3](e)}void 0!==t[0]&&(A.control=t[0]),r=new Ot({props:A}),T.push((()=>W(r,"control",O)));let C={};void 0!==t[0]&&(C.control=t[0]),l=new Et({props:C}),T.push((()=>W(l,"control",M)));let N=t[0].attributes.placeholder&&Rt(t),I=J(t[0].options),L=[];for(let e=0;ei=!1))),r.$set(a);const o={};if(!s&&1&n&&(s=!0,o.control=t[0],P((()=>s=!1))),l.$set(o),t[0].attributes.placeholder?N?N.p(t,n):(N=Rt(t),N.c(),N.m(x,v)):N&&(N.d(1),N=null),1&n){let e;for(I=J(t[0].options),e=0;e{"control"in t&&n(0,r=t.control),"onChange"in t&&n(1,i=t.onChange)},t.$$.update=()=>{1&t.$$.dirty&&r&&r.attributes&&(n(0,r.attributes.value=r.attributes.value||null,r),n(0,r.attributes.placeholder=r.attributes.placeholder||"Select Value",r))},[r,i,function(t){r=t,n(0,r)},function(t){r=t,n(0,r)},function(t){T[t?"unshift":"push"]((()=>{r.node=t,n(0,r)}))}]}class Dt extends et{constructor(t){super(),tt(this,t,Ut,Vt,o,{control:0,onChange:1})}}function Ht(t){let n,r,o,l,s,u,f,x,b,v,k;function $(e){t[2](e)}let j={};function E(e){t[3](e)}void 0!==t[0]&&(j.control=t[0]),r=new Ot({props:j}),T.push((()=>W(r,"control",$)));let S={};void 0!==t[0]&&(S.control=t[0]),s=new Et({props:S}),T.push((()=>W(s,"control",E)));let _=[t[0].attributes],O={};for(let t=0;t<_.length;t+=1)O=e(O,_[t]);return{c(){n=d("div"),K(r.$$.fragment),l=h(),K(s.$$.fragment),f=h(),x=d("textarea"),w(n,"class","label-container"),y(x,O)},m(e,i){p(e,n,i),Z(r,n,null),c(n,l),Z(s,n,null),p(e,f,i),p(e,x,i),x.autofocus&&x.focus(),t[4](x),b=!0,v||(k=[g(x,"change",(function(){a(t[1])&&t[1].apply(this,arguments)})),g(x,"keyup",(function(){a(t[1])&&t[1].apply(this,arguments)}))],v=!0)},p(e,[n]){t=e;const i={};!o&&1&n&&(o=!0,i.control=t[0],P((()=>o=!1))),r.$set(i);const a={};!u&&1&n&&(u=!0,a.control=t[0],P((()=>u=!1))),s.$set(a),y(x,O=X(_,[1&n&&t[0].attributes]))},i(t){b||(B(r.$$.fragment,t),B(s.$$.fragment,t),b=!0)},o(t){Y(r.$$.fragment,t),Y(s.$$.fragment,t),b=!1},d(e){e&&(m(n),m(f),m(x)),G(r),G(s),t[4](null),v=!1,i(k)}}}function Bt(t,e,n){let{control:r}=e,{onChange:i}=e;return t.$$set=t=>{"control"in t&&n(0,r=t.control),"onChange"in t&&n(1,i=t.onChange)},[r,i,function(t){r=t,n(0,r)},function(t){r=t,n(0,r)},function(t){T[t?"unshift":"push"]((()=>{r.node=t,n(0,r)}))}]}class Yt extends et{constructor(t){super(),tt(this,t,Bt,Ht,o,{control:0,onChange:1})}}const Jt=[];function Xt(e,n=t){let r;const i=new Set;function a(t){if(o(e,t)&&(e=t,r)){const t=!Jt.length;for(const t of i)t[1](),Jt.push(t,e);if(t){for(let t=0;t{i.delete(u),0===i.size&&r&&(r(),r=null)}}}}const Wt=Xt({}),Kt=Xt({}),Zt=Xt({});function Gt(t){let n,r,o,l,u,f,x,b,v,k,$,j,E,S,_,O,A,M,C;function N(e){t[3](e)}let I={};function L(e){t[4](e)}void 0!==t[0]&&(I.control=t[0]),r=new Ot({props:I}),T.push((()=>W(r,"control",N)));let z={};void 0!==t[0]&&(z.control=t[0]),u=new Et({props:z}),T.push((()=>W(u,"control",L)));let F=[t[0].attributes],R={};for(let t=0;to=!1))),r.$set(i);const a={};!f&&1&n&&(f=!0,a.control=t[0],P((()=>f=!1))),u.$set(a),y(O,R=X(F,[1&n&&t[0].attributes]))},i(t){A||(B(r.$$.fragment,t),B(u.$$.fragment,t),A=!0)},o(t){Y(r.$$.fragment,t),Y(u.$$.fragment,t),A=!1},d(e){e&&(m(n),m(x),m(S),m(_)),G(r),G(u),m(b),m(v),m(k),m(j),t[5](null),t[6](null),M=!1,i(C)}}}function Qt(t=1e3){return new Promise((e=>setTimeout(e,t)))}function te(t,e,n){let r,i,{control:a}=e,{onChange:o}=e;const l=new Event("change");return a&&a.attributes&&a.attributes.required&&delete a.attributes.required,O((async()=>{for(;"SUNEDITOR"in window==!1;)await Qt(100);i=SUNEDITOR.create(r,{katex:katex,buttonList:[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],["bold","underline","italic","strike","subscript","superscript"],["fontColor","hiliteColor","textStyle"],["removeFormat"],["outdent","indent"],["align","horizontalRule","list","lineHeight"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"],["-right",":r-More Rich-default.more_plus","table","math","imageGallery"],["-right","image","video","audio","link"],["%992",[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],["bold","underline","italic","strike"],[":t-More Text-default.more_text","subscript","superscript","fontColor","hiliteColor","textStyle"],["removeFormat"],["outdent","indent"],["align","horizontalRule","list","lineHeight"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"],["-right",":r-More Rich-default.more_plus","table","link","image","video","audio","math","imageGallery"]]],["%767",[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],[":t-More Text-default.more_text","bold","underline","italic","strike","subscript","superscript","fontColor","hiliteColor","textStyle"],["removeFormat"],["outdent","indent"],[":e-More Line-default.more_horizontal","align","horizontalRule","list","lineHeight"],[":r-More Rich-default.more_plus","table","link","image","video","audio","math","imageGallery"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"]]],["%480",[["undo","redo"],[":p-More Paragraph-default.more_paragraph","font","fontSize","formatBlock","paragraphStyle","blockquote"],[":t-More Text-default.more_text","bold","underline","italic","strike","subscript","superscript","fontColor","hiliteColor","textStyle","removeFormat"],[":e-More Line-default.more_horizontal","outdent","indent","align","horizontalRule","list","lineHeight"],[":r-More Rich-default.more_plus","table","link","image","video","audio","math","imageGallery"],["-right",":i-More Misc-default.more_vertical","fullScreen","showBlocks","codeView","preview","print","save","template"]]]]}),i.onChange=function(t,e){t=t.replace("


",""),n(2,r.value=t||null,r),r.dispatchEvent(l)}})),t.$$set=t=>{"control"in t&&n(0,a=t.control),"onChange"in t&&n(1,o=t.onChange)},[a,o,r,function(t){a=t,n(0,a)},function(t){a=t,n(0,a)},function(t){T[t?"unshift":"push"]((()=>{r=t,n(2,r)}))},function(t){T[t?"unshift":"push"]((()=>{a.node=t,n(0,a)}))}]}class ee extends et{constructor(t){super(),tt(this,t,te,Gt,o,{control:0,onChange:1})}}function ne(e){let n,r=e[0].element,i=e[0].element&&le(e);return{c(){i&&i.c(),n=b()},m(t,e){i&&i.m(t,e),p(t,n,e)},p(t,e){t[0].element?r?o(r,t[0].element)?(i.d(1),i=le(t),r=t[0].element,i.c(),i.m(n.parentNode,n)):i.p(t,e):(i=le(t),r=t[0].element,i.c(),i.m(n.parentNode,n)):r&&(i.d(1),i=null,r=t[0].element)},i:t,o:t,d(t){t&&m(n),i&&i.d(t)}}}function re(t){let e,n,r;function i(e){t[6](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new ee({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function ie(t){let e,n,r;function i(e){t[5](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new Yt({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function ae(t){let e,n,r;function i(e){t[4](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new Dt({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function oe(t){let e,n,r;function i(e){t[3](e)}let a={onChange:t[2]};return void 0!==t[0]&&(a.control=t[0]),e=new zt({props:a}),T.push((()=>W(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(t,r){const i={};!n&&1&r&&(n=!0,i.control=t[0],P((()=>n=!1))),e.$set(i)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function le(t){let e,n=t[0].content+"";return{c(){e=d(t[0].element)},m(r,i){p(r,e,i),e.innerHTML=n,t[7](e)},p(t,r){1&r&&n!==(n=t[0].content+"")&&(e.innerHTML=n)},d(n){n&&m(e),t[7](null)}}}function se(t){let e,n,r,i,a,o,l;const s=[oe,ae,ie,re,ne],u=[];function f(t,e){return"input"==t[0].element?0:"select"==t[0].element?1:"textarea"==t[0].element?2:"richtext"==t[0].element?3:4}return r=f(t),i=u[r]=s[r](t),{c(){e=d("div"),n=d("div"),i.c(),w(n,"class",a="svlete-former-control-group"+(t[0].error?" has-error":"")+" "+(t[1]||" content")),w(e,"class",o=t[0].classes.join(" "))},m(t,i){p(t,e,i),c(e,n),u[r].m(n,null),l=!0},p(t,[c]){let p=r;r=f(t),r===p?u[r].p(t,c):(D(),Y(u[p],1,1,(()=>{u[p]=null})),H(),i=u[r],i?i.p(t,c):(i=u[r]=s[r](t),i.c()),B(i,1),i.m(n,null)),(!l||3&c&&a!==(a="svlete-former-control-group"+(t[0].error?" has-error":"")+" "+(t[1]||" content")))&&w(n,"class",a),(!l||1&c&&o!==(o=t[0].classes.join(" ")))&&w(e,"class",o)},i(t){l||(B(i),l=!0)},o(t){Y(i),l=!1},d(t){t&&m(e),u[r].d()}}}function ue(t,e,n){let r;u(t,Kt,(t=>n(9,r=t)));let i,a,{control:o}=e;function l(t,e,l){let s;clearTimeout(a),a=setTimeout((()=>{if(t){let e=t.target;e.tagName.toLowerCase(),n(1,i=e.type),s="checkbox"==e.type?e.checked:e.value}else n(1,i=o.attributes.type),s=e;n(0,o.attributes.value=s,o),kt(o),Wt.update((t=>o));let a=Object.assign({},r);o.error?a[o.attributes.name]=o.error:delete a[o.attributes.name],Kt.update((t=>a))}),250)}return O((function(){setTimeout((()=>{l(null,o.attributes.value,o.element)}),1)})),t.$$set=t=>{"control"in t&&n(0,o=t.control)},t.$$.update=()=>{1&t.$$.dirty&&o&&(n(0,o.required=o.required||!!o.attributes.required,o),xt.indexOf(o.element)>-1&&n(1,i=o.attributes.type||o.element),"dynamic"==o.creationMethod&&kt(o))},[o,i,l,function(t){o=t,n(0,o)},function(t){o=t,n(0,o)},function(t){o=t,n(0,o)},function(t){o=t,n(0,o)},function(t){T[t?"unshift":"push"]((()=>{o.node=t,n(0,o)}))}]}class ce extends et{constructor(t){super(),tt(this,t,ue,se,o,{control:0})}}function pe(t,e,n){const r=t.slice();return r[5]=e[n],r}function me(t){let n,r,i,o=t[5].text+"",l=[t[5].attributes],s={};for(let t=0;tn(3,r=t))),u(t,Kt,(t=>n(4,i=t)));let{buttons:a=[{text:"Submit"}]}=e,{formEl:o}=e;return a=a.map((t=>t=ft({attributes:{type:"submit",class:"button"},text:"Submit"},t||{}))),t.$$set=t=>{"buttons"in t&&n(0,a=t.buttons),"formEl"in t&&n(2,o=t.formEl)},[a,function(t,e){"function"==typeof t.onClick&&t.onClick.bind()(e,{form:o,errors:i,values:r,controls:controls})},o]}class xe extends et{constructor(t){super(),tt(this,t,de,fe,o,{buttons:0,formEl:2})}}function he(t,e,n){const r=t.slice();return r[16]=e[n],r[17]=e,r[18]=n,r}function be(t){let e,n,r,i,o,l,s,u,x,b,v=J(t[0]),y=[];for(let e=0;eY(y[t],1,1,(()=>{y[t]=null}));return s=new xe({props:{buttons:t[4],formEl:t[6]}}),{c(){e=d("div"),n=d("form"),r=d("div");for(let t=0;tW(e,"control",i))),{c(){K(e.$$.fragment)},m(t,n){Z(e,t,n),r=!0},p(r,i){t=r;const a={};!n&&1&i&&(n=!0,a.control=t[16],P((()=>n=!1))),e.$set(a)},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){Y(e.$$.fragment,t),r=!1},d(t){G(e,t)}}}function we(t){let e,n,r=t[5]&&be(t);return{c(){r&&r.c(),e=b()},m(t,i){r&&r.m(t,i),p(t,e,i),n=!0},p(t,[n]){t[5]?r?(r.p(t,n),32&n&&B(r,1)):(r=be(t),r.c(),B(r,1),r.m(e.parentNode,e)):r&&(D(),Y(r,1,1,(()=>{r=null})),H())},i(t){n||(B(r),n=!0)},o(t){Y(r),n=!1},d(t){t&&m(e),r&&r.d(t)}}}function ve(t,e,n){let r,i;u(t,Kt,(t=>n(12,r=t))),u(t,Wt,(t=>n(9,i=t)));let a,{controls:o=[]}=e,{method:l="POST"}=e,{action:s=""}=e,{failOnError:c=!0}=e,{onSubmit:p=function(t){c&&x()&&t.preventDefault()}}=e,{buttons:m=[]}=e,f=!1,d={};function x(){return Object.keys(r).length>0}return function(){let t={},e={};for(let r in o)n(0,o[r].idx=Number(r)+1,o),"error"in o[r]&&o[r].error&&(t[o[r].attributes.name]=o[r].error),o[r].attributes&&"value"in o[r].attributes&&("checkbox"==o[r].attributes.type&&n(0,o[r].attributes.value="true"==o[r].attributes.value,o),e[o[r].attributes.name]=o[r].attributes.value);Kt.update((e=>t)),Zt.update((t=>e))}(),O((function(){!function(t){let e,n={},r={};for(let i in t)if(i=Number(i),e=t[i],yt(e),e.attributes){if(e.attributes.name in n)throw new Error("Control["+(i+1)+'] attributes.name "'+e.attributes.name+'" has already been used with Control['+(n[e.attributes.name]+1)+"]");if(n[e.attributes.name]=i,"id"in e.attributes&&e.attributes.id in r)throw new Error("Control["+(i+1)+'] attributes.id "'+e.attributes.id+'" has already been used with Control['+(r[e.attributes.id]+1)+"]");r[e.attributes.id]=i,"id"in e.attributes==0&&(e.attributes.id="control-"+e.element+"-"+(i+1))}n=null,r=null,e=null}(o),n(5,f=!0)})),t.$$set=t=>{"controls"in t&&n(0,o=t.controls),"method"in t&&n(1,l=t.method),"action"in t&&n(2,s=t.action),"failOnError"in t&&n(7,c=t.failOnError),"onSubmit"in t&&n(3,p=t.onSubmit),"buttons"in t&&n(4,m=t.buttons)},t.$$.update=()=>{768&t.$$.dirty&&i&&(!async function(t){try{if("onChange"in t==0)return;let e,r;for(let a in t.onChange)e=t.onChange[a],"function"==typeof e.set?await e.set.bind(t)(t.attributes.value,i):i(e.set);function i(i){if(r=i,"object"==typeof r)for(let i in r)for(let a in o){let l=null;"attributes"in o[a]!=0&&i===o[a].attributes.name&&("dynamic"==o[a].creationMethod&&t.onChangeResets[i]&&(n(0,o[a]=t.onChangeResets[i],o),o[a].creationMethod),"value"in e&&t.attributes.value!==e.value||(t.onChangeResets[i]=t.onChangeResets[i]||ft({},o[a]),l=ft(o[a],r[i],{element:o[a].element,attributes:{id:o[a].attributes.id,name:o[a].attributes.name,type:o[a].attributes.type},creationMethod:"dynamic"}),yt(l),n(0,o[a]=l,o),Wt.update((t=>o[a]))))}}}catch(l){throw l}}(i),i&&i.attributes&&(n(8,d[i.attributes.name]=i.attributes.value,d),Zt.update((t=>d))))},[o,l,s,p,m,f,a,c,d,i,function(t,e,r,i){r[i]=t,n(0,o)},function(t){T[t?"unshift":"push"]((()=>{a=t,n(6,a)}))}]}return class extends et{constructor(t){super(),tt(this,t,ve,we,o,{controls:0,method:1,action:2,failOnError:7,onSubmit:3,buttons:4})}}}(); diff --git a/src/elements/controls/Input.svelte b/src/elements/controls/Input.svelte index 3c06432..6a5952d 100644 --- a/src/elements/controls/Input.svelte +++ b/src/elements/controls/Input.svelte @@ -34,7 +34,7 @@