var k=(o,u)=>()=>(u||o((u={exports:{}}).exports,u),u.exports);var R=k((v,d)=>{(function(o,u){typeof v=="object"&&typeof d<"u"?d.exports=u():typeof define=="function"&&define.amd?define(u):(o=typeof globalThis<"u"?globalThis:o||self,o.FormValidation=o.FormValidation||{},o.FormValidation.plugins=o.FormValidation.plugins||{},o.FormValidation.plugins.TypingAnimation=u())})(void 0,function(){function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e,i){return e&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},c(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},p(t,e)}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function O(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(t)}function g(t){var e=b();return function(){var n=c(t),r;if(e){var a=c(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return P(this,r)}}var j=FormValidation.Plugin,w=function(t){_(i,t);var e=g(i);function i(n){var r;return o(this,i),r=e.call(this,n),r.opts=Object.assign({},{autoPlay:!0},n),r}return m(i,[{key:"install",value:function(){this.fields=Object.keys(this.core.getFields()),this.opts.autoPlay&&this.play()}},{key:"play",value:function(){return this.animate(0)}},{key:"animate",value:function(r){var a=this;if(r>=this.fields.length)return Promise.resolve(r);var s=this.fields[r],f=this.core.getElements(s)[0],h=f.getAttribute("type"),y=this.opts.data[s];return h==="checkbox"||h==="radio"?(f.checked=!0,f.setAttribute("checked","true"),this.core.revalidateField(s).then(function(l){return a.animate(r+1)})):y?new Promise(function(l){return new Typed(f,{attr:"value",autoInsertCss:!0,bindInputFocusEvents:!0,onComplete:function(){l(r+1)},onStringTyped:function(T,S){f.value=y[T],a.core.revalidateField(s)},strings:y,typeSpeed:100})}).then(function(l){return a.animate(l)}):this.animate(r+1)}}]),i}(j);return w})});export default R();
