1require=function t(e,n,i){function r(o,a){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){var n=e[o][1][t];return r(n?n:t)},c,c.exports,t,e,n,i)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(t,e,n){!function(){function t(){this._events={},this._conf&&e.call(this,this._conf)}function e(t){t&&(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),t.maxListeners&&(this._events.maxListeners=t.maxListeners),t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this.newListener=t.newListener),this.wildcard&&(this.listenerTree={}))}function i(t){this._events={},this.newListener=!1,e.call(this,t)}function r(t,e,n,i){if(!n)return[];var s,o,a,l,h,c,u,f=[],p=e.length,d=e[i],v=e[i+1];if(i===p&&n._listeners){if("function"==typeof n._listeners)return t&&t.push(n._listeners),[n];for(s=0,o=n._listeners.length;o>s;s++)t&&t.push(n._listeners[s]);return[n]}if("*"===d||"**"===d||n[d]){if("*"===d){for(a in n)"_listeners"!==a&&n.hasOwnProperty(a)&&(f=f.concat(r(t,e,n[a],i+1)));return f}if("**"===d){u=i+1===p||i+2===p&&"*"===v,u&&n._listeners&&(f=f.concat(r(t,e,n,p)));for(a in n)"_listeners"!==a&&n.hasOwnProperty(a)&&("*"===a||"**"===a?(n[a]._listeners&&!u&&(f=f.concat(r(t,e,n[a],p))),f=f.concat(r(t,e,n[a],i))):f=f.concat(a===v?r(t,e,n[a],i+2):r(t,e,n[a],i)));return f}f=f.concat(r(t,e,n[d],i+1))}if(l=n["*"],l&&r(t,e,l,i+1),h=n["**"])if(p>i){h._listeners&&r(t,e,h,p);for(a in h)"_listeners"!==a&&h.hasOwnProperty(a)&&(a===v?r(t,e,h[a],i+2):a===d?r(t,e,h[a],i+1):(c={},c[a]=h[a],r(t,e,{"**":c},i+1)))}else h._listeners?r(t,e,h,p):h["*"]&&h["*"]._listeners&&r(t,e,h["*"],p);return f}function s(t,e){t="string"==typeof t?t.split(this.delimiter):t.slice();for(var n=0,i=t.length;i>n+1;n++)if("**"===t[n]&&"**"===t[n+1])return;for(var r=this.listenerTree,s=t.shift();s;){if(r[s]||(r[s]={}),r=r[s],0===t.length){if(r._listeners){if("function"==typeof r._listeners)r._listeners=[r._listeners,e];else if(o(r._listeners)&&(r._listeners.push(e),!r._listeners.warned)){var l=a;"undefined"!=typeof this._events.maxListeners&&(l=this._events.maxListeners),l>0&&r._listeners.length>l&&(r._listeners.warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",r._listeners.length),console.trace())}}else r._listeners=e;return!0}s=t.shift()}return!0}var o=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},a=10;i.prototype.delimiter=".",i.prototype.setMaxListeners=function(e){this._events||t.call(this),this._events.maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e},i.prototype.event="",i.prototype.once=function(t,e){return this.many(t,1,e),this},i.prototype.many=function(t,e,n){function i(){0===--e&&r.off(t,i),n.apply(this,arguments)}var r=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");return i._origin=n,this.on(t,i),r},i.prototype.emit=function(){this._events||t.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return!1;if(this._all){for(var n=arguments.length,i=new Array(n-1),s=1;n>s;s++)i[s-1]=arguments[s];for(s=0,n=this._all.length;n>s;s++)this.event=e,this._all[s].apply(this,i)}if("error"===e&&!(this._all||this._events.error||this.wildcard&&this.listenerTree.error))throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");var o;if(this.wildcard){o=[];var a="string"==typeof e?e.split(this.delimiter):e.slice();r.call(this,o,a,this.listenerTree,0)}else o=this._events[e];if("function"==typeof o){if(this.event=e,1===arguments.length)o.call(this);else if(arguments.length>1)switch(arguments.length){case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:for(var n=arguments.length,i=new Array(n-1),s=1;n>s;s++)i[s-1]=arguments[s];o.apply(this,i)}return!0}if(o){for(var n=arguments.length,i=new Array(n-1),s=1;n>s;s++)i[s-1]=arguments[s];for(var l=o.slice(),s=0,n=l.length;n>s;s++)this.event=e,l[s].apply(this,i);return l.length>0||!!this._all}return!!this._all},i.prototype.on=function(e,n){if("function"==typeof e)return this.onAny(e),this;if("function"!=typeof n)throw new Error("on only accepts instances of Function");
1if(this._events||t.call(this),this.emit("newListener",e,n),this.wildcard)return s.call(this,e,n),this;if(this._events[e]){if("function"==typeof this._events[e])this._events[e]=[this._events[e],n];else if(o(this._events[e])&&(this._events[e].push(n),!this._events[e].warned)){var i=a;"undefined"!=typeof this._events.maxListeners&&(i=this._events.maxListeners),i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),console.trace())}}else this._events[e]=n;return this},i.prototype.onAny=function(t){if("function"!=typeof t)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),this._all.push(t),this},i.prototype.addListener=i.prototype.on,i.prototype.off=function(t,e){if("function"!=typeof e)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var s="string"==typeof t?t.split(this.delimiter):t.slice();i=r.call(this,null,s,this.listenerTree,0)}else{if(!this._events[t])return this;n=this._events[t],i.push({_listeners:n})}for(var a=0;a<i.length;a++){var l=i[a];if(n=l._listeners,o(n)){for(var h=-1,c=0,u=n.length;u>c;c++)if(n[c]===e||n[c].listener&&n[c].listener===e||n[c]._origin&&n[c]._origin===e){h=c;break}if(0>h)continue;return this.wildcard?l._listeners.splice(h,1):this._events[t].splice(h,1),0===n.length&&(this.wildcard?delete l._listeners:delete this._events[t]),this}(n===e||n.listener&&n.listener===e||n._origin&&n._origin===e)&&(this.wildcard?delete l._listeners:delete this._events[t])}return this},i.prototype.offAny=function(t){var e,n=0,i=0;if(t&&this._all&&this._all.length>0){for(e=this._all,n=0,i=e.length;i>n;n++)if(t===e[n])return e.splice(n,1),this}else this._all=[];return this},i.prototype.removeListener=i.prototype.off,i.prototype.removeAllListeners=function(e){if(0===arguments.length)return!this._events||t.call(this),this;if(this.wildcard)for(var n="string"==typeof e?e.split(this.delimiter):e.slice(),i=r.call(this,null,n,this.listenerTree,0),s=0;s<i.length;s++){var o=i[s];o._listeners=null}else{if(!this._events[e])return this;this._events[e]=null}return this},i.prototype.listeners=function(e){if(this.wildcard){var n=[],i="string"==typeof e?e.split(this.delimiter):e.slice();return r.call(this,n,i,this.listenerTree,0),n}return this._events||t.call(this),this._events[e]||(this._events[e]=[]),o(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},i.prototype.listenersAny=function(){return this._all?this._all:[]},"function"==typeof define&&define.amd?define(function(){return i}):"object"==typeof n?n.EventEmitter2=i:window.EventEmitter2=i}()},{}],"emit-bindings":[function(t,e){"use strict";function n(t,e,n,i){return t[l](h+e,n,i||!1),n}function i(t,e){if(!t||1!==t.nodeType)return!1;if(c)return c.call(t,e);for(var n=document.querySelectorAll(e,t.parentNode),i=0;i<n.length;++i)if(n[i]==t)return!0;return!1}function r(t,e,n,r){for(t=n?{parentNode:t}:t,r=r||document;(t=t.parentNode)&&t!==document;){if(i(t,e))return t;if(t===r)return}}function s(){var t=this;a.call(t),t.validators=[],t.touchMoveDelta=10,t.initialTouchPoint=null,n(document,"touchstart",t.handleEvent.bind(t)),n(document,"touchmove",t.handleEvent.bind(t)),n(document,"touchend",t.handleEvent.bind(t)),n(document,"click",t.handleEvent.bind(t)),n(document,"input",t.handleEvent.bind(t)),n(document,"submit",t.handleEvent.bind(t))}function o(t,e){var n=t.touches[0].pageX-e.x,i=t.touches[0].pageY-e.y;return Math.sqrt(n*n+i*i)}var a=t("eventemitter2").EventEmitter2,l=window.addEventListener?"addEventListener":"attachEvent",h="addEventListener"!==l?"on":"",c=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector;s.prototype=Object.create(a.prototype),s.prototype.handleEvent=function(t){var e=this,n=t.touches,i=-1;switch(("number"!=typeof t.propagationStoppedAt||isNaN(t.propagationStoppedAt))&&(t.propagationStoppedAt=100),t.type){case"touchstart":e.initialTouchPoint=e.lastTouchPoint={x:n&&n.length?n[0].pageX:0,y:n&&n.length?n[0].pageY:0};break;case"touchmove":n&&n.length&&e.initialTouchPoint&&(i=o(t,e.initialTouchPoint),i>e.touchMoveDelta&&(e.initialTouchPoint=null),e.lastTouchPoint={x:n[0].pageX,y:n[0].pageY});break;case"click":case"touchend":case"input":case"submit":if("click"===t.type&&e.lastTouchPoint&&t.touches&&t.touches.length&&(i=o(t,e.lastTouchPoint),i<e.touchMoveDelta))return t.preventDefault(),void t.stopPropagation();if("touchend"===t.type&&!e.initialTouchPoint)return;var s="[data-emit]",a=t.target||t.srcElement;if(!a.getAttribute("data-emit")&&("A"===a.tagName||"BUTTON"===a.tagName||"INPUT"===a.tagName))return;var l="INPUT"==a.tagName&&("checkbox"==a.type||"radio"==a.type),h=r(a,s,!0,document);if(h){for(var c=-1;h&&t.propagationStoppedAt>c&&++c<100;){for(var u=!0,f=0;f<e.validators.length;++f)if(!e.validators[f].call(this,h,t)){u=!1;break}if(u)if("function"!=typeof e.validate||e.validate.call(e,h)){if("FORM"==h.tagName){if("submit"!=t.type){h=r(h,s,!1,document);continue}}else if("INPUT"==h.tagName){if("submit"!=h.type&&"checkbox"!=h.type&&"radio"!=h.type&&"file"!=h.type&&"input"!=t.type){h=r(h,s,!1,document);continue}}else if("SELECT"==h.tagName&&"input"!=t.type){h=r(h,s,!1,document);continue}t.emitTarget=h,t.depth=c,e._emit(h,t,l),h=r(h,s,!1,document)}else h=r(h,s,!1,document);else t.preventDefault(),t.stopPropagation(),t.propagationStoppedAt=c,h=null}if(c>=100)throw new Error("Exceeded depth limit for Emit calls.")}else e.emit("unhandled",t);e.initialTouchPoint=null}},s.prototype._emit=function(t,e,n){var i,r=this,s=t.getAttribute("data-emit-options"),o={},a=t.getAttribute("data-emit-ignore");if(a&&a.length){var l=a.toLowerCase().split(" ");for(i=0;i<l.length;++i)if(e.type==l[i])return}if(s&&s.length){var h=s.toLowerCase().split(" ");for(i=0;i<h.length;++i)o[h[i]]=!0}n||o.allowdefault||e.preventDefault(),o.allowpropagate||(e.stopPropagation(),e.propagationStoppedAt=e.depth);var c=t.getAttribute("data-emit");
1if(c){var u=c.split(",");return o.debounce?(r.timeouts=r.timeouts||{},r.timeouts[t]&&clearTimeout(r.timeouts[t]),void function(){var n=t,i=u,s=e;r.timeouts[t]=setTimeout(function(){i.forEach(function(t){r.emit(t,s)}),clearTimeout(r.timeouts[n]),r.timeouts[n]=null},250)}()):void u.forEach(function(t){r.emit(t,e)})}},s.prototype.addValidator=function(t){for(var e=this,n=!1,i=0;i<e.validators.length;++i)if(e.validators[i]==t){n=!0;break}return n?!1:(e.validators.push(t),!0)},s.prototype.removeValidator=function(t){for(var e=this,n=!1,i=0;i<e.validators.length;++i)if(e.validators[i]==t){e.validators.splice(i,1),n=!0;break}return n},s.singleton=s.singleton||new s,s.singleton.Emit=s,e.exports=s.singleton},{eventemitter2:1}]},{},[]); 2//# sourceMappingURL=emit-bindings-1.1.0.min.js.map 3 4var emit = require( 'emit-bindings' );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.