%PDF- %PDF-
Direktori : /var/www/html/itworks/wp-content/plugins/mailchimp-for-wp/assets/js/ |
Current File : /var/www/html/itworks/wp-content/plugins/mailchimp-for-wp/assets/js/forms-api.min.js |
!function(){var s=void 0;!function o(u,s,a){function c(e,t){if(!s[e]){if(!u[e]){var n=!1;if(!t&&n)return n(e,!0);if(f)return f(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[e]={exports:{}};u[e][0].call(i.exports,function(t){return c(u[e][1][t]||t)},i,i.exports,o,u,s,a)}return s[e].exports}for(var f=!1,t=0;t<a.length;t++)c(a[t]);return c}({1:[function(t,e,n){"use strict";var r,i=(r=t("./forms/conditional-elements.js"))&&r.__esModule?r:{default:r};var o,u,s,a,c,f,l=window.mc4wp||{},h=t("gator"),d=t("./forms/forms.js"),p=window.mc4wp_forms_config||{},m=t("scroll-to-element");function v(t){var e="animated"===p.auto_scroll;m(t.element,{duration:e?800:1,alignment:"middle"})}if(h(document.body).on("submit",".mc4wp-form",function(t){var e=d.getByElement(t.target||t.srcElement);t.defaultPrevented||d.trigger(e.id+".submit",[e,t]),t.defaultPrevented||d.trigger("submit",[e,t])}),h(document.body).on("focus",".mc4wp-form",function(t){var e=d.getByElement(t.target||t.srcElement);e.started||(d.trigger(e.id+".started",[e,t]),d.trigger("started",[e,t]),e.started=!0)}),h(document.body).on("change",".mc4wp-form",function(t){var e=d.getByElement(t.target||t.srcElement);d.trigger("change",[e,t]),d.trigger(e.id+".change",[e,t])}),i.default.init(),l.listeners){for(var g=l.listeners,y=0;y<g.length;y++)d.on(g[y].event,g[y].callback);delete l.listeners}if(l.forms=d,p.submitted_form){var w=p.submitted_form,b=document.getElementById(w.element_id),_=d.getByElement(b);o=_,u=w.event,s=w.errors,a=w.data,c=Date.now(),f=document.body.clientHeight,s&&o.setData(a),window.scrollY<=10&&p.auto_scroll&&v(o),window.addEventListener("load",function(){d.trigger(o.id+".submitted",[o]),d.trigger("submitted",[o]),s?(d.trigger(o.id+".error",[o,s]),d.trigger("error",[o,s])):(d.trigger(o.id+".success",[o,a]),d.trigger("success",[o,a]),d.trigger(o.id+"."+u,[o,a]),d.trigger(u,[o,a]),"updated_subscriber"===u&&(d.trigger(o.id+".subscribed",[o,a,!0]),d.trigger("subscribed",[o,a,!0])));var t=Date.now()-c;p.auto_scroll&&1e3<t&&t<2e3&&document.body.clientHeight!==f&&v(o)})}window.mc4wp=l},{"./forms/conditional-elements.js":2,"./forms/forms.js":4,gator:6,"scroll-to-element":13}],2:[function(t,e,n){"use strict";function r(t){for(var e=!!t.getAttribute("data-show-if"),n=e?t.getAttribute("data-show-if").split(":"):t.getAttribute("data-hide-if").split(":"),r=n[0],i=(1<n.length?n[1]:"*").split("|"),o=function(t,e){for(var n=[],r=t.querySelectorAll('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]'),i=0;i<r.length;i++){var o=r[i],u=o.getAttribute("type");("radio"!==u&&"checkbox"!==u||o.checked)&&n.push(o.value)}return n}(function(t){for(var e=t;e.parentElement;)if("FORM"===(e=e.parentElement).tagName)return e;return null}(t),r),u=!1,s=0;s<o.length;s++){var a=o[s];if(u=-1<i.indexOf(a)||-1<i.indexOf("*")&&0<a.length)break}t.style.display=e?u?"":"none":u?"none":"";var c=t.querySelectorAll("input, select, textarea");[].forEach.call(c,function(t){(u||e)&&t.getAttribute("data-was-required")&&(t.required=!0,t.removeAttribute("data-was-required")),u&&e||!t.required||(t.setAttribute("data-was-required","true"),t.required=!1)})}function i(){var t=document.querySelectorAll(".mc4wp-form [data-show-if], .mc4wp-form [data-hide-if]");[].forEach.call(t,r)}function o(t){if(t.target&&t.target.form&&!(t.target.form.className.indexOf("mc4wp-form")<0)){var e=t.target.form.querySelectorAll("[data-show-if], [data-hide-if]");[].forEach.call(e,r)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={init:function(){document.addEventListener("keyup",o,!0),document.addEventListener("change",o,!0),document.addEventListener("mc4wp-refresh",i,!0),window.addEventListener("load",i),i()}};n.default=u},{}],3:[function(t,e,n){"use strict";function r(t,e){this.id=t,this.element=e||document.createElement("form"),this.name=this.element.getAttribute("data-name")||"Form #"+this.id,this.errors=[],this.started=!1}var i=t("form-serialize"),o=t("populate.js");r.prototype.setData=function(t){try{o(this.element,t)}catch(t){console.error(t)}},r.prototype.getData=function(){return i(this.element,{hash:!0,empty:!0})},r.prototype.getSerializedData=function(){return i(this.element,{hash:!1,empty:!0})},r.prototype.setResponse=function(t){this.element.querySelector(".mc4wp-response").innerHTML=t},r.prototype.reset=function(){this.setResponse(""),this.element.querySelector(".mc4wp-form-fields").style.display="",this.element.reset()},e.exports=r},{"form-serialize":5,"populate.js":7}],4:[function(t,e,n){"use strict";var r=t("wolfy87-eventemitter"),i=t("./form.js"),o=new r,u=[];function s(t,e){e=e||parseInt(t.getAttribute("data-id"))||0;var n=new i(e,t);return u.push(n),n}e.exports={all:function(){return u},get:function(t){t=parseInt(t);for(var e=0;e<u.length;e++)if(u[e].id===t)return u[e];return s(document.querySelector(".mc4wp-form-"+t),t)},getByElement:function(t){for(var e=t.form||t,n=0;n<u.length;n++)if(u[n].element===e)return u[n];return s(e)},on:o.on.bind(o),trigger:function(t,e){"submit"===t||0<t.indexOf(".submit")?o.trigger(t,e):window.setTimeout(function(){o.trigger(t,e)},1)},off:o.off.bind(o)}},{"./form.js":3,"wolfy87-eventemitter":16}],5:[function(t,e,n){var v=/^(?:submit|button|image|reset|file)$/i,g=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function y(t,e,n){if(e.match(i)){!function t(e,n,r){if(0===n.length)return e=r;var i=n.shift(),o=i.match(/^\[(.+?)\]$/);if("[]"===i)return e=e||[],Array.isArray(e)?e.push(t(null,n,r)):(e._values=e._values||[],e._values.push(t(null,n,r))),e;if(o){var u=o[1],s=+u;isNaN(s)?(e=e||{})[u]=t(e[u],n,r):(e=e||[])[s]=t(e[s],n,r)}else e[i]=t(e[i],n,r);return e}(t,function(t){var e=[],n=new RegExp(i),r=/^([^\[\]]*)/.exec(t);for(r[1]&&e.push(r[1]);null!==(r=n.exec(t));)e.push(r[1]);return e}(e),n)}else{var r=t[e];r?(Array.isArray(r)||(t[e]=[r]),t[e].push(n)):t[e]=n}return t}function w(t,e,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),t+(t?"&":"")+encodeURIComponent(e)+"="+n}e.exports=function(t,e){"object"!=typeof e?e={hash:!!e}:void 0===e.hash&&(e.hash=!0);for(var n=e.hash?{}:"",r=e.serializer||(e.hash?y:w),i=t&&t.elements?t.elements:[],o=Object.create(null),u=0;u<i.length;++u){var s=i[u];if((e.disabled||!s.disabled)&&s.name&&g.test(s.nodeName)&&!v.test(s.type)){var a=s.name,c=s.value;if("checkbox"!==s.type&&"radio"!==s.type||s.checked||(c=void 0),e.empty){if("checkbox"!==s.type||s.checked||(c=""),"radio"===s.type&&(o[s.name]||s.checked?s.checked&&(o[s.name]=!0):o[s.name]=!1),null==c&&"radio"==s.type)continue}else if(!c)continue;if("select-multiple"!==s.type)n=r(n,a,c);else{c=[];for(var f=s.options,l=!1,h=0;h<f.length;++h){var d=f[h],p=e.empty&&!d.value,m=d.value||p;d.selected&&m&&(l=!0,n=e.hash&&"[]"!==a.slice(a.length-2)?r(n,a+"[]",d.value):r(n,a,d.value))}!l&&e.empty&&(n=r(n,a,""))}}}if(e.empty)for(var a in o)o[a]||(n=r(n,a,""));return n}},{}],6:[function(t,e,n){function l(t,e,n){return"_root"==e?n:t!==n?function(t){return i||(i=t.matches?t.matches:t.webkitMatchesSelector?t.webkitMatchesSelector:t.mozMatchesSelector?t.mozMatchesSelector:t.msMatchesSelector?t.msMatchesSelector:t.oMatchesSelector?t.oMatchesSelector:d.matchesSelector)}(t).call(t,e)?t:t.parentNode?(p++,l(t.parentNode,e,n)):void 0:void 0}function h(t,e,n,r){if(m[t.id])if(e)if(r||n)if(r){if(m[t.id][e][n])for(var i=0;i<m[t.id][e][n].length;i++)if(m[t.id][e][n][i]===r){m[t.id][e][n].splice(i,1);break}}else delete m[t.id][e][n];else m[t.id][e]={};else for(var o in m[t.id])m[t.id].hasOwnProperty(o)&&(m[t.id][o]={})}function r(t,e,n,r){if(this.element){t instanceof Array||(t=[t]),n||"function"!=typeof e||(n=e,e="_root");var i,o,u,s,a,c=this.id;for(i=0;i<t.length;i++)r?h(this,t[i],e,n):(m[c]&&m[c][t[i]]||d.addEvent(this,t[i],f(t[i])),o=this,u=t[i],s=e,a=n,m[o.id]||(m[o.id]={}),m[o.id][u]||(m[o.id][u]={}),m[o.id][u][s]||(m[o.id][u][s]=[]),m[o.id][u][s].push(a));return this}function f(e){return function(t){!function(t,e,n){if(m[t][n]){var r,i,o=e.target||e.srcElement,u={},s=0,a=0;for(r in p=0,m[t][n])m[t][n].hasOwnProperty(r)&&(i=l(o,r,v[t].element))&&d.matchesEvent(n,v[t].element,i,"_root"==r,e)&&(p++,m[t][n][r].match=i,u[p]=m[t][n][r]);for(e.stopPropagation=function(){e.cancelBubble=!0},s=0;s<=p;s++)if(u[s])for(a=0;a<u[s].length;a++){if(!1===u[s][a].call(u[s].match,e))return d.cancel(e);if(e.cancelBubble)return}}}(c,t,e)}}}function d(t,e){if(!(this instanceof d)){for(var n in v)if(v[n].element===t)return v[n];return v[++o]=new d(t,o),v[o]}this.element=t,this.id=e}var i,p,o,m,v;o=p=0,m={},v={},d.prototype.on=function(t,e,n){return r.call(this,t,e,n)},d.prototype.off=function(t,e,n){return r.call(this,t,e,n,!0)},d.matchesSelector=function(){},d.cancel=function(t){t.preventDefault(),t.stopPropagation()},d.addEvent=function(t,e,n){var r="blur"==e||"focus"==e;t.element.addEventListener(e,n,r)},d.matchesEvent=function(){return!0},void 0!==e&&e.exports&&(e.exports=d),window.Gator=d},{}],7:[function(t,e,n){var r,f;r=this,f=function(t,e,n){for(var r in e)if(e.hasOwnProperty(r)){var i=r,o=e[r];if(void 0===o&&(o=""),null===o&&(o=""),void 0!==n&&(i=n+"["+r+"]"),o.constructor===Array)i+="[]";else if("object"==typeof o){f(t,o,i);continue}var u=t.elements.namedItem(i);if(u)switch(u.type||u[0].type){default:u.value=o;break;case"radio":case"checkbox":for(var s=0;s<u.length;s++)u[s].checked=-1<o.indexOf(u[s].value);break;case"select-multiple":for(var a=o.constructor==Array?o:[o],c=0;c<u.options.length;c++)u.options[c].selected|=-1<a.indexOf(u.options[c].value);break;case"select":case"select-one":u.value=o.toString()||o;break;case"date":u.value=new Date(o).toISOString().split("T")[0]}}},"function"==typeof s&&"object"==typeof s.amd&&s.amd?s(function(){return f}):void 0!==e&&e.exports?e.exports=f:r.populate=f},{}],8:[function(t,e,n){var r,i,o=e.exports={};function u(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===u||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:u}catch(t){r=u}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,f=[],l=!1,h=-1;function d(){l&&c&&(l=!1,c.length?f=c.concat(f):h=-1,f.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=f.length;e;){for(c=f,f=[];++h<e;)c&&c[h].run();h=-1,e=f.length}c=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new m(t,e)),1!==f.length||l||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],9:[function(l,h,t){(function(t){for(var r=l("performance-now"),e="undefined"==typeof window?t:window,n=["moz","webkit"],i="AnimationFrame",o=e["request"+i],u=e["cancel"+i]||e["cancelRequest"+i],s=0;!o&&s<n.length;s++)o=e[n[s]+"Request"+i],u=e[n[s]+"Cancel"+i]||e[n[s]+"CancelRequest"+i];if(!o||!u){var a=0,c=0,f=[];o=function(t){if(0===f.length){var e=r(),n=Math.max(0,1e3/60-(e-a));a=n+e,setTimeout(function(){for(var t=f.slice(0),e=f.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(a)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))}return f.push({handle:++c,callback:t,cancelled:!1}),c},u=function(t){for(var e=0;e<f.length;e++)f[e].handle===t&&(f[e].cancelled=!0)}}h.exports=function(t){return o.call(e,t)},h.exports.cancel=function(){u.apply(e,arguments)},h.exports.polyfill=function(t){t||(t=e),t.requestAnimationFrame=o,t.cancelAnimationFrame=u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":10}],10:[function(t,s,e){(function(u){(function(){var t,e,n,r,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?s.exports=function(){return performance.now()}:null!=u&&u.hrtime?(s.exports=function(){return(t()-i)/1e6},e=u.hrtime,r=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),o=1e9*u.uptime(),i=r-o):n=Date.now?(s.exports=function(){return Date.now()-n},Date.now()):(s.exports=function(){return(new Date).getTime()-n},(new Date).getTime())}).call(this)}).call(this,t("_process"))},{_process:8}],11:[function(t,e,n){n.linear=function(t){return t},n.inQuad=function(t){return t*t},n.outQuad=function(t){return t*(2-t)},n.inOutQuad=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},n.inCube=function(t){return t*t*t},n.outCube=function(t){return--t*t*t+1},n.inOutCube=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},n.inQuart=function(t){return t*t*t*t},n.outQuart=function(t){return 1- --t*t*t*t},n.inOutQuart=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},n.inQuint=function(t){return t*t*t*t*t},n.outQuint=function(t){return--t*t*t*t*t+1},n.inOutQuint=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},n.inSine=function(t){return 1-Math.cos(t*Math.PI/2)},n.outSine=function(t){return Math.sin(t*Math.PI/2)},n.inOutSine=function(t){return.5*(1-Math.cos(Math.PI*t))},n.inExpo=function(t){return 0==t?0:Math.pow(1024,t-1)},n.outExpo=function(t){return 1==t?t:1-Math.pow(2,-10*t)},n.inOutExpo=function(t){return 0==t?0:1==t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},n.inCirc=function(t){return 1-Math.sqrt(1-t*t)},n.outCirc=function(t){return Math.sqrt(1- --t*t)},n.inOutCirc=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},n.inBack=function(t){return t*t*(2.70158*t-1.70158)},n.outBack=function(t){return--t*t*(2.70158*t+1.70158)+1},n.inOutBack=function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},n.inBounce=function(t){return 1-n.outBounce(1-t)},n.outBounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},n.inOutBounce=function(t){return t<.5?.5*n.inBounce(2*t):.5*n.outBounce(2*t-1)+.5},n.inElastic=function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},n.outElastic=function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},n.inOutElastic=function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},n["in-quad"]=n.inQuad,n["out-quad"]=n.outQuad,n["in-out-quad"]=n.inOutQuad,n["in-cube"]=n.inCube,n["out-cube"]=n.outCube,n["in-out-cube"]=n.inOutCube,n["in-quart"]=n.inQuart,n["out-quart"]=n.outQuart,n["in-out-quart"]=n.inOutQuart,n["in-quint"]=n.inQuint,n["out-quint"]=n.outQuint,n["in-out-quint"]=n.inOutQuint,n["in-sine"]=n.inSine,n["out-sine"]=n.outSine,n["in-out-sine"]=n.inOutSine,n["in-expo"]=n.inExpo,n["out-expo"]=n.outExpo,n["in-out-expo"]=n.inOutExpo,n["in-circ"]=n.inCirc,n["out-circ"]=n.outCirc,n["in-out-circ"]=n.inOutCirc,n["in-back"]=n.inBack,n["out-back"]=n.outBack,n["in-out-back"]=n.inOutBack,n["in-bounce"]=n.inBounce,n["out-bounce"]=n.outBounce,n["in-out-bounce"]=n.inOutBounce,n["in-elastic"]=n.inElastic,n["out-elastic"]=n.outElastic,n["in-out-elastic"]=n.inOutElastic},{}],12:[function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length},void 0!==e&&(e.exports=r)},{}],13:[function(t,e,n){var r=t("./scroll-to");e.exports=function(t,e){if(e=e||{},"string"==typeof t&&(t=document.querySelector(t)),t)return r(0,function(t,e,n){var r,i=document.body,o=document.documentElement,u=t.getBoundingClientRect(),s=o.clientHeight,a=Math.max(i.scrollHeight,i.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight);e=e||0,r="bottom"===n?u.bottom-s:"middle"===n?u.bottom-s/2-u.height/2:u.top;var c=a-s;return Math.min(r+e+window.pageYOffset,c)}(t,e.offset,e.align),e)}},{"./scroll-to":14}],14:[function(t,e,n){var u=t("./tween"),s=t("raf");e.exports=function(t,e,n){n=n||{};var r={top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft},i=u(r).ease(n.ease||"out-circ").to({top:e,left:t}).duration(n.duration||1e3);function o(){s(o),i.update()}return i.update(function(t){window.scrollTo(0|t.left,0|t.top)}),i.on("end",function(){o=function(){}}),o(),i}},{"./tween":15,raf:9}],15:[function(t,e,n){var r=t("./ease");function i(t){if(!(this instanceof i))return new i(t);this._from=t,this.ease("linear"),this.duration(500)}t("./emitter")(i.prototype),i.prototype.reset=function(){return this.isArray="[object Array]"===Object.prototype.toString.call(this._from),this._curr=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}({},this._from),this._done=!1,this._start=Date.now(),this},i.prototype.to=function(t){return this.reset(),this._to=t,this},i.prototype.duration=function(t){return this._duration=t,this},i.prototype.ease=function(t){if(!(t="function"==typeof t?t:r[t]))throw new TypeError("invalid easing function");return this._ease=t,this},i.prototype.stop=function(){return this.stopped=!0,this._done=!0,this.emit("stop"),this.emit("end"),this},i.prototype.step=function(){if(!this._done){var t=this._duration,e=Date.now();if(t<=e-this._start)return this._from=this._to,this._update(this._to),this._done=!0,this.emit("end"),this;var n=this._from,r=this._to,i=this._curr,o=(0,this._ease)((e-this._start)/t);if(this.isArray){for(var u=0;u<n.length;++u)i[u]=n[u]+(r[u]-n[u])*o;return this._update(i),this}for(var s in n)i[s]=n[s]+(r[s]-n[s])*o;return this._update(i),this}},i.prototype.update=function(t){return 0==arguments.length?this.step():(this._update=t,this)},e.exports=i},{"./ease":11,"./emitter":12}],16:[function(t,u,e){!function(t){"use strict";function e(){}var n=e.prototype,r=t.EventEmitter;function o(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}n.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},n.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},n.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},n.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=o(i[r],e))&&i[r].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,u=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):u.call(this,r,i));return this},n.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"==n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var n,r,i,o,u=this.getListenersAsObject(t);for(o in u)if(u.hasOwnProperty(o))for(n=u[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return t.EventEmitter=r,e},"function"==typeof s&&s.amd?s(function(){return e}):"object"==typeof u&&u.exports?u.exports=e:t.EventEmitter=e}("undefined"!=typeof window?window:this||{})},{}]},{},[1])}(); //# sourceMappingURL=forms-api.min.js.map