1!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(window.jQuery||window.Zepto)}(function(t){"use strict";t.fn.mask=function(e,a){return this.unmask(),this.each(function(){t(this).data("mask",new function(e,a,n){var r,o=this;e=t(e),a="function"==typeof a?a(e.val(),void 0,e,n):a,o.init=function(){n=n||{},o.byPassKeys=[9,16,17,18,36,37,38,39,40,91],o.translation={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}},o.translation=t.extend({},o.translation,n.translation),o=t.extend(!0,{},o,n),e.each(function(){!1!==n.maxlength&&e.attr("maxlength",a.length),n.placeholder&&e.attr("placeholder",n.placeholder),e.attr("autocomplete","off"),s.destroyEvents(),s.events();var t=s.getCaret();s.val(s.getMasked()),s.setCaret(t+s.getMaskCharactersBeforeCount(t,!0))})};var s={getCaret:function(){var t,a=0,n=e.get(0),r=document.selection,o=n.selectionStart;return r&&!~navigator.appVersion.indexOf("MSIE 10")?((t=r.createRange()).moveStart("character",e.is("input")?-e.val().length:-e.text().length),a=t.text.length):(o||"0"===o)&&(a=o),a},setCaret:function(t){if(e.is(":focus")){var a,n=e.get(0);n.setSelectionRange?n.setSelectionRange(t,t):n.createTextRange&&((a=n.createTextRange()).collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select())}},events:function(){e.on("keydown.mask",function(){r=s.val()}),e.on("keyup.mask",s.behaviour),e.on("paste.mask drop.mask",function(){setTimeout(function(){e.keydown().keyup()},100)}),e.on("change.mask",function(){e.data("changeCalled",!0)}),e.on("blur.mask",function(e){var a=t(e.target);a.prop("defaultValue")!==a.val()&&(a.prop("defaultValue",a.val()),a.data("changeCalled")||a.trigger("change")),a.data("changeCalled",!1)}),e.on("focusout.mask",function(){n.clearIfNotMatch&&s.val().length<a.length&&s.val("")})},destroyEvents:function(){e.off("keydown.mask keyup.mask paste.mask drop.mask change.mask blur.mask focusout.mask").removeData("changeCalled")},val:function(t){var a=e.is("input");return arguments.length>0?a?e.val(t):e.text(t):a?e.val():e.text()},getMaskCharactersBeforeCount:function(t,e){for(var n=0,r=0,s=a.length;r<s&&r<t;r++)o.translation[a.charAt(r)]||(t=e?t+1:t,n++);return n},determineCaretPos:function(t,e,n,r){return o.translation[a.charAt(Math.min(t-1,a.length-1))]?Math.min(t+n-e-r,n):s.determineCaretPos(t+1,e,n,r)},behaviour:function(e){var a=(e=e||window.event).keyCode||e.which;if(-1===t.inArray(a,o.byPassKeys)){var n=s.getCaret(),r=s.val(),c=r.length,i=n<c,l=s.getMasked(),u=l.length,h=s.getMaskCharactersBeforeCount(u-1)-s.getMaskCharactersBeforeCount(c-1);return l!==r&&s.val(l),!i||65===a&&e.ctrlKey||(8!==a&&46!==a&&(n=s.determineCaretPos(n,c,u,h)),s.setCaret(n)),s.callbacks(e)}},getMasked:function(t){var e,r,c=[],i=s.val(),l=0,u=a.length,h=0,f=i.length,g=1,v="push",d=-1;for(n.reverse?(v="unshift",g=-1,e=0,l=u-1,h=f-1,r=function(){return l>-1&&h>-1}):(e=u-1,r=function(){return l<u&&h<f});r();){var m=a.charAt(l),k=i.charAt(h),p=o.translation[m];p?(k.match(p.pattern)?(c[v](k),p.recursive&&(-1===d?d=l:l===e&&(l=d-g),e===d&&(l-=g)),l+=g):p.optional&&(l+=g,h-=g),h+=g):(t||c[v](m),k===m&&(h+=g),l+=g)}var C=a.charAt(e);return u!==f+1||o.translation[C]||c.push(C),c.join("")},callbacks:function(t){var o=s.val(),c=s.val()!==r;!0===c&&"function"==typeof n.onChange&&n.onChange(o,t,e,n),!0===c&&"function"==typeof n.onKeyPress&&n.onKeyPress(o,t,e,n),"function"==typeof n.onComplete&&o.length===a.length&&n.onComplete(o,t,e,n)}};o.remove=function(){var t=s.getCaret(),e=s.getMaskCharactersBeforeCount(t);s.destroyEvents(),s.val(o.getCleanVal()).removeAttr("maxlength"),s.setCaret(t-e)},o.getCleanVal=function(){return s.getMasked(!0)},o.init()}(this,e,a))})},t.fn.unmask=function(){return this.each(function(){try{t(this).data("mask").remove()}catch(t){}})},t.fn.cleanVal=function(){return t(this).data("mask").getCleanVal()},t("*[data-mask]").each(function(){var e=t(this),a={},n="data-mask-";"true"===e.attr(n+"reverse")&&(a.reverse=!0),"false"===e.attr(n+"maxlength")&&(a.maxlength=!1),"true"===e.attr(n+"clearifnotmatch")&&(a.clearIfNotMatch=!0),e.mask(e.attr("data-mask"),a)})});
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.