@sfxcode/formkit-primevue 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formkit-primevue.es.js +1 -1
- package/dist/formkit-primevue.umd.js +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +4 -2
- package/dist/index_form.json +0 -156
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(E,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(E=typeof globalThis<"u"?globalThis:E||self,r(E["formkit-primevue"]={},E.Vue))})(this,function(E,r){"use strict";const gn=["__key","__init","__shim","__original","__index","__prevKey"];function _e(){return Math.random().toString(36).substring(2,15)}function $n(e,i){const t=e instanceof Set?e:new Set(e);return i&&i.forEach(n=>t.add(n)),[...t]}function P(e,i){return Object.prototype.hasOwnProperty.call(e,i)}function fe(e,i,t=!0,n=["__key"]){if(e===i)return!0;if(typeof i=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||i===null||Object.keys(e).length!==Object.keys(i).length)return!1;for(const l of n)if((l in e||l in i)&&e[l]!==i[l])return!1;for(const l in e)if(!(l in i)||e[l]!==i[l]&&!t||t&&!fe(e[l],i[l],t,n))return!1;return!0}return!1}function je(e){return Object.prototype.toString.call(e)==="[object Object]"}function Te(e){return je(e)||Array.isArray(e)}function ne(e){if(je(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const i=e.constructor;if(i===void 0)return!0;const t=i.prototype;return!(je(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function ge(e,i,t=!1,n=!1){if(i===null)return null;const l={};if(typeof i=="string")return i;for(const a in e)if(P(i,a)&&(i[a]!==void 0||!n)){if(t&&Array.isArray(e[a])&&Array.isArray(i[a])){l[a]=e[a].concat(i[a]);continue}if(i[a]===void 0)continue;ne(e[a])&&ne(i[a])?l[a]=ge(e[a],i[a],t,n):l[a]=i[a]}else l[a]=e[a];for(const a in i)!P(l,a)&&i[a]!==void 0&&(l[a]=i[a]);return l}function kn(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const i=e[0];for(let t=1;t<e.length;t++)if(e[t]===i&&(t===1||e[t-1]!=="\\")&&t!==e.length-1)return!1;return!0}function Cn(e){if(!e.length)return"";let i="",t="";for(let n=0;n<e.length;n++){const l=e.charAt(n);(l!=="\\"||t==="\\")&&(i+=l),t=l}return i}function ie(...e){return e.reduce((i,t)=>{const{value:n,name:l,modelValue:a,config:s,plugins:o,...f}=t;return Object.assign(i,f)},{})}function wn(e){const i=[];let t="",n=0,l="",a="";for(let s=0;s<e.length;s++){const o=e.charAt(s);o===l&&a!=="\\"?l="":(o==="'"||o==='"')&&!l&&a!=="\\"?l=o:o==="("&&!l?n++:o===")"&&!l&&n--,o===","&&!l&&n===0?(i.push(t),t=""):(o!==" "||l)&&(t+=o),a=o}return t&&i.push(t),i}function st(e,i){const t={},n=i.filter(a=>a instanceof RegExp),l=new Set(i);for(const a in e)!l.has(a)&&!n.some(s=>s.test(a))&&(t[a]=e[a]);return t}function ot(e,i){const t={},n=i.filter(l=>l instanceof RegExp);return i.forEach(l=>{l instanceof RegExp||(t[l]=e[l])}),Object.keys(e).forEach(l=>{n.some(a=>a.test(l))&&(t[l]=e[l])}),t}function $e(e){return e.replace(/-([a-z0-9])/gi,(i,t)=>t.toUpperCase())}function ft(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,t,n)=>t+"-"+n.toLowerCase()).replace(" ","-").toLowerCase()}function ue(e,i=gn){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let t;Array.isArray(e)?t=e.map(n=>typeof n=="object"?ue(n,i):n):t=Object.keys(e).reduce((n,l)=>(n[l]=typeof e[l]=="object"?ue(e[l],i):e[l],n),{});for(const n of i)n in e&&Object.defineProperty(t,n,{enumerable:!1,value:e[n]});return t}function ee(e){return typeof e=="object"?ue(e):e}function Vn(e,i){if(!e||typeof e!="object")return null;const t=i.split(".");let n=e;for(const l in t){const a=t[l];if(P(n,a)&&(n=n[a]),+l===t.length-1)return n;if(!n||typeof n!="object")return null}return null}function q(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function ce(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Fe(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function ze(){const e=[];let i=0;const t=l=>e.push(l),n=l=>{const a=e[i];return typeof a=="function"?a(l,s=>(i++,n(s===void 0?l:s))):(i=0,l)};return t.dispatch=n,t.unshift=l=>e.unshift(l),t.remove=l=>{const a=e.indexOf(l);a>-1&&e.splice(a,1)},t}function ut(){const e=new Map,i=new Map;let t;const n=(l,a)=>{if(t){t.set(a.name,[l,a]);return}e.has(a.name)&&e.get(a.name).forEach(s=>{(a.origin===l||s.modifiers.includes("deep"))&&s.listener(a)}),a.bubble&&l.bubble(a)};return n.on=(l,a)=>{const[s,...o]=l.split("."),f=a.receipt||_e(),b={modifiers:o,event:s,listener:a,receipt:f};return e.has(s)?e.get(s).push(b):e.set(s,[b]),i.has(f)?i.get(f).push(s):i.set(f,[s]),f},n.off=l=>{var a;i.has(l)&&((a=i.get(l))===null||a===void 0||a.forEach(s=>{const o=e.get(s);Array.isArray(o)&&e.set(s,o.filter(f=>f.receipt!==l))}),i.delete(l))},n.pause=l=>{t||(t=new Map),l&&l.walk(a=>a._e.pause())},n.play=l=>{if(!t)return;const a=t;t=void 0,a.forEach(([s,o])=>n(s,o)),l&&l.walk(s=>s._e.play())},n}function Sn(e,i,t,n,l=!0){return i._e(e,{payload:n,name:t,bubble:l,origin:e}),e}function In(e,i,t){return Ce(e.parent)&&e.parent._e(e.parent,t),e}function Ln(e,i,t,n){return i._e.on(t,n)}function On(e,i,t){return i._e.off(t),e}const Ne=ze();Ne((e,i)=>(e.message||(e.message=`E${e.code}`),i(e)));const We=ze();We((e,i)=>{e.message||(e.message=`W${e.code}`);const t=i(e);return console&&typeof console.warn=="function"&&console.warn(t.message),t});function pe(e,i={}){We.dispatch({code:e,data:i})}function T(e,i={}){throw Error(Ne.dispatch({code:e,data:i}).message)}function G(e,i){const t={blocking:!1,key:_e(),meta:{},type:"state",visible:!0,...e};return i&&t.value&&t.meta.localize!==!1&&(t.value=i.t(t),t.meta.locale=i.config.locale),t}const ct={apply:Bn,set:En,remove:pt,filter:vn,reduce:xn,release:Rn,touch:Pn};function An(e=!1){const i={};let t,n=e,l=[];const a=new Map;let s;const o=new Proxy(i,{get(...f){const[b,_]=f;return _==="buffer"?n:_==="_b"?l:_==="_m"?a:_==="_r"?s:P(ct,_)?ct[_].bind(null,i,o,t):Reflect.get(...f)},set(f,b,_){return b==="_n"?(t=_,s==="__n"&&dt(t,o),!0):b==="_b"?(l=_,!0):b==="buffer"?(n=_,!0):b==="_r"?(s=_,!0):(T(101,t),!1)}});return o}function En(e,i,t,n){if(i.buffer)return i._b.push([[n]]),i;if(e[n.key]!==n){if(typeof n.value=="string"&&n.meta.localize!==!1){const a=n.value;n.value=t.t(n),n.value!==a&&(n.meta.locale=t.props.locale)}const l=`message-${P(e,n.key)?"updated":"added"}`;e[n.key]=Object.freeze(t.hook.message.dispatch(n)),t.emit(l,n)}return i}function Pn(e,i){for(const t in e){const n={...e[t]};i.set(n)}}function pt(e,i,t,n){if(P(e,n)){const l=e[n];delete e[n],t.emit("message-removed",l)}return i.buffer===!0&&(i._b=i._b.filter(l=>(l[0]=l[0].filter(a=>a.key!==n),l[1]||l[0].length))),i}function vn(e,i,t,n,l){for(const a in e){const s=e[a];(!l||s.type===l)&&!n(s)&&pt(e,i,t,a)}}function xn(e,i,t,n,l){for(const a in e){const s=e[a];l=n(l,s)}return l}function Bn(e,i,t,n,l){if(Array.isArray(n)){if(i.buffer){i._b.push([n,l]);return}const a=new Set(n.map(s=>(i.set(s),s.key)));typeof l=="string"?i.filter(s=>s.type!==l||a.has(s.key)):typeof l=="function"&&i.filter(s=>!l(s)||a.has(s.key))}else for(const a in n){const s=t.at(a);s?s.store.apply(n[a],l):Mn(t,i,a,n[a],l)}}function Dn(e,...i){const t=`${e.name}-set`,n=l=>G({key:Fe(l),type:"error",value:l,meta:{source:t,autoClear:!0}});return i.filter(l=>!!l).map(l=>{if(typeof l=="string"&&(l=[l]),Array.isArray(l))return l.map(a=>n(a));{const a={};for(const s in l)Array.isArray(l[s])?a[s]=l[s].map(o=>n(o)):a[s]=[n(l[s])];return a}})}function Mn(e,i,t,n,l){var a;const s=i._m;s.has(t)||s.set(t,[]),i._r||(i._r=dt(e,i)),(a=s.get(t))===null||a===void 0||a.push([n,l])}function dt(e,i){return e.on("child.deep",({payload:t})=>{i._m.forEach((n,l)=>{e.at(l)===t&&(n.forEach(([a,s])=>{t.store.apply(a,s)}),i._m.delete(l))}),i._m.size===0&&i._r&&(e.off(i._r),i._r=void 0)})}function Rn(e,i){i.buffer=!1,i._b.forEach(([t,n])=>i.apply(t,n)),i._b=[]}function jn(){const e={};let i;return{count:(...t)=>Tn(i,e,...t),init(t){i=t,t.on("message-added.deep",bt(e,1)),t.on("message-removed.deep",bt(e,-1))},merge:t=>yt(i,e,t),settled(t){return P(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>yt(i,e,t,!0),value(t){return P(e,t)?e[t].count:0}}}function Tn(e,i,t,n,l=0){if(n=Fn(n||t),!P(i,t)){const a={condition:n,count:0,name:t,node:e,promise:Promise.resolve(),resolve:()=>{}};i[t]=a,l=e.store.reduce((s,o)=>s+a.condition(o)*1,l),e.each(s=>{s.ledger.count(a.name,a.condition),l+=s.ledger.value(a.name)})}return mt(i[t],l).promise}function Fn(e){return typeof e=="function"?e:i=>i.type===e}function mt(e,i){const t=e.count,n=e.count+i;return e.count=n,t===0&&n!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(l=>e.resolve=l)):t!==0&&n===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function bt(e,i){return t=>{for(const n in e){const l=e[n];l.condition(t.payload)&&mt(l,i)}}}function yt(e,i,t,n=!1){for(const l in i){const a=i[l].condition;n||t.ledger.count(l,a);const s=t.ledger.value(l)*(n?-1:1);if(e)do e.ledger.count(l,a,s),e=e.parent;while(e)}}const Ue=new Map,ke=new Map,qe=ut(),zn=[];function Nn(e){e.props.id&&(Ue.set(e.props.id,e),ke.set(e,e.props.id),qe(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Wn(e){if(ke.has(e)){const i=ke.get(e);ke.delete(e),Ue.delete(i),qe(e,{payload:null,name:i,bubble:!1,origin:e})}}function ht(e){return Ue.get(e)}function Un(e,i){zn.push(qe.on(e,i))}function _t(e,i,t){let n=!0;return i in e.config._t?n=!1:e.emit(`config:${i}`,t,!1),i in e.props||(e.emit("prop",{prop:i,value:t}),e.emit(`prop:${i}`,t)),n}function qn(e){const i=document.getElementById(e);if(i instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});i.dispatchEvent(t);return}pe(151,e)}function Kn(e){const i=t=>{for(const n in t.store){const l=t.store[n];l.type==="error"||l.type==="ui"&&n==="incomplete"?t.store.remove(n):l.type==="state"&&t.store.set({...l,value:!1})}};i(e),e.walk(i)}function Hn(e,i){const t=typeof e=="string"?ht(e):e;if(t){const n=a=>ee(a.props.initial)||(a.type==="group"?{}:a.type==="list"?[]:void 0);t._e.pause(t),t.input(ee(i)||n(t),!1),t.walk(a=>a.input(n(a),!1));const l=n(t);return t.input(typeof l=="object"?ee(i)||ce(l):l,!1),t._e.play(t),Kn(t),t.emit("reset",t),t}pe(152,e)}const Zn={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${ft(e)}`]:!0})},gt=Symbol("index"),Ke=Symbol("removed"),He=Symbol("moved"),$t=Symbol("inserted");function Yn(e){return e.type==="list"&&Array.isArray(e._value)}function Ce(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const we=(e,i,t)=>{T(102,[e,t])},Jn={_c:L(hi,we,!1),add:L(fi),addProps:L(oi),address:L(gi,we,!1),at:L($i),bubble:L(In),clearErrors:L(Oi),calm:L(li),config:L(!1),define:L(si),disturb:L(ri),destroy:L(ai),hydrate:L(ii),index:L(yi,bi,!1),input:L(Ct),each:L(pi),emit:L(Sn),find:L(Ci),on:L(Ln),off:L(On),parent:L(!1,ui),plugins:L(!1),remove:L(ci),root:L(Vi,we,!1),reset:L(Li),resetConfig:L(mi),setErrors:L(St),submit:L(Ii),t:L(Si),use:L(Ze),name:L(_i,!1,!1),walk:L(di)};function Qn(){return new Map(Object.entries(Jn))}function L(e,i,t=!0){return{get:e?(n,l)=>t?(...a)=>e(n,l,...a):e(n,l):!1,set:i!==void 0?i:we.bind(null)}}function Gn(){const e=new Map;return new Proxy(e,{get(i,t){return e.has(t)||e.set(t,ze()),e.get(t)}})}let Xn=0,ei=0;function ti(e){var i,t;return((i=e.parent)===null||i===void 0?void 0:i.type)==="list"?gt:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++Xn}`}function kt(e){return e.type==="group"?ce(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?ce(Array.isArray(e.value)?e.value:[]):e.value}function Ct(e,i,t,n=!0){return i._value=ni(e,e.hook.input.dispatch(t)),e.emit("input",i._value),i.isSettled&&e.disturb(),n?(i._tmo&&clearTimeout(i._tmo),i._tmo=setTimeout(Ve,e.props.delay,e,i)):Ve(e,i),i.settled}function ni(e,i){switch(e.type){case"input":break;case"group":(!i||typeof i!="object")&&T(107,[e,i]);break;case"list":Array.isArray(i)||T(108,[e,i]);break}return i}function Ve(e,i,t=!0,n=!0){i._value=i.value=e.hook.commit.dispatch(i._value),e.type!=="input"&&n&&e.hydrate(),e.emit("commit",i.value),t&&e.calm()}function wt(e,{name:i,value:t,from:n}){if(!Object.isFrozen(e._value)){if(Yn(e)){const l=t===Ke?[]:t===He&&typeof n=="number"?e._value.splice(n,1):[t];e._value.splice(i,t===He||n===$t?0:1,...l);return}t!==Ke?e._value[i]=t:delete e._value[i]}}function ii(e,i){const t=i._value;return i.children.forEach(n=>{if(typeof t=="object")if(n.name in t){const l=n.type!=="input"||t[n.name]&&typeof t[n.name]=="object"?ce(t[n.name]):t[n.name];n.input(l,!1)}else(e.type!=="list"||typeof n.name=="number")&&wt(i,{name:n.name,value:n.value}),t.__init||(n.type==="group"?n.input({},!1):n.type==="list"?n.input([],!1):n.input(void 0,!1))}),e}function ri(e,i){var t;return i._d<=0&&(i.isSettled=!1,e.emit("settled",!1,!1),i.settled=new Promise(n=>{i._resolve=n}),e.parent&&((t=e.parent)===null||t===void 0||t.disturb())),i._d++,e}function li(e,i,t){var n;if(t!==void 0&&e.type!=="input")return wt(i,t),Ve(e,i,!0,!1);i._d>0&&i._d--,i._d===0&&(i.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((n=e.parent)===null||n===void 0||n.calm({name:e.name,value:i.value})),i._resolve&&i._resolve(i.value))}function ai(e,i){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&(e.parent.emit("childRemoved",e),e.parent.remove(e)),Wn(e),i._value=i.value=void 0,e.emit("destroyed",e)}function si(e,i,t){i.type=t.type,i.props.definition=ue(t),i.value=i._value=kt({type:e.type,value:i.value}),t.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),i.props.type=t.forceTypeProp),t.family&&(i.props.family=t.family),t.features&&t.features.forEach(n=>n(e)),t.props&&e.addProps(t.props),e.emit("defined",t)}function oi(e,i,t){var n;if(e.props.attrs){const l={...e.props.attrs};e.props._emit=!1;for(const s in l){const o=$e(s);t.includes(o)&&(e.props[o]=l[s],delete l[s])}const a=ee(i._value);e.props.initial=e.type!=="input"?ce(a):a,e.props._emit=!0,e.props.attrs=l,e.props.definition&&(e.props.definition.props=[...((n=e.props.definition)===null||n===void 0?void 0:n.props)||[],...t])}return e.emit("added-props",t),e}function fi(e,i,t,n){if(e.type==="input"&&T(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),i.children.includes(t)||(n!==void 0&&e.type==="list"?(i.children.splice(n,0,t),Array.isArray(e.value)&&e.value.length<i.children.length&&e.disturb().calm({name:n,value:t.value,from:$t})):i.children.push(t),t.isSettled||e.disturb()),t.parent!==e){if(t.parent=e,t.parent!==e)return e.remove(t),t.parent.add(t),e}else t.use(e.plugins);return Ve(e,i,!1),e.ledger.merge(t),e.emit("child",t),e}function ui(e,i,t,n){return Ce(n)?(e.parent&&e.parent!==n&&e.parent.remove(e),i.parent=n,e.resetConfig(),n.children.includes(e)?e.use(n.plugins):n.add(e),!0):n===null?(i.parent=null,!0):!1}function ci(e,i,t){const n=i.children.indexOf(t);if(n!==-1){t.isSettled&&e.disturb(),i.children.splice(n,1);let l=q(t.props.preserve),a=t.parent;for(;l===void 0&&a;)l=q(a.props.preserve),a=a.parent;l?e.calm():e.calm({name:e.type==="list"?n:t.name,value:Ke}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function pi(e,i,t){i.children.forEach(n=>t(n))}function di(e,i,t,n=!1){i.children.forEach(l=>{(t(l)!==!1||!n)&&l.walk(t,n)})}function mi(e,i){const t=e.parent||void 0;i.config=Vt(e.config._t,t),e.walk(n=>n.resetConfig())}function Ze(e,i,t,n=!0,l=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(a=>Ze(e,i,a)),e):(i.plugins.has(t)||(l&&typeof t.library=="function"&&t.library(e),n&&t(e)!==!1&&(i.plugins.add(t),e.children.forEach(a=>a.use(t)))),e)}function bi(e,i,t,n){if(Ce(e.parent)){const l=e.parent.children,a=n>=l.length?l.length-1:n<0?0:n,s=l.indexOf(e);return s===-1?!1:(l.splice(s,1),l.splice(a,0,e),e.parent.children=l,e.parent.type==="list"&&e.parent.disturb().calm({name:a,value:He,from:s}),!0)}return!1}function yi(e){if(e.parent){const i=[...e.parent.children].indexOf(e);return i===-1?e.parent.children.length:i}return-1}function hi(e,i){return i}function _i(e,i){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:i.name!==gt?i.name:e.index}function gi(e,i){return i.parent?i.parent.address.concat([e.name]):[e.name]}function $i(e,i,t){const n=typeof t=="string"?t.split(e.config.delimiter):t;if(!n.length)return;const l=n[0];let a=e.parent;for(a||(String(n[0])===String(e.name)&&n.shift(),a=e),l==="$parent"&&n.shift();a&&n.length;){const s=n.shift();switch(s){case"$root":a=e.root;break;case"$parent":a=a.parent;break;case"$self":a=e;break;default:a=a.children.find(o=>String(o.name)===String(s))||ki(a,s)}}return a||void 0}function ki(e,i){const t=String(i).match(/^(find)\((.*)\)$/);if(t){const[,n,l]=t,a=l.split(",").map(s=>s.trim());switch(n){case"find":return e.find(a[0],a[1]);default:return}}}function Ci(e,i,t,n){return wi(e,t,n)}function wi(e,i,t="name"){const n=typeof t=="string"?a=>a[t]==i:t,l=[e];for(;l.length;){const a=l.shift();if(n(a,i))return a;l.push(...a.children)}}function Vi(e){let i=e;for(;i.parent;)i=i.parent;return i}function Vt(e={},i){let t;return new Proxy(e,{get(...n){const l=n[1];if(l==="_t")return e;const a=Reflect.get(...n);if(a!==void 0)return a;if(i){const s=i.config[l];if(s!==void 0)return s}if(e.rootConfig&&typeof l=="string"){const s=e.rootConfig[l];if(s!==void 0)return s}return l==="delay"&&(t==null?void 0:t.type)==="input"?20:Zn[l]},set(...n){const l=n[1],a=n[2];if(l==="_n")return t=a,e.rootConfig&&e.rootConfig._add(t),!0;if(l==="_rmn")return e.rootConfig&&e.rootConfig._rm(t),t=void 0,!0;if(!fe(e[l],a,!1)){const s=Reflect.set(...n);return t&&(t.emit(`config:${l}`,a,!1),_t(t,l,a),t.walk(o=>_t(o,l,a),!0)),s}return!0}})}function Si(e,i,t,n="ui"){const l=typeof t=="string"?{key:t,value:t,type:n}:t,a=e.hook.text.dispatch(l);return e.emit("text",a,!1),a.value}function Ii(e){const i=e.name;do{if(e.props.isForm===!0)break;e.parent||T(106,i),e=e.parent}while(e);e.props.id&&qn(e.props.id)}function Li(e,i,t){return Hn(e,t)}function St(e,i,t,n){const l=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:t,childErrors:n});return Dn(e,a.localErrors,a.childErrors).forEach(s=>{e.store.apply(s,o=>o.meta.source===l)}),e}function Oi(e,i,t=!0,n){return St(e,i,[]),t&&(n=n||`${e.name}-set`,e.walk(l=>{l.store.filter(a=>!(a.type==="error"&&a.meta&&a.meta.source===n))})),e}function Ai(e){return P(e.props,"id")||(e.props.id=`input_${ei++}`),e}function Ei(e){const i={initial:typeof e=="object"?ee(e):e};let t,n=!0;return new Proxy(i,{get(...l){const[a,s]=l;if(P(i,s))return Reflect.get(...l);if(t&&typeof s=="string"&&t.config[s]!==void 0)return t.config[s]},set(l,a,s,o){if(a==="_n")return t=s,!0;if(a==="_emit")return n=s,!0;const{prop:f,value:b}=t.hook.prop.dispatch({prop:a,value:s});if(!fe(i[f],b,!1)||typeof b=="object"){const _=Reflect.set(l,f,b,o);return n&&(t.emit("prop",{prop:f,value:b}),typeof f=="string"&&t.emit(`prop:${f}`,b)),_}return!0}})}function Pi(e,i){if(e.props.definition)return e.define(e.props.definition);for(const t of i){if(e.props.definition)return;typeof t.library=="function"&&t.library(e)}}function vi(e){const i=kt(e),t=Vt(e.config||{},e.parent);return{_d:0,_e:ut(),_resolve:!1,_tmo:!1,_value:i,children:$n(e.children||[]),config:t,hook:Gn(),isCreated:!1,isSettled:!0,ledger:jn(),name:ti(e),parent:e.parent||null,plugins:new Set,props:Ei(i),settled:Promise.resolve(i),store:An(!0),traps:Qn(),type:e.type||"input",value:i}}function xi(e,i){var t;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,i.props&&Object.assign(e.props,i.props),e.props._emit=!0,Pi(e,new Set([...i.plugins||[],...e.parent?e.parent.plugins:[]])),i.plugins)for(const n of i.plugins)Ze(e,e._c,n,!0,!1);return Ai(e),e.each(n=>e.add(n)),e.parent&&e.parent.add(e,i.index),e.type==="input"&&e.children.length&&T(100,e),Ct(e,e._c,e._value,!1),e.store.release(),!((t=i.props)===null||t===void 0)&&t.id&&Nn(e),e.emit("created",e),e.isCreated=!0,e}function Bi(e){const i=e||{},t=vi(i),n=new Proxy(t,{get(...l){const[,a]=l;if(a==="__FKNode__")return!0;const s=t.traps.get(a);return s&&s.get?s.get(n,t):Reflect.get(...l)},set(...l){const[,a,s]=l,o=t.traps.get(a);return o&&o.set?o.set(n,t,a,s):Reflect.set(...l)}});return xi(n,i)}function Ye(e){return typeof e!="string"&&P(e,"$el")}function Je(e){return typeof e!="string"&&P(e,"$cmp")}function re(e){return!e||typeof e=="string"?!1:P(e,"if")&&P(e,"then")}function Di(e){return typeof e!="string"&&"$formkit"in e}function Mi(e){if(typeof e=="string")return{$el:"text",children:e};if(Di(e)){const{$formkit:i,for:t,if:n,children:l,bind:a,...s}=e;return Object.assign({$cmp:"FormKit",props:{...s,type:i}},n?{if:n}:{},t?{for:t}:{},l?{children:l}:{},a?{bind:a}:{})}return e}function N(e){let i;const t=new Set,n=function(u,c){return typeof u=="function"?u(c):u},l=[{"&&":(p,u,c)=>n(p,c)&&n(u,c),"||":(p,u,c)=>n(p,c)||n(u,c)},{"===":(p,u,c)=>n(p,c)===n(u,c),"!==":(p,u,c)=>n(p,c)!==n(u,c),"==":(p,u,c)=>n(p,c)==n(u,c),"!=":(p,u,c)=>n(p,c)!=n(u,c),">=":(p,u,c)=>n(p,c)>=n(u,c),"<=":(p,u,c)=>n(p,c)<=n(u,c),">":(p,u,c)=>n(p,c)>n(u,c),"<":(p,u,c)=>n(p,c)<n(u,c)},{"+":(p,u,c)=>n(p,c)+n(u,c),"-":(p,u,c)=>n(p,c)-n(u,c)},{"*":(p,u,c)=>n(p,c)*n(u,c),"/":(p,u,c)=>n(p,c)/n(u,c),"%":(p,u,c)=>n(p,c)%n(u,c)}],a=l.reduce((p,u)=>p.concat(Object.keys(u)),[]),s=new Set(a.map(p=>p.charAt(0)));function o(p,u,c,k){const V=p.filter(m=>m.startsWith(u));return V.length?V.find(m=>k.length>=c+m.length&&k.substring(c,c+m.length)===m?m:!1):!1}function f(p,u,c=1){let k=c?u.substring(p+1).trim():u.substring(0,p).trim();if(!k.length)return-1;if(!c){const m=k.split("").reverse(),d=m.findIndex(y=>s.has(y));k=m.slice(d).join("")}const V=k[0];return l.findIndex(m=>{const d=Object.keys(m);return!!o(d,V,0,k)})}function b(p,u){let c="";const k=u.length;let V=0;for(let m=p;m<k;m++){const d=u.charAt(m);if(d==="(")V++;else if(d===")")V--;else if(V===0&&d===" ")continue;if(V===0&&o(a,d,m,u))return[c,m-1];c+=d}return[c,u.length-1]}function _(p,u=0){const c=l[u],k=p.length,V=Object.keys(c);let m=0,d=!1,y=null,$="",I=null,A,v="",O="",D="",R="",U=0;const F=(x,z)=>{x?D+=z:$+=z};for(let x=0;x<k;x++)if(v=O,O=p.charAt(x),(O==="'"||O==='"')&&v!=="\\"&&(m===0&&!d||m&&!R)){m?R=O:d=O,F(m,O);continue}else if(d&&(O!==d||v==="\\")||R&&(O!==R||v==="\\")){F(m,O);continue}else if(d===O){d=!1,F(m,O);continue}else if(R===O){R=!1,F(m,O);continue}else{if(O===" ")continue;if(O==="(")m===0?U=x:D+=O,m++;else if(O===")")if(m--,m===0){const z=typeof $=="string"&&$.startsWith("$")?$:void 0,_n=z&&p.charAt(x+1)===".";let ye="";_n&&([ye,x]=b(x+2,p));const Re=y?u:f(U,p,0),he=f(x,p);Re===-1&&he===-1?$=g(D,-1,z,ye):y&&(Re>=he||he===-1)&&u===Re?(I=y.bind(null,g(D,-1,z,ye)),y=null,$=""):he>Re&&u===he?$=g(D,-1,z,ye):$+=`(${D})${_n?`.${ye}`:""}`,D=""}else D+=O;else if(m===0&&(A=o(V,O,x,p))){x===0&&T(103,[A,p]),x+=A.length-1,x===p.length-1&&T(104,[A,p]),y?$&&(I=y.bind(null,g($,u)),y=c[A].bind(null,I),$=""):I?(y=c[A].bind(null,g(I,u)),I=null):(y=c[A].bind(null,g($,u)),$="");continue}else F(m,O)}return $&&y&&(y=y.bind(null,g($,u))),y=!y&&I?I:y,!y&&$&&(y=(x,z)=>typeof x=="function"?x(z):x,y=y.bind(null,g($,u))),!y&&!$&&T(105,p),y}function g(p,u,c,k){if(c){const V=g(c,l.length);let m,d=k?N(`$${k}`):!1;if(typeof V=="function"){const y=wn(String(p)).map($=>g($,-1));return $=>{const I=V($);return typeof I!="function"?(pe(150,c),I):(m=I(...y.map(A=>typeof A=="function"?A($):A)),d&&(d=d.provide(A=>{const v=i(A);return A.reduce((D,R)=>{if(R===k||(k==null?void 0:k.startsWith(`${R}(`))){const F=Vn(m,R);D[R]=()=>F}else D[R]=v[R];return D},{})})),d?d():m)}}}else if(typeof p=="string"){if(p==="true")return!0;if(p==="false")return!1;if(p==="undefined")return;if(kn(p))return Cn(p.substring(1,p.length-1));if(!isNaN(+p))return Number(p);if(u<l.length-1)return _(p,u+1);if(p.startsWith("$")){const V=p.substring(1);return t.add(V),function(d){return V in d?d[V]():void 0}}return p}return p}const h=_(e.startsWith("$:")?e.substring(2):e),C=Array.from(t);function S(p){return i=p,Object.assign(h.bind(null,p(C)),{provide:S})}return Object.assign(h,{provide:S})}const It="0.16.4";function Ri(e){let i=1;return Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?{label:String(t),value:String(t)}:(typeof t=="object"&&"value"in t&&typeof t.value!="string"&&Object.assign(t,{value:`__mask_${i++}`,__original:t.value}),t)):Object.keys(e).map(t=>({label:e[t],value:t}))}function le(e,i){if(Array.isArray(e)){for(const t of e)if(i==t.value)return"__original"in t?t.__original:t.value}return i}function ae(e,i){return e===null&&i===void 0||e===void 0&&i===null?!1:e==i?!0:ne(e)&&ne(i)?fe(e,i):!1}function Qe(e){e.hook.prop((i,t)=>(i.prop==="options"&&(typeof i.value=="function"?(e.props.optionsLoader=i.value,i.value=[]):i.value=Ri(i.value)),t(i)))}const X=w("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}),!0),Y=w("inner","div"),se=w("wrapper","div"),de=w("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),J=w("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),Q=w("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),K=w("prefix",null),H=w("suffix",null),Z=w("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),Lt=w("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),Se=w("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),Ie=w("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",name:"$node.props.altName || $node.name",disabled:"$option.attrs.disabled || $disabled",onInput:"$handlers.toggleChecked",checked:"$fns.eq($_value, $onValue)",onBlur:"$handlers.blur",value:"$: true",id:"$id","aria-describedby":{if:"$options.length",then:{if:"$option.help",then:'$: "help-" + $option.attrs.id',else:void 0},else:{if:"$help",then:'$: "help-" + $id',else:void 0}}}})),Ot=w("legend",()=>({$el:"legend",if:"$label"})),At=w("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled"}})),Et=w("options","ul"),Le=w("wrapper",()=>({$el:"label",attrs:{"data-disabled":{if:"$options.length",then:void 0,else:"$disabled || undefined"},"data-checked":{if:"$options == undefined",then:"$fns.eq($_value, $onValue) || undefined",else:"$fns.isChecked($option.value) || undefined"}}})),Pt=w("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),Oe=w("label","span"),ji=w("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Ti=w("default",null),Fi=w("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy"}})),zi=w("fileItem",()=>({$el:"li",for:["file","$value"]})),Ni=w("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":{if:"$value.length > 1",then:"true"}}})),Wi=w("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),vt=w("fileRemove",()=>({$el:"button",attrs:{onClick:"$handlers.resetFiles"}})),Ui=w("noFiles",()=>({$el:"span",if:"$value.length == 0"})),qi=w("form",()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}}),!0),Ki=w("actions",()=>({$el:"div",if:"$actions"})),Hi=w("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",disabled:"$disabled",label:"$submitLabel"}})),xt=w("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"}})),Bt=w("wrapper",null,!0),Zi=w("input",()=>({$el:"select",bind:"$attrs",attrs:{id:"$id","data-placeholder":"$fns.showPlaceholder($_value, $placeholder)",disabled:"$disabled",class:"$classes.input",name:"$node.name",onChange:"$handlers.onChange",onInput:"$handlers.selectInput",onBlur:"$handlers.blur","aria-describedby":"$describedBy"}})),Yi=w("option",()=>({$el:"option",for:["option","$options"],bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}})),Ji=()=>({$el:null,if:"$options.length",for:["option","$options"],children:"$slots.option"}),Qi=w("input",()=>({$el:"textarea",bind:"$attrs",attrs:{disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"},children:"$initialValue"})),M=(e,i)=>w(`${e}Icon`,()=>{const t=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$${e}Icon && $${t}`,$el:`${i||"span"}`,attrs:{class:`$classes.${e}Icon + " formkit-icon"`,innerHTML:`$${t}`,onClick:`$handlers.iconClick(${e})`,for:{if:`${i==="label"}`,then:"$id"}}}})();function Dt(e){return function(i,t){return i.prop==="options"&&Array.isArray(i.value)&&(i.value=i.value.map(n=>{var l;return!((l=n.attrs)===null||l===void 0)&&l.id?n:ge(n,{attrs:{id:`${e.name}-option-${Fe(String(n.value))}`}})}),e.props.type==="checkbox"&&!Array.isArray(e.value)&&(e.isCreated?e.input([],!1):e.on("created",()=>{Array.isArray(e.value)||e.input([],!1)}))),t(i)}}function Gi(e,i){const t=i.target;if(t instanceof HTMLInputElement){const n=Array.isArray(e.props.options)?le(e.props.options,t.value):t.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(l=>ae(n,l))?e.input(e._value.filter(l=>!ae(n,l))):e.input([...e._value,n]):e.input([n]):t.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function Xi(e,i){var t,n;return(t=e.context)===null||t===void 0||t.value,(n=e.context)===null||n===void 0||n._value,Array.isArray(e._value)?e._value.some(l=>ae(le(e.props.options,i),l)):!1}function er(e){e.on("created",()=>{var i,t;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=Gi.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=Xi.bind(null,e)),P(e.props,"onValue")||(e.props.onValue=!0),P(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(Dt(e))}function Ae(e){e.on("created",()=>{e.props.disabled=q(e.props.disabled)}),e.hook.prop(({prop:i,value:t},n)=>(t=i==="disabled"?q(t):t,n({prop:i,value:t}))),e.on("prop:disabled",({payload:i})=>{e.config.disabled=q(i)}),e.on("created",()=>{e.config.disabled=q(e.props.disabled)})}function Ee(e,i){return t=>{t.store.set(G({key:e,type:"ui",value:i||e,meta:{localize:!0,i18nArgs:[t]}}))}}const Mt=typeof window<"u";function Rt(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function jt(e,i){i.target instanceof HTMLInputElement?e==="dragover"&&i.target.setAttribute("data-file-hover","true"):i.preventDefault(),e==="drop"&&Rt(i)}function tr(e){Ee("noFiles","Select file")(e),Ee("removeAll","Remove all")(e),Ee("remove")(e),Mt&&(window._FormKit_File_Drop||(window.addEventListener("dragover",jt.bind(null,"dragover")),window.addEventListener("drop",jt.bind(null,"drop")),window.addEventListener("dragleave",Rt),window._FormKit_File_Drop=!0)),e.hook.input((i,t)=>t(Array.isArray(i)?i:[])),e.on("created",()=>{Array.isArray(e.value)||e.input([],!1),e.context&&(e.context.handlers.resetFiles=i=>{if(i.preventDefault(),e.input([]),e.props.id&&Mt){const t=document.getElementById(e.props.id);t&&(t.value="")}},e.context.handlers.files=i=>{var t,n;const l=[];if(i.target instanceof HTMLInputElement&&i.target.files){for(let a=0;a<i.target.files.length;a++){let s;(s=i.target.files.item(a))&&l.push({name:s.name,file:s})}e.input(l)}e.context&&(e.context.files=l),typeof((t=e.props.attrs)===null||t===void 0?void 0:t.onChange)=="function"&&((n=e.props.attrs)===null||n===void 0||n.onChange(i))})})}async function nr(e,i){i.preventDefault(),await e.settled;const t=n=>n.store.set(G({key:"submitted",value:!0,visible:!1}));if(e.walk(t),t(e),typeof e.props.onSubmitRaw=="function"&&e.props.onSubmitRaw(i,e),e.ledger.value("blocking"))typeof e.props.onSubmitInvalid=="function"&&e.props.onSubmitInvalid(e),e.props.incompleteMessage!==!1&&e.store.set(G({blocking:!1,key:"incomplete",meta:{localize:e.props.incompleteMessage===void 0,i18nArgs:[{node:e}],showAsMessage:!0},type:"ui",value:e.props.incompleteMessage||"Form incomplete."}));else if(typeof e.props.onSubmit=="function"){const n=e.props.onSubmit(e.hook.submit.dispatch(ue(e.value)),e);if(n instanceof Promise){const l=e.props.disabled===void 0&&e.props.submitBehavior!=="live";l&&(e.props.disabled=!0),e.store.set(G({key:"loading",value:!0,visible:!1})),await n,l&&(e.props.disabled=!1),e.store.remove("loading")}}else i.target instanceof HTMLFormElement&&i.target.submit()}function ir(e){e.props.isForm=!0,e.on("created",()=>{var i;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.submit=nr.bind(null,e)),P(e.props,"actions")||(e.props.actions=!0)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function rr(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function lr(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function ar(e,i){i.target instanceof HTMLInputElement&&e.input(le(e.props.options,i.target.value))}function sr(e,i){var t,n;return(t=e.context)===null||t===void 0||t.value,(n=e.context)===null||n===void 0||n._value,ae(le(e.props.options,i),e._value)}function or(e){e.on("created",()=>{var i,t;Array.isArray(e.props.options)||pe(350,e),!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=ar.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=sr.bind(null,e))}),e.hook.prop(Dt(e))}function fr(e,i){e.context&&e.context.value;const t="__original"in i?i.__original:i.value;function n(){return!e.props.options.some(l=>("__original"in l?l.__original:l.value)===null)}return Array.isArray(e._value)?e._value.some(l=>ae(l,t)):(e._value===void 0||e._value===null&&n())&&i.attrs&&i.attrs["data-is-placeholder"]?!0:ae(t,e._value)}async function ur(e,i){var t;typeof((t=e.props.attrs)===null||t===void 0?void 0:t.onChange)=="function"&&(await new Promise(n=>setTimeout(n,0)),await e.settled,e.props.attrs.onChange(i))}function cr(e,i){const t=i.target,n=t.hasAttribute("multiple")?Array.from(t.selectedOptions).map(l=>le(e.props.options,l.value)):le(e.props.options,t.value);e.input(n)}function Tt(e,i){return e.some(t=>t.attrs&&t.attrs["data-is-placeholder"])?e:[{label:i,value:"",attrs:{hidden:!0,disabled:!0,"data-is-placeholder":"true"}},...e]}function pr(e){e.on("created",()=>{var i,t,n;const l=q((i=e.props.attrs)===null||i===void 0?void 0:i.multiple);!l&&e.props.placeholder&&Array.isArray(e.props.options)&&(e.hook.prop(({prop:a,value:s},o)=>(a==="options"&&(s=Tt(s,e.props.placeholder)),o({prop:a,value:s}))),e.props.options=Tt(e.props.options,e.props.placeholder)),l?e.value===void 0&&e.input([],!1):e.context&&!e.context.options&&(e.props.attrs=Object.assign({},e.props.attrs,{value:e._value}),e.on("input",({payload:a})=>{e.props.attrs=Object.assign({},e.props.attrs,{value:a})})),!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.selectInput=cr.bind(null,e),e.context.handlers.onChange=ur.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isSelected=fr.bind(null,e),e.context.fns.showPlaceholder=(a,s)=>{if(!Array.isArray(e.props.options))return!1;const o=e.props.options.some(f=>{if(f.attrs&&"data-is-placeholder"in f.attrs)return!1;const b="__original"in f?f.__original:f.value;return fe(a,b)});return s&&!o?!0:void 0})}),e.hook.input((i,t)=>{var n,l,a;return!e.props.placeholder&&i===void 0&&Array.isArray((n=e.props)===null||n===void 0?void 0:n.options)&&e.props.options.length&&!q((a=(l=e.props)===null||l===void 0?void 0:l.attrs)===null||a===void 0?void 0:a.multiple)&&(i="__original"in e.props.options[0]?e.props.options[0].__original:e.props.options[0].value),t(i)})}function oe(e,i){return t=>{t.props[`${e}Icon`]===void 0&&(t.props[`${e}Icon`]=`default:${i}`)}}function Pe(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function Ge(e){return!!(re(e)&&e.if&&e.if.startsWith("$slots.")&&typeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function me(e,i={}){return typeof e=="string"?Pe(i)||typeof i=="string"?i:e:Array.isArray(e)?Pe(i)?i:e:ge(e,i)}function dr(e){return X(se(de("$label"),Y(K(),e(),H())),Z("$help"),J(Q("$message.value")))}function w(e,i,t=!1){return(...n)=>{const l=a=>{const s=!i||typeof i=="string"?{$el:i}:i();return(Ye(s)||Je(s))&&(s.meta||(s.meta={section:e}),n.length&&!s.children&&(s.children=[...n.map(o=>typeof o=="string"?o:o(a))]),Ye(s)&&(s.attrs={class:`$classes.${e}`,...s.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in a?me(s,a[e]):s}};return l._s=e,t?Ft(l):l}}function Ft(e){return i=>[e(i)]}function W(e,i,t){const n=l=>{const a=i(l);if(t||Pe(a)&&"if"in a||Ge(a)){const s={if:e,then:a};return t&&(s.else=t(l)),s}else Ge(a)?Object.assign(a.else,{if:e}):Pe(a)&&Object.assign(a,{if:e});return a};return n._s=_e(),n}function ve(e,i){const t=n=>{const l=e({});return Ge(l)?(Array.isArray(l.else)||(l.else=me(me(l.else,i),e._s?n[e._s]:{})),l):me(me(l,i),e._s?n[e._s]:{})};return t._s=e._s,t}function mr(e){return Ft(e)}X(J(Q("$message.value")),se(ji(M("prefix"),K(),Ti("$label || $ui.submit.value"),H(),M("suffix"))),Z("$help")),Ee("submit"),X(W("$options == undefined",Le(Y(K(),Ie(),Se(M("decorator")),H()),ve(Oe("$label"),{if:"$label"})),Lt(Ot("$label"),Z("$help"),Et(At(Le(Y(K(),ve(Ie(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Se(M("decorator")),H()),ve(Oe("$option.label"),{if:"$option.label"})),Pt("$option.help"))))),W("$options == undefined && $help",Z("$help")),J(Q("$message.value"))),oe("decorator","checkboxDecorator"),X(se(de("$label"),Y(M("prefix","label"),K(),Fi(),Ni(zi(M("fileItem"),Wi("$file.name"),W("$value.length === 1",vt(M("fileRemove"),"$ui.remove.value")))),W("$value.length > 1",vt("$ui.removeAll.value")),Ui(M("noFiles"),"$ui.noFiles.value"),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),oe("fileItem","fileItem"),oe("fileRemove","fileRemove"),oe("noFiles","noFiles"),qi("$slots.default",J(Q("$message.value")),Ki(Hi())),Bt("$slots.default"),mr(xt()),Bt("$slots.default"),X(W("$options == undefined",Le(Y(K(),Ie(),Se(M("decorator")),H()),W("$label",Oe("$label"))),Lt(Ot("$label"),Z("$help"),Et(At(Le(Y(K(),ve(Ie(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Se(M("decorator")),H()),W("$option.label",Oe("$option.label"))),Pt("$option.help"))))),W("$options === undefined && $help",Z("$help")),J(Q("$message.value"))),oe("decorator","radioDecorator"),X(se(de("$label"),Y(M("prefix"),K(),Zi(W("$slots.default",()=>"$slots.default",W("$slots.option",Ji,Yi("$option.label")))),W("$attrs.multiple !== undefined",()=>"",M("select")),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),oe("select","select"),X(se(de("$label"),Y(M("prefix","label"),K(),Qi(),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),X(se(de("$label"),Y(M("prefix","label"),K(),xt(),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),G({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let xe;const br=new Promise(e=>{}),Be=typeof window<"u"&&typeof fetch<"u";xe=Be?getComputedStyle(document.documentElement):void 0;const be={},Xe={};function et(e,i){return t=>{if(typeof t=="boolean")return;if(t.startsWith("<svg"))return t;if(typeof t!="string")return;const n=t.startsWith("default:");t=n?t.split(":")[1]:t;const l=t in be;let a;if(l)return be[t];if(!Xe[t]){if(a=yr(t),a=Be&&typeof a>"u"?Promise.resolve(a):a,a instanceof Promise)Xe[t]=a.then(s=>!s&&typeof t=="string"&&!n?a=typeof e=="function"?e(t):_r(t,i):s).then(s=>(typeof t=="string"&&(be[n?`default:${t}`:t]=s),s));else if(typeof a=="string")return be[n?`default:${t}`:t]=a,a}return Xe[t]}}function yr(e){if(Be)return br.then(()=>hr(e))}function hr(e){const i=xe==null?void 0:xe.getPropertyValue(`--fk-icon-${e}`);if(i){const t=atob(i);if(t.startsWith("<svg"))return be[e]=t,t}}function _r(e,i){const t=It.startsWith("__")?"latest":It,n=typeof i=="function"?i(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;if(Be)return fetch(`${n}`).then(async l=>{const a=await l.text();if(a.startsWith("<svg"))return a}).catch(l=>{console.error(l)})}let tt=!1;const zt={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,i]})=>`You cannot directly assign node.${i} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,i]})=>`Schema expressions cannot end with an operator (${e} in "${i}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,i]})=>`Cannot set ${e.name} to non object value: ${i}`,108:({data:[e,i]})=>`Cannot set ${e.name} to non array value: ${i}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},Nt={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`};tt||Ne((e,i)=>{if(e.code in zt){const t=zt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),tt||We((e,i)=>{if(e.code in Nt){const t=Nt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),tt=!0;const nt={};let j;const te=new Map,gr="__raw__",$r=/[a-zA-Z0-9\-][cC]lass$/;function kr(e,i){const t=r.ref(null);if(e==="get"){const l={};return t.value=Cr.bind(null,l),t}const n=e.split(".");return r.watchEffect(()=>{t.value=it(r.isRef(i)?i.value:i,n)}),t}function it(e,i){if(Array.isArray(e)){for(const l of e){const a=l!==!1&&it(l,i);if(a!==void 0)return a}return}let t,n=e;for(const l in i){const a=i[l];if(typeof n!="object"||n===null){t=void 0;break}const s=n[a];if(Number(l)===i.length-1&&s!==void 0){t=typeof s=="function"?s.bind(n):s;break}n=s}return t}function Cr(e,i){if(typeof i!="string")return pe(650);if(i in e||(e[i]=r.ref(void 0)),e[i].value===void 0){e[i].value=null;const t=ht(i);t&&(e[i].value=t.context),Un(i,({payload:n})=>{e[i].value=Ce(n)?n.context:n})}return e[i].value}function Wt(e,i){function t(g,h){const C=_(N(h.if),{if:!0}),S=f(g,h.then),p=h.else?f(g,h.else):null;return[C,S,p]}function n(g,h){var C,S;const p=_(N(g.if));let u=()=>h,c=()=>h;return typeof g.then=="object"?c=l(g.then,void 0):typeof g.then=="string"&&(!((C=g.then)===null||C===void 0)&&C.startsWith("$"))?c=_(N(g.then)):c=()=>g.then,P(g,"else")&&(typeof g.else=="object"?u=l(g.else):typeof g.else=="string"&&(!((S=g.else)===null||S===void 0)&&S.startsWith("$"))?u=_(N(g.else)):u=()=>g.else),()=>p()?c():u()}function l(g,h,C={}){const S=new Set(Object.keys(g||{})),p=h?_(N(h)):()=>({}),u=[c=>{const k=p();for(const V in k)S.has(V)||(c[V]=k[V])}];if(g){if(re(g))return n(g,C);for(let c in g){const k=g[c];let V;const m=typeof k=="string";c.startsWith(gr)?(c=c.substring(7),V=()=>k):m&&k.startsWith("$")&&k.length>1&&!(k.startsWith("$reset")&&$r.test(c))?V=_(N(k)):typeof k=="object"&&re(k)?V=n(k,void 0):typeof k=="object"&&ne(k)?V=l(k):V=()=>k,u.push(d=>{d[c]=V()})}}return()=>{const c=Array.isArray(g)?[]:{};return u.forEach(k=>k(c)),c}}function a(g,h){let C=null,S=()=>null,p=!1,u=null,c=null,k=null,V=!1;const m=Mi(h);if(Ye(m)?(C=m.$el,S=m.$el!=="text"?l(m.attrs,m.bind):()=>null):Je(m)?(typeof m.$cmp=="string"?P(g,m.$cmp)?C=g[m.$cmp]:(C=m.$cmp,V=!0):C=m.$cmp,S=l(m.props,m.bind)):re(m)&&([p,u,c]=t(g,m)),!re(m)&&"if"in m?p=_(N(m.if)):!re(m)&&C===null&&(p=()=>!0),"children"in m&&m.children)if(typeof m.children=="string")if(m.children.startsWith("$slots."))C=C==="text"?"slot":C,u=_(N(m.children));else if(m.children.startsWith("$")&&m.children.length>1){const d=_(N(m.children));u=()=>String(d())}else u=()=>String(m.children);else if(Array.isArray(m.children))u=f(g,m.children);else{const[d,y,$]=t(g,m.children);u=I=>d&&d()?y&&y(I):$&&$(I)}if(Je(m))if(u){const d=u;u=y=>({default($,I){var A,v,O,D;const R=j;I&&(j=I),$&&((A=te.get(j))===null||A===void 0||A.unshift($)),y&&((v=te.get(j))===null||v===void 0||v.unshift(y));const U=d(y);return $&&((O=te.get(j))===null||O===void 0||O.shift()),y&&((D=te.get(j))===null||D===void 0||D.shift()),j=R,U}}),u.slot=!0}else u=()=>({});if("for"in m&&m.for){const d=m.for.length===3?m.for[2]:m.for[1];k=[typeof d=="string"&&d.startsWith("$")?_(N(d)):()=>d,m.for[0],m.for.length===3?String(m.for[1]):null]}return[p,C,S,u,c,k,V]}function s(g,h){const C=g(h),S=j;return Object.keys(C).reduce((p,u)=>{const c=C&&C[u];return p[u]=k=>c&&c(k,S)||null,p},{})}function o(g,h){const[C,S,p,u,c,k,V]=a(g,h);let m=d=>{if(C&&S===null&&u)return C()?u(d):c&&c(d);if(S&&(!C||C())){if(S==="text"&&u)return r.createTextVNode(String(u()));if(S==="slot"&&u)return u(d);const y=V?r.resolveComponent(S):S,$=u!=null&&u.slot?s(u,d):null;return r.h(y,p(),$||(u?u(d):[]))}return typeof c=="function"?c(d):c};if(k){const d=m,[y,$,I]=k;m=()=>{const A=y(),v=isNaN(A)?A:Array(Number(A)).fill(0).map((U,F)=>F),O=[];if(typeof v!="object")return null;const D=te.get(j)||[],R=Array.isArray(v);for(const U in v){if(R&&U in Array.prototype)continue;const F=Object.defineProperty({...D.reduce((x,z)=>x.__idata?{...x,...z}:z,{}),[$]:v[U],...I!==null?{[I]:R?Number(U):U}:{}},"__idata",{enumerable:!1,value:!0});D.unshift(F),O.push(d.bind(null,F)()),D.shift()}return O}}return m}function f(g,h){if(Array.isArray(h)){const S=h.map(o.bind(null,g));return p=>S.map(u=>u(p))}const C=o(g,h);return S=>C(S)}const b=[];function _(g,h={}){const C={};return b.push((S,p)=>{C[p]=g.provide(u=>S(u,h))}),()=>C[j]()}return function(h,C){const S=JSON.stringify(i),[p,u]=P(nt,S)?nt[S]:[f(e,i),b];return nt[S]=[p,u],u.forEach(c=>{c(h,C)}),()=>(j=C,p())}}function Ut(e,i){const t=te.get(j)||[];let n;return t.length&&(n=it(t,e.split("."))),n===void 0?i:n}function wr(e,i){return new Proxy(e,{get(...t){let n;const l=t[1];if(typeof l=="string"){const a=j;j=i,n=Ut(l,void 0),j=a}return n!==void 0?n:Reflect.get(...t)}})}function qt(e,i,t){return e((n,l={})=>n.reduce((a,s)=>{if(s.startsWith("slots.")){const o=s.substring(6),f=()=>i.slots&&P(i.slots,o)&&typeof i.slots[o]=="function";if(l.if)a[s]=f;else if(i.slots){const b=wr(i,t);a[s]=()=>f()?i.slots[o](b):null}}else{const o=kr(s,i);a[s]=()=>Ut(s,o.value)}return a},{}),t)}let Kt=0;const Ht=r.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,i){const t=r.getCurrentInstance();let n=Symbol(String(Kt++));te.set(n,[]);let l=Wt(e.library,e.schema),a,s;return r.watch(()=>e.schema,(o,f)=>{var b;n=Symbol(String(Kt++)),l=Wt(e.library,e.schema),a=qt(l,s,n),o===f&&((b=t==null?void 0:t.proxy)===null||b===void 0?void 0:b.$forceUpdate)()},{deep:!0}),r.watchEffect(()=>{s=Object.assign(r.reactive(e.data),{slots:i.slots}),a=qt(l,s,n)}),()=>a()}}),Vr={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},De=Symbol("FormKitParent");r.defineComponent({props:Vr,emits:{input:(e,i)=>!0,inputRaw:(e,i)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,i)=>!0,submitRaw:(e,i)=>!0,submitInvalid:e=>!0},inheritAttrs:!1,setup(e,i){const t=Ar(e,i);if(t.props.definition||T(600,t),t.props.definition.component)return()=>{var s;return r.h((s=t.props.definition)===null||s===void 0?void 0:s.component,{context:t.context},{...i.slots})};const n=r.ref([]),l=()=>{var s,o;const f=(o=(s=t.props)===null||s===void 0?void 0:s.definition)===null||o===void 0?void 0:o.schema;f||T(601,t),n.value=typeof f=="function"?f({...e.sectionsSchema}):f};l(),t.on("schema",l),i.emit("node",t);const a=t.props.definition.library;return i.expose({node:t}),()=>r.h(Ht,{schema:n.value,data:t.context,library:a},{...i.slots})}});const Zt=Symbol.for("FormKitOptions"),rt=Symbol();function Sr(e,i){const t={},n=s=>{for(const o of s)o.__str in t&&t[o.__str](),t[o.__str]=r.watch(Lr.bind(null,e,o),a.bind(null,o),{deep:!1})},a=Ir(e,i,n,s=>{if(s.length)for(const o in t)`${o}`.startsWith(`${s.__str}.`)&&(t[o](),delete t[o])});n(lt(e))}function Ir(e,i,t,n){return l=>{const a=Yt(e,l);a!==rt&&(l.__deep&&n(l),typeof a=="object"&&t(lt(a,[l],...l)),i(l,a,e))}}function Lr(e,i){const t=Yt(e,i);return t&&typeof t=="object"?Object.keys(t):t}function Yt(e,i){if(r.isRef(e)){if(i.length===0)return e.value;e=e.value}return i.reduce((t,n)=>t===rt?t:t===null||typeof t!="object"?rt:t[n],e)}function lt(e,i=[],...t){if(e===null)return i;if(!t.length){const n=Object.defineProperty([],"__str",{value:""});if(e=r.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(n,"__deep",{value:!0}),i.push(n);else return[n]}if(e===null||typeof e!="object")return i;for(const n in e){const l=t.concat(n);Object.defineProperty(l,"__str",{value:l.join(".")});const a=e[n];ne(a)||Array.isArray(a)?(i.push(Object.defineProperty(l,"__deep",{value:!0})),i=i.concat(lt(a,[],...l))):i.push(l)}return i}function Me(e){return e===null||typeof e!="object"||(r.isReactive(e)?e=r.toRaw(e):r.isRef(e)&&(e=r.isReactive(e.value)?Me(e.value):e.value)),e}const at=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility|-behavior|Behavior)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/];function Jt(e,i){i.classes&&Object.keys(i.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=i.classes[t],Te(i.classes[t])&&t==="inner"&&Object.values(i.classes[t]))})}function Or(e){return e?["Submit","SubmitRaw","SubmitInvalid"].reduce((t,n)=>{const l=`on${n}`;return l in e&&typeof e[l]=="function"&&(t[l]=e[l]),t},{}):{}}function Ar(e,i,t={}){var n;const l=Object.assign({},r.inject(Zt)||{},t),a=r.getCurrentInstance(),s=Or(a==null?void 0:a.vnode.props),o="modelValue"in((n=a==null?void 0:a.vnode.props)!==null&&n!==void 0?n:{}),f=e.modelValue!==void 0?e.modelValue:ee(i.attrs.value);function b(){const d={...ie(e),...s},y=st(ie(i.attrs),at);y.key||(y.key=_e()),d.attrs=y;const $=ot(ie(i.attrs),at);for(const A in $)d[$e(A)]=$[A];const I={props:{}};return Jt(I,e),Object.assign(d,I.props),typeof d.type!="string"&&(d.definition=d.type,delete d.type),d}const _=b(),g=_.ignore?null:e.parent||r.inject(De,null),h=Bi(ge(l||{},{name:e.name||void 0,value:f,parent:g,plugins:(l.plugins||[]).concat(e.plugins),config:e.config,props:_,index:e.index},!1,!0));h.props.definition||T(600,h);const C=r.ref(new Set(h.props.definition.props||[]));h.on("added-props",({payload:d})=>{Array.isArray(d)&&d.forEach(y=>C.value.add(y))});const S=r.computed(()=>at.concat([...C.value]).reduce((d,y)=>(typeof y=="string"?(d.push($e(y)),d.push(ft(y))):d.push(y),d),[]));r.watchEffect(()=>Jt(h,e));const p=ie(e);for(const d in p)r.watch(()=>e[d],()=>{e[d]!==void 0&&(h.props[d]=e[d])});const u=new Set,c=ie(i.attrs);r.watchEffect(()=>{k(ot(c,S.value))});function k(d){u.forEach(y=>{y(),u.delete(y)});for(const y in d){const $=$e(y);u.add(r.watch(()=>i.attrs[y],()=>{h.props[$]=i.attrs[y]}))}}if(r.watchEffect(()=>{const d=st(ie(i.attrs),S.value);"multiple"in d&&(d.multiple=q(d.multiple)),h.props.attrs=Object.assign({},h.props.attrs||{},d)}),r.watchEffect(()=>{const d=e.errors.map(y=>G({key:Fe(y),type:"error",value:y,meta:{source:"prop"}}));h.store.apply(d,y=>y.type==="error"&&y.meta.source==="prop")}),h.type!=="input"){const d=`${h.name}-prop`;r.watchEffect(()=>{const y=Object.keys(e.inputErrors);y.length||h.clearErrors(!0,d);const $=y.reduce((I,A)=>{let v=e.inputErrors[A];return typeof v=="string"&&(v=[v]),Array.isArray(v)&&(I[A]=v.map(O=>G({key:O,type:"error",value:O,meta:{source:d}}))),I},{});h.store.apply($,I=>I.type==="error"&&I.meta.source===d)})}r.watchEffect(()=>Object.assign(h.config,e.config)),h.type!=="input"&&r.provide(De,h);let V;const m=new WeakSet;return h.on("modelUpdated",()=>{var d,y;if(i.emit("inputRaw",(d=h.context)===null||d===void 0?void 0:d.value,h),clearTimeout(V),V=setTimeout(i.emit,20,"input",(y=h.context)===null||y===void 0?void 0:y.value,h),o&&h.context){const $=Me(h.context.value);Te($)&&Me(e.modelValue)!==$&&m.add($),i.emit("update:modelValue",$)}}),o&&(Sr(r.toRef(e,"modelValue"),(d,y)=>{var $;const I=Me(y);if(Te(I)&&m.has(I))return m.delete(I);d.length?($=h.at(d))===null||$===void 0||$.input(y,!1):h.input(y,!1)}),h.value!==f&&h.emit("modelUpdated")),r.onBeforeUnmount(()=>h.destroy()),h}let Er=1;function Pr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function B(e,i={}){const t={type:"input",...i};let n;if(Pr(e)){const l=`SchemaComponent${Er++}`;n=w("input",()=>({$cmp:l,props:{context:"$node.context"}})),t.library={[l]:r.markRaw(e)}}else typeof e=="function"?n=e:n=w("input",()=>ee(e));return t.schema=dr(n||"Schema undefined"),t}const vr=w("messages",()=>({$el:"ul",if:"$fns.length($messages)"}),!0),xr=w("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Br=vr(xr("$message.value"));r.defineComponent({props:{node:{type:Object,required:!1},sectionsSchema:{type:Object,default:{}},defaultPosition:{type:[String,Boolean],default:!1}},setup(e,i){const t=r.computed(()=>e.node||r.inject(De,void 0));r.watch(t,()=>{var a;!((a=t.value)===null||a===void 0)&&a.context&&!q(e.defaultPosition)&&(t.value.context.defaultMessagePlacement=!1)},{immediate:!0});const n=Br(e.sectionsSchema||{}),l=r.computed(()=>{var a,s,o,f,b,_;return{messages:((s=(a=t.value)===null||a===void 0?void 0:a.context)===null||s===void 0?void 0:s.messages)||{},fns:((f=(o=t.value)===null||o===void 0?void 0:o.context)===null||f===void 0?void 0:f.fns)||{},classes:((_=(b=t.value)===null||b===void 0?void 0:b.context)===null||_===void 0?void 0:_.classes)||{}}});return()=>{var a;return!((a=t.value)===null||a===void 0)&&a.context?r.h(Ht,{schema:n,data:l.value},{...i.slots}):null}}}),r.defineComponent({name:"FormKitIcon",props:{icon:{type:String,default:""},iconLoader:{type:Function,default:null},iconLoaderUrl:{type:Function,default:null}},setup(e){var i,t;const n=r.ref(void 0),l=r.inject(Zt,{}),a=r.inject(De,null);let s;function o(){if(!s||typeof s!="function")return;const f=s(e.icon);f instanceof Promise?f.then(b=>{n.value=b}):n.value=f}if(e.iconLoader&&typeof e.iconLoader=="function")s=et(e.iconLoader);else if(a&&(!((i=a.props)===null||i===void 0)&&i.iconLoader))s=et(a.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")s=et(s,e.iconLoaderUrl);else{const f=(t=l==null?void 0:l.plugins)===null||t===void 0?void 0:t.find(b=>typeof b.iconHandler=="function");f&&(s=f.iconHandler)}return r.watch(()=>e.icon,()=>{o()},{immediate:!0}),()=>e.icon&&n.value?r.h("span",{class:"formkit-icon",innerHTML:n.value}):null}});const Dr=r.defineComponent({__name:"PrimeCalendar",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.node.input(t==null?void 0:t._value)}function a(o){t==null||t.node.input(o)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Calendar");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":i.context.id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(s),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"date-format":r.unref(n).dateFormat,"selection-mode":r.unref(n).selectionMode??"single",inline:r.unref(n).inline??!1,"show-other-months":r.unref(n).showOtherMonths??!0,"select-other-months":r.unref(n).selectOtherMonths??!1,icon:r.unref(n).icon,"show-icon":r.unref(t).showIcon,"previous-icon":r.unref(n).previousIcon??"pi pi-chevron-left","next-icon":r.unref(n).nextIcon??"pi pi-chevron-right","increment-icon":r.unref(n).incrementIcon??"pi pi-chevron-up","decrement-icon":r.unref(n).decrementIcon??"pi pi-chevron-down","number-of-months":r.unref(n).numberOfMonths??1,"responsive-options":r.unref(n).responsiveOptions,view:r.unref(n).view??"date","touch-u-i":r.unref(n).touchUI??!1,"min-date":r.unref(n).minDate,"max-date":r.unref(n).maxDate,"disabled-dates":r.unref(n).disabledDates,"disabled-days":r.unref(n).disabledDays,"max-date-count":r.unref(n).maxDateCount,"show-on-focus":r.unref(n).showOnFocus??!0,"auto-z-index":r.unref(n).autoZIndex??!0,"base-z-index":r.unref(n).baseZIndex??0,"show-button-bar":r.unref(n).showButtonBar??!1,"show-time":r.unref(n).showTime??!1,"time-only":r.unref(n).timeOnly??!1,"short-year-cutoff":r.unref(n).shortYearCutoff??"+10","hour-format":r.unref(n).hourFormat??"24","step-hour":r.unref(n).stepHour??1,"step-minute":r.unref(n).stepMinute??1,"step-second":r.unref(n).stepSecond??1,"show-seconds":r.unref(n).showSeconds??!1,"hide-on-date-time-select":r.unref(n).hideOnDateTimeSelect??!1,"hide-on-range-selection":r.unref(n).hideOnRangeSelection??!1,"time-separator":r.unref(n).timeSeparator??":","show-week":r.unref(n).showWeek??!1,"manual-input":r.unref(n).manualInput??!0,"append-to":r.unref(n).appendTo??"body","panel-style":r.unref(n).panelStyle,"panel-class":r.unref(n).panelClass,onDateSelect:a,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","date-format","selection-mode","inline","show-other-months","select-other-months","icon","show-icon","previous-icon","next-icon","increment-icon","decrement-icon","number-of-months","responsive-options","view","touch-u-i","min-date","max-date","disabled-dates","disabled-days","max-date-count","show-on-focus","auto-z-index","base-z-index","show-button-bar","show-time","time-only","short-year-cutoff","hour-format","step-hour","step-minute","step-second","show-seconds","hide-on-date-time-select","hide-on-range-selection","time-separator","show-week","manual-input","append-to","panel-style","panel-class"])])}}}),Mr={key:0,class:"formkit-prime-left"},Rr={key:1,class:"formkit-prime-right"},jr=r.defineComponent({__name:"PrimeCheckbox",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Checkbox");return r.openBlock(),r.createElementBlock("div",null,[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",Mr,r.toDisplayString(r.unref(t).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,binary:r.unref(n).binary??!0,"true-value":r.unref(n).trueValue??void 0,"false-value":r.unref(n).falseValue??void 0,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","binary","true-value","false-value"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Rr,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),Tr=r.defineComponent({__name:"PrimeChips",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Chips");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"allow-duplicate":r.unref(n).allowDuplicate??!0,"add-on-blur":r.unref(n).addOnBlur??!1,max:r.unref(n).max??void 0,placeholder:r.unref(n).placeholder,separator:r.unref(n).separator,onAdd:l,onRemove:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","allow-duplicate","add-on-blur","max","placeholder","separator"])])}}}),Fr=r.defineComponent({__name:"PrimeColorPicker",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(a){var s;t==null||t.node.input((s=i.context)==null?void 0:s._value)}return(a,s)=>{const o=r.resolveComponent("ColorPicker");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(o,{modelValue:r.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=f=>r.unref(t)._value=f),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),"panel-class":r.unref(n).class,tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"default-color":r.unref(n).defaultColor??"ff0000",inline:r.unref(n).inline??!1,format:r.unref(n).format,onChange:l},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format"])])}}}),zr=r.defineComponent({__name:"PrimeDropdown",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.value)}function a(o){t==null||t.node.input(o.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Dropdown");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(s),"input-class":r.unref(n).class,tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:r.unref(n).options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value",placeholder:r.unref(n).placeholder,filter:r.unref(n).filter??!1,"show-clear":r.unref(n).showClear??!1,onChange:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","placeholder","filter","show-clear"])])}}}),Nr=r.defineComponent({__name:"PrimeEditor",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.node.input(o.htmlValue)}function a(o){o.range===null&&(t==null||t.handlers.blur(o.htmlValue))}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Editor");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"editor-style":r.unref(n).style,class:r.normalizeClass(r.unref(s)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,formats:r.unref(n).formats,modules:r.unref(n).modules,onTextChange:l,onSelectionChange:a},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules"])])}}}),Wr=r.defineComponent({__name:"PrimeInputMask",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o,f;t==null||t.node.input((o=i.context)==null?void 0:o._value),t==null||t.handlers.blur((f=i.context)==null?void 0:f._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("InputMask");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"editor-style":r.unref(n).style,class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,mask:r.unref(n).mask??void 0,"slot-char":r.unref(n).slotChar??"_","auto-clear":r.unref(n).autoClear??!0,unmask:r.unref(n).unmask??!1,onBlur:l},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","mask","slot-char","auto-clear","unmask"])])}}}),Ur=r.defineComponent({__name:"PrimeInputNumber",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.value)}function a(o){t==null||t.node.input(o.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("InputNumber");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(s),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,"use-grouping":r.unref(n).useGrouping??!0,"min-fraction-digits":r.unref(n).minFractionDigits??void 0,"max-fraction-digits":r.unref(n).maxFractionDigits??void 0,locale:r.unref(n).locale??void 0,mode:r.unref(n).mode??void 0,currency:r.unref(n).currency??void 0,prefix:r.unref(n).prefix??void 0,suffix:r.unref(n).suffix??void 0,"show-buttons":r.unref(n).showButtons??void 0,"button-layout":r.unref(n).buttonLayout??"stacked",step:r.unref(n).step??void 0,onInput:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","placeholder","use-grouping","min-fraction-digits","max-fraction-digits","locale","mode","currency","prefix","suffix","show-buttons","button-layout","step"])])}}}),qr={key:0,class:"formkit-prime-left"},Kr={key:1,class:"formkit-prime-right"},Hr=r.defineComponent({__name:"PrimeInputSwitch",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("InputSwitch");return r.openBlock(),r.createElementBlock("div",null,[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",qr,r.toDisplayString(r.unref(t).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"true-value":r.unref(n).trueValue??void 0,"false-value":r.unref(n).falseValue??void 0,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Kr,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),Zr=r.defineComponent({__name:"PrimeInputText",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(){return(t==null?void 0:t.iconLeft)&&(t==null?void 0:t.iconLeft.length)>0}function a(){return(t==null?void 0:t.iconRight)&&(t==null?void 0:t.iconRight.length)>0}function s(){let _="";return l()&&(_=`${_}p-input-icon-left `),a()&&(_=`${_}p-input-icon-right `),_}function o(_){t==null||t.handlers.blur(_.target.value)}function f(_){t==null||t.node.input(_.target.value)}const b=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(_,g)=>{const h=r.resolveComponent("InputText");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",{class:r.normalizeClass(s())},[l()?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(r.unref(t).iconLeft)},null,2)):r.createCommentVNode("",!0),r.createVNode(h,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":g[0]||(g[0]=C=>r.unref(t)._value=C),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(b)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,onInput:f,onBlur:o},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder"]),a?(r.openBlock(),r.createElementBlock("i",{key:1,class:r.normalizeClass(r.unref(t).iconRight)},null,2)):r.createCommentVNode("",!0)],2)])}}}),Yr=r.defineComponent({__name:"PrimeTextarea",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.target.value)}function a(o){t==null||t.node.input(o.target.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Textarea");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(s)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,rows:r.unref(t).rows??3,onInput:a,onBlur:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows"])])}}}),Jr=r.defineComponent({__name:"PrimeKnob",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(s){t==null||t.node.input(s),t==null||t.handlers.blur(s)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Knob");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,min:r.unref(n).min??0,max:r.unref(n).max??100,step:r.unref(n).step??void 0,size:r.unref(n).size??100,"stroke-width":r.unref(n).strokeWidth??14,"show-value":r.unref(n).showValue??!0,"value-color":r.unref(n).valueColor??void 0,"range-color":r.unref(n).rangeColor??void 0,"text-color":r.unref(n).textColor??void 0,"value-template":r.unref(n).valueTemplate??void 0,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","size","stroke-width","show-value","value-color","range-color","text-color","value-template"])])}}}),Qr=r.defineComponent({__name:"PrimeMultiSelect",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("MultiSelect");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"list-style":r.unref(n).style,class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:r.unref(n).options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value",filter:r.unref(n).filter??!1,onChange:l},null,8,["modelValue","input-id","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","filter"])])}}}),Gr=r.defineComponent({__name:"PrimeListbox",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{var b;const f=r.resolveComponent("Listbox");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=_=>r.unref(t)._value=_),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"list-style":r.unref(n).style,class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:(b=r.unref(n))==null?void 0:b.options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value",multiple:r.unref(n).multiple??!1,filter:r.unref(n).filter??!1,"filter-icon":r.unref(n).filterIcon,"filter-placeholder":r.unref(n).filterPlaceholder,"filter-locale":r.unref(n).filterLocale,"filter-match-mode":r.unref(n).filterMatchMode,"auto-option-focus":r.unref(n).autoOptionFocus??!0,"select-on-focus":r.unref(n).selectOnFocus??!1,onChange:l},null,8,["id","modelValue","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","multiple","filter","filter-icon","filter-placeholder","filter-locale","filter-match-mode","auto-option-focus","select-on-focus"])])}}}),Xr=r.defineComponent({__name:"PrimePassword",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.target.value)}function a(o){t==null||t.node.input(o.target.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Password");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(s),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,"medium-regex":r.unref(n).mediumRegex??"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})","strong-regex":r.unref(n).strongRegex??"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})","prompt-label":r.unref(n).promptLabel,"weak-label":r.unref(n).weakLabel,"medium-label":r.unref(n).mediumLabel,"strong-label":r.unref(n).strongLabel,"hide-icon":r.unref(n).hideIcon??"pi pi-eye-slash","show-icon":r.unref(n).showIcon??"pi pi-eye",feedback:r.unref(t).feedback??!1,"toggle-mask":r.unref(t).toggleMask??!1,onInput:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","placeholder","medium-regex","strong-regex","prompt-label","weak-label","medium-label","strong-label","hide-icon","show-icon","feedback","toggle-mask"])])}}}),el=r.defineComponent({__name:"PrimeRating",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Rating");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,stars:r.unref(n).stars??5,cancel:r.unref(n).cancel??!1,"on-icon":r.unref(n).onIcon??"pi pi-star-fill","off-icon":r.unref(n).offIcon??"pi pi-star","cancel-icon":r.unref(n).cancelIcon??"pi pi-ban",onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","stars","cancel","on-icon","off-icon","cancel-icon"])])}}}),tl=r.defineComponent({__name:"PrimeSlider",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(s){t==null||t.node.input(s),t==null||t.handlers.blur(s)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Slider");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,min:r.unref(n).min??0,max:r.unref(n).max??100,step:r.unref(n).step??void 0,range:r.unref(n).range??!1,orientation:r.unref(n).orientation??"horizontal",onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation"])])}}}),nl=r.defineComponent({__name:"PrimeToggleButton",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("ToggleButton");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"on-label":r.unref(n).onLabel??"Yes","off-label":r.unref(n).offLabel??"No","on-icon":r.unref(n).onIcon??"pi pi-check","off-icon":r.unref(n).offIcon??"pi pi-times","icon-pos":r.unref(n).iconPos??"left",onChange:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","on-label","off-label","on-icon","off-icon","icon-pos"])])}}}),il=r.defineComponent({__name:"PrimeSelectButton",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("SelectButton");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:r.unref(n).options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value","option-disabled":r.unref(n).optionDisabled,multiple:r.unref(n).multiple??!1,unselectable:r.unref(n).unselectable??!0,"data-key":r.unref(n).dataKey,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","option-disabled","multiple","unselectable","data-key"])])}}}),rl={key:0,class:"formkit-prime-left"},ll={key:1,class:"formkit-prime-right"},al=r.defineComponent({__name:"PrimeTriStateCheckbox",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("TriStateCheckbox");return r.openBlock(),r.createElementBlock("div",null,[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",rl,r.toDisplayString(r.unref(t).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,onClick:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",ll,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),Qt=B(Zr,{props:["iconRight","iconLeft"]}),Gt=B(Ur,{props:["iconRight","iconLeft"]}),Xt=B(Wr,{props:[]}),en=B(Xr,{props:["feedback","toggleMask"]}),tn=B(Yr,{props:["rows"]}),nn=B(jr,{props:[]}),rn=B(Hr,{props:[]}),ln=B(Nr,{props:[]}),an=B(zr,{props:[]}),sn=B(Qr,{props:[]}),on=B(Gr,{props:[]}),fn=B(Dr,{props:[]}),un=B(tl,{props:[]}),cn=B(el,{props:[]}),pn=B(Tr,{props:[]}),dn=B(Jr,{props:[]}),mn=B(Fr,{props:[]}),bn=B(nl,{props:[]}),yn=B(il,{props:[]}),hn=B(al,{props:[]}),sl={primeInputText:Qt,primeInputNumber:Gt,primeInputMask:Xt,primePassword:en,primeCheckbox:nn,primeInputSwitch:rn,primeTextarea:tn,primeEditor:ln,primeDropdown:an,primeMultiSelect:sn,primeCalendar:fn,primeSlider:un,primeChips:pn,primeKnob:dn,primeRating:cn,primeColorPicker:mn,primeToggleButton:bn,primeListbox:on,primeSelectButton:yn,primeTriStateCheckbox:hn};E.primeCalendarDefinition=fn,E.primeCheckboxDefinition=nn,E.primeChipsDefinition=pn,E.primeColorPickerDefinition=mn,E.primeDropdownDefinition=an,E.primeEditorDefinition=ln,E.primeInputMaskDefinition=Xt,E.primeInputNumberDefinition=Gt,E.primeInputSwitchDefinition=rn,E.primeInputTextDefinition=Qt,E.primeInputs=sl,E.primeKnobDefinition=dn,E.primeListboxDefinition=on,E.primeMultiSelectDefinition=sn,E.primePasswordDefinition=en,E.primeRatingDefinition=cn,E.primeSelectButtonDefinition=yn,E.primeSliderDefinition=un,E.primeTextareaDefinition=tn,E.primeToggleButtonDefinition=bn,E.primeTriStateCheckboxDefinition=hn,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(E,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(E=typeof globalThis<"u"?globalThis:E||self,r(E["formkit-primevue"]={},E.Vue))})(this,function(E,r){"use strict";const gn=["__key","__init","__shim","__original","__index","__prevKey"];function _e(){return Math.random().toString(36).substring(2,15)}function $n(e,i){const t=e instanceof Set?e:new Set(e);return i&&i.forEach(n=>t.add(n)),[...t]}function P(e,i){return Object.prototype.hasOwnProperty.call(e,i)}function fe(e,i,t=!0,n=["__key"]){if(e===i)return!0;if(typeof i=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||i===null||Object.keys(e).length!==Object.keys(i).length)return!1;for(const l of n)if((l in e||l in i)&&e[l]!==i[l])return!1;for(const l in e)if(!(l in i)||e[l]!==i[l]&&!t||t&&!fe(e[l],i[l],t,n))return!1;return!0}return!1}function je(e){return Object.prototype.toString.call(e)==="[object Object]"}function Te(e){return je(e)||Array.isArray(e)}function ne(e){if(je(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const i=e.constructor;if(i===void 0)return!0;const t=i.prototype;return!(je(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function ge(e,i,t=!1,n=!1){if(i===null)return null;const l={};if(typeof i=="string")return i;for(const a in e)if(P(i,a)&&(i[a]!==void 0||!n)){if(t&&Array.isArray(e[a])&&Array.isArray(i[a])){l[a]=e[a].concat(i[a]);continue}if(i[a]===void 0)continue;ne(e[a])&&ne(i[a])?l[a]=ge(e[a],i[a],t,n):l[a]=i[a]}else l[a]=e[a];for(const a in i)!P(l,a)&&i[a]!==void 0&&(l[a]=i[a]);return l}function kn(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const i=e[0];for(let t=1;t<e.length;t++)if(e[t]===i&&(t===1||e[t-1]!=="\\")&&t!==e.length-1)return!1;return!0}function Cn(e){if(!e.length)return"";let i="",t="";for(let n=0;n<e.length;n++){const l=e.charAt(n);(l!=="\\"||t==="\\")&&(i+=l),t=l}return i}function ie(...e){return e.reduce((i,t)=>{const{value:n,name:l,modelValue:a,config:s,plugins:o,...f}=t;return Object.assign(i,f)},{})}function wn(e){const i=[];let t="",n=0,l="",a="";for(let s=0;s<e.length;s++){const o=e.charAt(s);o===l&&a!=="\\"?l="":(o==="'"||o==='"')&&!l&&a!=="\\"?l=o:o==="("&&!l?n++:o===")"&&!l&&n--,o===","&&!l&&n===0?(i.push(t),t=""):(o!==" "||l)&&(t+=o),a=o}return t&&i.push(t),i}function st(e,i){const t={},n=i.filter(a=>a instanceof RegExp),l=new Set(i);for(const a in e)!l.has(a)&&!n.some(s=>s.test(a))&&(t[a]=e[a]);return t}function ot(e,i){const t={},n=i.filter(l=>l instanceof RegExp);return i.forEach(l=>{l instanceof RegExp||(t[l]=e[l])}),Object.keys(e).forEach(l=>{n.some(a=>a.test(l))&&(t[l]=e[l])}),t}function $e(e){return e.replace(/-([a-z0-9])/gi,(i,t)=>t.toUpperCase())}function ft(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,t,n)=>t+"-"+n.toLowerCase()).replace(" ","-").toLowerCase()}function ue(e,i=gn){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let t;Array.isArray(e)?t=e.map(n=>typeof n=="object"?ue(n,i):n):t=Object.keys(e).reduce((n,l)=>(n[l]=typeof e[l]=="object"?ue(e[l],i):e[l],n),{});for(const n of i)n in e&&Object.defineProperty(t,n,{enumerable:!1,value:e[n]});return t}function ee(e){return typeof e=="object"?ue(e):e}function Vn(e,i){if(!e||typeof e!="object")return null;const t=i.split(".");let n=e;for(const l in t){const a=t[l];if(P(n,a)&&(n=n[a]),+l===t.length-1)return n;if(!n||typeof n!="object")return null}return null}function q(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function ce(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Fe(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function ze(){const e=[];let i=0;const t=l=>e.push(l),n=l=>{const a=e[i];return typeof a=="function"?a(l,s=>(i++,n(s===void 0?l:s))):(i=0,l)};return t.dispatch=n,t.unshift=l=>e.unshift(l),t.remove=l=>{const a=e.indexOf(l);a>-1&&e.splice(a,1)},t}function ut(){const e=new Map,i=new Map;let t;const n=(l,a)=>{if(t){t.set(a.name,[l,a]);return}e.has(a.name)&&e.get(a.name).forEach(s=>{(a.origin===l||s.modifiers.includes("deep"))&&s.listener(a)}),a.bubble&&l.bubble(a)};return n.on=(l,a)=>{const[s,...o]=l.split("."),f=a.receipt||_e(),b={modifiers:o,event:s,listener:a,receipt:f};return e.has(s)?e.get(s).push(b):e.set(s,[b]),i.has(f)?i.get(f).push(s):i.set(f,[s]),f},n.off=l=>{var a;i.has(l)&&((a=i.get(l))===null||a===void 0||a.forEach(s=>{const o=e.get(s);Array.isArray(o)&&e.set(s,o.filter(f=>f.receipt!==l))}),i.delete(l))},n.pause=l=>{t||(t=new Map),l&&l.walk(a=>a._e.pause())},n.play=l=>{if(!t)return;const a=t;t=void 0,a.forEach(([s,o])=>n(s,o)),l&&l.walk(s=>s._e.play())},n}function Sn(e,i,t,n,l=!0){return i._e(e,{payload:n,name:t,bubble:l,origin:e}),e}function In(e,i,t){return Ce(e.parent)&&e.parent._e(e.parent,t),e}function Ln(e,i,t,n){return i._e.on(t,n)}function On(e,i,t){return i._e.off(t),e}const Ne=ze();Ne((e,i)=>(e.message||(e.message=`E${e.code}`),i(e)));const We=ze();We((e,i)=>{e.message||(e.message=`W${e.code}`);const t=i(e);return console&&typeof console.warn=="function"&&console.warn(t.message),t});function pe(e,i={}){We.dispatch({code:e,data:i})}function T(e,i={}){throw Error(Ne.dispatch({code:e,data:i}).message)}function G(e,i){const t={blocking:!1,key:_e(),meta:{},type:"state",visible:!0,...e};return i&&t.value&&t.meta.localize!==!1&&(t.value=i.t(t),t.meta.locale=i.config.locale),t}const ct={apply:Bn,set:En,remove:pt,filter:vn,reduce:xn,release:Rn,touch:Pn};function An(e=!1){const i={};let t,n=e,l=[];const a=new Map;let s;const o=new Proxy(i,{get(...f){const[b,_]=f;return _==="buffer"?n:_==="_b"?l:_==="_m"?a:_==="_r"?s:P(ct,_)?ct[_].bind(null,i,o,t):Reflect.get(...f)},set(f,b,_){return b==="_n"?(t=_,s==="__n"&&dt(t,o),!0):b==="_b"?(l=_,!0):b==="buffer"?(n=_,!0):b==="_r"?(s=_,!0):(T(101,t),!1)}});return o}function En(e,i,t,n){if(i.buffer)return i._b.push([[n]]),i;if(e[n.key]!==n){if(typeof n.value=="string"&&n.meta.localize!==!1){const a=n.value;n.value=t.t(n),n.value!==a&&(n.meta.locale=t.props.locale)}const l=`message-${P(e,n.key)?"updated":"added"}`;e[n.key]=Object.freeze(t.hook.message.dispatch(n)),t.emit(l,n)}return i}function Pn(e,i){for(const t in e){const n={...e[t]};i.set(n)}}function pt(e,i,t,n){if(P(e,n)){const l=e[n];delete e[n],t.emit("message-removed",l)}return i.buffer===!0&&(i._b=i._b.filter(l=>(l[0]=l[0].filter(a=>a.key!==n),l[1]||l[0].length))),i}function vn(e,i,t,n,l){for(const a in e){const s=e[a];(!l||s.type===l)&&!n(s)&&pt(e,i,t,a)}}function xn(e,i,t,n,l){for(const a in e){const s=e[a];l=n(l,s)}return l}function Bn(e,i,t,n,l){if(Array.isArray(n)){if(i.buffer){i._b.push([n,l]);return}const a=new Set(n.map(s=>(i.set(s),s.key)));typeof l=="string"?i.filter(s=>s.type!==l||a.has(s.key)):typeof l=="function"&&i.filter(s=>!l(s)||a.has(s.key))}else for(const a in n){const s=t.at(a);s?s.store.apply(n[a],l):Mn(t,i,a,n[a],l)}}function Dn(e,...i){const t=`${e.name}-set`,n=l=>G({key:Fe(l),type:"error",value:l,meta:{source:t,autoClear:!0}});return i.filter(l=>!!l).map(l=>{if(typeof l=="string"&&(l=[l]),Array.isArray(l))return l.map(a=>n(a));{const a={};for(const s in l)Array.isArray(l[s])?a[s]=l[s].map(o=>n(o)):a[s]=[n(l[s])];return a}})}function Mn(e,i,t,n,l){var a;const s=i._m;s.has(t)||s.set(t,[]),i._r||(i._r=dt(e,i)),(a=s.get(t))===null||a===void 0||a.push([n,l])}function dt(e,i){return e.on("child.deep",({payload:t})=>{i._m.forEach((n,l)=>{e.at(l)===t&&(n.forEach(([a,s])=>{t.store.apply(a,s)}),i._m.delete(l))}),i._m.size===0&&i._r&&(e.off(i._r),i._r=void 0)})}function Rn(e,i){i.buffer=!1,i._b.forEach(([t,n])=>i.apply(t,n)),i._b=[]}function jn(){const e={};let i;return{count:(...t)=>Tn(i,e,...t),init(t){i=t,t.on("message-added.deep",bt(e,1)),t.on("message-removed.deep",bt(e,-1))},merge:t=>yt(i,e,t),settled(t){return P(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>yt(i,e,t,!0),value(t){return P(e,t)?e[t].count:0}}}function Tn(e,i,t,n,l=0){if(n=Fn(n||t),!P(i,t)){const a={condition:n,count:0,name:t,node:e,promise:Promise.resolve(),resolve:()=>{}};i[t]=a,l=e.store.reduce((s,o)=>s+a.condition(o)*1,l),e.each(s=>{s.ledger.count(a.name,a.condition),l+=s.ledger.value(a.name)})}return mt(i[t],l).promise}function Fn(e){return typeof e=="function"?e:i=>i.type===e}function mt(e,i){const t=e.count,n=e.count+i;return e.count=n,t===0&&n!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(l=>e.resolve=l)):t!==0&&n===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function bt(e,i){return t=>{for(const n in e){const l=e[n];l.condition(t.payload)&&mt(l,i)}}}function yt(e,i,t,n=!1){for(const l in i){const a=i[l].condition;n||t.ledger.count(l,a);const s=t.ledger.value(l)*(n?-1:1);if(e)do e.ledger.count(l,a,s),e=e.parent;while(e)}}const Ue=new Map,ke=new Map,qe=ut(),zn=[];function Nn(e){e.props.id&&(Ue.set(e.props.id,e),ke.set(e,e.props.id),qe(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Wn(e){if(ke.has(e)){const i=ke.get(e);ke.delete(e),Ue.delete(i),qe(e,{payload:null,name:i,bubble:!1,origin:e})}}function ht(e){return Ue.get(e)}function Un(e,i){zn.push(qe.on(e,i))}function _t(e,i,t){let n=!0;return i in e.config._t?n=!1:e.emit(`config:${i}`,t,!1),i in e.props||(e.emit("prop",{prop:i,value:t}),e.emit(`prop:${i}`,t)),n}function qn(e){const i=document.getElementById(e);if(i instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});i.dispatchEvent(t);return}pe(151,e)}function Kn(e){const i=t=>{for(const n in t.store){const l=t.store[n];l.type==="error"||l.type==="ui"&&n==="incomplete"?t.store.remove(n):l.type==="state"&&t.store.set({...l,value:!1})}};i(e),e.walk(i)}function Hn(e,i){const t=typeof e=="string"?ht(e):e;if(t){const n=a=>ee(a.props.initial)||(a.type==="group"?{}:a.type==="list"?[]:void 0);t._e.pause(t),t.input(ee(i)||n(t),!1),t.walk(a=>a.input(n(a),!1));const l=n(t);return t.input(typeof l=="object"?ee(i)||ce(l):l,!1),t._e.play(t),Kn(t),t.emit("reset",t),t}pe(152,e)}const Zn={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${ft(e)}`]:!0})},gt=Symbol("index"),Ke=Symbol("removed"),He=Symbol("moved"),$t=Symbol("inserted");function Yn(e){return e.type==="list"&&Array.isArray(e._value)}function Ce(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const we=(e,i,t)=>{T(102,[e,t])},Jn={_c:L(hi,we,!1),add:L(fi),addProps:L(oi),address:L(gi,we,!1),at:L($i),bubble:L(In),clearErrors:L(Oi),calm:L(li),config:L(!1),define:L(si),disturb:L(ri),destroy:L(ai),hydrate:L(ii),index:L(yi,bi,!1),input:L(Ct),each:L(pi),emit:L(Sn),find:L(Ci),on:L(Ln),off:L(On),parent:L(!1,ui),plugins:L(!1),remove:L(ci),root:L(Vi,we,!1),reset:L(Li),resetConfig:L(mi),setErrors:L(St),submit:L(Ii),t:L(Si),use:L(Ze),name:L(_i,!1,!1),walk:L(di)};function Qn(){return new Map(Object.entries(Jn))}function L(e,i,t=!0){return{get:e?(n,l)=>t?(...a)=>e(n,l,...a):e(n,l):!1,set:i!==void 0?i:we.bind(null)}}function Gn(){const e=new Map;return new Proxy(e,{get(i,t){return e.has(t)||e.set(t,ze()),e.get(t)}})}let Xn=0,ei=0;function ti(e){var i,t;return((i=e.parent)===null||i===void 0?void 0:i.type)==="list"?gt:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++Xn}`}function kt(e){return e.type==="group"?ce(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?ce(Array.isArray(e.value)?e.value:[]):e.value}function Ct(e,i,t,n=!0){return i._value=ni(e,e.hook.input.dispatch(t)),e.emit("input",i._value),i.isSettled&&e.disturb(),n?(i._tmo&&clearTimeout(i._tmo),i._tmo=setTimeout(Ve,e.props.delay,e,i)):Ve(e,i),i.settled}function ni(e,i){switch(e.type){case"input":break;case"group":(!i||typeof i!="object")&&T(107,[e,i]);break;case"list":Array.isArray(i)||T(108,[e,i]);break}return i}function Ve(e,i,t=!0,n=!0){i._value=i.value=e.hook.commit.dispatch(i._value),e.type!=="input"&&n&&e.hydrate(),e.emit("commit",i.value),t&&e.calm()}function wt(e,{name:i,value:t,from:n}){if(!Object.isFrozen(e._value)){if(Yn(e)){const l=t===Ke?[]:t===He&&typeof n=="number"?e._value.splice(n,1):[t];e._value.splice(i,t===He||n===$t?0:1,...l);return}t!==Ke?e._value[i]=t:delete e._value[i]}}function ii(e,i){const t=i._value;return i.children.forEach(n=>{if(typeof t=="object")if(n.name in t){const l=n.type!=="input"||t[n.name]&&typeof t[n.name]=="object"?ce(t[n.name]):t[n.name];n.input(l,!1)}else(e.type!=="list"||typeof n.name=="number")&&wt(i,{name:n.name,value:n.value}),t.__init||(n.type==="group"?n.input({},!1):n.type==="list"?n.input([],!1):n.input(void 0,!1))}),e}function ri(e,i){var t;return i._d<=0&&(i.isSettled=!1,e.emit("settled",!1,!1),i.settled=new Promise(n=>{i._resolve=n}),e.parent&&((t=e.parent)===null||t===void 0||t.disturb())),i._d++,e}function li(e,i,t){var n;if(t!==void 0&&e.type!=="input")return wt(i,t),Ve(e,i,!0,!1);i._d>0&&i._d--,i._d===0&&(i.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((n=e.parent)===null||n===void 0||n.calm({name:e.name,value:i.value})),i._resolve&&i._resolve(i.value))}function ai(e,i){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&(e.parent.emit("childRemoved",e),e.parent.remove(e)),Wn(e),i._value=i.value=void 0,e.emit("destroyed",e)}function si(e,i,t){i.type=t.type,i.props.definition=ue(t),i.value=i._value=kt({type:e.type,value:i.value}),t.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),i.props.type=t.forceTypeProp),t.family&&(i.props.family=t.family),t.features&&t.features.forEach(n=>n(e)),t.props&&e.addProps(t.props),e.emit("defined",t)}function oi(e,i,t){var n;if(e.props.attrs){const l={...e.props.attrs};e.props._emit=!1;for(const s in l){const o=$e(s);t.includes(o)&&(e.props[o]=l[s],delete l[s])}const a=ee(i._value);e.props.initial=e.type!=="input"?ce(a):a,e.props._emit=!0,e.props.attrs=l,e.props.definition&&(e.props.definition.props=[...((n=e.props.definition)===null||n===void 0?void 0:n.props)||[],...t])}return e.emit("added-props",t),e}function fi(e,i,t,n){if(e.type==="input"&&T(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),i.children.includes(t)||(n!==void 0&&e.type==="list"?(i.children.splice(n,0,t),Array.isArray(e.value)&&e.value.length<i.children.length&&e.disturb().calm({name:n,value:t.value,from:$t})):i.children.push(t),t.isSettled||e.disturb()),t.parent!==e){if(t.parent=e,t.parent!==e)return e.remove(t),t.parent.add(t),e}else t.use(e.plugins);return Ve(e,i,!1),e.ledger.merge(t),e.emit("child",t),e}function ui(e,i,t,n){return Ce(n)?(e.parent&&e.parent!==n&&e.parent.remove(e),i.parent=n,e.resetConfig(),n.children.includes(e)?e.use(n.plugins):n.add(e),!0):n===null?(i.parent=null,!0):!1}function ci(e,i,t){const n=i.children.indexOf(t);if(n!==-1){t.isSettled&&e.disturb(),i.children.splice(n,1);let l=q(t.props.preserve),a=t.parent;for(;l===void 0&&a;)l=q(a.props.preserve),a=a.parent;l?e.calm():e.calm({name:e.type==="list"?n:t.name,value:Ke}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function pi(e,i,t){i.children.forEach(n=>t(n))}function di(e,i,t,n=!1){i.children.forEach(l=>{(t(l)!==!1||!n)&&l.walk(t,n)})}function mi(e,i){const t=e.parent||void 0;i.config=Vt(e.config._t,t),e.walk(n=>n.resetConfig())}function Ze(e,i,t,n=!0,l=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(a=>Ze(e,i,a)),e):(i.plugins.has(t)||(l&&typeof t.library=="function"&&t.library(e),n&&t(e)!==!1&&(i.plugins.add(t),e.children.forEach(a=>a.use(t)))),e)}function bi(e,i,t,n){if(Ce(e.parent)){const l=e.parent.children,a=n>=l.length?l.length-1:n<0?0:n,s=l.indexOf(e);return s===-1?!1:(l.splice(s,1),l.splice(a,0,e),e.parent.children=l,e.parent.type==="list"&&e.parent.disturb().calm({name:a,value:He,from:s}),!0)}return!1}function yi(e){if(e.parent){const i=[...e.parent.children].indexOf(e);return i===-1?e.parent.children.length:i}return-1}function hi(e,i){return i}function _i(e,i){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:i.name!==gt?i.name:e.index}function gi(e,i){return i.parent?i.parent.address.concat([e.name]):[e.name]}function $i(e,i,t){const n=typeof t=="string"?t.split(e.config.delimiter):t;if(!n.length)return;const l=n[0];let a=e.parent;for(a||(String(n[0])===String(e.name)&&n.shift(),a=e),l==="$parent"&&n.shift();a&&n.length;){const s=n.shift();switch(s){case"$root":a=e.root;break;case"$parent":a=a.parent;break;case"$self":a=e;break;default:a=a.children.find(o=>String(o.name)===String(s))||ki(a,s)}}return a||void 0}function ki(e,i){const t=String(i).match(/^(find)\((.*)\)$/);if(t){const[,n,l]=t,a=l.split(",").map(s=>s.trim());switch(n){case"find":return e.find(a[0],a[1]);default:return}}}function Ci(e,i,t,n){return wi(e,t,n)}function wi(e,i,t="name"){const n=typeof t=="string"?a=>a[t]==i:t,l=[e];for(;l.length;){const a=l.shift();if(n(a,i))return a;l.push(...a.children)}}function Vi(e){let i=e;for(;i.parent;)i=i.parent;return i}function Vt(e={},i){let t;return new Proxy(e,{get(...n){const l=n[1];if(l==="_t")return e;const a=Reflect.get(...n);if(a!==void 0)return a;if(i){const s=i.config[l];if(s!==void 0)return s}if(e.rootConfig&&typeof l=="string"){const s=e.rootConfig[l];if(s!==void 0)return s}return l==="delay"&&(t==null?void 0:t.type)==="input"?20:Zn[l]},set(...n){const l=n[1],a=n[2];if(l==="_n")return t=a,e.rootConfig&&e.rootConfig._add(t),!0;if(l==="_rmn")return e.rootConfig&&e.rootConfig._rm(t),t=void 0,!0;if(!fe(e[l],a,!1)){const s=Reflect.set(...n);return t&&(t.emit(`config:${l}`,a,!1),_t(t,l,a),t.walk(o=>_t(o,l,a),!0)),s}return!0}})}function Si(e,i,t,n="ui"){const l=typeof t=="string"?{key:t,value:t,type:n}:t,a=e.hook.text.dispatch(l);return e.emit("text",a,!1),a.value}function Ii(e){const i=e.name;do{if(e.props.isForm===!0)break;e.parent||T(106,i),e=e.parent}while(e);e.props.id&&qn(e.props.id)}function Li(e,i,t){return Hn(e,t)}function St(e,i,t,n){const l=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:t,childErrors:n});return Dn(e,a.localErrors,a.childErrors).forEach(s=>{e.store.apply(s,o=>o.meta.source===l)}),e}function Oi(e,i,t=!0,n){return St(e,i,[]),t&&(n=n||`${e.name}-set`,e.walk(l=>{l.store.filter(a=>!(a.type==="error"&&a.meta&&a.meta.source===n))})),e}function Ai(e){return P(e.props,"id")||(e.props.id=`input_${ei++}`),e}function Ei(e){const i={initial:typeof e=="object"?ee(e):e};let t,n=!0;return new Proxy(i,{get(...l){const[a,s]=l;if(P(i,s))return Reflect.get(...l);if(t&&typeof s=="string"&&t.config[s]!==void 0)return t.config[s]},set(l,a,s,o){if(a==="_n")return t=s,!0;if(a==="_emit")return n=s,!0;const{prop:f,value:b}=t.hook.prop.dispatch({prop:a,value:s});if(!fe(i[f],b,!1)||typeof b=="object"){const _=Reflect.set(l,f,b,o);return n&&(t.emit("prop",{prop:f,value:b}),typeof f=="string"&&t.emit(`prop:${f}`,b)),_}return!0}})}function Pi(e,i){if(e.props.definition)return e.define(e.props.definition);for(const t of i){if(e.props.definition)return;typeof t.library=="function"&&t.library(e)}}function vi(e){const i=kt(e),t=Vt(e.config||{},e.parent);return{_d:0,_e:ut(),_resolve:!1,_tmo:!1,_value:i,children:$n(e.children||[]),config:t,hook:Gn(),isCreated:!1,isSettled:!0,ledger:jn(),name:ti(e),parent:e.parent||null,plugins:new Set,props:Ei(i),settled:Promise.resolve(i),store:An(!0),traps:Qn(),type:e.type||"input",value:i}}function xi(e,i){var t;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,i.props&&Object.assign(e.props,i.props),e.props._emit=!0,Pi(e,new Set([...i.plugins||[],...e.parent?e.parent.plugins:[]])),i.plugins)for(const n of i.plugins)Ze(e,e._c,n,!0,!1);return Ai(e),e.each(n=>e.add(n)),e.parent&&e.parent.add(e,i.index),e.type==="input"&&e.children.length&&T(100,e),Ct(e,e._c,e._value,!1),e.store.release(),!((t=i.props)===null||t===void 0)&&t.id&&Nn(e),e.emit("created",e),e.isCreated=!0,e}function Bi(e){const i=e||{},t=vi(i),n=new Proxy(t,{get(...l){const[,a]=l;if(a==="__FKNode__")return!0;const s=t.traps.get(a);return s&&s.get?s.get(n,t):Reflect.get(...l)},set(...l){const[,a,s]=l,o=t.traps.get(a);return o&&o.set?o.set(n,t,a,s):Reflect.set(...l)}});return xi(n,i)}function Ye(e){return typeof e!="string"&&P(e,"$el")}function Je(e){return typeof e!="string"&&P(e,"$cmp")}function re(e){return!e||typeof e=="string"?!1:P(e,"if")&&P(e,"then")}function Di(e){return typeof e!="string"&&"$formkit"in e}function Mi(e){if(typeof e=="string")return{$el:"text",children:e};if(Di(e)){const{$formkit:i,for:t,if:n,children:l,bind:a,...s}=e;return Object.assign({$cmp:"FormKit",props:{...s,type:i}},n?{if:n}:{},t?{for:t}:{},l?{children:l}:{},a?{bind:a}:{})}return e}function N(e){let i;const t=new Set,n=function(u,c){return typeof u=="function"?u(c):u},l=[{"&&":(p,u,c)=>n(p,c)&&n(u,c),"||":(p,u,c)=>n(p,c)||n(u,c)},{"===":(p,u,c)=>n(p,c)===n(u,c),"!==":(p,u,c)=>n(p,c)!==n(u,c),"==":(p,u,c)=>n(p,c)==n(u,c),"!=":(p,u,c)=>n(p,c)!=n(u,c),">=":(p,u,c)=>n(p,c)>=n(u,c),"<=":(p,u,c)=>n(p,c)<=n(u,c),">":(p,u,c)=>n(p,c)>n(u,c),"<":(p,u,c)=>n(p,c)<n(u,c)},{"+":(p,u,c)=>n(p,c)+n(u,c),"-":(p,u,c)=>n(p,c)-n(u,c)},{"*":(p,u,c)=>n(p,c)*n(u,c),"/":(p,u,c)=>n(p,c)/n(u,c),"%":(p,u,c)=>n(p,c)%n(u,c)}],a=l.reduce((p,u)=>p.concat(Object.keys(u)),[]),s=new Set(a.map(p=>p.charAt(0)));function o(p,u,c,k){const V=p.filter(m=>m.startsWith(u));return V.length?V.find(m=>k.length>=c+m.length&&k.substring(c,c+m.length)===m?m:!1):!1}function f(p,u,c=1){let k=c?u.substring(p+1).trim():u.substring(0,p).trim();if(!k.length)return-1;if(!c){const m=k.split("").reverse(),d=m.findIndex(y=>s.has(y));k=m.slice(d).join("")}const V=k[0];return l.findIndex(m=>{const d=Object.keys(m);return!!o(d,V,0,k)})}function b(p,u){let c="";const k=u.length;let V=0;for(let m=p;m<k;m++){const d=u.charAt(m);if(d==="(")V++;else if(d===")")V--;else if(V===0&&d===" ")continue;if(V===0&&o(a,d,m,u))return[c,m-1];c+=d}return[c,u.length-1]}function _(p,u=0){const c=l[u],k=p.length,V=Object.keys(c);let m=0,d=!1,y=null,$="",I=null,A,v="",O="",D="",R="",U=0;const F=(x,z)=>{x?D+=z:$+=z};for(let x=0;x<k;x++)if(v=O,O=p.charAt(x),(O==="'"||O==='"')&&v!=="\\"&&(m===0&&!d||m&&!R)){m?R=O:d=O,F(m,O);continue}else if(d&&(O!==d||v==="\\")||R&&(O!==R||v==="\\")){F(m,O);continue}else if(d===O){d=!1,F(m,O);continue}else if(R===O){R=!1,F(m,O);continue}else{if(O===" ")continue;if(O==="(")m===0?U=x:D+=O,m++;else if(O===")")if(m--,m===0){const z=typeof $=="string"&&$.startsWith("$")?$:void 0,_n=z&&p.charAt(x+1)===".";let ye="";_n&&([ye,x]=b(x+2,p));const Re=y?u:f(U,p,0),he=f(x,p);Re===-1&&he===-1?$=g(D,-1,z,ye):y&&(Re>=he||he===-1)&&u===Re?(I=y.bind(null,g(D,-1,z,ye)),y=null,$=""):he>Re&&u===he?$=g(D,-1,z,ye):$+=`(${D})${_n?`.${ye}`:""}`,D=""}else D+=O;else if(m===0&&(A=o(V,O,x,p))){x===0&&T(103,[A,p]),x+=A.length-1,x===p.length-1&&T(104,[A,p]),y?$&&(I=y.bind(null,g($,u)),y=c[A].bind(null,I),$=""):I?(y=c[A].bind(null,g(I,u)),I=null):(y=c[A].bind(null,g($,u)),$="");continue}else F(m,O)}return $&&y&&(y=y.bind(null,g($,u))),y=!y&&I?I:y,!y&&$&&(y=(x,z)=>typeof x=="function"?x(z):x,y=y.bind(null,g($,u))),!y&&!$&&T(105,p),y}function g(p,u,c,k){if(c){const V=g(c,l.length);let m,d=k?N(`$${k}`):!1;if(typeof V=="function"){const y=wn(String(p)).map($=>g($,-1));return $=>{const I=V($);return typeof I!="function"?(pe(150,c),I):(m=I(...y.map(A=>typeof A=="function"?A($):A)),d&&(d=d.provide(A=>{const v=i(A);return A.reduce((D,R)=>{if(R===k||(k==null?void 0:k.startsWith(`${R}(`))){const F=Vn(m,R);D[R]=()=>F}else D[R]=v[R];return D},{})})),d?d():m)}}}else if(typeof p=="string"){if(p==="true")return!0;if(p==="false")return!1;if(p==="undefined")return;if(kn(p))return Cn(p.substring(1,p.length-1));if(!isNaN(+p))return Number(p);if(u<l.length-1)return _(p,u+1);if(p.startsWith("$")){const V=p.substring(1);return t.add(V),function(d){return V in d?d[V]():void 0}}return p}return p}const h=_(e.startsWith("$:")?e.substring(2):e),C=Array.from(t);function S(p){return i=p,Object.assign(h.bind(null,p(C)),{provide:S})}return Object.assign(h,{provide:S})}const It="0.16.5";function Ri(e){let i=1;return Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?{label:String(t),value:String(t)}:(typeof t=="object"&&"value"in t&&typeof t.value!="string"&&Object.assign(t,{value:`__mask_${i++}`,__original:t.value}),t)):Object.keys(e).map(t=>({label:e[t],value:t}))}function le(e,i){if(Array.isArray(e)){for(const t of e)if(i==t.value)return"__original"in t?t.__original:t.value}return i}function ae(e,i){return e===null&&i===void 0||e===void 0&&i===null?!1:e==i?!0:ne(e)&&ne(i)?fe(e,i):!1}function Qe(e){e.hook.prop((i,t)=>(i.prop==="options"&&(typeof i.value=="function"?(e.props.optionsLoader=i.value,i.value=[]):i.value=Ri(i.value)),t(i)))}const X=w("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}),!0),Y=w("inner","div"),se=w("wrapper","div"),de=w("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),J=w("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),Q=w("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),K=w("prefix",null),H=w("suffix",null),Z=w("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),Lt=w("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),Se=w("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),Ie=w("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",name:"$node.props.altName || $node.name",disabled:"$option.attrs.disabled || $disabled",onInput:"$handlers.toggleChecked",checked:"$fns.eq($_value, $onValue)",onBlur:"$handlers.blur",value:"$: true",id:"$id","aria-describedby":{if:"$options.length",then:{if:"$option.help",then:'$: "help-" + $option.attrs.id',else:void 0},else:{if:"$help",then:'$: "help-" + $id',else:void 0}}}})),Ot=w("legend",()=>({$el:"legend",if:"$label"})),At=w("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled"}})),Et=w("options","ul"),Le=w("wrapper",()=>({$el:"label",attrs:{"data-disabled":{if:"$options.length",then:void 0,else:"$disabled || undefined"},"data-checked":{if:"$options == undefined",then:"$fns.eq($_value, $onValue) || undefined",else:"$fns.isChecked($option.value) || undefined"}}})),Pt=w("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),Oe=w("label","span"),ji=w("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Ti=w("default",null),Fi=w("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy"}})),zi=w("fileItem",()=>({$el:"li",for:["file","$value"]})),Ni=w("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":{if:"$value.length > 1",then:"true"}}})),Wi=w("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),vt=w("fileRemove",()=>({$el:"button",attrs:{onClick:"$handlers.resetFiles"}})),Ui=w("noFiles",()=>({$el:"span",if:"$value.length == 0"})),qi=w("form",()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}}),!0),Ki=w("actions",()=>({$el:"div",if:"$actions"})),Hi=w("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",disabled:"$disabled",label:"$submitLabel"}})),xt=w("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"}})),Bt=w("wrapper",null,!0),Zi=w("input",()=>({$el:"select",bind:"$attrs",attrs:{id:"$id","data-placeholder":"$fns.showPlaceholder($_value, $placeholder)",disabled:"$disabled",class:"$classes.input",name:"$node.name",onChange:"$handlers.onChange",onInput:"$handlers.selectInput",onBlur:"$handlers.blur","aria-describedby":"$describedBy"}})),Yi=w("option",()=>({$el:"option",for:["option","$options"],bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}})),Ji=()=>({$el:null,if:"$options.length",for:["option","$options"],children:"$slots.option"}),Qi=w("input",()=>({$el:"textarea",bind:"$attrs",attrs:{disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"},children:"$initialValue"})),M=(e,i)=>w(`${e}Icon`,()=>{const t=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$${e}Icon && $${t}`,$el:`${i||"span"}`,attrs:{class:`$classes.${e}Icon + " formkit-icon"`,innerHTML:`$${t}`,onClick:`$handlers.iconClick(${e})`,for:{if:`${i==="label"}`,then:"$id"}}}})();function Dt(e){return function(i,t){return i.prop==="options"&&Array.isArray(i.value)&&(i.value=i.value.map(n=>{var l;return!((l=n.attrs)===null||l===void 0)&&l.id?n:ge(n,{attrs:{id:`${e.name}-option-${Fe(String(n.value))}`}})}),e.props.type==="checkbox"&&!Array.isArray(e.value)&&(e.isCreated?e.input([],!1):e.on("created",()=>{Array.isArray(e.value)||e.input([],!1)}))),t(i)}}function Gi(e,i){const t=i.target;if(t instanceof HTMLInputElement){const n=Array.isArray(e.props.options)?le(e.props.options,t.value):t.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(l=>ae(n,l))?e.input(e._value.filter(l=>!ae(n,l))):e.input([...e._value,n]):e.input([n]):t.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function Xi(e,i){var t,n;return(t=e.context)===null||t===void 0||t.value,(n=e.context)===null||n===void 0||n._value,Array.isArray(e._value)?e._value.some(l=>ae(le(e.props.options,i),l)):!1}function er(e){e.on("created",()=>{var i,t;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=Gi.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=Xi.bind(null,e)),P(e.props,"onValue")||(e.props.onValue=!0),P(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(Dt(e))}function Ae(e){e.on("created",()=>{e.props.disabled=q(e.props.disabled)}),e.hook.prop(({prop:i,value:t},n)=>(t=i==="disabled"?q(t):t,n({prop:i,value:t}))),e.on("prop:disabled",({payload:i})=>{e.config.disabled=q(i)}),e.on("created",()=>{e.config.disabled=q(e.props.disabled)})}function Ee(e,i){return t=>{t.store.set(G({key:e,type:"ui",value:i||e,meta:{localize:!0,i18nArgs:[t]}}))}}const Mt=typeof window<"u";function Rt(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function jt(e,i){i.target instanceof HTMLInputElement?e==="dragover"&&i.target.setAttribute("data-file-hover","true"):i.preventDefault(),e==="drop"&&Rt(i)}function tr(e){Ee("noFiles","Select file")(e),Ee("removeAll","Remove all")(e),Ee("remove")(e),Mt&&(window._FormKit_File_Drop||(window.addEventListener("dragover",jt.bind(null,"dragover")),window.addEventListener("drop",jt.bind(null,"drop")),window.addEventListener("dragleave",Rt),window._FormKit_File_Drop=!0)),e.hook.input((i,t)=>t(Array.isArray(i)?i:[])),e.on("created",()=>{Array.isArray(e.value)||e.input([],!1),e.context&&(e.context.handlers.resetFiles=i=>{if(i.preventDefault(),e.input([]),e.props.id&&Mt){const t=document.getElementById(e.props.id);t&&(t.value="")}},e.context.handlers.files=i=>{var t,n;const l=[];if(i.target instanceof HTMLInputElement&&i.target.files){for(let a=0;a<i.target.files.length;a++){let s;(s=i.target.files.item(a))&&l.push({name:s.name,file:s})}e.input(l)}e.context&&(e.context.files=l),typeof((t=e.props.attrs)===null||t===void 0?void 0:t.onChange)=="function"&&((n=e.props.attrs)===null||n===void 0||n.onChange(i))})})}async function nr(e,i){i.preventDefault(),await e.settled;const t=n=>n.store.set(G({key:"submitted",value:!0,visible:!1}));if(e.walk(t),t(e),typeof e.props.onSubmitRaw=="function"&&e.props.onSubmitRaw(i,e),e.ledger.value("blocking"))typeof e.props.onSubmitInvalid=="function"&&e.props.onSubmitInvalid(e),e.props.incompleteMessage!==!1&&e.store.set(G({blocking:!1,key:"incomplete",meta:{localize:e.props.incompleteMessage===void 0,i18nArgs:[{node:e}],showAsMessage:!0},type:"ui",value:e.props.incompleteMessage||"Form incomplete."}));else if(typeof e.props.onSubmit=="function"){const n=e.props.onSubmit(e.hook.submit.dispatch(ue(e.value)),e);if(n instanceof Promise){const l=e.props.disabled===void 0&&e.props.submitBehavior!=="live";l&&(e.props.disabled=!0),e.store.set(G({key:"loading",value:!0,visible:!1})),await n,l&&(e.props.disabled=!1),e.store.remove("loading")}}else i.target instanceof HTMLFormElement&&i.target.submit()}function ir(e){e.props.isForm=!0,e.on("created",()=>{var i;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.submit=nr.bind(null,e)),P(e.props,"actions")||(e.props.actions=!0)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function rr(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function lr(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function ar(e,i){i.target instanceof HTMLInputElement&&e.input(le(e.props.options,i.target.value))}function sr(e,i){var t,n;return(t=e.context)===null||t===void 0||t.value,(n=e.context)===null||n===void 0||n._value,ae(le(e.props.options,i),e._value)}function or(e){e.on("created",()=>{var i,t;Array.isArray(e.props.options)||pe(350,e),!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=ar.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=sr.bind(null,e))}),e.hook.prop(Dt(e))}function fr(e,i){e.context&&e.context.value;const t="__original"in i?i.__original:i.value;function n(){return!e.props.options.some(l=>("__original"in l?l.__original:l.value)===null)}return Array.isArray(e._value)?e._value.some(l=>ae(l,t)):(e._value===void 0||e._value===null&&n())&&i.attrs&&i.attrs["data-is-placeholder"]?!0:ae(t,e._value)}async function ur(e,i){var t;typeof((t=e.props.attrs)===null||t===void 0?void 0:t.onChange)=="function"&&(await new Promise(n=>setTimeout(n,0)),await e.settled,e.props.attrs.onChange(i))}function cr(e,i){const t=i.target,n=t.hasAttribute("multiple")?Array.from(t.selectedOptions).map(l=>le(e.props.options,l.value)):le(e.props.options,t.value);e.input(n)}function Tt(e,i){return e.some(t=>t.attrs&&t.attrs["data-is-placeholder"])?e:[{label:i,value:"",attrs:{hidden:!0,disabled:!0,"data-is-placeholder":"true"}},...e]}function pr(e){e.on("created",()=>{var i,t,n;const l=q((i=e.props.attrs)===null||i===void 0?void 0:i.multiple);!l&&e.props.placeholder&&Array.isArray(e.props.options)&&(e.hook.prop(({prop:a,value:s},o)=>(a==="options"&&(s=Tt(s,e.props.placeholder)),o({prop:a,value:s}))),e.props.options=Tt(e.props.options,e.props.placeholder)),l?e.value===void 0&&e.input([],!1):e.context&&!e.context.options&&(e.props.attrs=Object.assign({},e.props.attrs,{value:e._value}),e.on("input",({payload:a})=>{e.props.attrs=Object.assign({},e.props.attrs,{value:a})})),!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.selectInput=cr.bind(null,e),e.context.handlers.onChange=ur.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isSelected=fr.bind(null,e),e.context.fns.showPlaceholder=(a,s)=>{if(!Array.isArray(e.props.options))return!1;const o=e.props.options.some(f=>{if(f.attrs&&"data-is-placeholder"in f.attrs)return!1;const b="__original"in f?f.__original:f.value;return fe(a,b)});return s&&!o?!0:void 0})}),e.hook.input((i,t)=>{var n,l,a;return!e.props.placeholder&&i===void 0&&Array.isArray((n=e.props)===null||n===void 0?void 0:n.options)&&e.props.options.length&&!q((a=(l=e.props)===null||l===void 0?void 0:l.attrs)===null||a===void 0?void 0:a.multiple)&&(i="__original"in e.props.options[0]?e.props.options[0].__original:e.props.options[0].value),t(i)})}function oe(e,i){return t=>{t.props[`${e}Icon`]===void 0&&(t.props[`${e}Icon`]=`default:${i}`)}}function Pe(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function Ge(e){return!!(re(e)&&e.if&&e.if.startsWith("$slots.")&&typeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function me(e,i={}){return typeof e=="string"?Pe(i)||typeof i=="string"?i:e:Array.isArray(e)?Pe(i)?i:e:ge(e,i)}function dr(e){return X(se(de("$label"),Y(K(),e(),H())),Z("$help"),J(Q("$message.value")))}function w(e,i,t=!1){return(...n)=>{const l=a=>{const s=!i||typeof i=="string"?{$el:i}:i();return(Ye(s)||Je(s))&&(s.meta||(s.meta={section:e}),n.length&&!s.children&&(s.children=[...n.map(o=>typeof o=="string"?o:o(a))]),Ye(s)&&(s.attrs={class:`$classes.${e}`,...s.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in a?me(s,a[e]):s}};return l._s=e,t?Ft(l):l}}function Ft(e){return i=>[e(i)]}function W(e,i,t){const n=l=>{const a=i(l);if(t||Pe(a)&&"if"in a||Ge(a)){const s={if:e,then:a};return t&&(s.else=t(l)),s}else Ge(a)?Object.assign(a.else,{if:e}):Pe(a)&&Object.assign(a,{if:e});return a};return n._s=_e(),n}function ve(e,i){const t=n=>{const l=e({});return Ge(l)?(Array.isArray(l.else)||(l.else=me(me(l.else,i),e._s?n[e._s]:{})),l):me(me(l,i),e._s?n[e._s]:{})};return t._s=e._s,t}function mr(e){return Ft(e)}X(J(Q("$message.value")),se(ji(M("prefix"),K(),Ti("$label || $ui.submit.value"),H(),M("suffix"))),Z("$help")),Ee("submit"),X(W("$options == undefined",Le(Y(K(),Ie(),Se(M("decorator")),H()),ve(Oe("$label"),{if:"$label"})),Lt(Ot("$label"),Z("$help"),Et(At(Le(Y(K(),ve(Ie(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Se(M("decorator")),H()),ve(Oe("$option.label"),{if:"$option.label"})),Pt("$option.help"))))),W("$options == undefined && $help",Z("$help")),J(Q("$message.value"))),oe("decorator","checkboxDecorator"),X(se(de("$label"),Y(M("prefix","label"),K(),Fi(),Ni(zi(M("fileItem"),Wi("$file.name"),W("$value.length === 1",vt(M("fileRemove"),"$ui.remove.value")))),W("$value.length > 1",vt("$ui.removeAll.value")),Ui(M("noFiles"),"$ui.noFiles.value"),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),oe("fileItem","fileItem"),oe("fileRemove","fileRemove"),oe("noFiles","noFiles"),qi("$slots.default",J(Q("$message.value")),Ki(Hi())),Bt("$slots.default"),mr(xt()),Bt("$slots.default"),X(W("$options == undefined",Le(Y(K(),Ie(),Se(M("decorator")),H()),W("$label",Oe("$label"))),Lt(Ot("$label"),Z("$help"),Et(At(Le(Y(K(),ve(Ie(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Se(M("decorator")),H()),W("$option.label",Oe("$option.label"))),Pt("$option.help"))))),W("$options === undefined && $help",Z("$help")),J(Q("$message.value"))),oe("decorator","radioDecorator"),X(se(de("$label"),Y(M("prefix"),K(),Zi(W("$slots.default",()=>"$slots.default",W("$slots.option",Ji,Yi("$option.label")))),W("$attrs.multiple !== undefined",()=>"",M("select")),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),oe("select","select"),X(se(de("$label"),Y(M("prefix","label"),K(),Qi(),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),X(se(de("$label"),Y(M("prefix","label"),K(),xt(),H(),M("suffix"))),Z("$help"),J(Q("$message.value"))),G({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let xe;const br=new Promise(e=>{}),Be=typeof window<"u"&&typeof fetch<"u";xe=Be?getComputedStyle(document.documentElement):void 0;const be={},Xe={};function et(e,i){return t=>{if(typeof t=="boolean")return;if(t.startsWith("<svg"))return t;if(typeof t!="string")return;const n=t.startsWith("default:");t=n?t.split(":")[1]:t;const l=t in be;let a;if(l)return be[t];if(!Xe[t]){if(a=yr(t),a=Be&&typeof a>"u"?Promise.resolve(a):a,a instanceof Promise)Xe[t]=a.then(s=>!s&&typeof t=="string"&&!n?a=typeof e=="function"?e(t):_r(t,i):s).then(s=>(typeof t=="string"&&(be[n?`default:${t}`:t]=s),s));else if(typeof a=="string")return be[n?`default:${t}`:t]=a,a}return Xe[t]}}function yr(e){if(Be)return br.then(()=>hr(e))}function hr(e){const i=xe==null?void 0:xe.getPropertyValue(`--fk-icon-${e}`);if(i){const t=atob(i);if(t.startsWith("<svg"))return be[e]=t,t}}function _r(e,i){const t=It.startsWith("__")?"latest":It,n=typeof i=="function"?i(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;if(Be)return fetch(`${n}`).then(async l=>{const a=await l.text();if(a.startsWith("<svg"))return a}).catch(l=>{console.error(l)})}let tt=!1;const zt={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,i]})=>`You cannot directly assign node.${i} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,i]})=>`Schema expressions cannot end with an operator (${e} in "${i}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,i]})=>`Cannot set ${e.name} to non object value: ${i}`,108:({data:[e,i]})=>`Cannot set ${e.name} to non array value: ${i}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},Nt={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`};tt||Ne((e,i)=>{if(e.code in zt){const t=zt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),tt||We((e,i)=>{if(e.code in Nt){const t=Nt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),tt=!0;const nt={};let j;const te=new Map,gr="__raw__",$r=/[a-zA-Z0-9\-][cC]lass$/;function kr(e,i){const t=r.ref(null);if(e==="get"){const l={};return t.value=Cr.bind(null,l),t}const n=e.split(".");return r.watchEffect(()=>{t.value=it(r.isRef(i)?i.value:i,n)}),t}function it(e,i){if(Array.isArray(e)){for(const l of e){const a=l!==!1&&it(l,i);if(a!==void 0)return a}return}let t,n=e;for(const l in i){const a=i[l];if(typeof n!="object"||n===null){t=void 0;break}const s=n[a];if(Number(l)===i.length-1&&s!==void 0){t=typeof s=="function"?s.bind(n):s;break}n=s}return t}function Cr(e,i){if(typeof i!="string")return pe(650);if(i in e||(e[i]=r.ref(void 0)),e[i].value===void 0){e[i].value=null;const t=ht(i);t&&(e[i].value=t.context),Un(i,({payload:n})=>{e[i].value=Ce(n)?n.context:n})}return e[i].value}function Wt(e,i){function t(g,h){const C=_(N(h.if),{if:!0}),S=f(g,h.then),p=h.else?f(g,h.else):null;return[C,S,p]}function n(g,h){var C,S;const p=_(N(g.if));let u=()=>h,c=()=>h;return typeof g.then=="object"?c=l(g.then,void 0):typeof g.then=="string"&&(!((C=g.then)===null||C===void 0)&&C.startsWith("$"))?c=_(N(g.then)):c=()=>g.then,P(g,"else")&&(typeof g.else=="object"?u=l(g.else):typeof g.else=="string"&&(!((S=g.else)===null||S===void 0)&&S.startsWith("$"))?u=_(N(g.else)):u=()=>g.else),()=>p()?c():u()}function l(g,h,C={}){const S=new Set(Object.keys(g||{})),p=h?_(N(h)):()=>({}),u=[c=>{const k=p();for(const V in k)S.has(V)||(c[V]=k[V])}];if(g){if(re(g))return n(g,C);for(let c in g){const k=g[c];let V;const m=typeof k=="string";c.startsWith(gr)?(c=c.substring(7),V=()=>k):m&&k.startsWith("$")&&k.length>1&&!(k.startsWith("$reset")&&$r.test(c))?V=_(N(k)):typeof k=="object"&&re(k)?V=n(k,void 0):typeof k=="object"&&ne(k)?V=l(k):V=()=>k,u.push(d=>{d[c]=V()})}}return()=>{const c=Array.isArray(g)?[]:{};return u.forEach(k=>k(c)),c}}function a(g,h){let C=null,S=()=>null,p=!1,u=null,c=null,k=null,V=!1;const m=Mi(h);if(Ye(m)?(C=m.$el,S=m.$el!=="text"?l(m.attrs,m.bind):()=>null):Je(m)?(typeof m.$cmp=="string"?P(g,m.$cmp)?C=g[m.$cmp]:(C=m.$cmp,V=!0):C=m.$cmp,S=l(m.props,m.bind)):re(m)&&([p,u,c]=t(g,m)),!re(m)&&"if"in m?p=_(N(m.if)):!re(m)&&C===null&&(p=()=>!0),"children"in m&&m.children)if(typeof m.children=="string")if(m.children.startsWith("$slots."))C=C==="text"?"slot":C,u=_(N(m.children));else if(m.children.startsWith("$")&&m.children.length>1){const d=_(N(m.children));u=()=>String(d())}else u=()=>String(m.children);else if(Array.isArray(m.children))u=f(g,m.children);else{const[d,y,$]=t(g,m.children);u=I=>d&&d()?y&&y(I):$&&$(I)}if(Je(m))if(u){const d=u;u=y=>({default($,I){var A,v,O,D;const R=j;I&&(j=I),$&&((A=te.get(j))===null||A===void 0||A.unshift($)),y&&((v=te.get(j))===null||v===void 0||v.unshift(y));const U=d(y);return $&&((O=te.get(j))===null||O===void 0||O.shift()),y&&((D=te.get(j))===null||D===void 0||D.shift()),j=R,U}}),u.slot=!0}else u=()=>({});if("for"in m&&m.for){const d=m.for.length===3?m.for[2]:m.for[1];k=[typeof d=="string"&&d.startsWith("$")?_(N(d)):()=>d,m.for[0],m.for.length===3?String(m.for[1]):null]}return[p,C,S,u,c,k,V]}function s(g,h){const C=g(h),S=j;return Object.keys(C).reduce((p,u)=>{const c=C&&C[u];return p[u]=k=>c&&c(k,S)||null,p},{})}function o(g,h){const[C,S,p,u,c,k,V]=a(g,h);let m=d=>{if(C&&S===null&&u)return C()?u(d):c&&c(d);if(S&&(!C||C())){if(S==="text"&&u)return r.createTextVNode(String(u()));if(S==="slot"&&u)return u(d);const y=V?r.resolveComponent(S):S,$=u!=null&&u.slot?s(u,d):null;return r.h(y,p(),$||(u?u(d):[]))}return typeof c=="function"?c(d):c};if(k){const d=m,[y,$,I]=k;m=()=>{const A=y(),v=isNaN(A)?A:Array(Number(A)).fill(0).map((U,F)=>F),O=[];if(typeof v!="object")return null;const D=te.get(j)||[],R=Array.isArray(v);for(const U in v){if(R&&U in Array.prototype)continue;const F=Object.defineProperty({...D.reduce((x,z)=>x.__idata?{...x,...z}:z,{}),[$]:v[U],...I!==null?{[I]:R?Number(U):U}:{}},"__idata",{enumerable:!1,value:!0});D.unshift(F),O.push(d.bind(null,F)()),D.shift()}return O}}return m}function f(g,h){if(Array.isArray(h)){const S=h.map(o.bind(null,g));return p=>S.map(u=>u(p))}const C=o(g,h);return S=>C(S)}const b=[];function _(g,h={}){const C={};return b.push((S,p)=>{C[p]=g.provide(u=>S(u,h))}),()=>C[j]()}return function(h,C){const S=JSON.stringify(i),[p,u]=P(nt,S)?nt[S]:[f(e,i),b];return nt[S]=[p,u],u.forEach(c=>{c(h,C)}),()=>(j=C,p())}}function Ut(e,i){const t=te.get(j)||[];let n;return t.length&&(n=it(t,e.split("."))),n===void 0?i:n}function wr(e,i){return new Proxy(e,{get(...t){let n;const l=t[1];if(typeof l=="string"){const a=j;j=i,n=Ut(l,void 0),j=a}return n!==void 0?n:Reflect.get(...t)}})}function qt(e,i,t){return e((n,l={})=>n.reduce((a,s)=>{if(s.startsWith("slots.")){const o=s.substring(6),f=()=>i.slots&&P(i.slots,o)&&typeof i.slots[o]=="function";if(l.if)a[s]=f;else if(i.slots){const b=wr(i,t);a[s]=()=>f()?i.slots[o](b):null}}else{const o=kr(s,i);a[s]=()=>Ut(s,o.value)}return a},{}),t)}let Kt=0;const Ht=r.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,i){const t=r.getCurrentInstance();let n=Symbol(String(Kt++));te.set(n,[]);let l=Wt(e.library,e.schema),a,s;return r.watch(()=>e.schema,(o,f)=>{var b;n=Symbol(String(Kt++)),l=Wt(e.library,e.schema),a=qt(l,s,n),o===f&&((b=t==null?void 0:t.proxy)===null||b===void 0?void 0:b.$forceUpdate)()},{deep:!0}),r.watchEffect(()=>{s=Object.assign(r.reactive(e.data),{slots:i.slots}),a=qt(l,s,n)}),()=>a()}}),Vr={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},De=Symbol("FormKitParent");r.defineComponent({props:Vr,emits:{input:(e,i)=>!0,inputRaw:(e,i)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,i)=>!0,submitRaw:(e,i)=>!0,submitInvalid:e=>!0},inheritAttrs:!1,setup(e,i){const t=Ar(e,i);if(t.props.definition||T(600,t),t.props.definition.component)return()=>{var s;return r.h((s=t.props.definition)===null||s===void 0?void 0:s.component,{context:t.context},{...i.slots})};const n=r.ref([]),l=()=>{var s,o;const f=(o=(s=t.props)===null||s===void 0?void 0:s.definition)===null||o===void 0?void 0:o.schema;f||T(601,t),n.value=typeof f=="function"?f({...e.sectionsSchema}):f};l(),t.on("schema",l),i.emit("node",t);const a=t.props.definition.library;return i.expose({node:t}),()=>r.h(Ht,{schema:n.value,data:t.context,library:a},{...i.slots})}});const Zt=Symbol.for("FormKitOptions"),rt=Symbol();function Sr(e,i){const t={},n=s=>{for(const o of s)o.__str in t&&t[o.__str](),t[o.__str]=r.watch(Lr.bind(null,e,o),a.bind(null,o),{deep:!1})},a=Ir(e,i,n,s=>{if(s.length)for(const o in t)`${o}`.startsWith(`${s.__str}.`)&&(t[o](),delete t[o])});n(lt(e))}function Ir(e,i,t,n){return l=>{const a=Yt(e,l);a!==rt&&(l.__deep&&n(l),typeof a=="object"&&t(lt(a,[l],...l)),i(l,a,e))}}function Lr(e,i){const t=Yt(e,i);return t&&typeof t=="object"?Object.keys(t):t}function Yt(e,i){if(r.isRef(e)){if(i.length===0)return e.value;e=e.value}return i.reduce((t,n)=>t===rt?t:t===null||typeof t!="object"?rt:t[n],e)}function lt(e,i=[],...t){if(e===null)return i;if(!t.length){const n=Object.defineProperty([],"__str",{value:""});if(e=r.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(n,"__deep",{value:!0}),i.push(n);else return[n]}if(e===null||typeof e!="object")return i;for(const n in e){const l=t.concat(n);Object.defineProperty(l,"__str",{value:l.join(".")});const a=e[n];ne(a)||Array.isArray(a)?(i.push(Object.defineProperty(l,"__deep",{value:!0})),i=i.concat(lt(a,[],...l))):i.push(l)}return i}function Me(e){return e===null||typeof e!="object"||(r.isReactive(e)?e=r.toRaw(e):r.isRef(e)&&(e=r.isReactive(e.value)?Me(e.value):e.value)),e}const at=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility|-behavior|Behavior)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/];function Jt(e,i){i.classes&&Object.keys(i.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=i.classes[t],Te(i.classes[t])&&t==="inner"&&Object.values(i.classes[t]))})}function Or(e){return e?["Submit","SubmitRaw","SubmitInvalid"].reduce((t,n)=>{const l=`on${n}`;return l in e&&typeof e[l]=="function"&&(t[l]=e[l]),t},{}):{}}function Ar(e,i,t={}){var n;const l=Object.assign({},r.inject(Zt)||{},t),a=r.getCurrentInstance(),s=Or(a==null?void 0:a.vnode.props),o="modelValue"in((n=a==null?void 0:a.vnode.props)!==null&&n!==void 0?n:{}),f=e.modelValue!==void 0?e.modelValue:ee(i.attrs.value);function b(){const d={...ie(e),...s},y=st(ie(i.attrs),at);y.key||(y.key=_e()),d.attrs=y;const $=ot(ie(i.attrs),at);for(const A in $)d[$e(A)]=$[A];const I={props:{}};return Jt(I,e),Object.assign(d,I.props),typeof d.type!="string"&&(d.definition=d.type,delete d.type),d}const _=b(),g=_.ignore?null:e.parent||r.inject(De,null),h=Bi(ge(l||{},{name:e.name||void 0,value:f,parent:g,plugins:(l.plugins||[]).concat(e.plugins),config:e.config,props:_,index:e.index},!1,!0));h.props.definition||T(600,h);const C=r.ref(new Set(h.props.definition.props||[]));h.on("added-props",({payload:d})=>{Array.isArray(d)&&d.forEach(y=>C.value.add(y))});const S=r.computed(()=>at.concat([...C.value]).reduce((d,y)=>(typeof y=="string"?(d.push($e(y)),d.push(ft(y))):d.push(y),d),[]));r.watchEffect(()=>Jt(h,e));const p=ie(e);for(const d in p)r.watch(()=>e[d],()=>{e[d]!==void 0&&(h.props[d]=e[d])});const u=new Set,c=ie(i.attrs);r.watchEffect(()=>{k(ot(c,S.value))});function k(d){u.forEach(y=>{y(),u.delete(y)});for(const y in d){const $=$e(y);u.add(r.watch(()=>i.attrs[y],()=>{h.props[$]=i.attrs[y]}))}}if(r.watchEffect(()=>{const d=st(ie(i.attrs),S.value);"multiple"in d&&(d.multiple=q(d.multiple)),h.props.attrs=Object.assign({},h.props.attrs||{},d)}),r.watchEffect(()=>{const d=e.errors.map(y=>G({key:Fe(y),type:"error",value:y,meta:{source:"prop"}}));h.store.apply(d,y=>y.type==="error"&&y.meta.source==="prop")}),h.type!=="input"){const d=`${h.name}-prop`;r.watchEffect(()=>{const y=Object.keys(e.inputErrors);y.length||h.clearErrors(!0,d);const $=y.reduce((I,A)=>{let v=e.inputErrors[A];return typeof v=="string"&&(v=[v]),Array.isArray(v)&&(I[A]=v.map(O=>G({key:O,type:"error",value:O,meta:{source:d}}))),I},{});h.store.apply($,I=>I.type==="error"&&I.meta.source===d)})}r.watchEffect(()=>Object.assign(h.config,e.config)),h.type!=="input"&&r.provide(De,h);let V;const m=new WeakSet;return h.on("modelUpdated",()=>{var d,y;if(i.emit("inputRaw",(d=h.context)===null||d===void 0?void 0:d.value,h),clearTimeout(V),V=setTimeout(i.emit,20,"input",(y=h.context)===null||y===void 0?void 0:y.value,h),o&&h.context){const $=Me(h.context.value);Te($)&&Me(e.modelValue)!==$&&m.add($),i.emit("update:modelValue",$)}}),o&&(Sr(r.toRef(e,"modelValue"),(d,y)=>{var $;const I=Me(y);if(Te(I)&&m.has(I))return m.delete(I);d.length?($=h.at(d))===null||$===void 0||$.input(y,!1):h.input(y,!1)}),h.value!==f&&h.emit("modelUpdated")),r.onBeforeUnmount(()=>h.destroy()),h}let Er=1;function Pr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function B(e,i={}){const t={type:"input",...i};let n;if(Pr(e)){const l=`SchemaComponent${Er++}`;n=w("input",()=>({$cmp:l,props:{context:"$node.context"}})),t.library={[l]:r.markRaw(e)}}else typeof e=="function"?n=e:n=w("input",()=>ee(e));return t.schema=dr(n||"Schema undefined"),t}const vr=w("messages",()=>({$el:"ul",if:"$fns.length($messages)"}),!0),xr=w("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Br=vr(xr("$message.value"));r.defineComponent({props:{node:{type:Object,required:!1},sectionsSchema:{type:Object,default:{}},defaultPosition:{type:[String,Boolean],default:!1}},setup(e,i){const t=r.computed(()=>e.node||r.inject(De,void 0));r.watch(t,()=>{var a;!((a=t.value)===null||a===void 0)&&a.context&&!q(e.defaultPosition)&&(t.value.context.defaultMessagePlacement=!1)},{immediate:!0});const n=Br(e.sectionsSchema||{}),l=r.computed(()=>{var a,s,o,f,b,_;return{messages:((s=(a=t.value)===null||a===void 0?void 0:a.context)===null||s===void 0?void 0:s.messages)||{},fns:((f=(o=t.value)===null||o===void 0?void 0:o.context)===null||f===void 0?void 0:f.fns)||{},classes:((_=(b=t.value)===null||b===void 0?void 0:b.context)===null||_===void 0?void 0:_.classes)||{}}});return()=>{var a;return!((a=t.value)===null||a===void 0)&&a.context?r.h(Ht,{schema:n,data:l.value},{...i.slots}):null}}}),r.defineComponent({name:"FormKitIcon",props:{icon:{type:String,default:""},iconLoader:{type:Function,default:null},iconLoaderUrl:{type:Function,default:null}},setup(e){var i,t;const n=r.ref(void 0),l=r.inject(Zt,{}),a=r.inject(De,null);let s;function o(){if(!s||typeof s!="function")return;const f=s(e.icon);f instanceof Promise?f.then(b=>{n.value=b}):n.value=f}if(e.iconLoader&&typeof e.iconLoader=="function")s=et(e.iconLoader);else if(a&&(!((i=a.props)===null||i===void 0)&&i.iconLoader))s=et(a.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")s=et(s,e.iconLoaderUrl);else{const f=(t=l==null?void 0:l.plugins)===null||t===void 0?void 0:t.find(b=>typeof b.iconHandler=="function");f&&(s=f.iconHandler)}return r.watch(()=>e.icon,()=>{o()},{immediate:!0}),()=>e.icon&&n.value?r.h("span",{class:"formkit-icon",innerHTML:n.value}):null}});const Dr=r.defineComponent({__name:"PrimeCalendar",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.node.input(t==null?void 0:t._value)}function a(o){t==null||t.node.input(o)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Calendar");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":i.context.id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(s),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"date-format":r.unref(n).dateFormat,"selection-mode":r.unref(n).selectionMode??"single",inline:r.unref(n).inline??!1,"show-other-months":r.unref(n).showOtherMonths??!0,"select-other-months":r.unref(n).selectOtherMonths??!1,icon:r.unref(n).icon,"show-icon":r.unref(t).showIcon,"previous-icon":r.unref(n).previousIcon??"pi pi-chevron-left","next-icon":r.unref(n).nextIcon??"pi pi-chevron-right","increment-icon":r.unref(n).incrementIcon??"pi pi-chevron-up","decrement-icon":r.unref(n).decrementIcon??"pi pi-chevron-down","number-of-months":r.unref(n).numberOfMonths??1,"responsive-options":r.unref(n).responsiveOptions,view:r.unref(n).view??"date","touch-u-i":r.unref(n).touchUI??!1,"min-date":r.unref(n).minDate,"max-date":r.unref(n).maxDate,"disabled-dates":r.unref(n).disabledDates,"disabled-days":r.unref(n).disabledDays,"max-date-count":r.unref(n).maxDateCount,"show-on-focus":r.unref(n).showOnFocus??!0,"auto-z-index":r.unref(n).autoZIndex??!0,"base-z-index":r.unref(n).baseZIndex??0,"show-button-bar":r.unref(n).showButtonBar??!1,"show-time":r.unref(n).showTime??!1,"time-only":r.unref(n).timeOnly??!1,"short-year-cutoff":r.unref(n).shortYearCutoff??"+10","hour-format":r.unref(n).hourFormat??"24","step-hour":r.unref(n).stepHour??1,"step-minute":r.unref(n).stepMinute??1,"step-second":r.unref(n).stepSecond??1,"show-seconds":r.unref(n).showSeconds??!1,"hide-on-date-time-select":r.unref(n).hideOnDateTimeSelect??!1,"hide-on-range-selection":r.unref(n).hideOnRangeSelection??!1,"time-separator":r.unref(n).timeSeparator??":","show-week":r.unref(n).showWeek??!1,"manual-input":r.unref(n).manualInput??!0,"append-to":r.unref(n).appendTo??"body","panel-style":r.unref(n).panelStyle,"panel-class":r.unref(n).panelClass,onDateSelect:a,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","date-format","selection-mode","inline","show-other-months","select-other-months","icon","show-icon","previous-icon","next-icon","increment-icon","decrement-icon","number-of-months","responsive-options","view","touch-u-i","min-date","max-date","disabled-dates","disabled-days","max-date-count","show-on-focus","auto-z-index","base-z-index","show-button-bar","show-time","time-only","short-year-cutoff","hour-format","step-hour","step-minute","step-second","show-seconds","hide-on-date-time-select","hide-on-range-selection","time-separator","show-week","manual-input","append-to","panel-style","panel-class"])])}}}),Mr={key:0,class:"formkit-prime-left"},Rr={key:1,class:"formkit-prime-right"},jr=r.defineComponent({__name:"PrimeCheckbox",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Checkbox");return r.openBlock(),r.createElementBlock("div",null,[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",Mr,r.toDisplayString(r.unref(t).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,binary:r.unref(n).binary??!0,"true-value":r.unref(n).trueValue??void 0,"false-value":r.unref(n).falseValue??void 0,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","binary","true-value","false-value"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Rr,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),Tr=r.defineComponent({__name:"PrimeChips",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Chips");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"allow-duplicate":r.unref(n).allowDuplicate??!0,"add-on-blur":r.unref(n).addOnBlur??!1,max:r.unref(n).max??void 0,placeholder:r.unref(n).placeholder,separator:r.unref(n).separator,onAdd:l,onRemove:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","allow-duplicate","add-on-blur","max","placeholder","separator"])])}}}),Fr=r.defineComponent({__name:"PrimeColorPicker",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(a){var s;t==null||t.node.input((s=i.context)==null?void 0:s._value)}return(a,s)=>{const o=r.resolveComponent("ColorPicker");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(o,{modelValue:r.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=f=>r.unref(t)._value=f),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),"panel-class":r.unref(n).class,tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"default-color":r.unref(n).defaultColor??"ff0000",inline:r.unref(n).inline??!1,format:r.unref(n).format,onChange:l},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format"])])}}}),zr=r.defineComponent({__name:"PrimeDropdown",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.value)}function a(o){t==null||t.node.input(o.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Dropdown");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(s),"input-class":r.unref(n).class,tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:r.unref(n).options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value",placeholder:r.unref(n).placeholder,filter:r.unref(n).filter??!1,"show-clear":r.unref(n).showClear??!1,onChange:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","placeholder","filter","show-clear"])])}}}),Nr=r.defineComponent({__name:"PrimeEditor",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.node.input(o.htmlValue)}function a(o){o.range===null&&(t==null||t.handlers.blur(o.htmlValue))}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Editor");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"editor-style":r.unref(n).style,class:r.normalizeClass(r.unref(s)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,formats:r.unref(n).formats,modules:r.unref(n).modules,onTextChange:l,onSelectionChange:a},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules"])])}}}),Wr=r.defineComponent({__name:"PrimeInputMask",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o,f;t==null||t.node.input((o=i.context)==null?void 0:o._value),t==null||t.handlers.blur((f=i.context)==null?void 0:f._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("InputMask");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"editor-style":r.unref(n).style,class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,mask:r.unref(n).mask??void 0,"slot-char":r.unref(n).slotChar??"_","auto-clear":r.unref(n).autoClear??!0,unmask:r.unref(n).unmask??!1,onBlur:l},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","mask","slot-char","auto-clear","unmask"])])}}}),Ur=r.defineComponent({__name:"PrimeInputNumber",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.value)}function a(o){t==null||t.node.input(o.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("InputNumber");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(s),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,"use-grouping":r.unref(n).useGrouping??!0,"min-fraction-digits":r.unref(n).minFractionDigits??void 0,"max-fraction-digits":r.unref(n).maxFractionDigits??void 0,locale:r.unref(n).locale??void 0,mode:r.unref(n).mode??void 0,currency:r.unref(n).currency??void 0,prefix:r.unref(n).prefix??void 0,suffix:r.unref(n).suffix??void 0,"show-buttons":r.unref(n).showButtons??void 0,"button-layout":r.unref(n).buttonLayout??"stacked",step:r.unref(n).step??void 0,onInput:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","placeholder","use-grouping","min-fraction-digits","max-fraction-digits","locale","mode","currency","prefix","suffix","show-buttons","button-layout","step"])])}}}),qr={key:0,class:"formkit-prime-left"},Kr={key:1,class:"formkit-prime-right"},Hr=r.defineComponent({__name:"PrimeInputSwitch",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("InputSwitch");return r.openBlock(),r.createElementBlock("div",null,[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",qr,r.toDisplayString(r.unref(t).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"true-value":r.unref(n).trueValue??void 0,"false-value":r.unref(n).falseValue??void 0,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Kr,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),Zr=r.defineComponent({__name:"PrimeInputText",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(){return(t==null?void 0:t.iconLeft)&&(t==null?void 0:t.iconLeft.length)>0}function a(){return(t==null?void 0:t.iconRight)&&(t==null?void 0:t.iconRight.length)>0}function s(){let _="";return l()&&(_=`${_}p-input-icon-left `),a()&&(_=`${_}p-input-icon-right `),_}function o(_){t==null||t.handlers.blur(_.target.value)}function f(_){t==null||t.node.input(_.target.value)}const b=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(_,g)=>{const h=r.resolveComponent("InputText");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",{class:r.normalizeClass(s())},[l()?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(r.unref(t).iconLeft)},null,2)):r.createCommentVNode("",!0),r.createVNode(h,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":g[0]||(g[0]=C=>r.unref(t)._value=C),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(b)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,onInput:f,onBlur:o},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder"]),a?(r.openBlock(),r.createElementBlock("i",{key:1,class:r.normalizeClass(r.unref(t).iconRight)},null,2)):r.createCommentVNode("",!0)],2)])}}}),Yr=r.defineComponent({__name:"PrimeTextarea",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.target.value)}function a(o){t==null||t.node.input(o.target.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Textarea");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(s)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,rows:r.unref(t).rows??3,onInput:a,onBlur:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows"])])}}}),Jr=r.defineComponent({__name:"PrimeKnob",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(s){t==null||t.node.input(s),t==null||t.handlers.blur(s)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Knob");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,min:r.unref(n).min??0,max:r.unref(n).max??100,step:r.unref(n).step??void 0,size:r.unref(n).size??100,"stroke-width":r.unref(n).strokeWidth??14,"show-value":r.unref(n).showValue??!0,"value-color":r.unref(n).valueColor??void 0,"range-color":r.unref(n).rangeColor??void 0,"text-color":r.unref(n).textColor??void 0,"value-template":r.unref(n).valueTemplate??void 0,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","size","stroke-width","show-value","value-color","range-color","text-color","value-template"])])}}}),Qr=r.defineComponent({__name:"PrimeMultiSelect",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("MultiSelect");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"list-style":r.unref(n).style,class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:r.unref(n).options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value",filter:r.unref(n).filter??!1,onChange:l},null,8,["modelValue","input-id","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","filter"])])}}}),Gr=r.defineComponent({__name:"PrimeListbox",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{var b;const f=r.resolveComponent("Listbox");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=_=>r.unref(t)._value=_),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"list-style":r.unref(n).style,class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:(b=r.unref(n))==null?void 0:b.options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value",multiple:r.unref(n).multiple??!1,filter:r.unref(n).filter??!1,"filter-icon":r.unref(n).filterIcon,"filter-placeholder":r.unref(n).filterPlaceholder,"filter-locale":r.unref(n).filterLocale,"filter-match-mode":r.unref(n).filterMatchMode,"auto-option-focus":r.unref(n).autoOptionFocus??!0,"select-on-focus":r.unref(n).selectOnFocus??!1,onChange:l},null,8,["id","modelValue","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","multiple","filter","filter-icon","filter-placeholder","filter-locale","filter-match-mode","auto-option-focus","select-on-focus"])])}}}),Xr=r.defineComponent({__name:"PrimePassword",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(o){t==null||t.handlers.blur(o.target.value)}function a(o){t==null||t.node.input(o.target.value)}const s=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(o,f)=>{const b=r.resolveComponent("Password");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(b,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=_=>r.unref(t)._value=_),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(s),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,"medium-regex":r.unref(n).mediumRegex??"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})","strong-regex":r.unref(n).strongRegex??"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})","prompt-label":r.unref(n).promptLabel,"weak-label":r.unref(n).weakLabel,"medium-label":r.unref(n).mediumLabel,"strong-label":r.unref(n).strongLabel,"hide-icon":r.unref(n).hideIcon??"pi pi-eye-slash","show-icon":r.unref(n).showIcon??"pi pi-eye",feedback:r.unref(t).feedback??!1,"toggle-mask":r.unref(t).toggleMask??!1,onInput:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","placeholder","medium-regex","strong-regex","prompt-label","weak-label","medium-label","strong-label","hide-icon","show-icon","feedback","toggle-mask"])])}}}),el=r.defineComponent({__name:"PrimeRating",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Rating");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,stars:r.unref(n).stars??5,cancel:r.unref(n).cancel??!1,"on-icon":r.unref(n).onIcon??"pi pi-star-fill","off-icon":r.unref(n).offIcon??"pi pi-star","cancel-icon":r.unref(n).cancelIcon??"pi pi-ban",onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","stars","cancel","on-icon","off-icon","cancel-icon"])])}}}),tl=r.defineComponent({__name:"PrimeSlider",props:{context:Object},setup(e){const t=e.context,n=t==null?void 0:t.attrs;function l(s){t==null||t.node.input(s),t==null||t.handlers.blur(s)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("Slider");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,min:r.unref(n).min??0,max:r.unref(n).max??100,step:r.unref(n).step??void 0,range:r.unref(n).range??!1,orientation:r.unref(n).orientation??"horizontal",onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation"])])}}}),nl=r.defineComponent({__name:"PrimeToggleButton",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("ToggleButton");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,"on-label":r.unref(n).onLabel??"Yes","off-label":r.unref(n).offLabel??"No","on-icon":r.unref(n).onIcon??"pi pi-check","off-icon":r.unref(n).offIcon??"pi pi-times","icon-pos":r.unref(n).iconPos??"left",onChange:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","on-label","off-label","on-icon","off-icon","icon-pos"])])}}}),il=r.defineComponent({__name:"PrimeSelectButton",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("SelectButton");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(a)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,options:r.unref(n).options,"option-label":r.unref(n).optionLabel??"label","option-value":r.unref(n).optionValue??"value","option-disabled":r.unref(n).optionDisabled,multiple:r.unref(n).multiple??!1,unselectable:r.unref(n).unselectable??!0,"data-key":r.unref(n).dataKey,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","option-disabled","multiple","unselectable","data-key"])])}}}),rl={key:0,class:"formkit-prime-left"},ll={key:1,class:"formkit-prime-right"},al=r.defineComponent({__name:"PrimeTriStateCheckbox",props:{context:Object},setup(e){const i=e,t=i.context,n=t==null?void 0:t.attrs;function l(s){var o;t==null||t.node.input((o=i.context)==null?void 0:o._value)}const a=r.computed(()=>t!=null&&t.state.validationVisible&&!(t!=null&&t.state.valid)?`${n==null?void 0:n.class} p-invalid`:n==null?void 0:n.class);return(s,o)=>{const f=r.resolveComponent("TriStateCheckbox");return r.openBlock(),r.createElementBlock("div",null,[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",rl,r.toDisplayString(r.unref(t).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=b=>r.unref(t)._value=b),"input-id":r.unref(t).id,disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,"input-style":r.unref(n).style,"input-class":r.unref(a),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,onClick:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",ll,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),Qt=B(Zr,{props:["iconRight","iconLeft"]}),Gt=B(Ur,{props:["iconRight","iconLeft"]}),Xt=B(Wr,{props:[]}),en=B(Xr,{props:["feedback","toggleMask"]}),tn=B(Yr,{props:["rows"]}),nn=B(jr,{props:[]}),rn=B(Hr,{props:[]}),ln=B(Nr,{props:[]}),an=B(zr,{props:[]}),sn=B(Qr,{props:[]}),on=B(Gr,{props:[]}),fn=B(Dr,{props:[]}),un=B(tl,{props:[]}),cn=B(el,{props:[]}),pn=B(Tr,{props:[]}),dn=B(Jr,{props:[]}),mn=B(Fr,{props:[]}),bn=B(nl,{props:[]}),yn=B(il,{props:[]}),hn=B(al,{props:[]}),sl={primeInputText:Qt,primeInputNumber:Gt,primeInputMask:Xt,primePassword:en,primeCheckbox:nn,primeInputSwitch:rn,primeTextarea:tn,primeEditor:ln,primeDropdown:an,primeMultiSelect:sn,primeCalendar:fn,primeSlider:un,primeChips:pn,primeKnob:dn,primeRating:cn,primeColorPicker:mn,primeToggleButton:bn,primeListbox:on,primeSelectButton:yn,primeTriStateCheckbox:hn};E.primeCalendarDefinition=fn,E.primeCheckboxDefinition=nn,E.primeChipsDefinition=pn,E.primeColorPickerDefinition=mn,E.primeDropdownDefinition=an,E.primeEditorDefinition=ln,E.primeInputMaskDefinition=Xt,E.primeInputNumberDefinition=Gt,E.primeInputSwitchDefinition=rn,E.primeInputTextDefinition=Qt,E.primeInputs=sl,E.primeKnobDefinition=dn,E.primeListboxDefinition=on,E.primeMultiSelectDefinition=sn,E.primePasswordDefinition=en,E.primeRatingDefinition=cn,E.primeSelectButtonDefinition=yn,E.primeSliderDefinition=un,E.primeTextareaDefinition=tn,E.primeToggleButtonDefinition=bn,E.primeTriStateCheckboxDefinition=hn,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formkit/index'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/sfxcode/formkit-primevue",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
-
"main": "
|
|
18
|
+
"main": "dist/formkit-primevue",
|
|
19
|
+
"typings": "dist/index",
|
|
19
20
|
"module": "./dist/formkit-primevue.es.js",
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
"require": "./dist/sass/formkit-primevue.scss"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
35
37
|
"dependencies": {
|
|
36
38
|
"@formkit/i18n": "^0.16.5",
|
|
37
39
|
"@formkit/vue": "^0.16.5",
|
package/dist/index_form.json
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"$el": "h1",
|
|
4
|
-
"children": [
|
|
5
|
-
"Register New ",
|
|
6
|
-
"$myGroup.email"
|
|
7
|
-
]
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"$el": "h3",
|
|
11
|
-
"children": [
|
|
12
|
-
"Header Text H3"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"$formkit": "group",
|
|
17
|
-
"name": "myGroup",
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"$formkit": "primeInputText",
|
|
21
|
-
"name": "email",
|
|
22
|
-
"label": "Email",
|
|
23
|
-
"help": "This will be used for your account.",
|
|
24
|
-
"validation": "required|email",
|
|
25
|
-
"class": "test"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"$formkit": "primeTextarea",
|
|
29
|
-
"name": "myText",
|
|
30
|
-
"label": "Text",
|
|
31
|
-
"validation": "",
|
|
32
|
-
"rows": "5",
|
|
33
|
-
"class": "test"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"$formkit": "primeEditor",
|
|
39
|
-
"name": "myEditor",
|
|
40
|
-
"label": "Editor",
|
|
41
|
-
"validation": "",
|
|
42
|
-
"class": "test"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"$formkit": "primeCalendar",
|
|
46
|
-
"name": "myCalendar",
|
|
47
|
-
"label": "Calendar",
|
|
48
|
-
"validation": "",
|
|
49
|
-
"class": "test",
|
|
50
|
-
"dateFormat": "dd.mm.yy",
|
|
51
|
-
"showIcon": true
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"$el": "div",
|
|
55
|
-
"attrs": {
|
|
56
|
-
"class": "double"
|
|
57
|
-
},
|
|
58
|
-
"children": [
|
|
59
|
-
{
|
|
60
|
-
"$formkit": "primeInputText",
|
|
61
|
-
"name": "password",
|
|
62
|
-
"label": "Password",
|
|
63
|
-
"help": "Enter your new password.",
|
|
64
|
-
"validation": "required|length:5,16",
|
|
65
|
-
"validationVisibility": "live",
|
|
66
|
-
"class": "test"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"$formkit": "primePassword",
|
|
70
|
-
"name": "password_confirm",
|
|
71
|
-
"label": "Confirm password",
|
|
72
|
-
"toggleMask": true,
|
|
73
|
-
"feedback": false,
|
|
74
|
-
"help": "Enter your new password again to confirm it.",
|
|
75
|
-
"validation": "required|confirm",
|
|
76
|
-
"validationLabel": "password confirmation",
|
|
77
|
-
"class": "test"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"$formkit": "primeCheckBox",
|
|
83
|
-
"name": "eu_citizen",
|
|
84
|
-
"id": "eu",
|
|
85
|
-
"label": "Are you a european citizen?",
|
|
86
|
-
"class": "test",
|
|
87
|
-
"labelLeft": "Left Label: ",
|
|
88
|
-
"labelRight": "Right Label"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"$formkit": "primeInputSwitch",
|
|
92
|
-
"name": "primeInputSwitch",
|
|
93
|
-
"id": "primeInputSwitch",
|
|
94
|
-
"labelLeft": "Left Label: ",
|
|
95
|
-
"labelRight": "Right Label"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"$formkit": "primeSlider",
|
|
99
|
-
"name": "slider",
|
|
100
|
-
"label": "Use Slider",
|
|
101
|
-
"min": 5,
|
|
102
|
-
"step": 5,
|
|
103
|
-
"value": 10
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"$formkit": "primeDropdown",
|
|
107
|
-
"if": "$eu_citizen",
|
|
108
|
-
"name": "cookie_notice",
|
|
109
|
-
"label": "Cookie notice frequency",
|
|
110
|
-
"value": "hourly",
|
|
111
|
-
"options":[
|
|
112
|
-
{
|
|
113
|
-
"label": "Every page load",
|
|
114
|
-
"value": "refresh"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"label": "Ever hour",
|
|
118
|
-
"value": "hourly"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"label": "Every day",
|
|
122
|
-
"value": "daily"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"showClear": false,
|
|
126
|
-
"filter": false,
|
|
127
|
-
"help": "How often should we display a cookie notice?",
|
|
128
|
-
"class": "test"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"$formkit": "primeMultiSelect",
|
|
132
|
-
"name": "cookie_notice2",
|
|
133
|
-
"label": "Cookie notice frequency",
|
|
134
|
-
"value": [
|
|
135
|
-
"hourly"
|
|
136
|
-
],
|
|
137
|
-
"options": [
|
|
138
|
-
{
|
|
139
|
-
"label": "Every page load",
|
|
140
|
-
"value": "refresh"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"label": "Ever hour",
|
|
144
|
-
"value": "hourly"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"label": "Every Single day",
|
|
148
|
-
"value": "daily"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"showClear": true,
|
|
152
|
-
"filter": true,
|
|
153
|
-
"help": "How often should we display a cookie notice?",
|
|
154
|
-
"class": "test"
|
|
155
|
-
}
|
|
156
|
-
]
|