System.register(["./index-legacy.DjPCm-Xr.js","./index-legacy.sLMPZLm9.js"],(function(e,t){"use strict";var n,o,l,u,r,i,a,s;return{setters:[e=>{n=e.P,o=e.d},e=>{l=e.d,u=e.h,r=e.l,i=e.e,a=e.w,s=e.i}],execute:function(){e({g:function(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}},s:function(e){return Array.prototype.slice.apply(e).map((t=>`${t}: ${e.getPropertyValue(t)};`)).join("")}});var t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const c=l({compatConfig:{MODE:3},props:{disabled:n.looseBool,type:n.string,value:n.any,tag:{type:String,default:"input"},size:n.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,n){let{expose:l}=n;const i=u(null);return l({focus:()=>{i.value&&i.value.focus()},blur:()=>{i.value&&i.value.blur()},input:i,setSelectionRange:(e,t,n)=>{var o;null===(o=i.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=i.value)||void 0===e||e.select()},getSelectionStart:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.selectionStart},getSelectionEnd:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.selectionEnd},getScrollTop:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.scrollTop}}),()=>{const{tag:n,value:l}=e,u=t(e,["tag","value"]);return r(n,o(o({},u),{},{ref:i,value:l}),null)}}});var p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};e("B",l({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:n.looseBool,type:n.string,value:n.any,lazy:n.bool.def(!0),tag:{type:String,default:"input"},size:n.string,style:n.oneOfType([String,Object]),class:n.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{emit:n,attrs:l,expose:v}=t;const d=u(null),y=i(),g=i(!1);a([()=>e.value,g],(()=>{g.value||(y.value=e.value)}),{immediate:!0});const f=e=>{n("change",e)},m=e=>{g.value=!0,e.target.composing=!0,n("compositionstart",e)},b=e=>{g.value=!1,e.target.composing=!1,n("compositionend",e);const t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!0),e.target.dispatchEvent(t),f(e)},S=t=>{g.value&&e.lazy?y.value=t.target.value:n("input",t)},O=e=>{n("blur",e)},w=e=>{n("focus",e)},j=e=>{n("keydown",e)},E=e=>{n("keyup",e)};v({focus:()=>{d.value&&d.value.focus()},blur:()=>{d.value&&d.value.blur()},input:s((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.input})),setSelectionRange:(e,t,n)=>{var o;null===(o=d.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=d.value)||void 0===e||e.select()},getSelectionStart:()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.getSelectionStart()},getSelectionEnd:()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.getSelectionEnd()},getScrollTop:()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.getScrollTop()}});const h=e=>{n("mousedown",e)},F=e=>{n("paste",e)},P=s((()=>{return e.style&&"string"!=typeof e.style?(t=e.style,Object.keys(t).reduce(((e,n)=>null==t[n]?e:e+=`${n}: ${t[n]};`),"")):e.style;var t}));return()=>{const{style:t,lazy:n}=e,u=p(e,["style","lazy"]);return r(c,o(o(o({},u),l),{},{style:P.value,onInput:S,onChange:f,onBlur:O,onFocus:w,ref:d,value:y.value,onCompositionstart:m,onCompositionend:b,onKeyup:E,onKeydown:j,onPaste:F,onMousedown:h}),null)}}}))}}}));
