@sfxcode/formkit-primevue 1.2.5 → 1.3.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 +970 -870
- package/dist/formkit-primevue.umd.js +1 -1
- package/package.json +15 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(P,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(P=typeof globalThis<"u"?globalThis:P||self,r(P["formkit-primevue"]={},P.Vue))})(this,function(P,r){"use strict";const ut=["__key","__init","__shim","__original","__index","__prevKey"];function we(){return Math.random().toString(36).substring(2,15)}function Sn(e,i){const t=e instanceof Set?e:new Set(e);return i&&i.forEach(n=>t.add(n)),[...t]}function O(e,i){return Object.prototype.hasOwnProperty.call(e,i)}function X(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)return!1;if(e instanceof Date&&i instanceof Date)return e.getTime()===i.getTime();if(e instanceof RegExp&&i instanceof RegExp)return In(e,i);if(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&&!X(e[l],i[l],t,n))return!1;return!0}return!1}function In(e,i){return e.source===i.source&&e.flags.split("").sort().join("")===i.flags.split("").sort().join("")}function Ne(e){const i=typeof e;if(i==="number")return!1;if(e===void 0)return!0;if(i==="string")return e==="";if(i==="object"){if(e===null)return!0;for(const t in e)return!1;return!(e instanceof RegExp||e instanceof Date)}return!1}function Te(e){return Object.prototype.toString.call(e)==="[object Object]"}function me(e){return Te(e)||Array.isArray(e)}function re(e){if(Te(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const i=e.constructor;if(i===void 0)return!0;const t=i.prototype;return!(Te(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function Ve(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(O(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;re(e[a])&&re(i[a])?l[a]=Ve(e[a],i[a],t,n):l[a]=i[a]}else l[a]=e[a];for(const a in i)!O(l,a)&&i[a]!==void 0&&(l[a]=i[a]);return l}function En(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 Ln(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 le(...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 Pn(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 ct(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 pt(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 Se(e){return e.replace(/-([a-z0-9])/gi,(i,t)=>t.toUpperCase())}function dt(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,t,n)=>t+"-"+n.toLowerCase()).replace(" ","-").toLowerCase()}function Bn(e,i=ut){if(e!==null&&typeof e=="object"){let t;if(Array.isArray(e)?t=[...e]:re(e)&&(t={...e}),t)return vn(e,t,i),t}return e}function be(e,i=ut){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"?be(n,i):n):t=Object.keys(e).reduce((n,l)=>(n[l]=typeof e[l]=="object"?be(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 ne(e){return typeof e=="object"?be(e):e}function An(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(O(n,a)&&(n=n[a]),+l===t.length-1)return n;if(!n||typeof n!="object")return null}return null}function z(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function ae(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function ze(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function vn(e,i,t){for(const n of t)n in e&&Object.defineProperty(i,n,{enumerable:!1,value:e[n]});return i}function On(e){let i=!1;return(...t)=>{if(!i)return i=!0,queueMicrotask(()=>i=!1),e(...t)}}function Ue(){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))):(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 mt(){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.flush=()=>{e.clear(),i.clear(),t==null||t.clear()},n.on=(l,a)=>{const[s,...o]=l.split("."),f=a.receipt||we(),p={modifiers:o,event:s,listener:a,receipt:f};return e.has(s)?e.get(s).push(p):e.set(s,[p]),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 Mn(e,i,t,n,l=!0,a){return i._e(e,{payload:n,name:t,bubble:l,origin:e,meta:a}),e}function Dn(e,i,t){return Ee(e.parent)&&e.parent._e(e.parent,t),e}function Rn(e,i,t,n){return i._e.on(t,n)}function jn(e,i,t){return i._e.off(t),e}const Ke=Ue();Ke((e,i)=>(e.message||(e.message=`E${e.code}`),i(e)));const We=Ue();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 ye(e,i={}){We.dispatch({code:e,data:i})}function N(e,i={}){throw Error(Ke.dispatch({code:e,data:i}).message)}function G(e,i){const t={blocking:!1,key:we(),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 bt={apply:Un,set:Fn,remove:yt,filter:Tn,reduce:zn,release:Hn,touch:Nn};function xn(e=!1){const i={};let t,n=e,l=[];const a=new Map;let s;const o=new Proxy(i,{get(...f){const[p,g]=f;return g==="buffer"?n:g==="_b"?l:g==="_m"?a:g==="_r"?s:O(bt,g)?bt[g].bind(null,i,o,t):Reflect.get(...f)},set(f,p,g){return p==="_n"?(t=g,s==="__n"&&ht(t,o),!0):p==="_b"?(l=g,!0):p==="buffer"?(n=g,!0):p==="_r"?(s=g,!0):(N(101,t),!1)}});return o}function Fn(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-${O(e,n.key)?"updated":"added"}`;e[n.key]=Object.freeze(t.hook.message.dispatch(n)),t.emit(l,n)}return i}function Nn(e,i){for(const t in e){const n={...e[t]};i.set(n)}}function yt(e,i,t,n){if(O(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 Tn(e,i,t,n,l){for(const a in e){const s=e[a];(!l||s.type===l)&&!n(s)&&yt(e,i,t,a)}}function zn(e,i,t,n,l){for(const a in e){const s=e[a];l=n(l,s)}return l}function Un(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):Wn(t,i,a,n[a],l)}}function Kn(e,...i){const t=`${e.name}-set`,n=l=>G({key:ze(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 Wn(e,i,t,n,l){var a;const s=i._m;s.has(t)||s.set(t,[]),i._r||(i._r=ht(e,i)),(a=s.get(t))===null||a===void 0||a.push([n,l])}function ht(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 Hn(e,i){i.buffer=!1,i._b.forEach(([t,n])=>i.apply(t,n)),i._b=[]}function qn(){const e={};let i;return{count:(...t)=>Zn(i,e,...t),init(t){i=t,t.on("message-added.deep",gt(e,1)),t.on("message-removed.deep",gt(e,-1))},merge:t=>$t(i,e,t),settled(t){return O(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>$t(i,e,t,!0),value(t){return O(e,t)?e[t].count:0}}}function Zn(e,i,t,n,l=0){if(n=Jn(n||t),!O(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 _t(i[t],l).promise}function Jn(e){return typeof e=="function"?e:i=>i.type===e}function _t(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 gt(e,i){return t=>{for(const n in e){const l=e[n];l.condition(t.payload)&&_t(l,i)}}}function $t(e,i,t,n=!1){const l=e;for(const a in i){const s=i[a].condition;n||t.ledger.count(a,s);const o=t.ledger.value(a)*(n?-1:1);if(e){do e.ledger.count(a,s,o),e=e.parent;while(e);e=l}}}const He=new Map,Ie=new Map,qe=mt(),Yn=[];function Qn(e){e.props.id&&(He.set(e.props.id,e),Ie.set(e,e.props.id),qe(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Xn(e){if(Ie.has(e)){const i=Ie.get(e);Ie.delete(e),He.delete(i),qe(e,{payload:null,name:i,bubble:!1,origin:e})}}function kt(e){return He.get(e)}function Gn(e,i){Yn.push(qe.on(e,i))}function Ct(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 ei(e){const i=document.getElementById(e);if(i instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});i.dispatchEvent(t);return}ye(151,e)}function ti(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 ni(e,i){const t=typeof e=="string"?kt(e):e;if(t){const n=s=>ne(s.props.initial)||(s.type==="group"?{}:s.type==="list"?[]:void 0);t._e.pause(t);const l=ne(i);return i&&!Ne(i)&&(t.props.initial=me(l)?ae(l):l,t.props._init=t.props.initial),t.input(n(t),!1),t.walk(s=>{s.type==="list"&&s.sync||s.input(n(s),!1)}),t.input(Ne(l)&&l?l:n(t),!1),t.type!=="input"&&i&&!Ne(i)&&me(i)&&t.walk(s=>{s.props.initial=me(s.value)?ae(s.value):s.value,s.props._init=t.props.initial}),t._e.play(t),ti(t),t.emit("reset",t),t}ye(152,e)}const ii={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${dt(e)}`]:!0})},wt=Symbol("index"),Ze=Symbol("removed"),Je=Symbol("moved"),Vt=Symbol("inserted");function ri(e){return e.type==="list"&&Array.isArray(e._value)}function Ee(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const Le=(e,i,t)=>{N(102,[e,t])},li={_c:I(Ii,Le,!1),add:I(_i),addProps:I(hi),address:I(Li,Le,!1),at:I(Pi),bubble:I(Dn),clearErrors:I(ji),calm:I(mi),config:I(!1),define:I(yi),disturb:I(di),destroy:I(bi),extend:I(Fi),hydrate:I(ci),index:I(Si,Vi,!1),input:I(Et),each:I(ki),emit:I(Mn),find:I(Ai),on:I(Rn),off:I(jn),parent:I(!1,gi),plugins:I(!1),remove:I($i),root:I(Oi,Le,!1),reset:I(Ri),resetConfig:I(wi),setErrors:I(Bt),submit:I(Di),t:I(Mi),use:I(Ye),name:I(Ei,!1,!1),walk:I(Ci)};function ai(){return new Map(Object.entries(li))}function I(e,i,t=!0){return{get:e?(n,l)=>t?(...a)=>e(n,l,...a):e(n,l):!1,set:i!==void 0?i:Le.bind(null)}}function si(){const e=new Map;return new Proxy(e,{get(i,t){return e.has(t)||e.set(t,Ue()),e.get(t)}})}let St=0,oi=0;function fi(e){var i,t;return((i=e.parent)===null||i===void 0?void 0:i.type)==="list"?wt:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++St}`}function It(e){return e.type==="group"?ae(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?ae(Array.isArray(e.value)?e.value:[]):e.value}function Et(e,i,t,n=!0){return i._value=ui(e,e.hook.input.dispatch(t)),e.emit("input",i._value),e.isCreated&&e.type==="input"&&X(i._value,i.value)?(e.emit("commitRaw",i.value),i.settled):(i.isSettled&&e.disturb(),n?(i._tmo&&clearTimeout(i._tmo),i._tmo=setTimeout(Pe,e.props.delay,e,i)):Pe(e,i),i.settled)}function ui(e,i){switch(e.type){case"input":break;case"group":(!i||typeof i!="object")&&N(107,[e,i]);break;case"list":Array.isArray(i)||N(108,[e,i]);break}return i}function Pe(e,i,t=!0,n=!0){i._value=i.value=e.hook.commit.dispatch(i._value),e.type!=="input"&&n&&e.hydrate(),e.emit("commitRaw",i.value),e.emit("commit",i.value),t&&e.calm()}function Lt(e,{name:i,value:t,from:n}){if(!Object.isFrozen(e._value)){if(ri(e)){const l=t===Ze?[]:t===Je&&typeof n=="number"?e._value.splice(n,1):[t];e._value.splice(i,t===Je||n===Vt?0:1,...l);return}t!==Ze?e._value[i]=t:delete e._value[i]}}function ci(e,i){const t=i._value;return e.type==="list"&&e.sync&&pi(e,i),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"?ae(t[n.name]):t[n.name];if(!n.isSettled||!me(l)&&X(l,n._value))return;n.input(l,!1)}else(e.type!=="list"||typeof n.name=="number")&&Lt(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 pi(e,i){const t=e._value;if(!Array.isArray(t))return;const n=[],l=new Set(i.children),a=new Map;t.forEach((o,f)=>{if(i.children[f]&&i.children[f]._value===o)n.push(i.children[f]),l.delete(i.children[f]);else{n.push(null);const p=a.get(o)||[];p.push(f),a.set(o,p)}}),l.size&&a.size&&l.forEach(o=>{if(a.has(o._value)){const f=a.get(o._value),p=f.shift();n[p]=o,l.delete(o),f.length||a.delete(o._value)}});const s=[];for(a.forEach(o=>{s.push(...o)});l.size&&s.length;){const o=l.values().next().value,f=s.shift();if(f===void 0)break;n[f]=o,l.delete(o)}s.forEach((o,f)=>{n[o]=Ui({value:f})}),l.size&&l.forEach(o=>{if(!("__FKP"in o)){const f=o._c.parent;if(!f||Ki(f))return;f.ledger.unmerge(o),o._c.parent=null,o.destroy()}}),i.children=n}function di(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 mi(e,i,t){var n;if(t!==void 0&&e.type!=="input")return Lt(i,t),Pe(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 bi(e,i){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&(e.parent.emit("childRemoved",e),e.parent.remove(e)),Xn(e),e.emit("destroyed",e),i._e.flush(),i._value=i.value=void 0;for(const t in i.context)delete i.context[t];i.plugins.clear(),i.context=null}function yi(e,i,t){i.type=t.type,i.props.definition=be(t),i.value=i._value=It({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 hi(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=Se(s);t.includes(o)&&(e.props[o]=l[s],delete l[s])}const a=ne(i._value);e.props.initial=e.type!=="input"?ae(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 _i(e,i,t,n){if(e.type==="input"&&N(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),!i.children.includes(t)){if(n!==void 0&&e.type==="list"){const l=i.children[n];l&&"__FKP"in l?(t._c.uid=l.uid,i.children.splice(n,1,t)):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:Vt})}else i.children.push(t);t.isSettled||e.disturb()}if(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 Pe(e,i,!1),e.ledger.merge(t),e.emit("child",t),e}function gi(e,i,t,n){return Ee(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 $i(e,i,t){const n=i.children.indexOf(t);if(n!==-1){t.isSettled&&e.disturb(),i.children.splice(n,1);let l=z(t.props.preserve),a=t.parent;for(;l===void 0&&a;)l=z(a.props.preserve),a=a.parent;l?e.calm():e.calm({name:e.type==="list"?n:t.name,value:Ze}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function ki(e,i,t){i.children.forEach(n=>!("__FKP"in n)&&t(n))}function Ci(e,i,t,n=!1,l=!1){i.children.some(a=>{if("__FKP"in a)return!1;const s=t(a);return n&&s===!1?!0:l&&s===!1?!1:a.walk(t,n,l)})}function wi(e,i){const t=e.parent||void 0;i.config=Pt(e.config._t,t),e.walk(n=>n.resetConfig())}function Ye(e,i,t,n=!0,l=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(a=>Ye(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 Vi(e,i,t,n){if(Ee(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:Je,from:s}),!0)}return!1}function Si(e){if(e.parent){const i=[...e.parent.children].indexOf(e);return i===-1?e.parent.children.length:i}return-1}function Ii(e,i){return i}function Ei(e,i){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:i.name!==wt?i.name:e.index}function Li(e,i){return i.parent?i.parent.address.concat([e.name]):[e.name]}function Pi(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=>!("__FKP"in o)&&String(o.name)===String(s))||Bi(a,s)}}return a||void 0}function Bi(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 Ai(e,i,t,n){return vi(e,t,n)}function vi(e,i,t="name"){const n=typeof t=="string"?a=>a[t]==i:t,l=[e];for(;l.length;){const a=l.shift();if(!("__FKP"in a)){if(n(a,i))return a;l.push(...a.children)}}}function Oi(e){let i=e;for(;i.parent;)i=i.parent;return i}function Pt(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:ii[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(!X(e[l],a,!1)){const s=Reflect.set(...n);return t&&(t.emit(`config:${l}`,a,!1),Ct(t,l,a),t.walk(o=>Ct(o,l,a),!1,!0)),s}return!0}})}function Mi(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 Di(e){const i=e.name;do{if(e.props.isForm===!0)break;e.parent||N(106,i),e=e.parent}while(e);e.props.id&&ei(e.props.id)}function Ri(e,i,t){return ni(e,t)}function Bt(e,i,t,n){const l=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:t,childErrors:n});return Kn(e,a.localErrors,a.childErrors).forEach(s=>{e.store.apply(s,o=>o.meta.source===l)}),e}function ji(e,i,t=!0,n){return Bt(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 xi(e){const i={initial:typeof e=="object"?ne(e):e};let t,n=!0;return new Proxy(i,{get(...l){const[a,s]=l;if(O(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:p}=t.hook.prop.dispatch({prop:a,value:s});if(!X(i[f],p,!1)||typeof p=="object"){const g=Reflect.set(l,f,p,o);return n&&(t.emit("prop",{prop:f,value:p}),typeof f=="string"&&t.emit(`prop:${f}`,p)),g}return!0}})}function Fi(e,i,t,n){return i.traps.set(t,n),e}function Ni(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 Ti(e){const i=It(e),t=Pt(e.config||{},e.parent);return{_d:0,_e:mt(),uid:Symbol(),_resolve:!1,_tmo:!1,_value:i,children:Sn(e.children||[]),config:t,hook:si(),isCreated:!1,isSettled:!0,ledger:qn(),name:fi(e),parent:e.parent||null,plugins:new Set,props:xi(i),settled:Promise.resolve(i),store:xn(!0),sync:e.sync||!1,traps:ai(),type:e.type||"input",value:i}}function zi(e,i){var t,n,l;const a=(t=i.props)===null||t===void 0?void 0:t.id;if(a||(n=i.props)===null||n===void 0||delete n.id,e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,Object.assign(e.props,a?{}:{id:`input_${oi++}`},(l=i.props)!==null&&l!==void 0?l:{}),e.props._emit=!0,Ni(e,new Set([...i.plugins||[],...e.parent?e.parent.plugins:[]])),i.plugins)for(const s of i.plugins)Ye(e,e._c,s,!0,!1);return e.each(s=>e.add(s)),e.parent&&e.parent.add(e,i.index),e.type==="input"&&e.children.length&&N(100,e),Et(e,e._c,e._value,!1),e.store.release(),a&&Qn(e),e.emit("created",e),e.isCreated=!0,e}function Ui(e){var i,t,n,l;return{__FKP:!0,uid:Symbol(),name:(i=e==null?void 0:e.name)!==null&&i!==void 0?i:`p_${St++}`,value:(t=e==null?void 0:e.value)!==null&&t!==void 0?t:null,_value:(n=e==null?void 0:e.value)!==null&&n!==void 0?n:null,type:(l=e==null?void 0:e.type)!==null&&l!==void 0?l:"input",use:()=>{},input(a){return this._value=a,this.value=a,Promise.resolve()},isSettled:!0}}function Ki(e){return"__FKP"in e}function Wi(e){const i=e||{},t=Ti(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 zi(n,i)}function Qe(e){return typeof e!="string"&&O(e,"$el")}function Xe(e){return typeof e!="string"&&O(e,"$cmp")}function se(e){return!e||typeof e=="string"?!1:O(e,"if")&&O(e,"then")}function Hi(e){return typeof e!="string"&&"$formkit"in e}function qi(e){if(typeof e=="string")return{$el:"text",children:e};if(Hi(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 U(e){let i;const t=new Set,n=function(d,m){return typeof d=="function"?d(m):d},l=[{"&&":(c,d,m)=>n(c,m)&&n(d,m),"||":(c,d,m)=>n(c,m)||n(d,m)},{"===":(c,d,m)=>n(c,m)===n(d,m),"!==":(c,d,m)=>n(c,m)!==n(d,m),"==":(c,d,m)=>n(c,m)==n(d,m),"!=":(c,d,m)=>n(c,m)!=n(d,m),">=":(c,d,m)=>n(c,m)>=n(d,m),"<=":(c,d,m)=>n(c,m)<=n(d,m),">":(c,d,m)=>n(c,m)>n(d,m),"<":(c,d,m)=>n(c,m)<n(d,m)},{"+":(c,d,m)=>n(c,m)+n(d,m),"-":(c,d,m)=>n(c,m)-n(d,m)},{"*":(c,d,m)=>n(c,m)*n(d,m),"/":(c,d,m)=>n(c,m)/n(d,m),"%":(c,d,m)=>n(c,m)%n(d,m)}],a=l.reduce((c,d)=>c.concat(Object.keys(d)),[]),s=new Set(a.map(c=>c.charAt(0)));function o(c,d,m,y){const $=c.filter(h=>h.startsWith(d));return $.length?$.find(h=>y.length>=m+h.length&&y.substring(m,m+h.length)===h?h:!1):!1}function f(c,d,m=1){let y=m?d.substring(c+1).trim():d.substring(0,c).trim();if(!y.length)return-1;if(!m){const h=y.split("").reverse(),C=h.findIndex(u=>s.has(u));y=h.slice(C).join("")}const $=y[0];return l.findIndex(h=>{const C=Object.keys(h);return!!o(C,$,0,y)})}function p(c,d){let m="";const y=d.length;let $=0;for(let h=c;h<y;h++){const C=d.charAt(h);if(C==="(")$++;else if(C===")")$--;else if($===0&&C===" ")continue;if($===0&&o(a,C,h,d))return[m,h-1];m+=C}return[m,d.length-1]}function g(c,d=0){const m=l[d],y=c.length,$=Object.keys(m);let h=0,C=!1,u=null,b="",V=null,E,D="",S="",v="",B="",x=0;const T=(A,F)=>{A?v+=F:b+=F};for(let A=0;A<y;A++)if(D=S,S=c.charAt(A),(S==="'"||S==='"')&&D!=="\\"&&(h===0&&!C||h&&!B)){h?B=S:C=S,T(h,S);continue}else if(C&&(S!==C||D==="\\")||B&&(S!==B||D==="\\")){T(h,S);continue}else if(C===S){C=!1,T(h,S);continue}else if(B===S){B=!1,T(h,S);continue}else{if(S===" ")continue;if(S==="(")h===0?x=A:v+=S,h++;else if(S===")")if(h--,h===0){const F=typeof b=="string"&&b.startsWith("$")?b:void 0,ke=F&&c.charAt(A+1)===".";let te="";ke&&([te,A]=p(A+2,c));const Fe=u?d:f(x,c,0),Ce=f(A,c);Fe===-1&&Ce===-1?(b=L(v,-1,F,te),typeof b=="string"&&(b=v)):u&&(Fe>=Ce||Ce===-1)&&d===Fe?(V=u.bind(null,L(v,-1,F,te)),u=null,b=""):Ce>Fe&&d===Ce?b=L(v,-1,F,te):b+=`(${v})${ke?`.${te}`:""}`,v=""}else v+=S;else if(h===0&&(E=o($,S,A,c))){A===0&&N(103,[E,c]),A+=E.length-1,A===c.length-1&&N(104,[E,c]),u?b&&(V=u.bind(null,L(b,d)),u=m[E].bind(null,V),b=""):V?(u=m[E].bind(null,L(V,d)),V=null):(u=m[E].bind(null,L(b,d)),b="");continue}else T(h,S)}return b&&u&&(u=u.bind(null,L(b,d))),u=!u&&V?V:u,!u&&b&&(u=(A,F)=>typeof A=="function"?A(F):A,u=u.bind(null,L(b,d))),!u&&!b&&N(105,c),u}function L(c,d,m,y){if(m){const $=L(m,l.length);let h,C=y?U(`$${y}`):!1;if(typeof $=="function"){const u=Pn(String(c)).map(b=>L(b,-1));return b=>{const V=$(b);return typeof V!="function"?(ye(150,m),V):(h=V(...u.map(E=>typeof E=="function"?E(b):E)),C&&(C=C.provide(E=>{const D=i(E);return E.reduce((v,B)=>{if(B===y||(y==null?void 0:y.startsWith(`${B}(`))){const T=An(h,B);v[B]=()=>T}else v[B]=D[B];return v},{})})),C?C():h)}}}else if(typeof c=="string"){if(c==="true")return!0;if(c==="false")return!1;if(c==="undefined")return;if(En(c))return Ln(c.substring(1,c.length-1));if(!isNaN(+c))return Number(c);if(d<l.length-1)return g(c,d+1);if(c.startsWith("$")){const $=c.substring(1);return t.add($),function(C){return $ in C?C[$]():void 0}}return c}return c}const K=g(e.startsWith("$:")?e.substring(2):e),k=Array.from(t);function _(c){return i=c,Object.assign(K.bind(null,c(k)),{provide:_})}return Object.assign(K,{provide:_})}const At="0.19.0";function Zi(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 oe(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 fe(e,i){return e===null&&i===void 0||e===void 0&&i===null?!1:e==i?!0:re(e)&&re(i)?X(e,i):!1}function Ge(e){e.hook.prop((i,t)=>(i.prop==="options"&&(typeof i.value=="function"?(e.props.optionsLoader=i.value,i.value=[]):i.value=Zi(i.value)),t(i)))}function w(e,i,t=!1){return(...n)=>{const l=a=>{const s=!i||typeof i=="string"?{$el:i}:i();return(Qe(s)||Xe(s))&&(s.meta||(s.meta={section:e}),n.length&&!s.children&&(s.children=[...n.map(o=>typeof o=="string"?o:o(a))]),Qe(s)&&(s.attrs={class:`$classes.${e}`,...s.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in a?he(s,a[e]):s}};return l._s=e,t?Ji(l):l}}function Ji(e){return i=>[e(i)]}function Be(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function he(e,i={}){return typeof e=="string"?Be(i)||typeof i=="string"?i:e:Array.isArray(e)?Be(i)?i:e:Ve(e,i)}const Yi=w("actions",()=>({$el:"div",if:"$actions"})),Ae=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}}}})),vt=w("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),Ot=w("inner","span"),ve=w("label","span"),Mt=w("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled"}})),Dt=w("options","ul"),Oe=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"}}})),Qi=w("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Xi=w("default",null),Me=w("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),Rt=w("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),Gi=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"}})),er=w("fileItem",()=>({$el:"li",for:["file","$value"]})),tr=w("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":{if:"$value.length > 1",then:"true"}}})),nr=w("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),jt=w("fileRemove",()=>({$el:"button",attrs:{onClick:"$handlers.resetFiles"}})),ir=w("form",()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}})),et=w("wrapper",null,!0),W=w("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),R=(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 + " " + $classes.icon`,innerHTML:`$${t}`,onClick:`$handlers.iconClick(${e})`,for:{if:`${i==="label"}`,then:"$id"}}}})(),ie=w("inner","div"),_e=w("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),xt=w("legend",()=>({$el:"legend",if:"$label"})),Z=w("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),J=w("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),rr=w("noFiles",()=>({$el:"span",if:"$value.length == 0"})),lr=w("option",()=>({$el:"option",for:["option","$options"],bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}})),ar=()=>({$el:null,if:"$options.length",for:["option","$options"],children:"$slots.option"}),ee=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 !== "false" && $disabled) || undefined',"data-empty":"$state.empty || 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"}})),H=w("prefix",null),sr=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"}})),or=w("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",disabled:"$disabled",label:"$submitLabel"}})),q=w("suffix",null),Ft=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"}})),fr=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"})),ue=w("wrapper","div");function Nt(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:Ve(n,{attrs:{id:`${e.props.id}-option-${ze(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 ur(e,i){const t=i.target;if(t instanceof HTMLInputElement){const n=Array.isArray(e.props.options)?oe(e.props.options,t.value):t.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(l=>fe(n,l))?e.input(e._value.filter(l=>!fe(n,l))):e.input([...e._value,n]):e.input([n]):t.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function cr(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=>fe(oe(e.props.options,i),l)):!1}function pr(e){e.on("created",()=>{var i,t;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=ur.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=cr.bind(null,e)),O(e.props,"onValue")||(e.props.onValue=!0),O(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(Nt(e))}function ce(e,i){return t=>{t.props[`${e}Icon`]===void 0&&(t.props[`${e}Icon`]=i.startsWith("<svg")?i:`default:${i}`)}}function tt(e){e.on("created",()=>{"disabled"in e.props&&(e.props.disabled=z(e.props.disabled),e.config.disabled=z(e.props.disabled))}),e.hook.prop(({prop:i,value:t},n)=>(t=i==="disabled"?z(t):t,n({prop:i,value:t}))),e.on("prop:disabled",({payload:i})=>{e.config.disabled=z(i)})}function De(e,i){return t=>{t.store.set(G({key:e,type:"ui",value:i||e,meta:{localize:!0,i18nArgs:[t]}}))}}const nt=typeof window<"u";function Tt(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function zt(e,i){i.target instanceof HTMLInputElement?e==="dragover"&&i.target.setAttribute("data-file-hover","true"):i.preventDefault(),e==="drop"&&Tt(i)}function dr(e){De("noFiles","Select file")(e),De("removeAll","Remove all")(e),De("remove")(e),nt&&(window._FormKit_File_Drop||(window.addEventListener("dragover",zt.bind(null,"dragover")),window.addEventListener("drop",zt.bind(null,"drop")),window.addEventListener("dragleave",Tt),window._FormKit_File_Drop=!0)),e.hook.input((i,t)=>t(Array.isArray(i)?i:[])),e.on("reset",()=>{if(e.props.id&&nt){const i=document.getElementById(e.props.id);i&&(i.value="")}}),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&&nt){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))})})}const Ut=G({key:"loading",value:!0,visible:!1});async function mr(e,i){const t=Math.random();if(e.props._submitNonce=t,i.preventDefault(),await e.settled,e.ledger.value("validating")&&(e.store.set(Ut),await e.ledger.settled("validating"),e.store.remove("loading"),e.props._submitNonce!==t))return;const n=l=>l.store.set(G({key:"submitted",value:!0,visible:!1}));if(e.walk(n),n(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 l=e.props.onSubmit(e.hook.submit.dispatch(be(e.value)),e);if(l instanceof Promise){const a=e.props.disabled===void 0&&e.props.submitBehavior!=="live";a&&(e.props.disabled=!0),e.store.set(Ut),await l,a&&(e.props.disabled=!1),e.store.remove("loading")}}else i.target instanceof HTMLFormElement&&i.target.submit()}function br(e){e.props.isForm=!0,e.ledger.count("validating",i=>i.key==="validating"),e.on("created",()=>{var i;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.submit=mr.bind(null,e)),O(e.props,"actions")||(e.props.actions=!0)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function yr(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function hr(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function Kt(e){if(typeof e.props.number>"u")return;const i=["number","range","hidden"].includes(e.props.type);e.hook.input((t,n)=>{if(t==="")return n(void 0);const l=e.props.number==="integer"?parseInt(t):parseFloat(t);return Number.isFinite(l)?n(l):n(i?void 0:t)})}function _r(e,i){i.target instanceof HTMLInputElement&&e.input(oe(e.props.options,i.target.value))}function gr(e,i){var t,n;return(t=e.context)===null||t===void 0||t.value,(n=e.context)===null||n===void 0||n._value,fe(oe(e.props.options,i),e._value)}function $r(e){e.on("created",()=>{var i,t;Array.isArray(e.props.options)||ye(350,{node:e,inputType:"radio"}),!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=_r.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=gr.bind(null,e))}),e.hook.prop(Nt(e))}let kr=0;function Cr(e){e.sync&&e.plugins.add(wr)}function wr(e){e.props.type==="radio"&&(e.props.altName=`${e.name}_${kr++}`)}function Vr(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=>fe(l,t)):(e._value===void 0||e._value===null&&n())&&i.attrs&&i.attrs["data-is-placeholder"]?!0:fe(t,e._value)}async function Sr(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 Ir(e,i){const t=i.target,n=t.hasAttribute("multiple")?Array.from(t.selectedOptions).map(l=>oe(e.props.options,l.value)):oe(e.props.options,t.value);e.input(n)}function Wt(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 Er(e){e.on("created",()=>{var i,t,n;const l=z((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=Wt(s,e.props.placeholder)),o({prop:a,value:s}))),e.props.options=Wt(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=Ir.bind(null,e),e.context.handlers.onChange=Sr.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isSelected=Vr.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 p="__original"in f?f.__original:f.value;return X(a,p)});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&&!z((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 it(e){return!!(se(e)&&e.if&&e.if.startsWith("$slots.")&&typeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function Lr(e){return ee(ue(_e("$label"),ie(H(),e(),q())),W("$help"),J(Z("$message.value")))}function Y(e,i,t){const n=l=>{const a=i(l);if(t||Be(a)&&"if"in a||it(a)){const s={if:e,then:a};return t&&(s.else=t(l)),s}else it(a)?Object.assign(a.else,{if:e}):Be(a)&&Object.assign(a,{if:e});return a};return n._s=we(),n}function pe(e,i){const t=n=>{const l=e({});return it(l)?(Array.isArray(l.else)||(l.else=he(he(l.else,i),e._s?n[e._s]:{})),l):he(he(l,i),e._s?n[e._s]:{})};return t._s=e._s,t}const Pr=["classes","config","delay","errors","id","index","inputErrors","modelValue","onUpdate:modelValue","name","number","parent","plugins","sectionsSchema","type","validation","validationLabel","validationMessages","validationRules","onInput","onInputRaw","onUpdate:modelValue","onNode","onSubmit","onSubmitInvalid","onSubmitRaw"];ee(J(Z("$message.value")),ue(Qi(R("prefix"),H(),Xi("$label || $ui.submit.value"),q(),R("suffix"))),W("$help")),De("submit"),ee(Y("$options == undefined",Oe(Ot(H(),Ae(),Me(R("decorator")),q()),pe(ve("$label"),{if:"$label"})),Rt(xt("$label"),W("$help"),Dt(Mt(Oe(Ot(H(),pe(Ae(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Me(R("decorator")),q()),pe(ve("$option.label"),{if:"$option.label"})),vt("$option.help"))))),Y("$options == undefined && $help",W("$help")),J(Z("$message.value"))),ce("decorator","checkboxDecorator"),ee(ue(_e("$label"),ie(R("prefix","label"),H(),Gi(),tr(er(R("fileItem"),nr("$file.name"),Y("$value.length === 1",jt(R("fileRemove"),"$ui.remove.value")))),Y("$value.length > 1",jt("$ui.removeAll.value")),rr(R("noFiles"),"$ui.noFiles.value"),q(),R("suffix"))),W("$help"),J(Z("$message.value"))),ce("fileItem","fileItem"),ce("fileRemove","fileRemove"),ce("noFiles","noFiles"),ir("$slots.default",J(Z("$message.value")),Yi(or())),et("$slots.default"),Ft(),et("$slots.default"),et(),ee(Y("$options == undefined",Oe(ie(H(),Ae(),Me(R("decorator")),q()),pe(ve("$label"),{if:"$label"})),Rt(xt("$label"),W("$help"),Dt(Mt(Oe(ie(H(),pe(Ae(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Me(R("decorator")),q()),pe(ve("$option.label"),{if:"$option.label"})),vt("$option.help"))))),Y("$options == undefined && $help",W("$help")),J(Z("$message.value"))),ce("decorator","radioDecorator"),ee(ue(_e("$label"),ie(R("prefix"),H(),sr(Y("$slots.default",()=>"$slots.default",Y("$slots.option",ar,lr("$option.label")))),Y("$attrs.multiple !== undefined",()=>"",R("select")),q(),R("suffix"))),W("$help"),J(Z("$message.value"))),ce("select","select"),ee(ue(_e("$label"),ie(R("prefix","label"),H(),fr(),q(),R("suffix"))),W("$help"),J(Z("$message.value"))),ee(ue(_e("$label"),ie(R("prefix","label"),H(),Ft(),q(),R("suffix"))),W("$help"),J(Z("$message.value"))),G({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let Re;const Br=new Promise(e=>{}),je=typeof window<"u"&&typeof fetch<"u";Re=je?getComputedStyle(document.documentElement):void 0;const ge={},rt={};function lt(e,i){return t=>{if(typeof t!="string")return;if(t.startsWith("<svg"))return t;const n=t.startsWith("default:");t=n?t.split(":")[1]:t;const l=t in ge;let a;if(l)return ge[t];if(!rt[t]){if(a=Ar(t),a=je&&typeof a>"u"?Promise.resolve(a):a,a instanceof Promise)rt[t]=a.then(s=>!s&&typeof t=="string"&&!n?a=typeof e=="function"?e(t):Or(t,i):s).then(s=>(typeof t=="string"&&(ge[n?`default:${t}`:t]=s),s));else if(typeof a=="string")return ge[n?`default:${t}`:t]=a,a}return rt[t]}}function Ar(e){if(je)return Br.then(()=>vr(e))}function vr(e){const i=Re==null?void 0:Re.getPropertyValue(`--fk-icon-${e}`);if(i){const t=atob(i);if(t.startsWith("<svg"))return ge[e]=t,t}}function Or(e,i){const t=At.startsWith("__")?"latest":At,n=typeof i=="function"?i(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;if(je)return fetch(`${n}`).then(async l=>{const a=await l.text();if(a.startsWith("<svg"))return a}).catch(l=>{console.error(l)})}let at=!1;const Ht={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}).`},qt={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:{node:e,inputType:i}})=>`Invalid options prop for ${e.name} input (${i}). See https://formkit.com/inputs/${i}`,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.`};at||Ke((e,i)=>{if(e.code in Ht){const t=Ht[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),at||We((e,i)=>{if(e.code in qt){const t=qt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),at=!0;const Mr=typeof window>"u",st=new Map;function Dr(e,i){var t;!Mr||!e||(st.has(e)||st.set(e,new Set),(t=st.get(e))===null||t===void 0||t.add(i))}const Zt=typeof window>"u",$e={},de={};let j;const Q=new WeakMap,Rr="__raw__",jr=/[a-zA-Z0-9\-][cC]lass$/;function xr(e,i){const t=r.ref(null);if(e==="get"){const l={};return t.value=Fr.bind(null,l),t}const n=e.split(".");return r.watchEffect(()=>{t.value=ot(r.isRef(i)?i.value:i,n)}),t}function ot(e,i){if(Array.isArray(e)){for(const l of e){const a=l!==!1&&ot(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 Fr(e,i){if(typeof i!="string")return ye(650);if(i in e||(e[i]=r.ref(void 0)),e[i].value===void 0){e[i].value=null;const t=kt(i);t&&(e[i].value=t.context),Gn(i,({payload:n})=>{e[i].value=Ee(n)?n.context:n})}return e[i].value}function Jt(e,i,t){function n(k,_){const c=L(U(_.if),{if:!0}),d=p(k,_.then),m=_.else?p(k,_.else):null;return[c,d,m]}function l(k,_){var c,d;const m=L(U(k.if));let y=()=>_,$=()=>_;return typeof k.then=="object"?$=a(k.then,void 0):typeof k.then=="string"&&(!((c=k.then)===null||c===void 0)&&c.startsWith("$"))?$=L(U(k.then)):$=()=>k.then,O(k,"else")&&(typeof k.else=="object"?y=a(k.else):typeof k.else=="string"&&(!((d=k.else)===null||d===void 0)&&d.startsWith("$"))?y=L(U(k.else)):y=()=>k.else),()=>m()?$():y()}function a(k,_,c={}){const d=new Set(Object.keys(k||{})),m=_?L(U(_)):()=>({}),y=[$=>{const h=m();for(const C in h)d.has(C)||($[C]=h[C])}];if(k){if(se(k))return l(k,c);for(let $ in k){const h=k[$];let C;const u=typeof h=="string";$.startsWith(Rr)?($=$.substring(7),C=()=>h):u&&h.startsWith("$")&&h.length>1&&!(h.startsWith("$reset")&&jr.test($))?C=L(U(h)):typeof h=="object"&&se(h)?C=l(h,void 0):typeof h=="object"&&re(h)?C=a(h):C=()=>h,y.push(b=>{b[$]=C()})}}return()=>{const $=Array.isArray(k)?[]:{};return y.forEach(h=>h($)),$}}function s(k,_){let c=null,d=()=>null,m=!1,y=null,$=null,h=null,C=!1;const u=qi(_);if(Qe(u)?(c=u.$el,d=u.$el!=="text"?a(u.attrs,u.bind):()=>null):Xe(u)?(typeof u.$cmp=="string"?O(k,u.$cmp)?c=k[u.$cmp]:(c=u.$cmp,C=!0):c=u.$cmp,d=a(u.props,u.bind)):se(u)&&([m,y,$]=n(k,u)),!se(u)&&"if"in u?m=L(U(u.if)):!se(u)&&c===null&&(m=()=>!0),"children"in u&&u.children)if(typeof u.children=="string")if(u.children.startsWith("$slots."))c=c==="text"?"slot":c,y=L(U(u.children));else if(u.children.startsWith("$")&&u.children.length>1){const b=L(U(u.children));y=()=>String(b())}else y=()=>String(u.children);else if(Array.isArray(u.children))y=p(k,u.children);else{const[b,V,E]=n(k,u.children);y=D=>b&&b()?V&&V(D):E&&E(D)}if(Xe(u))if(y){const b=y;y=V=>({default(E,D){var S,v,B,x;const T=j;D&&(j=D),E&&((S=Q.get(j))===null||S===void 0||S.unshift(E)),V&&((v=Q.get(j))===null||v===void 0||v.unshift(V));const A=b(V);return E&&((B=Q.get(j))===null||B===void 0||B.shift()),V&&((x=Q.get(j))===null||x===void 0||x.shift()),j=T,A}}),y.slot=!0}else y=()=>({});if("for"in u&&u.for){const b=u.for.length===3?u.for[2]:u.for[1];h=[typeof b=="string"&&b.startsWith("$")?L(U(b)):()=>b,u.for[0],u.for.length===3?String(u.for[1]):null]}return[m,c,d,y,$,h,C]}function o(k,_){const c=k(_),d=j;return Object.keys(c).reduce((m,y)=>{const $=c&&c[y];return m[y]=h=>$&&$(h,d)||null,m},{})}function f(k,_){const[c,d,m,y,$,h,C]=s(k,_);let u=b=>{if(c&&d===null&&y)return c()?y(b):$&&$(b);if(d&&(!c||c())){if(d==="text"&&y)return r.createTextVNode(String(y()));if(d==="slot"&&y)return y(b);const V=C?r.resolveComponent(d):d,E=y!=null&&y.slot?o(y,b):null;return r.h(V,m(),E||(y?y(b):[]))}return typeof $=="function"?$(b):$};if(h){const b=u,[V,E,D]=h;u=()=>{const S=V(),v=Number.isFinite(S)?Array(Number(S)).fill(0).map((A,F)=>F):S,B=[];if(typeof v!="object")return null;const x=Q.get(j)||[],T=Array.isArray(v);for(const A in v){if(T&&A in Array.prototype)continue;const F=Object.defineProperty({...x.reduce((ke,te)=>ke.__idata?{...ke,...te}:te,{}),[E]:v[A],...D!==null?{[D]:T?Number(A):A}:{}},"__idata",{enumerable:!1,value:!0});x.unshift(F),B.push(b.bind(null,F)()),x.shift()}return B}}return u}function p(k,_){if(Array.isArray(_)){const d=_.map(f.bind(null,k));return m=>d.map(y=>y(m))}const c=f(k,_);return d=>c(d)}const g=[];function L(k,_={}){const c=new WeakMap;return g.push((d,m)=>{c.set(m,k.provide(y=>d(y,_)))}),()=>c.get(j)()}function K(k,_){var c;t??(t=JSON.stringify(i));const[d,m]=O($e,t)?$e[t]:[p(e,i),g];return Zt||((c=de[t])!==null&&c!==void 0||(de[t]=0),de[t]++,$e[t]=[d,m]),m.forEach(y=>{y(k,_)}),()=>(j=_,d())}return K}function Yt(e,i){const t=Q.get(j)||[];let n;return t.length&&(n=ot(t,e.split("."))),n===void 0?i:n}function Nr(e,i){return new Proxy(e,{get(...t){let n;const l=t[1];if(typeof l=="string"){const a=j;j=i,n=Yt(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&&O(i.slots,o)&&typeof i.slots[o]=="function";if(l.if)a[s]=f;else if(i.slots){const p=Nr(i,t);a[s]=()=>f()?i.slots[o](p):null}}else{const o=xr(s,i);a[s]=()=>Yt(s,o.value)}return a},{}),t)}function Xt(e,i,t){if(i??(i=JSON.stringify(e)),de[i]--,de[i]===0){delete de[i];const[,n]=$e[i];delete $e[i],n.length=0}Q.delete(t)}const Gt=r.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})},memoKey:{type:String,required:!1}},setup(e,i){var t;const n=r.getCurrentInstance();let l={};Q.set(l,[]);let a=Jt(e.library,e.schema,e.memoKey),s,o;Zt||r.watch(()=>e.schema,(p,g)=>{var L;const K=l;l={},Q.set(l,[]),a=Jt(e.library,e.schema,e.memoKey),s=Qt(a,o,l),p===g&&((L=n==null?void 0:n.proxy)===null||L===void 0?void 0:L.$forceUpdate)(),Xt(e.schema,e.memoKey,K)},{deep:!0}),r.watchEffect(()=>{var p;o=Object.assign(r.reactive((p=e.data)!==null&&p!==void 0?p:{}),{slots:i.slots}),i.slots,s=Qt(a,o,l)});function f(){Xt(e.schema,e.memoKey,l),o.node&&o.node.destroy(),o.slots=null,o=null,s=null}return r.onUnmounted(f),Dr((t=r.getCurrentInstance())===null||t===void 0?void 0:t.appContext.app,f),()=>s?s():null}}),Tr=typeof window>"u",xe=Symbol("FormKitParent");function zr(e,i){const t=Wr(e,i);if(t.props.definition||N(600,t),t.props.definition.component)return()=>{var o;return r.h((o=t.props.definition)===null||o===void 0?void 0:o.component,{context:t.context},{...i.slots})};const n=r.ref([]);let l=t.props.definition.schemaMemoKey;const a=()=>{var o,f;const p=(f=(o=t.props)===null||o===void 0?void 0:o.definition)===null||f===void 0?void 0:f.schema;p||N(601,t),typeof p=="function"?(n.value=p({...e.sectionsSchema}),(l&&e.sectionsSchema||"memoKey"in p&&typeof p.memoKey=="string")&&(l=(l??(p==null?void 0:p.memoKey))+JSON.stringify(e.sectionsSchema))):n.value=p};a(),Tr||t.on("schema",()=>{l+="♻️",a()}),i.emit("node",t);const s=t.props.definition.library;return i.expose({node:t}),()=>r.h(Gt,{schema:n.value,data:t.context,library:s,memoKey:l},{...i.slots})}r.defineComponent(zr,{props:Pr,inheritAttrs:!1});const en=Symbol();r.defineComponent((e,i)=>{const t=r.ref(null),n=r.ref(!1),l=r.ref(void 0),a=r.watch(t,o=>{let f=o,p=null;for(;f=f==null?void 0:f.parentNode;)if(p=f,p instanceof ShadowRoot||p instanceof Document){s(p);break}a(),n.value=!0});r.provide(en,l);function s(o){l.value=o}return()=>n.value&&i.slots.default?i.slots.default():r.h("template",{ref:t})});const tn=Symbol.for("FormKitOptions"),Ur=typeof window<"u",ft=["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 nn(e,i){i.classes&&Object.keys(i.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=i.classes[t],me(i.classes[t])&&t==="inner"&&Object.values(i.classes[t]))})}function Kr(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 Wr(e,i,t={}){var n;const l=Object.assign({},r.inject(tn)||{},t),a=r.inject(en,r.ref(Ur?document:void 0)),s=r.getCurrentInstance(),o=Kr(s==null?void 0:s.vnode.props),f=["modelValue","model-value"].some(u=>{var b;return u in((b=s==null?void 0:s.vnode.props)!==null&&b!==void 0?b:{})});let p=!1;r.onMounted(()=>{p=!0});const g=e.modelValue!==void 0?e.modelValue:ne(i.attrs.value);function L(){var u;const b={...le(e),...o,type:(u=e.type)!==null&&u!==void 0?u:"text",__root:a.value,__slots:i.slots},V=ct(le(i.attrs),ft);V.key||(V.key=we()),b.attrs=V;const E=pt(le(i.attrs),ft);for(const S in E)b[Se(S)]=E[S];const D={props:{}};return nn(D,e),Object.assign(b,D.props),typeof b.type!="string"&&(b.definition=b.type,delete b.type),b}const K=L(),k=K.ignore?null:e.parent||r.inject(xe,null),_=Wi(Ve(l||{},{name:e.name||void 0,value:g,parent:k,plugins:(l.plugins||[]).concat((n=e.plugins)!==null&&n!==void 0?n:[]),config:e.config||{},props:K,index:e.index,sync:!!z(i.attrs.sync||i.attrs.dynamic)},!1,!0));_.props.definition||N(600,_);const c=r.ref(new Set(_.props.definition.props||[]));_.on("added-props",({payload:u})=>{Array.isArray(u)&&u.forEach(b=>c.value.add(b))});const d=r.computed(()=>ft.concat([...c.value]).reduce((u,b)=>(typeof b=="string"?(u.push(Se(b)),u.push(dt(b))):u.push(b),u),[]));r.watchEffect(()=>nn(_,e));const m=le(e);for(const u in m)r.watch(()=>e[u],()=>{e[u]!==void 0&&(_.props[u]=e[u])});r.watchEffect(()=>{_.props.__root=a.value});const y=new Set,$=le(i.attrs);r.watchEffect(()=>{h(pt($,d.value))});function h(u){y.forEach(b=>{b(),y.delete(b)});for(const b in u){const V=Se(b);y.add(r.watch(()=>i.attrs[b],()=>{_.props[V]=i.attrs[b]}))}}if(r.watchEffect(()=>{const u=ct(le(i.attrs),d.value);"multiple"in u&&(u.multiple=z(u.multiple)),typeof u.onBlur=="function"&&(u.onBlur=On(u.onBlur)),_.props.attrs=Object.assign({},_.props.attrs||{},u)}),r.watchEffect(()=>{var u;const b=((u=e.errors)!==null&&u!==void 0?u:[]).map(V=>G({key:ze(V),type:"error",value:V,meta:{source:"prop"}}));_.store.apply(b,V=>V.type==="error"&&V.meta.source==="prop")}),_.type!=="input"){const u=`${_.name}-prop`;r.watchEffect(()=>{var b;const V=(b=e.inputErrors)!==null&&b!==void 0?b:{},E=Object.keys(V);E.length||_.clearErrors(!0,u);const D=E.reduce((S,v)=>{let B=V[v];return typeof B=="string"&&(B=[B]),Array.isArray(B)&&(S[v]=B.map(x=>G({key:x,type:"error",value:x,meta:{source:u}}))),S},{});_.store.apply(D,S=>S.type==="error"&&S.meta.source===u)})}r.watchEffect(()=>Object.assign(_.config,e.config)),_.type!=="input"&&r.provide(xe,_);let C;return _.on("modelUpdated",()=>{var u,b;i.emit("inputRaw",(u=_.context)===null||u===void 0?void 0:u.value,_),p&&i.emit("input",(b=_.context)===null||b===void 0?void 0:b.value,_),f&&_.context&&(C=ne(_.value),i.emit("update:modelValue",Bn(_.value)))}),f&&(r.watch(r.toRef(e,"modelValue"),u=>{X(C,u)||_.input(u,!1)},{deep:!0}),_.value!==g&&_.emit("modelUpdated")),r.onBeforeUnmount(()=>_.destroy()),_}let Hr=1;function qr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function M(e,i={}){const t={type:"input",...i};let n;if(qr(e)){const l=`SchemaComponent${Hr++}`;n=w("input",()=>({$cmp:l,props:{context:"$node.context"}})),t.library={[l]:r.markRaw(e)}}else typeof e=="function"?n=e:n=w("input",()=>ne(e));return t.schema=Lr(n||"Schema undefined"),t.schemaMemoKey||(t.schemaMemoKey=`${Math.random()}`),t}const Zr=w("messages",()=>({$el:"ul",if:"$fns.length($messages)"})),Jr=w("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Yr=Zr(Jr("$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(xe,void 0));r.watch(t,()=>{var a;!((a=t.value)===null||a===void 0)&&a.context&&!z(e.defaultPosition)&&(t.value.context.defaultMessagePlacement=!1)},{immediate:!0});const n=Yr(e.sectionsSchema||{}),l=r.computed(()=>{var a,s,o,f,p,g;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:((g=(p=t.value)===null||p===void 0?void 0:p.context)===null||g===void 0?void 0:g.classes)||{}}});return()=>{var a;return!((a=t.value)===null||a===void 0)&&a.context?r.h(Gt,{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(tn,{}),a=r.inject(xe,null);let s;function o(){if(!s||typeof s!="function")return;const f=s(e.icon);f instanceof Promise?f.then(p=>{n.value=p}):n.value=f}if(e.iconLoader&&typeof e.iconLoader=="function")s=lt(e.iconLoader);else if(a&&(!((i=a.props)===null||i===void 0)&&i.iconLoader))s=lt(a.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")s=lt(s,e.iconLoaderUrl);else{const f=(t=l==null?void 0:l.plugins)===null||t===void 0?void 0:t.find(p=>typeof p.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 Qr=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 p=r.resolveComponent("Calendar");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>r.unref(t)._value=g),"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,pt:r.unref(n).pt,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","pt"])])}}}),Xr={key:0,class:"formkit-prime-left"},Gr={key:1,class:"formkit-prime-right"},el=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",Xr,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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","binary","true-value","false-value","pt"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Gr,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),tl=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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,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","pt"])])}}}),nl=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,pt:r.unref(n).pt,onChange:l},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format","pt"])])}}}),il=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 p=r.resolveComponent("Dropdown");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>r.unref(t)._value=g),"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,pt:r.unref(n).pt,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","pt"])])}}}),rl=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 p=r.resolveComponent("Editor");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>r.unref(t)._value=g),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,pt:r.unref(n).pt,onTextChange:l,onSelectionChange:a},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules","pt"])])}}}),ll=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]=p=>r.unref(t)._value=p),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,pt:r.unref(n).pt,onBlur:l},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","mask","slot-char","auto-clear","unmask","pt"])])}}}),al=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 p=r.resolveComponent("InputNumber");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>r.unref(t)._value=g),"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,pt:r.unref(n).pt,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","pt"])])}}}),sl={key:0,class:"formkit-prime-left"},ol={key:1,class:"formkit-prime-right"},fl=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",{class:r.normalizeClass(r.unref(n).option_class)},[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",sl,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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value","pt"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",ol,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)],2)}}}),ul=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 g="";return l()&&(g=`${g}p-input-icon-left `),a()&&(g=`${g}p-input-icon-right `),g}function o(g){t==null||t.handlers.blur(g.target.value)}function f(g){t==null||t.node.input(g.target.value)}const p=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,L)=>{const K=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(K,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":L[0]||(L[0]=k=>r.unref(t)._value=k),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(p)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,pt:r.unref(n).pt,onInput:f,onBlur:o},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","pt"]),a?(r.openBlock(),r.createElementBlock("i",{key:1,class:r.normalizeClass(r.unref(t).iconRight)},null,2)):r.createCommentVNode("",!0)],2)])}}}),cl=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 p=r.resolveComponent("Textarea");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>r.unref(t)._value=g),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,pt:r.unref(n).pt,onInput:a,onBlur:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows","pt"])])}}}),pl=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]=p=>r.unref(t)._value=p),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,pt:r.unref(n).pt,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","pt"])])}}}),dl=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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onChange:l},null,8,["modelValue","input-id","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","filter","pt"])])}}}),ml=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 p;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]=g=>r.unref(t)._value=g),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:(p=r.unref(n))==null?void 0:p.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,pt:r.unref(n).pt,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","pt"])])}}}),bl=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 p=r.resolveComponent("Password");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{modelValue:r.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>r.unref(t)._value=g),"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,pt:r.unref(n).pt,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","pt"])])}}}),yl=["for"],hl=r.defineComponent({__name:"PrimeRadioButton",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("RadioButton");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(n).options_class)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).options,p=>(r.openBlock(),r.createElementBlock("div",{key:p.value,class:r.normalizeClass(r.unref(n).option_class)},[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=g=>r.unref(t)._value=g),name:r.unref(n).name,value:p.value,"input-style":r.unref(n).style,"input-class":r.unref(a),pt:r.unref(n).pt,onClick:l,onChange:l},null,8,["modelValue","name","value","input-style","input-class","pt"]),r.createElementVNode("label",{for:p.value},r.toDisplayString(p.label),9,yl)],2))),128))],2)}}}),_l=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]=p=>r.unref(t)._value=p),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",pt:r.unref(n).pt,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","stars","cancel","on-icon","off-icon","cancel-icon","pt"])])}}}),gl=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]=p=>r.unref(t)._value=p),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",pt:r.unref(n).pt,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation","pt"])])}}}),$l=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]=p=>r.unref(t)._value=p),"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",pt:r.unref(n).pt,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","pt"])])}}}),kl=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]=p=>r.unref(t)._value=p),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,pt:r.unref(n).pt,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","pt"])])}}}),Cl={key:0,class:"formkit-prime-left"},wl={key:1,class:"formkit-prime-right"},Vl=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",Cl,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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onClick:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","pt"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",wl,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),rn=M(ul,{props:["iconRight","iconLeft"]}),ln=M(al,{props:["iconRight","iconLeft"]}),an=M(ll,{props:[]}),sn=M(bl,{props:["feedback","toggleMask"]}),on=M(cl,{props:["rows"]}),fn=M(el,{props:[]}),un=M(fl,{props:[]}),cn=M(rl,{props:[]}),pn=M(il,{props:[]}),dn=M(dl,{props:[]}),mn=M(ml,{props:[]}),bn=M(Qr,{props:[]}),yn=M(gl,{props:[]}),hn=M(_l,{props:[]}),_n=M(hl,{props:[]}),gn=M(tl,{props:[]}),$n=M(pl,{props:[]}),kn=M(nl,{props:[]}),Cn=M($l,{props:[]}),wn=M(kl,{props:[]}),Vn=M(Vl,{props:[]}),Sl={primeInputText:rn,primeInputNumber:ln,primeInputMask:an,primePassword:sn,primeCheckbox:fn,primeInputSwitch:un,primeTextarea:on,primeEditor:cn,primeDropdown:pn,primeMultiSelect:dn,primeCalendar:bn,primeSlider:yn,primeChips:gn,primeKnob:$n,primeRating:hn,primeRadioButton:_n,primeColorPicker:kn,primeToggleButton:Cn,primeListbox:mn,primeSelectButton:wn,primeTriStateCheckbox:Vn};P.primeCalendarDefinition=bn,P.primeCheckboxDefinition=fn,P.primeChipsDefinition=gn,P.primeColorPickerDefinition=kn,P.primeDropdownDefinition=pn,P.primeEditorDefinition=cn,P.primeInputMaskDefinition=an,P.primeInputNumberDefinition=ln,P.primeInputSwitchDefinition=un,P.primeInputTextDefinition=rn,P.primeInputs=Sl,P.primeKnobDefinition=$n,P.primeListboxDefinition=mn,P.primeMultiSelectDefinition=dn,P.primePasswordDefinition=sn,P.primeRadioButtonDefinition=_n,P.primeRatingDefinition=hn,P.primeSelectButtonDefinition=wn,P.primeSliderDefinition=yn,P.primeTextareaDefinition=on,P.primeToggleButtonDefinition=Cn,P.primeTriStateCheckboxDefinition=Vn,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(L,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(L=typeof globalThis<"u"?globalThis:L||self,r(L["formkit-primevue"]={},L.Vue))})(this,function(L,r){"use strict";const ct=["__key","__init","__shim","__original","__index","__prevKey"];function me(){return Math.random().toString(36).substring(2,15)}function Sn(e,i){const t=e instanceof Set?e:new Set(e);return i&&i.forEach(n=>t.add(n)),[...t]}function O(e,i){return Object.prototype.hasOwnProperty.call(e,i)}function X(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)return!1;if(e instanceof Date&&i instanceof Date)return e.getTime()===i.getTime();if(e instanceof RegExp&&i instanceof RegExp)return vn(e,i);if(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&&!X(e[l],i[l],t,n))return!1;return!0}return!1}function vn(e,i){return e.source===i.source&&e.flags.split("").sort().join("")===i.flags.split("").sort().join("")}function Te(e){const i=typeof e;if(i==="number")return!1;if(e===void 0)return!0;if(i==="string")return e==="";if(i==="object"){if(e===null)return!0;for(const t in e)return!1;return!(e instanceof RegExp||e instanceof Date)}return!1}function Ne(e){return Object.prototype.toString.call(e)==="[object Object]"}function be(e){return Ne(e)||Array.isArray(e)}function re(e){if(Ne(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const i=e.constructor;if(i===void 0)return!0;const t=i.prototype;return!(Ne(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function ve(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(O(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;re(e[a])&&re(i[a])?l[a]=ve(e[a],i[a],t,n):l[a]=i[a]}else l[a]=e[a];for(const a in i)!O(l,a)&&i[a]!==void 0&&(l[a]=i[a]);return l}function In(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 En(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 le(...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 Ln(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 pt(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 dt(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 Ie(e){return e.replace(/-([a-z0-9])/gi,(i,t)=>t.toUpperCase())}function mt(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,t,n)=>t+"-"+n.toLowerCase()).replace(" ","-").toLowerCase()}function Pn(e,i=ct){if(e!==null&&typeof e=="object"){let t;if(Array.isArray(e)?t=[...e]:re(e)&&(t={...e}),t)return An(e,t,i),t}return e}function ye(e,i=ct){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"?ye(n,i):n):t=Object.keys(e).reduce((n,l)=>(n[l]=typeof e[l]=="object"?ye(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 ne(e){return typeof e=="object"?ye(e):e}function Bn(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(O(n,a)&&(n=n[a]),+l===t.length-1)return n;if(!n||typeof n!="object")return null}return null}function K(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function ae(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function ze(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function An(e,i,t){for(const n of t)n in e&&Object.defineProperty(i,n,{enumerable:!1,value:e[n]});return i}function On(e){let i=!1;return(...t)=>{if(!i)return i=!0,queueMicrotask(()=>i=!1),e(...t)}}function Ke(){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))):(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 bt(){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.flush=()=>{e.clear(),i.clear(),t==null||t.clear()},n.on=(l,a)=>{const[s,...o]=l.split("."),f=a.receipt||me(),p={modifiers:o,event:s,listener:a,receipt:f};return e.has(s)?e.get(s).push(p):e.set(s,[p]),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 Mn(e,i,t,n,l=!0,a){return i._e(e,{payload:n,name:t,bubble:l,origin:e,meta:a}),e}function jn(e,i,t){return Le(e.parent)&&e.parent._e(e.parent,t),e}function xn(e,i,t,n){return i._e.on(t,n)}function Dn(e,i,t){return i._e.off(t),e}const Ue=Ke();Ue((e,i)=>(e.message||(e.message=`E${e.code}`),i(e)));const We=Ke();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 he(e,i={}){We.dispatch({code:e,data:i})}function T(e,i={}){throw Error(Ue.dispatch({code:e,data:i}).message)}function G(e,i){const t={blocking:!1,key:me(),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 yt={apply:Kn,set:Fn,remove:ht,filter:Nn,reduce:zn,release:Hn,touch:Tn};function Rn(e=!1){const i={};let t,n=e,l=[];const a=new Map;let s;const o=new Proxy(i,{get(...f){const[p,$]=f;return $==="buffer"?n:$==="_b"?l:$==="_m"?a:$==="_r"?s:O(yt,$)?yt[$].bind(null,i,o,t):Reflect.get(...f)},set(f,p,$){return p==="_n"?(t=$,s==="__n"&>(t,o),!0):p==="_b"?(l=$,!0):p==="buffer"?(n=$,!0):p==="_r"?(s=$,!0):(T(101,t),!1)}});return o}function Fn(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-${O(e,n.key)?"updated":"added"}`;e[n.key]=Object.freeze(t.hook.message.dispatch(n)),t.emit(l,n)}return i}function Tn(e,i){for(const t in e){const n={...e[t]};i.set(n)}}function ht(e,i,t,n){if(O(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 Nn(e,i,t,n,l){for(const a in e){const s=e[a];(!l||s.type===l)&&!n(s)&&ht(e,i,t,a)}}function zn(e,i,t,n,l){for(const a in e){const s=e[a];l=n(l,s)}return l}function Kn(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):Wn(t,i,a,n[a],l)}}function Un(e,...i){const t=`${e.name}-set`,n=l=>G({key:ze(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 Wn(e,i,t,n,l){var a;const s=i._m;s.has(t)||s.set(t,[]),i._r||(i._r=gt(e,i)),(a=s.get(t))===null||a===void 0||a.push([n,l])}function gt(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 Hn(e,i){i.buffer=!1,i._b.forEach(([t,n])=>i.apply(t,n)),i._b=[]}function qn(){const e={};let i;return{count:(...t)=>Zn(i,e,...t),init(t){i=t,t.on("message-added.deep",$t(e,1)),t.on("message-removed.deep",$t(e,-1))},merge:t=>kt(i,e,t),settled(t){return O(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>kt(i,e,t,!0),value(t){return O(e,t)?e[t].count:0}}}function Zn(e,i,t,n,l=0){if(n=Jn(n||t),!O(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 _t(i[t],l).promise}function Jn(e){return typeof e=="function"?e:i=>i.type===e}function _t(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 $t(e,i){return t=>{for(const n in e){const l=e[n];l.condition(t.payload)&&_t(l,i)}}}function kt(e,i,t,n=!1){const l=e;for(const a in i){const s=i[a].condition;n||t.ledger.count(a,s);const o=t.ledger.value(a)*(n?-1:1);if(e){do e.ledger.count(a,s,o),e=e.parent;while(e);e=l}}}const He=new Map,Ee=new Map,qe=bt(),Yn=[];function Qn(e){e.props.id&&(He.set(e.props.id,e),Ee.set(e,e.props.id),qe(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Xn(e){if(Ee.has(e)){const i=Ee.get(e);Ee.delete(e),He.delete(i),qe(e,{payload:null,name:i,bubble:!1,origin:e})}}function Ct(e){return He.get(e)}function Gn(e,i){Yn.push(qe.on(e,i))}function wt(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 ei(e){const i=document.getElementById(e);if(i instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});i.dispatchEvent(t);return}he(151,e)}function ti(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 ni(e,i){const t=typeof e=="string"?Ct(e):e;if(t){const n=s=>ne(s.props.initial)||(s.type==="group"?{}:s.type==="list"?[]:void 0);t._e.pause(t);const l=ne(i);return i&&!Te(i)&&(t.props.initial=be(l)?ae(l):l,t.props._init=t.props.initial),t.input(n(t),!1),t.walk(s=>{s.type==="list"&&s.sync||s.input(n(s),!1)}),t.input(Te(l)&&l?l:n(t),!1),t.type!=="input"&&i&&!Te(i)&&be(i)&&t.walk(s=>{s.props.initial=be(s.value)?ae(s.value):s.value,s.props._init=t.props.initial}),t._e.play(t),ti(t),t.emit("reset",t),t}he(152,e)}const ii={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${mt(e)}`]:!0})},Vt=Symbol("index"),Ze=Symbol("removed"),Je=Symbol("moved"),St=Symbol("inserted");function ri(e){return e.type==="list"&&Array.isArray(e._value)}function Le(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const Pe=(e,i,t)=>{T(102,[e,t])},li={_c:v(vi,Pe,!1),add:v(gi),addProps:v(hi),address:v(Ei,Pe,!1),at:v(Li),bubble:v(jn),clearErrors:v(Di),calm:v(mi),config:v(!1),define:v(yi),disturb:v(di),destroy:v(bi),extend:v(Fi),hydrate:v(ci),index:v(Si,Vi,!1),input:v(Et),each:v(ki),emit:v(Mn),find:v(Bi),on:v(xn),off:v(Dn),parent:v(!1,_i),plugins:v(!1),remove:v($i),root:v(Oi,Pe,!1),reset:v(xi),resetConfig:v(wi),setErrors:v(Bt),submit:v(ji),t:v(Mi),use:v(Ye),name:v(Ii,!1,!1),walk:v(Ci)};function ai(){return new Map(Object.entries(li))}function v(e,i,t=!0){return{get:e?(n,l)=>t?(...a)=>e(n,l,...a):e(n,l):!1,set:i!==void 0?i:Pe.bind(null)}}function si(){const e=new Map;return new Proxy(e,{get(i,t){return e.has(t)||e.set(t,Ke()),e.get(t)}})}let vt=0,oi=0;function fi(e){var i,t;return((i=e.parent)===null||i===void 0?void 0:i.type)==="list"?Vt:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++vt}`}function It(e){return e.type==="group"?ae(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?ae(Array.isArray(e.value)?e.value:[]):e.value}function Et(e,i,t,n=!0){return i._value=ui(e,e.hook.input.dispatch(t)),e.emit("input",i._value),e.isCreated&&e.type==="input"&&X(i._value,i.value)?(e.emit("commitRaw",i.value),i.settled):(i.isSettled&&e.disturb(),n?(i._tmo&&clearTimeout(i._tmo),i._tmo=setTimeout(Be,e.props.delay,e,i)):Be(e,i),i.settled)}function ui(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 Be(e,i,t=!0,n=!0){i._value=i.value=e.hook.commit.dispatch(i._value),e.type!=="input"&&n&&e.hydrate(),e.emit("commitRaw",i.value),e.emit("commit",i.value),t&&e.calm()}function Lt(e,{name:i,value:t,from:n}){if(!Object.isFrozen(e._value)){if(ri(e)){const l=t===Ze?[]:t===Je&&typeof n=="number"?e._value.splice(n,1):[t];e._value.splice(i,t===Je||n===St?0:1,...l);return}t!==Ze?e._value[i]=t:delete e._value[i]}}function ci(e,i){const t=i._value;return e.type==="list"&&e.sync&&pi(e,i),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"?ae(t[n.name]):t[n.name];if(!n.isSettled||!be(l)&&X(l,n._value))return;n.input(l,!1)}else(e.type!=="list"||typeof n.name=="number")&&Lt(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 pi(e,i){const t=e._value;if(!Array.isArray(t))return;const n=[],l=new Set(i.children),a=new Map;t.forEach((o,f)=>{if(i.children[f]&&i.children[f]._value===o)n.push(i.children[f]),l.delete(i.children[f]);else{n.push(null);const p=a.get(o)||[];p.push(f),a.set(o,p)}}),l.size&&a.size&&l.forEach(o=>{if(a.has(o._value)){const f=a.get(o._value),p=f.shift();n[p]=o,l.delete(o),f.length||a.delete(o._value)}});const s=[];for(a.forEach(o=>{s.push(...o)});l.size&&s.length;){const o=l.values().next().value,f=s.shift();if(f===void 0)break;n[f]=o,l.delete(o)}s.forEach((o,f)=>{n[o]=Ki({value:f})}),l.size&&l.forEach(o=>{if(!("__FKP"in o)){const f=o._c.parent;if(!f||Ui(f))return;f.ledger.unmerge(o),o._c.parent=null,o.destroy()}}),i.children=n}function di(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 mi(e,i,t){var n;if(t!==void 0&&e.type!=="input")return Lt(i,t),Be(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 bi(e,i){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&(e.parent.emit("childRemoved",e),e.parent.remove(e)),Xn(e),e.emit("destroyed",e),i._e.flush(),i._value=i.value=void 0;for(const t in i.context)delete i.context[t];i.plugins.clear(),i.context=null}function yi(e,i,t){i.type=t.type,i.props.definition=ye(t),i.value=i._value=It({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 hi(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=Ie(s);t.includes(o)&&(e.props[o]=l[s],delete l[s])}const a=ne(i._value);e.props.initial=e.type!=="input"?ae(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 gi(e,i,t,n){if(e.type==="input"&&T(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),!i.children.includes(t)){if(n!==void 0&&e.type==="list"){const l=i.children[n];l&&"__FKP"in l?(t._c.uid=l.uid,i.children.splice(n,1,t)):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:St})}else i.children.push(t);t.isSettled||e.disturb()}if(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 Be(e,i,!1),e.ledger.merge(t),e.emit("child",t),e}function _i(e,i,t,n){return Le(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 $i(e,i,t){const n=i.children.indexOf(t);if(n!==-1){t.isSettled&&e.disturb(),i.children.splice(n,1);let l=K(t.props.preserve),a=t.parent;for(;l===void 0&&a;)l=K(a.props.preserve),a=a.parent;l?e.calm():e.calm({name:e.type==="list"?n:t.name,value:Ze}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function ki(e,i,t){i.children.forEach(n=>!("__FKP"in n)&&t(n))}function Ci(e,i,t,n=!1,l=!1){i.children.some(a=>{if("__FKP"in a)return!1;const s=t(a);return n&&s===!1?!0:l&&s===!1?!1:a.walk(t,n,l)})}function wi(e,i){const t=e.parent||void 0;i.config=Pt(e.config._t,t),e.walk(n=>n.resetConfig())}function Ye(e,i,t,n=!0,l=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(a=>Ye(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 Vi(e,i,t,n){if(Le(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:Je,from:s}),!0)}return!1}function Si(e){if(e.parent){const i=[...e.parent.children].indexOf(e);return i===-1?e.parent.children.length:i}return-1}function vi(e,i){return i}function Ii(e,i){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:i.name!==Vt?i.name:e.index}function Ei(e,i){return i.parent?i.parent.address.concat([e.name]):[e.name]}function Li(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=>!("__FKP"in o)&&String(o.name)===String(s))||Pi(a,s)}}return a||void 0}function Pi(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 Bi(e,i,t,n){return Ai(e,t,n)}function Ai(e,i,t="name"){const n=typeof t=="string"?a=>a[t]==i:t,l=[e];for(;l.length;){const a=l.shift();if(!("__FKP"in a)){if(n(a,i))return a;l.push(...a.children)}}}function Oi(e){let i=e;for(;i.parent;)i=i.parent;return i}function Pt(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:ii[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(!X(e[l],a,!1)){const s=Reflect.set(...n);return t&&(t.emit(`config:${l}`,a,!1),wt(t,l,a),t.walk(o=>wt(o,l,a),!1,!0)),s}return!0}})}function Mi(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 ji(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&&ei(e.props.id)}function xi(e,i,t){return ni(e,t)}function Bt(e,i,t,n){const l=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:t,childErrors:n});return Un(e,a.localErrors,a.childErrors).forEach(s=>{e.store.apply(s,o=>o.meta.source===l)}),e}function Di(e,i,t=!0,n){return Bt(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 Ri(e){const i={initial:typeof e=="object"?ne(e):e};let t,n=!0;return new Proxy(i,{get(...l){const[a,s]=l;if(O(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:p}=t.hook.prop.dispatch({prop:a,value:s});if(!X(i[f],p,!1)||typeof p=="object"){const $=Reflect.set(l,f,p,o);return n&&(t.emit("prop",{prop:f,value:p}),typeof f=="string"&&t.emit(`prop:${f}`,p)),$}return!0}})}function Fi(e,i,t,n){return i.traps.set(t,n),e}function Ti(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 Ni(e){const i=It(e),t=Pt(e.config||{},e.parent);return{_d:0,_e:bt(),uid:Symbol(),_resolve:!1,_tmo:!1,_value:i,children:Sn(e.children||[]),config:t,hook:si(),isCreated:!1,isSettled:!0,ledger:qn(),name:fi(e),parent:e.parent||null,plugins:new Set,props:Ri(i),settled:Promise.resolve(i),store:Rn(!0),sync:e.sync||!1,traps:ai(),type:e.type||"input",value:i}}function zi(e,i){var t,n,l;const a=(t=i.props)===null||t===void 0?void 0:t.id;if(a||(n=i.props)===null||n===void 0||delete n.id,e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,Object.assign(e.props,a?{}:{id:`input_${oi++}`},(l=i.props)!==null&&l!==void 0?l:{}),e.props._emit=!0,Ti(e,new Set([...i.plugins||[],...e.parent?e.parent.plugins:[]])),i.plugins)for(const s of i.plugins)Ye(e,e._c,s,!0,!1);return e.each(s=>e.add(s)),e.parent&&e.parent.add(e,i.index),e.type==="input"&&e.children.length&&T(100,e),Et(e,e._c,e._value,!1),e.store.release(),a&&Qn(e),e.emit("created",e),e.isCreated=!0,e}function Ki(e){var i,t,n,l;return{__FKP:!0,uid:Symbol(),name:(i=e==null?void 0:e.name)!==null&&i!==void 0?i:`p_${vt++}`,value:(t=e==null?void 0:e.value)!==null&&t!==void 0?t:null,_value:(n=e==null?void 0:e.value)!==null&&n!==void 0?n:null,type:(l=e==null?void 0:e.type)!==null&&l!==void 0?l:"input",use:()=>{},input(a){return this._value=a,this.value=a,Promise.resolve()},isSettled:!0}}function Ui(e){return"__FKP"in e}function Wi(e){const i=e||{},t=Ni(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 zi(n,i)}function Qe(e){return typeof e!="string"&&O(e,"$el")}function Xe(e){return typeof e!="string"&&O(e,"$cmp")}function se(e){return!e||typeof e=="string"?!1:O(e,"if")&&O(e,"then")}function Hi(e){return typeof e!="string"&&"$formkit"in e}function qi(e){if(typeof e=="string")return{$el:"text",children:e};if(Hi(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 U(e){let i;const t=new Set,n=function(d,m){return typeof d=="function"?d(m):d},l=[{"&&":(u,d,m)=>n(u,m)&&n(d,m),"||":(u,d,m)=>n(u,m)||n(d,m)},{"===":(u,d,m)=>n(u,m)===n(d,m),"!==":(u,d,m)=>n(u,m)!==n(d,m),"==":(u,d,m)=>n(u,m)==n(d,m),"!=":(u,d,m)=>n(u,m)!=n(d,m),">=":(u,d,m)=>n(u,m)>=n(d,m),"<=":(u,d,m)=>n(u,m)<=n(d,m),">":(u,d,m)=>n(u,m)>n(d,m),"<":(u,d,m)=>n(u,m)<n(d,m)},{"+":(u,d,m)=>n(u,m)+n(d,m),"-":(u,d,m)=>n(u,m)-n(d,m)},{"*":(u,d,m)=>n(u,m)*n(d,m),"/":(u,d,m)=>n(u,m)/n(d,m),"%":(u,d,m)=>n(u,m)%n(d,m)}],a=l.reduce((u,d)=>u.concat(Object.keys(d)),[]),s=new Set(a.map(u=>u.charAt(0)));function o(u,d,m,g){const k=u.filter(_=>_.startsWith(d));return k.length?k.find(_=>g.length>=m+_.length&&g.substring(m,m+_.length)===_?_:!1):!1}function f(u,d,m=1){let g=m?d.substring(u+1).trim():d.substring(0,u).trim();if(!g.length)return-1;if(!m){const _=g.split("").reverse(),w=_.findIndex(c=>s.has(c));g=_.slice(w).join("")}const k=g[0];return l.findIndex(_=>{const w=Object.keys(_);return!!o(w,k,0,g)})}function p(u,d){let m="";const g=d.length;let k=0;for(let _=u;_<g;_++){const w=d.charAt(_);if(w==="(")k++;else if(w===")")k--;else if(k===0&&w===" ")continue;if(k===0&&o(a,w,_,d))return[m,_-1];m+=w}return[m,d.length-1]}function $(u,d=0){const m=l[d],g=u.length,k=Object.keys(m);let _=0,w=!1,c=null,b="",V=null,E,j="",S="",A="",P="",R=0;const z=(B,F)=>{B?A+=F:b+=F};for(let B=0;B<g;B++)if(j=S,S=u.charAt(B),(S==="'"||S==='"')&&j!=="\\"&&(_===0&&!w||_&&!P)){_?P=S:w=S,z(_,S);continue}else if(w&&(S!==w||j==="\\")||P&&(S!==P||j==="\\")){z(_,S);continue}else if(w===S){w=!1,z(_,S);continue}else if(P===S){P=!1,z(_,S);continue}else{if(S===" ")continue;if(S==="(")_===0?R=B:A+=S,_++;else if(S===")")if(_--,_===0){const F=typeof b=="string"&&b.startsWith("$")?b:void 0,Ve=F&&u.charAt(B+1)===".";let te="";Ve&&([te,B]=p(B+2,u));const Fe=c?d:f(R,u,0),Se=f(B,u);Fe===-1&&Se===-1?(b=I(A,-1,F,te),typeof b=="string"&&(b=A)):c&&(Fe>=Se||Se===-1)&&d===Fe?(V=c.bind(null,I(A,-1,F,te)),c=null,b=""):Se>Fe&&d===Se?b=I(A,-1,F,te):b+=`(${A})${Ve?`.${te}`:""}`,A=""}else A+=S;else if(_===0&&(E=o(k,S,B,u))){B===0&&T(103,[E,u]),B+=E.length-1,B===u.length-1&&T(104,[E,u]),c?b&&(V=c.bind(null,I(b,d)),c=m[E].bind(null,V),b=""):V?(c=m[E].bind(null,I(V,d)),V=null):(c=m[E].bind(null,I(b,d)),b="");continue}else z(_,S)}return b&&c&&(c=c.bind(null,I(b,d))),c=!c&&V?V:c,!c&&b&&(c=(B,F)=>typeof B=="function"?B(F):B,c=c.bind(null,I(b,d))),!c&&!b&&T(105,u),c}function I(u,d,m,g){if(m){const k=I(m,l.length);let _,w=g?U(`$${g}`):!1;if(typeof k=="function"){const c=Ln(String(u)).map(b=>I(b,-1));return b=>{const V=k(b);return typeof V!="function"?(he(150,m),V):(_=V(...c.map(E=>typeof E=="function"?E(b):E)),w&&(w=w.provide(E=>{const j=i(E);return E.reduce((A,P)=>{if(P===g||(g==null?void 0:g.startsWith(`${P}(`))){const z=Bn(_,P);A[P]=()=>z}else A[P]=j[P];return A},{})})),w?w():_)}}}else if(typeof u=="string"){if(u==="true")return!0;if(u==="false")return!1;if(u==="undefined")return;if(In(u))return En(u.substring(1,u.length-1));if(!isNaN(+u))return Number(u);if(d<l.length-1)return $(u,d+1);if(u.startsWith("$")){const k=u.substring(1);return t.add(k),function(w){return k in w?w[k]():void 0}}return u}return u}const N=$(e.startsWith("$:")?e.substring(2):e),h=Array.from(t);function y(u){return i=u,Object.assign(N.bind(null,u(h)),{provide:y})}return Object.assign(N,{provide:y})}const At="1.0.0";function Zi(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 oe(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 fe(e,i){return e===null&&i===void 0||e===void 0&&i===null?!1:e==i?!0:re(e)&&re(i)?X(e,i):!1}function Ge(e){e.hook.prop((i,t)=>(i.prop==="options"&&(typeof i.value=="function"?(e.props.optionsLoader=i.value,i.value=[]):i.value=Zi(i.value)),t(i)))}function C(e,i,t=!1){return(...n)=>{const l=a=>{const s=!i||typeof i=="string"?{$el:i}:i();return(Qe(s)||Xe(s))&&(s.meta||(s.meta={section:e}),n.length&&!s.children&&(s.children=[...n.map(o=>typeof o=="string"?o:o(a))]),Qe(s)&&(s.attrs={class:`$classes.${e}`,...s.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in a?ge(s,a[e]):s}};return l._s=e,t?Ji(l):l}}function Ji(e){return i=>[e(i)]}function Ae(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function ge(e,i={}){return typeof e=="string"?Ae(i)||typeof i=="string"?i:e:Array.isArray(e)?Ae(i)?i:e:ve(e,i)}const Yi=C("actions",()=>({$el:"div",if:"$actions"})),Oe=C("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=C("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),Mt=C("inner","span"),Me=C("label","span"),jt=C("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled"}})),xt=C("options","ul"),je=C("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"}}})),Qi=C("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Xi=C("default",null),xe=C("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),Dt=C("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),Gi=C("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy"}})),er=C("fileItem",()=>({$el:"li",for:["file","$value"]})),tr=C("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":{if:"$value.length > 1",then:"true"}}})),nr=C("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),Rt=C("fileRemove",()=>({$el:"button",attrs:{type:"button",onClick:"$handlers.resetFiles"}})),ir=C("form",()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}})),et=C("wrapper",null,!0),W=C("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),x=(e,i)=>C(`${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 + " " + $classes.icon`,innerHTML:`$${t}`,onClick:`$handlers.iconClick(${e})`,for:{if:`${i==="label"}`,then:"$id"}}}})(),ie=C("inner","div"),_e=C("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),Ft=C("legend",()=>({$el:"legend",if:"$label"})),Z=C("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),J=C("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),rr=C("noFiles",()=>({$el:"span",if:"$value.length == 0"})),lr=C("option",()=>({$el:"option",for:["option","$options"],bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}})),ar=()=>({$el:null,if:"$options.length",for:["option","$options"],children:"$slots.option"}),ee=C("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 !== "false" && $disabled) || undefined',"data-empty":"$state.empty || 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"}})),H=C("prefix",null),sr=C("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"}})),or=C("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",disabled:"$disabled",label:"$submitLabel"}})),q=C("suffix",null),Tt=C("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"}})),fr=C("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"})),ue=C("wrapper","div");function Nt(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:ve(n,{attrs:{id:`${e.props.id}-option-${ze(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 ur(e,i){const t=i.target;if(t instanceof HTMLInputElement){const n=Array.isArray(e.props.options)?oe(e.props.options,t.value):t.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(l=>fe(n,l))?e.input(e._value.filter(l=>!fe(n,l))):e.input([...e._value,n]):e.input([n]):t.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function cr(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=>fe(oe(e.props.options,i),l)):!1}function pr(e){e.on("created",()=>{var i,t;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=ur.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=cr.bind(null,e)),O(e.props,"onValue")||(e.props.onValue=!0),O(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(Nt(e))}function ce(e,i){return t=>{t.props[`${e}Icon`]===void 0&&(t.props[`${e}Icon`]=i.startsWith("<svg")?i:`default:${i}`)}}function tt(e){e.on("created",()=>{"disabled"in e.props&&(e.props.disabled=K(e.props.disabled),e.config.disabled=K(e.props.disabled))}),e.hook.prop(({prop:i,value:t},n)=>(t=i==="disabled"?K(t):t,n({prop:i,value:t}))),e.on("prop:disabled",({payload:i})=>{e.config.disabled=K(i)})}function $e(e,i){return t=>{t.store.set(G({key:e,type:"ui",value:i||e,meta:{localize:!0,i18nArgs:[t]}}))}}const nt=typeof window<"u";function zt(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function Kt(e,i){i.target instanceof HTMLInputElement?e==="dragover"&&i.target.setAttribute("data-file-hover","true"):i.preventDefault(),e==="drop"&&zt(i)}function dr(e){$e("noFiles","Select file")(e),$e("removeAll","Remove all")(e),$e("remove")(e),nt&&(window._FormKit_File_Drop||(window.addEventListener("dragover",Kt.bind(null,"dragover")),window.addEventListener("drop",Kt.bind(null,"drop")),window.addEventListener("dragleave",zt),window._FormKit_File_Drop=!0)),e.hook.input((i,t)=>t(Array.isArray(i)?i:[])),e.on("reset",()=>{if(e.props.id&&nt){const i=document.getElementById(e.props.id);i&&(i.value="")}}),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&&nt){const t=document.getElementById(e.props.id);t&&(t.value=""),t==null||t.focus()}},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))})})}const Ut=G({key:"loading",value:!0,visible:!1});async function mr(e,i){const t=Math.random();if(e.props._submitNonce=t,i.preventDefault(),await e.settled,e.ledger.value("validating")&&(e.store.set(Ut),await e.ledger.settled("validating"),e.store.remove("loading"),e.props._submitNonce!==t))return;const n=l=>l.store.set(G({key:"submitted",value:!0,visible:!1}));if(e.walk(n),n(e),e.emit("submit-raw"),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 l=e.props.onSubmit(e.hook.submit.dispatch(ye(e.value)),e);if(l instanceof Promise){const a=e.props.disabled===void 0&&e.props.submitBehavior!=="live";a&&(e.props.disabled=!0),e.store.set(Ut),await l,a&&(e.props.disabled=!1),e.store.remove("loading")}}else i.target instanceof HTMLFormElement&&i.target.submit()}function br(e){e.props.isForm=!0,e.ledger.count("validating",i=>i.key==="validating"),e.on("created",()=>{var i;!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.submit=mr.bind(null,e)),O(e.props,"actions")||(e.props.actions=!0)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function yr(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function hr(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function Wt(e){if(typeof e.props.number>"u")return;const i=["number","range","hidden"].includes(e.props.type);e.hook.input((t,n)=>{if(t==="")return n(void 0);const l=e.props.number==="integer"?parseInt(t):parseFloat(t);return Number.isFinite(l)?n(l):n(i?void 0:t)})}function gr(e,i){i.target instanceof HTMLInputElement&&e.input(oe(e.props.options,i.target.value))}function _r(e,i){var t,n;return(t=e.context)===null||t===void 0||t.value,(n=e.context)===null||n===void 0||n._value,fe(oe(e.props.options,i),e._value)}function $r(e){e.on("created",()=>{var i,t;Array.isArray(e.props.options)||he(350,{node:e,inputType:"radio"}),!((i=e.context)===null||i===void 0)&&i.handlers&&(e.context.handlers.toggleChecked=gr.bind(null,e)),!((t=e.context)===null||t===void 0)&&t.fns&&(e.context.fns.isChecked=_r.bind(null,e))}),e.hook.prop(Nt(e))}let kr=0;function Cr(e){e.sync&&e.plugins.add(wr)}function wr(e){e.props.type==="radio"&&(e.props.altName=`${e.name}_${kr++}`)}function Vr(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=>fe(l,t)):(e._value===void 0||e._value===null&&n())&&i.attrs&&i.attrs["data-is-placeholder"]?!0:fe(t,e._value)}async function Sr(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 vr(e,i){const t=i.target,n=t.hasAttribute("multiple")?Array.from(t.selectedOptions).map(l=>oe(e.props.options,l.value)):oe(e.props.options,t.value);e.input(n)}function Ht(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 Ir(e){e.on("created",()=>{var i,t,n;const l=K((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=Ht(s,e.props.placeholder)),o({prop:a,value:s}))),e.props.options=Ht(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=vr.bind(null,e),e.context.handlers.onChange=Sr.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isSelected=Vr.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 p="__original"in f?f.__original:f.value;return X(a,p)});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&&!K((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 it(e){return!!(se(e)&&e.if&&e.if.startsWith("$slots.")&&typeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function Er(e){return ee(ue(_e("$label"),ie(H(),e(),q())),W("$help"),J(Z("$message.value")))}function Y(e,i,t){const n=l=>{const a=i(l);if(t||Ae(a)&&"if"in a||it(a)){const s={if:e,then:a};return t&&(s.else=t(l)),s}else it(a)?Object.assign(a.else,{if:e}):Ae(a)&&Object.assign(a,{if:e});return a};return n._s=me(),n}function pe(e,i){const t=n=>{const l=e({});return it(l)?(Array.isArray(l.else)||(l.else=ge(ge(l.else,i),e._s?n[e._s]:{})),l):ge(ge(l,i),e._s?n[e._s]:{})};return t._s=e._s,t}const Lr=["classes","config","delay","errors","id","index","inputErrors","modelValue","onUpdate:modelValue","name","number","parent","plugins","sectionsSchema","type","validation","validationLabel","validationMessages","validationRules","onInput","onInputRaw","onUpdate:modelValue","onNode","onSubmit","onSubmitInvalid","onSubmitRaw"];ee(J(Z("$message.value")),ue(Qi(x("prefix"),H(),Xi("$label || $ui.submit.value"),q(),x("suffix"))),W("$help")),$e("submit"),ee(Y("$options == undefined",je(Mt(H(),Oe(),xe(x("decorator")),q()),pe(Me("$label"),{if:"$label"})),Dt(Ft("$label"),W("$help"),xt(jt(je(Mt(H(),pe(Oe(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),xe(x("decorator")),q()),pe(Me("$option.label"),{if:"$option.label"})),Ot("$option.help"))))),Y("$options == undefined && $help",W("$help")),J(Z("$message.value"))),ce("decorator","checkboxDecorator"),ee(ue(_e("$label"),ie(x("prefix","label"),H(),Gi(),tr(er(x("fileItem"),nr("$file.name"),Y("$value.length === 1",Rt(x("fileRemove"),'$ui.remove.value + " " + $file.name')))),Y("$value.length > 1",Rt("$ui.removeAll.value")),rr(x("noFiles"),"$ui.noFiles.value"),q(),x("suffix"))),W("$help"),J(Z("$message.value"))),ce("fileItem","fileItem"),ce("fileRemove","fileRemove"),ce("noFiles","noFiles"),ir("$slots.default",J(Z("$message.value")),Yi(or())),et("$slots.default"),Tt(),et("$slots.default"),et(),ee(Y("$options == undefined",je(ie(H(),Oe(),xe(x("decorator")),q()),pe(Me("$label"),{if:"$label"})),Dt(Ft("$label"),W("$help"),xt(jt(je(ie(H(),pe(Oe(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),xe(x("decorator")),q()),pe(Me("$option.label"),{if:"$option.label"})),Ot("$option.help"))))),Y("$options == undefined && $help",W("$help")),J(Z("$message.value"))),ce("decorator","radioDecorator"),ee(ue(_e("$label"),ie(x("prefix"),H(),sr(Y("$slots.default",()=>"$slots.default",Y("$slots.option",ar,lr("$option.label")))),Y("$attrs.multiple !== undefined",()=>"",x("select")),q(),x("suffix"))),W("$help"),J(Z("$message.value"))),ce("select","select"),ee(ue(_e("$label"),ie(x("prefix","label"),H(),fr(),q(),x("suffix"))),W("$help"),J(Z("$message.value"))),ee(ue(_e("$label"),ie(x("prefix","label"),H(),Tt(),q(),x("suffix"))),W("$help"),J(Z("$message.value"))),G({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let De;const Pr=new Promise(e=>{}),Re=typeof window<"u"&&typeof fetch<"u";De=Re?getComputedStyle(document.documentElement):void 0;const ke={},rt={};function lt(e,i){return t=>{if(typeof t!="string")return;if(t.startsWith("<svg"))return t;const n=t.startsWith("default:");t=n?t.split(":")[1]:t;const l=t in ke;let a;if(l)return ke[t];if(!rt[t]){if(a=Br(t),a=Re&&typeof a>"u"?Promise.resolve(a):a,a instanceof Promise)rt[t]=a.then(s=>!s&&typeof t=="string"&&!n?a=typeof e=="function"?e(t):Or(t,i):s).then(s=>(typeof t=="string"&&(ke[n?`default:${t}`:t]=s),s));else if(typeof a=="string")return ke[n?`default:${t}`:t]=a,a}return rt[t]}}function Br(e){if(Re)return Pr.then(()=>Ar(e))}function Ar(e){const i=De==null?void 0:De.getPropertyValue(`--fk-icon-${e}`);if(i){const t=atob(i);if(t.startsWith("<svg"))return ke[e]=t,t}}function Or(e,i){const t=At.startsWith("__")?"latest":At,n=typeof i=="function"?i(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;if(Re)return fetch(`${n}`).then(async l=>{const a=await l.text();if(a.startsWith("<svg"))return a}).catch(l=>{console.error(l)})}let at=!1;const qt={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}).`},Zt={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:{node:e,inputType:i}})=>`Invalid options prop for ${e.name} input (${i}). See https://formkit.com/inputs/${i}`,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.`};at||Ue((e,i)=>{if(e.code in qt){const t=qt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),at||We((e,i)=>{if(e.code in Zt){const t=Zt[e.code];e.message=typeof t=="function"?t(e):t}return i(e)}),at=!0;const Mr=typeof window>"u",st=new Map;function jr(e,i){var t;!Mr||!e||(st.has(e)||st.set(e,new Set),(t=st.get(e))===null||t===void 0||t.add(i))}const Jt=typeof window>"u",Ce={},de={};let D;const Q=new WeakMap,xr="__raw__",Dr=/[a-zA-Z0-9\-][cC]lass$/;function Rr(e,i){const t=r.ref(null);if(e==="get"){const l={};return t.value=Fr.bind(null,l),t}const n=e.split(".");return r.watchEffect(()=>{t.value=ot(r.isRef(i)?i.value:i,n)}),t}function ot(e,i){if(Array.isArray(e)){for(const l of e){const a=l!==!1&&ot(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 Fr(e,i){if(typeof i!="string")return he(650);if(i in e||(e[i]=r.ref(void 0)),e[i].value===void 0){e[i].value=null;const t=Ct(i);t&&(e[i].value=t.context),Gn(i,({payload:n})=>{e[i].value=Le(n)?n.context:n})}return e[i].value}function Yt(e,i,t){function n(h,y){const u=I(U(y.if),{if:!0}),d=p(h,y.then),m=y.else?p(h,y.else):null;return[u,d,m]}function l(h,y){var u,d;const m=I(U(h.if));let g=()=>y,k=()=>y;return typeof h.then=="object"?k=a(h.then,void 0):typeof h.then=="string"&&(!((u=h.then)===null||u===void 0)&&u.startsWith("$"))?k=I(U(h.then)):k=()=>h.then,O(h,"else")&&(typeof h.else=="object"?g=a(h.else):typeof h.else=="string"&&(!((d=h.else)===null||d===void 0)&&d.startsWith("$"))?g=I(U(h.else)):g=()=>h.else),()=>m()?k():g()}function a(h,y,u={}){const d=new Set(Object.keys(h||{})),m=y?I(U(y)):()=>({}),g=[k=>{const _=m();for(const w in _)d.has(w)||(k[w]=_[w])}];if(h){if(se(h))return l(h,u);for(let k in h){const _=h[k];let w;const c=typeof _=="string";k.startsWith(xr)?(k=k.substring(7),w=()=>_):c&&_.startsWith("$")&&_.length>1&&!(_.startsWith("$reset")&&Dr.test(k))?w=I(U(_)):typeof _=="object"&&se(_)?w=l(_,void 0):typeof _=="object"&&re(_)?w=a(_):w=()=>_,g.push(b=>{b[k]=w()})}}return()=>{const k=Array.isArray(h)?[]:{};return g.forEach(_=>_(k)),k}}function s(h,y){let u=null,d=()=>null,m=!1,g=null,k=null,_=null,w=!1;const c=qi(y);if(Qe(c)?(u=c.$el,d=c.$el!=="text"?a(c.attrs,c.bind):()=>null):Xe(c)?(typeof c.$cmp=="string"?O(h,c.$cmp)?u=h[c.$cmp]:(u=c.$cmp,w=!0):u=c.$cmp,d=a(c.props,c.bind)):se(c)&&([m,g,k]=n(h,c)),!se(c)&&"if"in c?m=I(U(c.if)):!se(c)&&u===null&&(m=()=>!0),"children"in c&&c.children)if(typeof c.children=="string")if(c.children.startsWith("$slots."))u=u==="text"?"slot":u,g=I(U(c.children));else if(c.children.startsWith("$")&&c.children.length>1){const b=I(U(c.children));g=()=>String(b())}else g=()=>String(c.children);else if(Array.isArray(c.children))g=p(h,c.children);else{const[b,V,E]=n(h,c.children);g=j=>b&&b()?V&&V(j):E&&E(j)}if(Xe(c))if(g){const b=g;g=V=>({default(E,j){var S,A,P,R;const z=D;j&&(D=j),E&&((S=Q.get(D))===null||S===void 0||S.unshift(E)),V&&((A=Q.get(D))===null||A===void 0||A.unshift(V));const B=b(V);return E&&((P=Q.get(D))===null||P===void 0||P.shift()),V&&((R=Q.get(D))===null||R===void 0||R.shift()),D=z,B}}),g.slot=!0}else g=()=>({});if("for"in c&&c.for){const b=c.for.length===3?c.for[2]:c.for[1];_=[typeof b=="string"&&b.startsWith("$")?I(U(b)):()=>b,c.for[0],c.for.length===3?String(c.for[1]):null]}return[m,u,d,g,k,_,w]}function o(h,y){const u=h(y),d=D;return Object.keys(u).reduce((m,g)=>{const k=u&&u[g];return m[g]=_=>k&&k(_,d)||null,m},{})}function f(h,y){const[u,d,m,g,k,_,w]=s(h,y);let c=b=>{if(u&&d===null&&g)return u()?g(b):k&&k(b);if(d&&(!u||u())){if(d==="text"&&g)return r.createTextVNode(String(g()));if(d==="slot"&&g)return g(b);const V=w?r.resolveComponent(d):d,E=g!=null&&g.slot?o(g,b):null;return r.h(V,m(),E||(g?g(b):[]))}return typeof k=="function"?k(b):k};if(_){const b=c,[V,E,j]=_;c=()=>{const S=V(),A=Number.isFinite(S)?Array(Number(S)).fill(0).map((B,F)=>F):S,P=[];if(typeof A!="object")return null;const R=Q.get(D)||[],z=Array.isArray(A);for(const B in A){if(z&&B in Array.prototype)continue;const F=Object.defineProperty({...R.reduce((Ve,te)=>Ve.__idata?{...Ve,...te}:te,{}),[E]:A[B],...j!==null?{[j]:z?Number(B):B}:{}},"__idata",{enumerable:!1,value:!0});R.unshift(F),P.push(b.bind(null,F)()),R.shift()}return P}}return c}function p(h,y){if(Array.isArray(y)){const d=y.map(f.bind(null,h));return m=>d.map(g=>g(m))}const u=f(h,y);return d=>u(d)}const $=[];function I(h,y={}){const u=new WeakMap;return $.push((d,m)=>{u.set(m,h.provide(g=>d(g,y)))}),()=>u.get(D)()}function N(h,y){var u;t??(t=JSON.stringify(i));const[d,m]=O(Ce,t)?Ce[t]:[p(e,i),$];return Jt||((u=de[t])!==null&&u!==void 0||(de[t]=0),de[t]++,Ce[t]=[d,m]),m.forEach(g=>{g(h,y)}),()=>(D=y,d())}return N}function Qt(e,i){const t=Q.get(D)||[];let n;return t.length&&(n=ot(t,e.split("."))),n===void 0?i:n}function Tr(e,i){return new Proxy(e,{get(...t){let n;const l=t[1];if(typeof l=="string"){const a=D;D=i,n=Qt(l,void 0),D=a}return n!==void 0?n:Reflect.get(...t)}})}function Xt(e,i,t){return e((n,l={})=>n.reduce((a,s)=>{if(s.startsWith("slots.")){const o=s.substring(6),f=()=>i.slots&&O(i.slots,o)&&typeof i.slots[o]=="function";if(l.if)a[s]=f;else if(i.slots){const p=Tr(i,t);a[s]=()=>f()?i.slots[o](p):null}}else{const o=Rr(s,i);a[s]=()=>Qt(s,o.value)}return a},{}),t)}function Gt(e,i,t){if(i??(i=JSON.stringify(e)),de[i]--,de[i]===0){delete de[i];const[,n]=Ce[i];delete Ce[i],n.length=0}Q.delete(t)}const ft=r.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})},memoKey:{type:String,required:!1}},setup(e,i){var t;const n=r.getCurrentInstance();let l={};Q.set(l,[]);let a=Yt(e.library,e.schema,e.memoKey),s,o;Jt||r.watch(()=>e.schema,(p,$)=>{var I;const N=l;l={},Q.set(l,[]),a=Yt(e.library,e.schema,e.memoKey),s=Xt(a,o,l),p===$&&((I=n==null?void 0:n.proxy)===null||I===void 0?void 0:I.$forceUpdate)(),Gt(e.schema,e.memoKey,N)},{deep:!0}),r.watchEffect(()=>{var p;o=Object.assign(r.reactive((p=e.data)!==null&&p!==void 0?p:{}),{slots:i.slots}),i.slots,s=Xt(a,o,l)});function f(){Gt(e.schema,e.memoKey,l),o.node&&o.node.destroy(),o.slots=null,o=null,s=null}return r.onUnmounted(f),jr((t=r.getCurrentInstance())===null||t===void 0?void 0:t.appContext.app,f),()=>s?s():null}}),Nr=typeof window>"u",we=Symbol("FormKitParent");function zr(e,i){const t=Wr(e,i);if(t.props.definition||T(600,t),t.props.definition.component)return()=>{var o;return r.h((o=t.props.definition)===null||o===void 0?void 0:o.component,{context:t.context},{...i.slots})};const n=r.ref([]);let l=t.props.definition.schemaMemoKey;const a=()=>{var o,f;const p=(f=(o=t.props)===null||o===void 0?void 0:o.definition)===null||f===void 0?void 0:f.schema;p||T(601,t),typeof p=="function"?(n.value=p({...e.sectionsSchema}),(l&&e.sectionsSchema||"memoKey"in p&&typeof p.memoKey=="string")&&(l=(l??(p==null?void 0:p.memoKey))+JSON.stringify(e.sectionsSchema))):n.value=p};a(),Nr||t.on("schema",()=>{l+="♻️",a()}),i.emit("node",t);const s=t.props.definition.library;return i.expose({node:t}),()=>r.h(ft,{schema:n.value,data:t.context,library:s,memoKey:l},{...i.slots})}r.defineComponent(zr,{props:Lr,inheritAttrs:!1});const en=Symbol();r.defineComponent((e,i)=>{const t=r.ref(null),n=r.ref(!1),l=r.ref(void 0),a=r.watch(t,o=>{let f=o,p=null;for(;f=f==null?void 0:f.parentNode;)if(p=f,p instanceof ShadowRoot||p instanceof Document){s(p);break}a(),n.value=!0});r.provide(en,l);function s(o){l.value=o}return()=>n.value&&i.slots.default?i.slots.default():r.h("template",{ref:t})});const tn=Symbol.for("FormKitOptions"),Kr=typeof window<"u",ut=["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 nn(e,i){i.classes&&Object.keys(i.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=i.classes[t],be(i.classes[t])&&t==="inner"&&Object.values(i.classes[t]))})}function Ur(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 Wr(e,i,t={}){var n;const l=Object.assign({},r.inject(tn)||{},t),a=r.inject(en,r.ref(Kr?document:void 0)),s=r.getCurrentInstance(),o=Ur(s==null?void 0:s.vnode.props),f=["modelValue","model-value"].some(c=>{var b;return c in((b=s==null?void 0:s.vnode.props)!==null&&b!==void 0?b:{})});let p=!1;r.onMounted(()=>{p=!0});const $=e.modelValue!==void 0?e.modelValue:ne(i.attrs.value);function I(){var c;const b={...le(e),...o,type:(c=e.type)!==null&&c!==void 0?c:"text",__root:a.value,__slots:i.slots},V=pt(le(i.attrs),ut);V.key||(V.key=me()),b.attrs=V;const E=dt(le(i.attrs),ut);for(const S in E)b[Ie(S)]=E[S];const j={props:{}};return nn(j,e),Object.assign(b,j.props),typeof b.type!="string"&&(b.definition=b.type,delete b.type),b}const N=I(),h=N.ignore?null:e.parent||r.inject(we,null),y=Wi(ve(l||{},{name:e.name||void 0,value:$,parent:h,plugins:(l.plugins||[]).concat((n=e.plugins)!==null&&n!==void 0?n:[]),config:e.config||{},props:N,index:e.index,sync:!!K(i.attrs.sync||i.attrs.dynamic)},!1,!0));y.props.definition||T(600,y);const u=r.ref(new Set(y.props.definition.props||[]));y.on("added-props",({payload:c})=>{Array.isArray(c)&&c.forEach(b=>u.value.add(b))});const d=r.computed(()=>ut.concat([...u.value]).reduce((c,b)=>(typeof b=="string"?(c.push(Ie(b)),c.push(mt(b))):c.push(b),c),[]));r.watchEffect(()=>nn(y,e));const m=le(e);for(const c in m)r.watch(()=>e[c],()=>{e[c]!==void 0&&(y.props[c]=e[c])});r.watchEffect(()=>{y.props.__root=a.value});const g=new Set,k=le(i.attrs);r.watchEffect(()=>{_(dt(k,d.value))});function _(c){g.forEach(b=>{b(),g.delete(b)});for(const b in c){const V=Ie(b);g.add(r.watch(()=>i.attrs[b],()=>{y.props[V]=i.attrs[b]}))}}if(r.watchEffect(()=>{const c=pt(le(i.attrs),d.value);"multiple"in c&&(c.multiple=K(c.multiple)),typeof c.onBlur=="function"&&(c.onBlur=On(c.onBlur)),y.props.attrs=Object.assign({},y.props.attrs||{},c)}),r.watchEffect(()=>{var c;const b=((c=e.errors)!==null&&c!==void 0?c:[]).map(V=>G({key:ze(V),type:"error",value:V,meta:{source:"prop"}}));y.store.apply(b,V=>V.type==="error"&&V.meta.source==="prop")}),y.type!=="input"){const c=`${y.name}-prop`;r.watchEffect(()=>{var b;const V=(b=e.inputErrors)!==null&&b!==void 0?b:{},E=Object.keys(V);E.length||y.clearErrors(!0,c);const j=E.reduce((S,A)=>{let P=V[A];return typeof P=="string"&&(P=[P]),Array.isArray(P)&&(S[A]=P.map(R=>G({key:R,type:"error",value:R,meta:{source:c}}))),S},{});y.store.apply(j,S=>S.type==="error"&&S.meta.source===c)})}r.watchEffect(()=>Object.assign(y.config,e.config)),y.type!=="input"&&r.provide(we,y);let w;return y.on("modelUpdated",()=>{var c,b;i.emit("inputRaw",(c=y.context)===null||c===void 0?void 0:c.value,y),p&&i.emit("input",(b=y.context)===null||b===void 0?void 0:b.value,y),f&&y.context&&(w=ne(y.value),i.emit("update:modelValue",Pn(y.value)))}),f&&(r.watch(r.toRef(e,"modelValue"),c=>{X(w,c)||y.input(c,!1)},{deep:!0}),y.value!==$&&y.emit("modelUpdated")),r.onBeforeUnmount(()=>y.destroy()),y}let Hr=1;function qr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function M(e,i={}){const t={type:"input",...i};let n;if(qr(e)){const l=`SchemaComponent${Hr++}`;n=C("input",()=>({$cmp:l,props:{context:"$node.context"}})),t.library={[l]:r.markRaw(e)}}else typeof e=="function"?n=e:n=C("input",()=>ne(e));return t.schema=Er(n||"Schema undefined"),t.schemaMemoKey||(t.schemaMemoKey=`${Math.random()}`),t}const Zr=C("messages",()=>({$el:"ul",if:"$fns.length($messages)"})),Jr=C("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Yr=Zr(Jr("$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(we,void 0));r.watch(t,()=>{var a;!((a=t.value)===null||a===void 0)&&a.context&&!K(e.defaultPosition)&&(t.value.context.defaultMessagePlacement=!1)},{immediate:!0});const n=Yr(e.sectionsSchema||{}),l=r.computed(()=>{var a,s,o,f,p,$;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:(($=(p=t.value)===null||p===void 0?void 0:p.context)===null||$===void 0?void 0:$.classes)||{}}});return()=>{var a;return!((a=t.value)===null||a===void 0)&&a.context?r.h(ft,{schema:n,data:l.value},{...i.slots}):null}}});const Qr=C("summary",()=>({$el:"div",attrs:{"aria-live":"polite"}})),Xr=C("summaryInner",()=>({$el:"div",if:"$summaries.length && $showSummaries"})),Gr=C("messages",()=>({$el:"ul",if:"$summaries.length && $showSummaries"})),el=C("message",()=>({$el:"li",for:["summary","$summaries"],attrs:{key:"$summary.key","data-message-type":"$summary.type"}})),tl=C("summaryHeader",()=>({$el:"h2",attrs:{id:"$id"}})),nl=C("messageLink",()=>({$el:"a",attrs:{id:"$summary.key",href:'$: "#" + $summary.id',onClick:"$jumpLink"}})),il=Qr(Xr(tl("$summaryHeader"),Gr(el(nl("$summary.message")))));r.defineComponent({props:{node:{type:Object,required:!1},sectionsSchema:{type:Object,default:{}}},emits:{show:e=>!0},setup(e,i){var t,n;const l=`summary-${me()}`,a=r.computed(()=>e.node||r.inject(we,void 0));if(!a)throw new Error("FormKitSummary must have a FormKit parent or use the node prop.");const s=r.ref([]),o=r.ref(!1),f=r.computed(()=>{const h=[];return s.value.forEach(y=>{for(const u in y.messages){const d=y.messages[u];typeof d.value=="string"&&h.push({message:d.value,id:y.id,key:`${y.id}-${d.key}`,type:d.type})}}),h}),p=()=>{var h;s.value=[],(h=a.value)===null||h===void 0||h.walk(y=>y.context&&s.value.push(y.context))};(t=a.value)===null||t===void 0||t.on("submit-raw",async()=>{var h,y;p(),f.value.length!==0&&(i.emit("show",f.value),o.value=!0,await r.nextTick(),typeof window<"u"&&((h=document.getElementById(l))===null||h===void 0||h.scrollIntoView({behavior:"smooth"}),f.value[0]&&((y=document.getElementById(f.value[0].key))===null||y===void 0||y.focus())))}),(n=a.value)===null||n===void 0||n.on("child",p);function $(h){var y,u,d;if(h.target instanceof HTMLAnchorElement){h.preventDefault();const m=(y=h.target.getAttribute("href"))===null||y===void 0?void 0:y.substring(1);m&&((u=document.getElementById(m))===null||u===void 0||u.scrollIntoView({behavior:"smooth"}),(d=document.getElementById(m))===null||d===void 0||d.focus())}}$e("summaryHeader","There were errors in your form.")(a.value);const I=il(e.sectionsSchema||{}),N=r.computed(()=>{var h,y,u,d,m,g,k,_;return{id:l,fns:((y=(h=a.value)===null||h===void 0?void 0:h.context)===null||y===void 0?void 0:y.fns)||{},classes:((d=(u=a.value)===null||u===void 0?void 0:u.context)===null||d===void 0?void 0:d.classes)||{},summaries:f.value,showSummaries:o.value,summaryHeader:((_=(k=(g=(m=a.value)===null||m===void 0?void 0:m.context)===null||g===void 0?void 0:g.ui)===null||k===void 0?void 0:k.summaryHeader)===null||_===void 0?void 0:_.value)||"",jumpLink:$}});return()=>{var h;return!((h=a.value)===null||h===void 0)&&h.context?r.h(ft,{schema:I,data:N.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(tn,{}),a=r.inject(we,null);let s;function o(){if(!s||typeof s!="function")return;const f=s(e.icon);f instanceof Promise?f.then(p=>{n.value=p}):n.value=f}if(e.iconLoader&&typeof e.iconLoader=="function")s=lt(e.iconLoader);else if(a&&(!((i=a.props)===null||i===void 0)&&i.iconLoader))s=lt(a.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")s=lt(s,e.iconLoaderUrl);else{const f=(t=l==null?void 0:l.plugins)===null||t===void 0?void 0:t.find(p=>typeof p.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 rl=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 p=r.resolveComponent("Calendar");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{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,pt:r.unref(n).pt,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","pt"])])}}}),ll={key:0,class:"formkit-prime-left"},al={key:1,class:"formkit-prime-right"},sl=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",ll,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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","binary","true-value","false-value","pt"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",al,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),ol=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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,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","pt"])])}}}),fl=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,pt:r.unref(n).pt,onChange:l},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format","pt"])])}}}),ul=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 p=r.resolveComponent("Dropdown");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{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,pt:r.unref(n).pt,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","pt"])])}}}),cl=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 p=r.resolveComponent("Editor");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{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,pt:r.unref(n).pt,onTextChange:l,onSelectionChange:a},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules","pt"])])}}}),pl=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]=p=>r.unref(t)._value=p),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,pt:r.unref(n).pt,onBlur:l},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","mask","slot-char","auto-clear","unmask","pt"])])}}}),dl=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 p=r.resolveComponent("InputNumber");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{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,pt:r.unref(n).pt,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","pt"])])}}}),ml={key:0,class:"formkit-prime-left"},bl={key:1,class:"formkit-prime-right"},yl=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",{class:r.normalizeClass(r.unref(n).option_class)},[r.unref(t).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",ml,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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value","pt"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",bl,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)],2)}}}),hl=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 p=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($,I)=>{const N=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(N,{id:r.unref(t).id,modelValue:r.unref(t)._value,"onUpdate:modelValue":I[0]||(I[0]=h=>r.unref(t)._value=h),disabled:r.unref(n)._disabled??!1,readonly:r.unref(n)._readonly??!1,style:r.normalizeStyle(r.unref(n).style),class:r.normalizeClass(r.unref(p)),tabindex:r.unref(n).tabindex,"aria-label":r.unref(n).ariaLabel,"aria-labelledby":r.unref(n).ariaLabelledby,placeholder:r.unref(n).placeholder,pt:r.unref(n).pt,onInput:f,onBlur:o},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","pt"]),a?(r.openBlock(),r.createElementBlock("i",{key:1,class:r.normalizeClass(r.unref(t).iconRight)},null,2)):r.createCommentVNode("",!0)],2)])}}}),gl=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 p=r.resolveComponent("Textarea");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{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,pt:r.unref(n).pt,onInput:a,onBlur:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows","pt"])])}}}),_l=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]=p=>r.unref(t)._value=p),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,pt:r.unref(n).pt,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","pt"])])}}}),$l=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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onChange:l},null,8,["modelValue","input-id","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","filter","pt"])])}}}),kl=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 p;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:(p=r.unref(n))==null?void 0:p.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,pt:r.unref(n).pt,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","pt"])])}}}),Cl=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 p=r.resolveComponent("Password");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(p,{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,pt:r.unref(n).pt,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","pt"])])}}}),wl=["for"],Vl=r.defineComponent({__name:"PrimeRadioButton",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("RadioButton");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(n).options_class)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).options,p=>(r.openBlock(),r.createElementBlock("div",{key:p.value,class:r.normalizeClass(r.unref(n).option_class)},[r.createVNode(f,{modelValue:r.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=$=>r.unref(t)._value=$),name:r.unref(n).name,value:p.value,"input-style":r.unref(n).style,"input-class":r.unref(a),pt:r.unref(n).pt,onClick:l,onChange:l},null,8,["modelValue","name","value","input-style","input-class","pt"]),r.createElementVNode("label",{for:p.value},r.toDisplayString(p.label),9,wl)],2))),128))],2)}}}),Sl=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]=p=>r.unref(t)._value=p),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",pt:r.unref(n).pt,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","stars","cancel","on-icon","off-icon","cancel-icon","pt"])])}}}),vl=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]=p=>r.unref(t)._value=p),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",pt:r.unref(n).pt,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation","pt"])])}}}),Il=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]=p=>r.unref(t)._value=p),"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",pt:r.unref(n).pt,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","pt"])])}}}),El=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]=p=>r.unref(t)._value=p),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,pt:r.unref(n).pt,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","pt"])])}}}),Ll={key:0,class:"formkit-prime-left"},Pl={key:1,class:"formkit-prime-right"},Bl=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",Ll,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]=p=>r.unref(t)._value=p),"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,pt:r.unref(n).pt,onClick:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","pt"]),r.unref(t).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Pl,r.toDisplayString(r.unref(t).attrs.labelRight),1)):r.createCommentVNode("",!0)])}}}),rn=M(hl,{props:["iconRight","iconLeft"]}),ln=M(dl,{props:["iconRight","iconLeft"]}),an=M(pl,{props:[]}),sn=M(Cl,{props:["feedback","toggleMask"]}),on=M(gl,{props:["rows"]}),fn=M(sl,{props:[]}),un=M(yl,{props:[]}),cn=M(cl,{props:[]}),pn=M(ul,{props:[]}),dn=M($l,{props:[]}),mn=M(kl,{props:[]}),bn=M(rl,{props:[]}),yn=M(vl,{props:[]}),hn=M(Sl,{props:[]}),gn=M(Vl,{props:[]}),_n=M(ol,{props:[]}),$n=M(_l,{props:[]}),kn=M(fl,{props:[]}),Cn=M(Il,{props:[]}),wn=M(El,{props:[]}),Vn=M(Bl,{props:[]}),Al={primeInputText:rn,primeInputNumber:ln,primeInputMask:an,primePassword:sn,primeCheckbox:fn,primeInputSwitch:un,primeTextarea:on,primeEditor:cn,primeDropdown:pn,primeMultiSelect:dn,primeCalendar:bn,primeSlider:yn,primeChips:_n,primeKnob:$n,primeRating:hn,primeRadioButton:gn,primeColorPicker:kn,primeToggleButton:Cn,primeListbox:mn,primeSelectButton:wn,primeTriStateCheckbox:Vn};L.primeCalendarDefinition=bn,L.primeCheckboxDefinition=fn,L.primeChipsDefinition=_n,L.primeColorPickerDefinition=kn,L.primeDropdownDefinition=pn,L.primeEditorDefinition=cn,L.primeInputMaskDefinition=an,L.primeInputNumberDefinition=ln,L.primeInputSwitchDefinition=un,L.primeInputTextDefinition=rn,L.primeInputs=Al,L.primeKnobDefinition=$n,L.primeListboxDefinition=mn,L.primeMultiSelectDefinition=dn,L.primePasswordDefinition=sn,L.primeRadioButtonDefinition=gn,L.primeRatingDefinition=hn,L.primeSelectButtonDefinition=wn,L.primeSliderDefinition=yn,L.primeTextareaDefinition=on,L.primeToggleButtonDefinition=Cn,L.primeTriStateCheckboxDefinition=Vn,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/sfxcode/formkit-primevue",
|
|
@@ -35,45 +35,44 @@
|
|
|
35
35
|
},
|
|
36
36
|
"types": "./dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@formkit/i18n": "^0.
|
|
39
|
-
"@formkit/vue": "^0.
|
|
38
|
+
"@formkit/i18n": "^1.0.0",
|
|
39
|
+
"@formkit/vue": "^1.0.0",
|
|
40
40
|
"primeicons": "^6.0.1",
|
|
41
|
-
"primevue": "^3.
|
|
41
|
+
"primevue": "^3.33.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@antfu/eslint-config": "^0.41.0",
|
|
45
|
-
"@types/node": "^20.5.
|
|
46
|
-
"@unocss/preset-icons": "^0.55.
|
|
47
|
-
"@unocss/preset-uno": "0.55.
|
|
48
|
-
"@vitejs/plugin-vue": "^4.3.
|
|
45
|
+
"@types/node": "^20.5.8",
|
|
46
|
+
"@unocss/preset-icons": "^0.55.4",
|
|
47
|
+
"@unocss/preset-uno": "0.55.4",
|
|
48
|
+
"@vitejs/plugin-vue": "^4.3.4",
|
|
49
49
|
"@vue/babel-preset-app": "^5.0.8",
|
|
50
50
|
"@vue/compiler-sfc": "^3.3.4",
|
|
51
51
|
"@vue/server-renderer": "^3.3.4",
|
|
52
52
|
"@vue/test-utils": "^2.4.1",
|
|
53
53
|
"@vuedx/typecheck": "~0.7.6",
|
|
54
54
|
"@vuedx/typescript-plugin-vue": "~0.7.6",
|
|
55
|
-
"@vueuse/core": "^10.4.
|
|
55
|
+
"@vueuse/core": "^10.4.1",
|
|
56
56
|
"@vueuse/head": "^1.3.1",
|
|
57
57
|
"chart.js": "^4.4.0",
|
|
58
58
|
"consola": "^3.2.3",
|
|
59
|
-
"conventional-changelog-cli": "^3.0.0",
|
|
60
59
|
"eslint": "^8.48.0",
|
|
61
60
|
"json-editor-vue": "^0.10.6",
|
|
62
61
|
"quill": "^1.3.7",
|
|
63
62
|
"sass": "^1.66.1",
|
|
64
63
|
"tslib": "^2.6.2",
|
|
65
64
|
"typescript": "^5.2.2",
|
|
66
|
-
"unocss": "^0.55.
|
|
65
|
+
"unocss": "^0.55.4",
|
|
67
66
|
"unplugin-auto-import": "^0.16.6",
|
|
68
|
-
"unplugin-vue-components": "^0.25.
|
|
69
|
-
"vanilla-jsoneditor": "^0.18.
|
|
67
|
+
"unplugin-vue-components": "^0.25.2",
|
|
68
|
+
"vanilla-jsoneditor": "^0.18.3",
|
|
70
69
|
"vite": "^4.4.9",
|
|
71
|
-
"vite-plugin-dts": "^3.5.
|
|
70
|
+
"vite-plugin-dts": "^3.5.3",
|
|
72
71
|
"vite-plugin-eslint": "^1.8.1",
|
|
73
72
|
"vite-plugin-pages": "^0.31.0",
|
|
74
73
|
"vite-ssg": "^0.23.1",
|
|
75
74
|
"vue": "^3.3.4",
|
|
76
|
-
"vue-demi": "^0.14.
|
|
75
|
+
"vue-demi": "^0.14.6",
|
|
77
76
|
"vue-router": "^4.2.4",
|
|
78
77
|
"vue-tsc": "^1.8.8"
|
|
79
78
|
},
|
|
@@ -81,7 +80,6 @@
|
|
|
81
80
|
"dev": "vite",
|
|
82
81
|
"build": "vite build",
|
|
83
82
|
"preview": "vite preview",
|
|
84
|
-
"lint": "eslint --fix ./src"
|
|
85
|
-
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0 -n changelog/config.cjs"
|
|
83
|
+
"lint": "eslint --fix ./src"
|
|
86
84
|
}
|
|
87
85
|
}
|