"format amd";!function(n){"use strict";function t(n,t){return n.module("angularSpinner",[]).constant("SpinJSSpinner",t).provider("usSpinnerConfig",function(){var n={},t={};return{setDefaults:function(t){n=t||n},setTheme:function(n,i){t[n]=i},$get:function(){return{config:n,themes:t}}}}).factory("usSpinnerService",["$rootScope",function(n){var t={};return t.spin=function(t){n.$broadcast("us-spinner:spin",t)},t.stop=function(t){n.$broadcast("us-spinner:stop",t)},t}]).directive("usSpinner",["SpinJSSpinner","usSpinnerConfig",function(t,i){return{scope:!0,link:function(r,u,f){function e(){r.spinner&&r.spinner.stop()}r.spinner=null;r.key=n.isDefined(f.spinnerKey)?f.spinnerKey:!1;r.startActive=n.isDefined(f.spinnerStartActive)?r.$eval(f.spinnerStartActive):r.key?!1:!0;r.spin=function(){r.spinner&&r.spinner.spin(u[0])};r.stop=function(){r.startActive=!1;e()};r.$watch(f.usSpinner,function(o){e();o=n.extend({},i.config,i.themes[f.spinnerTheme],o);r.spinner=new t(o);r.key&&!r.startActive||f.spinnerOn||r.spinner.spin(u[0])},!0);f.spinnerOn&&r.$watch(f.spinnerOn,function(n){n?r.spin():r.stop()});r.$on("us-spinner:spin",function(n,t){t===r.key&&r.spin()});r.$on("us-spinner:stop",function(n,t){t===r.key&&r.stop()});r.$on("$destroy",function(){r.stop();r.spinner=null})}}}])}"object"==typeof module&&module.exports?module.exports=t(require("angular"),require("spin.js")):"function"==typeof define&&define.amd?define(["angular","spin"],t):t(n.angular,n.Spinner)}(this),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.SignaturePad=t()}(this,function(){"use strict";function t(n,t,i){this.x=n;this.y=t;this.time=i||(new Date).getTime()}function i(n,t,i,r){this.startPoint=n;this.control1=t;this.control2=i;this.endPoint=r}function r(n,t,i){var u,f,o,r=null,e=0,s;return i||(i={}),s=function(){e=i.leading===!1?0:Date.now();r=null;o=n.apply(u,f);r||(u=f=null)},function(){var c=Date.now(),h;return e||i.leading!==!1||(e=c),h=t-(c-e),u=this,f=arguments,h<=0||h>t?(r&&(clearTimeout(r),r=null),e=c,o=n.apply(u,f),r||(u=f=null)):r||i.trailing===!1||(r=setTimeout(s,h)),o}}function n(t,i){var u=this,f=i||{};this.velocityFilterWeight=f.velocityFilterWeight||.7;this.minWidth=f.minWidth||.5;this.maxWidth=f.maxWidth||2.5;this.throttle="throttle"in f?f.throttle:16;this.minDistance=f.minDistance||5;this._strokeMoveUpdate=this.throttle?r(n.prototype._strokeUpdate,this.throttle):n.prototype._strokeUpdate;this.dotSize=f.dotSize||function(){return(this.minWidth+this.maxWidth)/2};this.penColor=f.penColor||"black";this.backgroundColor=f.backgroundColor||"rgba(0,0,0,0)";this.onBegin=f.onBegin;this.onEnd=f.onEnd;this._canvas=t;this._ctx=t.getContext("2d");this.clear();this._handleMouseDown=function(n){n.which===1&&(u._mouseButtonDown=!0,u._strokeBegin(n))};this._handleKeyDown=function(n){n.keyCode!==16&&n.charCode!==16||u._mouseButtonDown||(u._mouseButtonDown=!0,u._strokeBegin({clientX:u._clientX,clientY:u._clientY}))};this._handleMouseMove=function(n){u._clientX=n.clientX;u._clientY=n.clientY;u._mouseButtonDown&&u._strokeMoveUpdate(n)};this._handleMouseUp=function(n){n.which===1&&u._mouseButtonDown&&(u._mouseButtonDown=!1,u._strokeEnd(n))};this._handleKeyUp=function(n){(n.keyCode===16||n.charCode===16)&&u._mouseButtonDown&&(u._mouseButtonDown=!1,u._strokeEnd(n))};this._handleTouchStart=function(n){if(n.targetTouches.length===1){var t=n.changedTouches[0];u._strokeBegin(t)}};this._handleTouchMove=function(n){n.preventDefault();var t=n.targetTouches[0];u._strokeMoveUpdate(t)};this._handleTouchEnd=function(n){var t=n.target===u._canvas;t&&(n.preventDefault(),u._strokeEnd(n))};this.on()}return t.prototype.velocityFrom=function(n){return this.time!==n.time?this.distanceTo(n)/(this.time-n.time):1},t.prototype.distanceTo=function(n){return Math.sqrt(Math.pow(this.x-n.x,2)+Math.pow(this.y-n.y,2))},t.prototype.equals=function(n){return this.x===n.x&&this.y===n.y&&this.time===n.time},i.prototype.length=function(){for(var t,i,r=10,u=0,f=void 0,e=void 0,n=0;n<=r;n+=1){var o=n/r,s=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),h=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);n>0&&(t=s-f,i=h-e,u+=Math.sqrt(t*t+i*i));f=s;e=h}return u},i.prototype._point=function(n,t,i,r,u){return t*(1-n)*(1-n)*(1-n)+3*i*(1-n)*(1-n)*n+3*r*(1-n)*n*n+u*n*n*n},n.prototype.clear=function(){var t=this._ctx,n=this._canvas;t.fillStyle=this.backgroundColor;t.clearRect(0,0,n.width,n.height);t.fillRect(0,0,n.width,n.height);this._data=[];this._reset();this._isEmpty=!0},n.prototype.fromDataURL=function(n){var u=this,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=new Image,r=t.ratio||window.devicePixelRatio||1,f=t.width||this._canvas.width/r,e=t.height||this._canvas.height/r;this._reset();i.src=n;i.onload=function(){u._ctx.drawImage(i,0,0,f,e)};this._isEmpty=!1},n.prototype.toDataURL=function(n){var r;switch(n){case"image/svg+xml":return this._toSVG();default:for(var i=arguments.length,u=Array(i>1?i-1:0),t=1;t<i;t++)u[t-1]=arguments[t];return(r=this._canvas).toDataURL.apply(r,[n].concat(u))}},n.prototype.on=function(){this._handleMouseEvents();this._handleTouchEvents()},n.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown);this._canvas.removeEventListener("mousemove",this._handleMouseMove);document.removeEventListener("mouseup",this._handleMouseUp);document.removeEventListener("keydown",this._handleKeyDown);document.removeEventListener("keyup",this._handleKeyUp);this._canvas.removeEventListener("touchstart",this._handleTouchStart);this._canvas.removeEventListener("touchmove",this._handleTouchMove);this._canvas.removeEventListener("touchend",this._handleTouchEnd)},n.prototype.isEmpty=function(){return this._isEmpty},n.prototype._strokeBegin=function(n){if(this._data.push([]),this._reset(),this._strokeUpdate(n),typeof this.onBegin=="function")this.onBegin(n)},n.prototype._strokeUpdate=function(n){var o=n.clientX,s=n.clientY,t=this._createPoint(o,s),i=this._data[this._data.length-1],r=i&&i[i.length-1],h=r&&t.distanceTo(r)<this.minDistance;if(!(r&&h)){var f=this._addPoint(t),e=f.curve,u=f.widths;e&&u&&this._drawCurve(e,u.start,u.end);this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},n.prototype._strokeEnd=function(n){var u=this.points.length>2,t=this.points[0],i,r;if(!u&&t&&this._drawDot(t),t&&(i=this._data[this._data.length-1],r=i[i.length-1],t.equals(r)||i.push({x:t.x,y:t.y,time:t.time,color:this.penColor})),typeof this.onEnd=="function")this.onEnd(n)},n.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1;this._canvas.addEventListener("mousedown",this._handleMouseDown);this._canvas.addEventListener("mousemove",this._handleMouseMove);document.addEventListener("mouseup",this._handleMouseUp);document.addEventListener("keydown",this._handleKeyDown);document.addEventListener("keyup",this._handleKeyUp)},n.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none";this._canvas.style.touchAction="none";this._canvas.addEventListener("touchstart",this._handleTouchStart);this._canvas.addEventListener("touchmove",this._handleTouchMove);this._canvas.addEventListener("touchend",this._handleTouchEnd)},n.prototype._reset=function(){this.points=[];this._lastVelocity=0;this._lastWidth=(this.minWidth+this.maxWidth)/2;this._ctx.fillStyle=this.penColor},n.prototype._createPoint=function(n,i,r){var u=this._canvas.getBoundingClientRect();return new t(n-u.left,i-u.top,r||(new Date).getTime())},n.prototype._addPoint=function(n){var t=this.points,r=void 0,u;if(t.push(n),t.length>2){t.length===3&&t.unshift(t[0]);r=this._calculateCurveControlPoints(t[0],t[1],t[2]);u=r.c2;r=this._calculateCurveControlPoints(t[1],t[2],t[3]);var e=r.c1,f=new i(t[1],u,e,t[2]),o=this._calculateCurveWidths(f);return t.shift(),{curve:f,widths:o}}return{}},n.prototype._calculateCurveControlPoints=function(n,i,r){var e=n.x-i.x,o=n.y-i.y,s=i.x-r.x,h=i.y-r.y,f={x:(n.x+i.x)/2,y:(n.y+i.y)/2},u={x:(i.x+r.x)/2,y:(i.y+r.y)/2},p=Math.sqrt(e*e+o*o),c=Math.sqrt(s*s+h*h),w=f.x-u.x,b=f.y-u.y,l=c/(p+c),a={x:u.x+w*l,y:u.y+b*l},v=i.x-a.x,y=i.y-a.y;return{c1:new t(f.x+v,f.y+y),c2:new t(u.x+v,u.y+y)}},n.prototype._calculateCurveWidths=function(n){var u=n.startPoint,f=n.endPoint,t={start:null,end:null},i=this.velocityFilterWeight*f.velocityFrom(u)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i);return t.start=this._lastWidth,t.end=r,this._lastVelocity=i,this._lastWidth=r,t},n.prototype._strokeWidth=function(n){return Math.max(this.maxWidth/(n+1),this.minWidth)},n.prototype._drawPoint=function(n,t,i){var r=this._ctx;r.moveTo(n,t);r.arc(n,t,i,0,2*Math.PI,!1);this._isEmpty=!1},n.prototype._drawCurve=function(n,t,i){var s=this._ctx,p=i-t,a=Math.floor(n.length()),e,f,y;for(s.beginPath(),e=0;e<a;e+=1){var r=e/a,h=r*r,c=h*r,u=1-r,l=u*u,v=l*u,o=v*n.startPoint.x;o+=3*l*r*n.control1.x;o+=3*u*h*n.control2.x;o+=c*n.endPoint.x;f=v*n.startPoint.y;f+=3*l*r*n.control1.y;f+=3*u*h*n.control2.y;f+=c*n.endPoint.y;y=t+c*p;this._drawPoint(o,f,y)}s.closePath();s.fill()},n.prototype._drawDot=function(n){var t=this._ctx,i=typeof this.dotSize=="function"?this.dotSize():this.dotSize;t.beginPath();this._drawPoint(n.x,n.y,i);t.closePath();t.fill()},n.prototype._fromData=function(n,i,r){for(var u,f,a,e=0;e<n.length;e+=1)if(u=n[e],u.length>1)for(f=0;f<u.length;f+=1){var o=u[f],s=new t(o.x,o.y,o.time),v=o.color;if(f===0)this._reset(),this._addPoint(s);else if(f!==u.length-1){var h=this._addPoint(s),c=h.curve,l=h.widths;c&&l&&i(c,l,v)}}else this._reset(),a=u[0],r(a)},n.prototype._toSVG=function(){var u=this,a=this._data,t=this._canvas,o=Math.max(window.devicePixelRatio||1,1),s=t.width/o,h=t.height/o,n=document.createElementNS("http://www.w3.org/2000/svg","svg"),i,e,r,c,l;n.setAttributeNS(null,"width",t.width);n.setAttributeNS(null,"height",t.height);this._fromData(a,function(t,i,r){var u=document.createElement("path"),f;isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y)||(f="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" "+("C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" ")+(t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" ")+(t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3)),u.setAttribute("d",f),u.setAttribute("stroke-width",(i.end*2.25).toFixed(3)),u.setAttribute("stroke",r),u.setAttribute("fill","none"),u.setAttribute("stroke-linecap","round"),n.appendChild(u))},function(t){var i=document.createElement("circle"),r=typeof u.dotSize=="function"?u.dotSize():u.dotSize;i.setAttribute("r",r);i.setAttribute("cx",t.x);i.setAttribute("cy",t.y);i.setAttribute("fill",t.color);n.appendChild(i)});var v='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'+(' viewBox="0 0 '+s+" "+h+'"')+(' width="'+s+'"')+(' height="'+h+'"')+">",f=n.innerHTML;if(f===undefined){for(i=document.createElement("dummy"),e=n.childNodes,i.innerHTML="",r=0;r<e.length;r+=1)i.appendChild(e[r].cloneNode(!0));f=i.innerHTML}return c="<\/svg>",l=v+f+c,"data:image/svg+xml;base64,"+btoa(l)},n.prototype.fromData=function(n){var t=this;this.clear();this._fromData(n,function(n,i){return t._drawCurve(n,i.start,i.end)},function(n){return t._drawDot(n)});this._data=n},n.prototype.toData=function(){return this._data},n});!function(n,t){"use strict";function i(n){return{require:"?ngModel",restrict:"A",link:function(i,r,u,f){function e(){var n=o(i);return t.isObject(n)&&n.hasOwnProperty("$viewValue")&&(n=n.$viewValue),n}if(f&&u.match){var o=n(u.match),s=n(u.matchCaseless),h=n(u.notMatch),c=n(u.matchIgnoreEmpty);i.$watch(e,function(){f.$$parseAndValidate()});f.$validators.match=function(n,r){var u,f=n||r,o=e(),l=h(i);return c(i)&&!r?!0:(u=s(i)?t.lowercase(f)===t.lowercase(o):f===o,u^=l,!!u)}}}}}i.$inject=["$parse"];t.module("validation.match",[]);t.module("validation.match").directive("match",i)}(window,window.angular);angular.module("ngAutocomplete",[]).directive("ngAutocomplete",function(){return{require:"ngModel",scope:{ngModel:"=",options:"=?",details:"=?",addressGroup:"=?",placeChanged:"&"},link:function(n,t,i,r){var u,o=!1,f=!1,e=!0,h=function(){u={};n.options&&(o=n.options.watchEnter!==!0?!1:!0,e=n.options.editable!==!0?!1:!0,n.options.types?(u.types=[],u.types.push(n.options.types),n.gPlace.setTypes(u.types)):n.gPlace.setTypes([]),n.options.bounds?(u.bounds=n.options.bounds,n.gPlace.setBounds(u.bounds)):n.gPlace.setBounds(null),n.options.country?(u.componentRestrictions={country:n.options.country},n.gPlace.setComponentRestrictions(u.componentRestrictions)):n.gPlace.setComponentRestrictions(null))},s;n.gPlace==undefined&&(n.gPlace=new google.maps.places.Autocomplete(t[0],{}));google.maps.event.addListener(n.gPlace,"place_changed",function(){var i=n.gPlace.getPlace();i!==undefined&&(i.address_components!==undefined?n.$apply(function(){n.details=i;r.$setViewValue(t.val())}):o&&s(i));n.$apply(function(){n.placeChanged({data:{addressGroup:n.addressGroup,result:i}});i.id&&(f=!0)})});s=function(i){var u=new google.maps.places.AutocompleteService;i.name.length>0&&u.getPlacePredictions({input:i.name,offset:i.name.length},function(i){if(i==null||i.length==0)n.$apply(function(){n.details=null});else{var u=new google.maps.places.PlacesService(t[0]);u.getDetails({reference:i[0].reference},function(i,u){u==google.maps.GeocoderStatus.OK&&n.$apply(function(){r.$setViewValue(i.formatted_address);t.val(i.formatted_address);n.details=i;var u=t.on("focusout",function(){t.val(i.formatted_address);t.unbind("focusout")})})})}})};t.on("keypress",function(n){n.which==13?t.val()&&(t.val()!=r.$viewValue?n.preventDefault():e||f||(t.val(undefined),n.preventDefault())):f=!1});t.on("blur",function(){e||f||t.val(undefined)});r.$render=function(){var n=r.$viewValue;t.val(n)};n.watchOptions=function(){return n.options};n.$watch(n.watchOptions,function(){h()},!0)}}});typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ng-currency");angular.module("ng-currency",[]).directive("ngCurrency",["$filter","$locale",function(n,t){return{require:"ngModel",scope:{min:"@?min",max:"@?max",currencySymbol:"@",displayZeroes:"=?displayZeroes",ngRequired:"=?ngRequired",fraction:"@?fraction"},link:function(i,r,u,f){function e(n){return RegExp("\\d|\\-|\\"+n,"g")}function h(n){return RegExp("\\-{0,1}((\\"+n+")|([0-9]{1,}\\"+n+"?))&?[0-9]{0,"+(typeof i.fraction!="undefined"&&i.fraction?i.fraction:2)+"}","g")}function c(r){var u,f;if(r=String(r),u=t.NUMBER_FORMATS.DECIMAL_SEP,f=null,!i.displayZeroes&&r==="")return r;r.indexOf(t.NUMBER_FORMATS.DECIMAL_SEP)==-1&&r.indexOf(".")!=-1&&(typeof i.fraction!="undefined"&&i.fraction?i.fraction:2)&&(u=".");var c=n("currency")("-1",o(),typeof i.fraction!="undefined"&&i.fraction?i.fraction:2),s=RegExp("[0-9."+t.NUMBER_FORMATS.DECIMAL_SEP+t.NUMBER_FORMATS.GROUP_SEP+"]+"),l=c.replace(s.exec(c),""),a=r.replace(s.exec(r),"");return l==a&&(r="-"+s.exec(r)),RegExp("^-[\\s]*$","g").test(r)&&(r="-0"),e(u).test(r)&&(f=r.match(e(u)).join("").match(h(u)),f=f?f[0].replace(u,"."):null),f}function o(){return angular.isDefined(i.currencySymbol)?i.currencySymbol:t.NUMBER_FORMATS.CURRENCY_SYM}function s(){var t=f.$formatters,r=t.length,n=f.$$rawModelValue;if(!i.displayZeroes&&n.length&&parseFloat(n)==0)n="";else while(r--)n=t[r](n);f.$setViewValue(n);f.$render()}if(u.ngCurrency!=="false"){i.displayZeroes=typeof i.displayZeroes!="undefined"?i.displayZeroes:!0;f.$parsers.push(function(n){var t=c(n);return(t=="."||t=="-.")&&(t=".0"),!i.displayZeroes&&n===""?0:parseFloat(t)});r.on("blur",function(){f.$commitViewValue();s()});f.$formatters.unshift(function(t){return!i.displayZeroes&&t.length&&parseFloat(t)==0?"":n("currency")(t,o(),typeof i.fraction!="undefined"&&i.fraction?i.fraction:2)});f.$validators.min=function(n){return!i.ngRequired&&isNaN(n)?!0:typeof i.min!="undefined"&&i.min?n>=parseFloat(i.min):!0};i.$watch("min",function(){f.$validate()});f.$validators.max=function(n){return!i.ngRequired&&isNaN(n)?!0:typeof i.max!="undefined"&&i.max?n<=parseFloat(i.max):!0};i.$watch("max",function(){f.$validate()});f.$validators.fraction=function(n){return!!n&&isNaN(n)?!1:!0};i.$on("currencyRedraw",function(){f.$commitViewValue();s()});r.on("focus",function(){var n=f.$$rawModelValue;n=isNaN(n)||n===""||n==null?null:parseFloat(n).toFixed(typeof i.fraction!="undefined"&&i.fraction?i.fraction:2);f.$setViewValue(n);f.$render()})}}}}]);!function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).angularCreditCards=n()}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t,i){function u(n,t){return function(){var r=[].slice.call(arguments),i=n.slice();return i.push.apply(i,r),t.apply(this,i)}}function f(n,t){return function(){var i=[].slice.call(arguments);return i.push.apply(i,n),t.apply(this,i)}}function r(n){return u([].slice.call(arguments,1),n)}function e(n){return f([].slice.call(arguments,1),n)}(i=t.exports=u).pa=f;i.apa=function(n,t,i){return function(){return i.apply(this,n.concat.apply(n,arguments).concat(t))}};i.partial=r;i.partialRight=e;i.curry=function(n){return r(r,n)};i.curryRight=function(n){return r(e,n)}},{}],2:[function(n,t){"use strict";var i=n("isarray");t.exports=function(n){return i(n)?n:[n]}},{isarray:18}],3:[function(n,t,i){"use strict";var r=i.types=n("./src/types");i.Type=n("./src/type");i.find=function(n){var i,t;for(i in r)if(t=r[i],n(t))return t}},{"./src/type":4,"./src/types":5}],4:[function(n,t){"use strict";function i(n,t){r(this,{name:n},t)}var r=n("xtend/mutable");(t.exports=i).prototype.cvcLength=3;i.prototype.luhn=!0;i.prototype.groupPattern=/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?/;i.prototype.group=function(n){return(n.match(this.groupPattern)||[]).slice(1).filter(Boolean)};i.prototype.test=function(n,t){return this[t?"eagerPattern":"pattern"].test(n)}},{"xtend/mutable":26}],5:[function(n,t,i){"use strict";var r=n("./type"),u=/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/;i.visa=new r("Visa",{pattern:/^4\d{12}(\d{3}|\d{6})?$/,eagerPattern:/^4/,groupPattern:u});i.maestro=new r("Maestro",{pattern:/^(?:5[06789]\d\d|(?!6011[0234])(?!60117[4789])(?!60118[6789])(?!60119)(?!64[456789])(?!65)6\d{3})\d{8,15}$/,eagerPattern:/^(5(018|0[23]|[68])|6[37]|60111|60115|60117([56]|7[56])|60118[0-5]|64[0-3]|66)/,groupPattern:u});i.forbrugsforeningen=new r("Forbrugsforeningen",{pattern:/^600722\d{10}$/,eagerPattern:/^600/});i.dankort=new r("Dankort",{pattern:/^5019\d{12}$/,eagerPattern:/^5019/});i.masterCard=new r("MasterCard",{pattern:/^(5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)\d{12}$/,eagerPattern:/^(2|5[1-5])/});i.americanExpress=new r("American Express",{pattern:/^3[47]\d{13}$/,eagerPattern:/^3[47]/,groupPattern:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,cvcLength:4});i.dinersClub=new r("Diners Club",{pattern:/^3(0[0-5]|[68]\d)\d{11}$/,eagerPattern:/^3(0|[68])/,groupPattern:/(\d{1,4})?(\d{1,6})?(\d{1,4})?/});i.discover=new r("Discover",{pattern:/^6(011(0[0-9]|[2-4]\d|74|7[7-9]|8[6-9]|9[0-9])|4[4-9]\d{3}|5\d{4})\d{10}$/,eagerPattern:/^6(011(0[0-9]|[2-4]|74|7[7-9]|8[6-9]|9[0-9])|4[4-9]|5)/});i.jcb=new r("JCB",{pattern:/^35\d{14}$/,eagerPattern:/^35/});i.unionPay=new r("UnionPay",{pattern:/^62[0-5]\d{13,16}$/,eagerPattern:/^62/,groupPattern:u,luhn:!1});i.troy=new r("Troy",{pattern:/^9792\d{12}$/,eagerPattern:/^9792/})},{"./type":4}],6:[function(n,t){"use strict";function r(n,t){return i.find(function(i){return i.test(n,t)})}var u=n("fast-luhn"),i=n("./types");t.exports={types:i,parse:function(n){return"string"!=typeof n?"":n.replace(/[^\d]/g,"")},format:function(n,t){var i=r(n,!0);return i?i.group(n).join(t||" "):n},type:function(n,t){var i=r(n,t);if(i)return i.name},luhn:u,isValid:function(n,t){return t=t?i.get(t):r(n),!!t&&(!t.luhn||u(n))&&t.test(n)}}},{"./types":10,"fast-luhn":12}],7:[function(n,t){"use strict";var i=n("./types"),r=/^\d{3,4}$/;t.exports={isValid:function(n,t){return!("string"!=typeof n||!r.test(n)||t&&i.get(t).cvcLength!==n.length)}}},{"./types":10}],8:[function(n,t){"use strict";var r=n("is-valid-month"),i=n("parse-int"),u=n("parse-year");t.exports={isPast:function(n,t){return Date.now()>=new Date(t,n)},month:{parse:function(n){return i(n)},isValid:r},year:{parse:u,format:function(n,t){return n=n.toString(),t?n.substr(2,4):n},isValid:function(n){return"number"==typeof n&&0<(n=i(n))},isPast:function(n){return(new Date).getFullYear()>n}}}},{"is-valid-month":17,"parse-int":20,"parse-year":21}],9:[function(n,t){"use strict";t.exports={card:n("./card"),cvc:n("./cvc"),expiration:n("./expiration")}},{"./card":6,"./cvc":7,"./expiration":8}],10:[function(n,t){"use strict";var i=n("creditcards-types"),r=n("to-camel-case"),u=n("xtend");t.exports=u(i,{get:function(n){return i.types[r(n)]}})},{"creditcards-types":3,"to-camel-case":22,xtend:25}],11:[function(n,t){"use strict";var r=n("zero-fill"),i=n("parse-int"),u=r(2);t.exports=function(n,t){var r=(t=t||new Date).getFullYear().toString().substr(0,2);return n=i(n),i(r+u(n))}},{"parse-int":20,"zero-fill":27}],12:[function(n,t){"use strict";var i;t.exports=(i=[0,2,4,6,8,1,3,5,7,9],function(n){if("string"!=typeof n)throw new TypeError("Expected string input");if(!n)return!1;for(var t,u=n.length,f=1,r=0;u;)t=parseInt(n.charAt(--u),10),r+=(f^=1)?i[t]:t;return!!r&&r%10==0})},{}],13:[function(n,t){"use strict";var i=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(n){var t=this,f;if("function"!=typeof t||"[object Function]"!==r.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var u,e=i.call(arguments,1),h=Math.max(0,t.length-e.length),s=[],o=0;o<h;o++)s.push("$"+o);return(u=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof u){var r=t.apply(this,e.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,e.concat(i.call(arguments)))}),t.prototype)&&(f=function(){},f.prototype=t.prototype,u.prototype=new f,f.prototype=null),u}},{}],14:[function(n,t){"use strict";var i=n("./implementation");t.exports=Function.prototype.bind||i},{"./implementation":13}],15:[function(n,t){"use strict";var i=n("number-is-nan");t.exports=Number.isFinite||function(n){return!("number"!=typeof n||i(n)||n===1/0||n===-1/0)}},{"number-is-nan":19}],16:[function(n,t){var i=n("is-finite");t.exports=Number.isInteger||function(n){return"number"==typeof n&&i(n)&&Math.floor(n)===n}},{"is-finite":15}],17:[function(n,t){"use strict";var i=n("is-integer");t.exports=function(n){return!("number"!=typeof n||!i(n))&&1<=n&&n<=12}},{"is-integer":16}],18:[function(n,t){t.exports=Array.isArray||function(n){return"[object Array]"==Object.prototype.toString.call(n)}},{}],19:[function(n,t){"use strict";t.exports=Number.isNaN||function(n){return n!=n}},{}],20:[function(n,t){"use strict";var i=n("is-integer");t.exports=function(n){return"number"==typeof n?i(n)?n:void 0:"string"==typeof n&&/^-?\d+$/.test(n)?parseInt(n,10):void 0}},{"is-integer":16}],21:[function(n,t){"use strict";var i=n("parse-int"),r=n("expand-year");t.exports=function(n,t,u){if(null!=(n=i(n)))return t?r(n,u):n}},{"expand-year":11,"parse-int":20}],22:[function(n,t){var i=n("to-space-case");t.exports=function(n){return i(n).replace(/\s(\w)/g,function(n,t){return t.toUpperCase()})}},{"to-space-case":24}],23:[function(n,t){t.exports=function(n){return i.test(n)?n.toLowerCase():r.test(n)?(o=n,o.replace(f,function(n,t){return t?" "+t:""})||n).toLowerCase():u.test(n)?(t=n,t.replace(e,function(n,t,i){return t+" "+i.toLowerCase().split("").join(" ")})).toLowerCase():n.toLowerCase();var t,o};var i=/\s/,r=/(_|-|\.|:)/,u=/([a-z][A-Z]|[A-Z][a-z])/,f=/[\W_]+(.|$)/g,e=/(.)([A-Z]+)/g},{}],24:[function(n,t){var i=n("to-no-case");t.exports=function(n){return i(n).replace(/[\W_]+(.|$)/g,function(n,t){return t?" "+t:""}).trim()}},{"to-no-case":23}],25:[function(n,t){t.exports=function(){for(var t,r,u={},n=0;n<arguments.length;n++){t=arguments[n];for(r in t)i.call(t,r)&&(u[r]=t[r])}return u};var i=Object.prototype.hasOwnProperty},{}],26:[function(n,t){t.exports=function(n){for(var r,u,t=1;t<arguments.length;t++){r=arguments[t];for(u in r)i.call(r,u)&&(n[u]=r[u])}return n};var i=Object.prototype.hasOwnProperty},{}],27:[function(n,t,i){t.exports=function i(n,t,r){return void 0===t?function(t,r){return i(n,t,r)}:(void 0===r&&(r="0"),0<(n-=t.toString().length)?new Array(n+(/\./.test(t)?2:1)).join(r)+t:t+"")}},{}],28:[function(n,t){"use strict";function u(n){return{restrict:"A",require:"ngModel",compile:function(t,u){return u.$set("maxlength",4),u.$set("pattern","[0-9]*"),u.$set("xAutocompletetype","cc-csc"),function(t,u,f,e){e.$validators.ccCvc=function(r){return e.$isEmpty(e.$viewValue)||i.isValid(r,n(f.ccType)(t))};f.ccType&&t.$watch(f.ccType,r.call(e.$validate,e))}}}}var i=n("creditcards").cvc,r=n("function-bind");(t.exports=u).$inject=["$parse"]},{creditcards:9,"function-bind":14}],29:[function(n,t,i){"use strict";function s(n,t){function o(n){var i=n.month,r=n.year,e=null==i&&null==r||!!i&&!!r&&!u.isPast(i,r);f.$setValidity("ccExp",e,t)}var r={$setValidity:e},f=t.inheritedData("$formController")||r,i={year:{},month:{}};this.setMonth=function(n){i.month=n};this.setYear=function(n){i.year=n};this.$watch=function(){n.$watch(function(){return{month:i.month.$modelValue,year:i.year.$modelValue}},o,!0)}}function e(){}var u=n("creditcards").expiration,o=u.month,r=u.year,h=n("ap"),f;i=t.exports=function(){return{restrict:"AE",require:"ccExp",controller:s,link:function(n,t,i,r){r.$watch()}}};s.$inject=["$scope","$element"];f={setMonth:e,setYear:e};i.month=function(){return{restrict:"A",require:["ngModel","^?ccExp"],compile:function(n,t){return t.$set("maxlength",2),t.$set("pattern","[0-9]*"),t.$set("xAutocompletetype","cc-exp-month"),function(n,t,i,r){var u=r[0];(r[1]||f).setMonth(u);u.$parsers.unshift(o.parse);u.$validators.ccExpMonth=function(n){return u.$isEmpty(u.$viewValue)||o.isValid(n)}}}}};i.year=function(){return{restrict:"A",require:["ngModel","^?ccExp"],compile:function(n,t){var i=void 0!==t.fullYear;return t.$set("maxlength",i?4:2),t.$set("pattern","[0-9]*"),t.$set("xAutocompletetype","cc-exp-year"),function(n,t,u,e){var o=e[0];(e[1]||f).setYear(o);o.$parsers.unshift(h.partialRight(r.parse,!i));o.$formatters.unshift(function(n){return n?r.format(n,!i):""});o.$validators.ccExpYear=function(n){return o.$isEmpty(o.$viewValue)||r.isValid(n)&&!r.isPast(n)}}}}}},{ap:1,creditcards:9}],30:[function(n,t){"use strict";function f(n,t){return{restrict:"A",require:["ngModel","ccNumber"],controller:function(){this.type=null;this.eagerType=null},compile:function(f,e){return e.$set("pattern","[0-9]*"),e.$set("xAutocompletetype","cc-number"),function(f,e,o,s){var h=s[0],c=s[1];f.$watch(o.ngModel,function(n){h.$ccType=c.type=i.type(n)});null!=o.ccEagerType&&f.$watch(function(){return h.$viewValue},function(n){n=i.parse(n);h.$ccEagerType=c.eagerType=i.type(n,!0)});o.ccType&&f.$watch(o.ccType,function(){h.$validate()});null!=o.ccFormat&&(h.$formatters.unshift(i.format),e.on("input",function(){var r=e.val();if(r){var n,u,s=e[0],f=i.format(i.parse(r)),o=s.selectionEnd;h.$setViewValue(f);h.$render();o===r.length&&r.length<f.length&&(o=f.length);n=s;u=o;t(function(){if(n.setSelectionRange)n.setSelectionRange(u,u);else if(n.createTextRange){var t=n.createTextRange();t.move("character",u);t.select()}},0)}}));h.$parsers.unshift(i.parse);h.$validators.ccNumber=function(n){return h.$isEmpty(h.$viewValue)||i.isValid(n)};h.$validators.ccNumberType=function(t){if(h.$isEmpty(h.$viewValue))return!0;var e=n(o.ccType)(f);return e||i.isValid(t),r(e).some(u(i.isValid,t))}}}}}var i=n("creditcards").card,r=n("cast-array"),u=n("ap").partial;(t.exports=f).$inject=["$parse","$timeout"]},{ap:1,"cast-array":2,creditcards:9}],31:[function(n,t){(function(i){"use strict";var u="undefined"!=typeof window?window.angular:void 0!==i?i.angular:null,f=n("creditcards"),e=n("./number"),o=n("./cvc"),r=n("./expiration");t.exports=u.module("credit-cards",[]).value("creditcards",f).directive("ccNumber",e).directive("ccExp",r).directive("ccExpMonth",r.month).directive("ccExpYear",r.year).directive("ccCvc",o).name}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./cvc":28,"./expiration":29,"./number":30,creditcards:9}]},{},[31])(31)});typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ng-autocapitalize");angular.module("ng-autocapitalize",[]).directive("ngAutocapitalize",[function(){return{restrict:"A",scope:{autocapitalize:"@?autocapitalize"},require:"ngModel",link:function(n,t,i,r){function u(t){if(r.$isEmpty(t))return t;var u=t;return(i.ngAutocapitalize||n.autocapitalize)=="characters"?u=t.toUpperCase():(i.ngAutocapitalize||n.autocapitalize)=="words"&&(u=t.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1)})),r.$viewValue!==u&&(r.$setViewValue(u),r.$render()),u}r.$parsers.push(u)}}}]);angular.module("percentage",[]).filter("percentage",["$window",function(n){return function(t,i,r){return(i=angular.isNumber(i)?i:3,r=r||"%",n.isNaN(t))?"":Math.round(t*Math.pow(10,i+2))/Math.pow(10,i)+r}}]);angular.module("ng-percent",["percentage"]).directive("ngPercent",["$filter","$locale",function(n,t){return{require:"ngModel",scope:{min:"@min",max:"@max",percentSymbol:"@",ngRequired:"=ngRequired",fraction:"@?fraction"},link:function(i,r,u,f){function e(n){return RegExp("\\d|\\-|\\"+n,"g")}function h(n){return RegExp("\\-{0,1}((\\"+n+")|([0-9]{1,}\\"+n+"?))&?[0-9]{0,"+s+"}","g")}function c(r){r=String(r);var f=t.NUMBER_FORMATS.DECIMAL_SEP,u=null,s=n("percentage")("-1",i.fraction,o()),c=s.indexOf("1"),l=s.substring(0,c);return r=r.replace(l,"-"),RegExp("^-[\\s]*%","g").test(r)&&(r="-0"),e(f).test(r)&&(u=r.match(e(f)).join("").match(h(f)),u=u?u[0].replace(f,"."):null),u}function o(){return angular.isDefined(i.percentSymbol)?i.percentSymbol:"%"}function l(){for(var t=f.$formatters,i=t.length,n=f.$$rawModelValue;i--;)n=t[i](n);f.$setViewValue(n);f.$render()}if(u.ngPercent!=="false"){var s=typeof i.fraction!="undefined"?i.fraction:2;f.$parsers.push(function(n){var t=c(n);return(t=="."||t=="-.")&&(t=".0"),parseFloat(t)/100});r.on("blur",function(){f.$commitViewValue();l()});f.$formatters.unshift(function(t){return n("percentage")(t,i.fraction,o())});f.$validators.min=function(n){return!i.ngRequired&&isNaN(n)?!0:typeof i.min!="undefined"&&i.min?n>=parseFloat(i.min):!0};f.$validators.max=function(n){return!i.ngRequired&&isNaN(n)?!0:typeof i.max!="undefined"&&i.max?n<=parseFloat(i.max):!0};f.$validators.fraction=function(n){return!!n&&isNaN(n)?!1:!0}}}}}]);typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ng-nzird");angular.module("ng-nzird",[]).directive("ngNzird",["$filter",function(){return{require:"ngModel",link:function(n,t,i,r){function u(){if(r.$$rawModelValue){var n=r.$$rawModelValue.replace(/\D/g,"");return n&&(n=("000000000"+n).slice(-9).replace(/(...)(?=.)/g,"$1-")),n!=r.$$rawModelValue&&(r.$setViewValue(n),r.$render()),n}}function e(n){var t=String(n).trim().match(/(?:\d{8,9}|\d{2,3}-\d{3}-\d{3})/);return t&&t.length?("0"+t[0].replace(/-/g,"")).substr(-9):!1}function o(n){var t=Number(n);return t>=1e7&&t<=15e7}function s(n,t){var i=f([3,2,7,6,5,4,3,2],n);return i===10?h(n,t):i===Number(t)}function h(n,t){var i=f([7,4,3,2,5,2,7,6],n);return i===10?!1:i===Number(t)}function f(n,t){for(var r,u=0,i=0;i<n.length;i++)u+=Number(t.charAt(i))*n[i];return r=u%11,r===0?0:11-r}if(i.ngNzird!=="false"){r.$parsers.push(function(n){return n});t.on("blur",function(){r.$commitViewValue();u()});t.bind("keydown",function(n){n.which===13&&(r.$commitViewValue(),u())});r.$formatters.unshift(function(){return u()});r.$validators.nzird=function(n){var t,i;return n?(t=e(n),!t)?!1:o(t)?(i=t.substr(0,8),s(i,t.substr(-1))):!1:!0}}}}}]);Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined}}),function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define("NZ-Bank-Account-Validator",[],t):typeof exports=="object"?exports["NZ-Bank-Account-Validator"]=t():n["NZ-Bank-Account-Validator"]=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(2);t.default={getId:function(n){return this.getPartsObject(n).id},getBranch:function(n){return this.getPartsObject(n).branch},getBase:function(n){return this.getPartsObject(n).base},getSuffix:function(n){return this.getPartsObject(n).suffix},isPartsObject:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(typeof n!="object")return!1;var i=Object.keys(n),t=Object.keys(r.partConstants),u=t.filter(function(n){return i.includes(n)});return t.length===u.length},splitString:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=u.isString(n)?n.split(/[^0-9]/):[];return t.length===1&&(t[0]=n.slice(0,2),t[1]=n.slice(2,5),t[2]=n.slice(5,12),t[3]=n.slice(12)),t.filter(function(n){return n.length})},getPartsObject:function(n){if(this.isPartsObject(n))return n;if(!u.isString(n))return{};var t=this.splitString(n);return{id:t[r.partIndexes.id],branch:t[r.partIndexes.branch],base:t[r.partIndexes.base],suffix:t[r.partIndexes.suffix]}},partsObjectValid:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=Object.keys(n);return t.length!==4?!1:t.reduce(function(t,i){var f=n[i],e=u.isNumbersOnly(f),o=u.isString(f)&&f.length<=r.partMaxLengths[i],s=e&&o;return t&&s},!0)},validate:function(n){var t=this.getPartsObject(n),i;if(!this.partsObjectValid(t))return!1;var f=t.id,e=t.branch,o=t.base,r=this.getBankData(f,e);if(!r||(i=this.getChecksum(r,o),!i))return!1;var s=i.weighting,h=i.modulo,c=i.specialCase,l=!c,a=u.getPaddedAccountArray(t).reduce(function(n,t,i){var r=t*s[i];if(l||r<10)return n+r;var f=u.sumChars(r),e=u.sumChars(f),o=f<10?f:e;return n+o},0);return a%h==0},getBankData:function(n,t){var i=u.padLeft(n,r.partMaxLengths.id);return r.bankData.find(function(n){var r=n.branches[i];return r&&u.inRanges(t,r)})},getChecksum:function(n,t){var i=n.key;return i==="AB"&&(i=parseInt(t,10)<99e4?"A":"B"),r.bankChecksums[i]}};n.exports=t["default"]},function(n,t){"use strict";function r(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}var u,f;Object.defineProperty(t,"__esModule",{value:!0});var i={id:"id",branch:"branch",base:"base",suffix:"suffix"},e=(u={},r(u,i.id,0),r(u,i.branch,1),r(u,i.base,2),r(u,i.suffix,3),u),o=(f={},r(f,i.id,2),r(f,i.branch,4),r(f,i.base,8),r(f,i.suffix,4),f);t.default={partConstants:i,partIndexes:e,partMaxLengths:o,bankData:[{key:"AB",branches:{"01":[[1,999],[1100,1199],[1800,1899]],"02":[[1,999],[1200,1299]],"03":[[1,999],[1300,1399],[1500,1599],[1700,1799],[1900,1999]],"06":[[1,999],[1400,1499]],"11":[[5e3,6499],[6600,8999]],"12":[[3e3,3299],[3400,3499],[3600,3699]],"13":[[4900,4999]],"14":[[4700,4799]],"15":[[3900,3999]],"16":[[4400,4499]],"17":[[3300,3399]],"18":[[3500,3599]],"19":[[4600,4649]],"20":[[4100,4199]],"21":[[4800,4899]],"22":[[4e3,4049]],"23":[[3700,3799]],"24":[[4300,4349]],"27":[[3800,3849]],"30":[[2900,2949]],"35":[[2400,2499]],"38":[[9e3,9499]]}},{key:"D",branches:{"08":[[6500,6599]]}},{key:"E",branches:{"09":[[0,0]]}},{key:"F",branches:{"25":[[2500,2599]],"33":[[6700,6799]]}},{key:"G",branches:{"26":[[2600,2699]],"28":[[2100,2149]],"29":[[2150,2299]]}},{key:"X",branches:{"31":[[2800,2849]]}}],bankChecksums:{A:{weighting:[0,0,6,3,7,9,0,0,10,5,8,4,2,1,0,0,0,0],modulo:11},B:{weighting:[0,0,0,0,0,0,0,0,10,5,8,4,2,1,0,0,0,0],modulo:11},C:{weighting:[3,7,0,0,0,0,9,1,10,5,3,4,2,1,0,0,0,0],modulo:11},D:{weighting:[0,0,0,0,0,0,0,7,6,5,4,3,2,1,0,0,0,0],modulo:11},E:{weighting:[0,0,0,0,0,0,0,0,0,0,5,4,3,2,0,0,0,1],modulo:11,specialCase:!0},F:{weighting:[0,0,0,0,0,0,0,1,7,3,1,7,3,1,0,0,0,0],modulo:10},G:{weighting:[0,0,0,0,0,0,0,1,3,7,1,3,7,1,0,3,7,1],modulo:10,specialCase:!0},X:{weighting:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],modulo:1}}};n.exports=t["default"]},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=i(1),o=function(n){return n===n+""},s=function(n){return/^[0-9]+$/.test(n)},r=function(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"0";return Array(t-String(n).length+1).join(i)+n},u=function(n,t,i){return t>=n&&t<=i},h=function(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return t.reduce(function(t,i){var r=f(i,2),e=r[0],o=r[1];return t||u(e,n,o)},!1)},c=function(n){return(n+"").split("").reduce(function(n,t){return n+t*1},0)},l=function(n){return Object.keys(n).reduce(function(t,i){var u=r(n[i],e.partMaxLengths[i]),f=u.split("");return t.concat(f)},[])};t.default={isString:o,isNumbersOnly:s,padLeft:r,inRange:u,inRanges:h,sumChars:c,getPaddedAccountArray:l};n.exports=t["default"]}])});typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ng-nzbank");angular.module("ng-nzbank",[]).directive("ngNzbank",["$filter",function(){return{scope:{suffix:"@?suffix"},require:"ngModel",link:function(n,t,i,r){function u(){if(r.$$rawModelValue){var t=r.$$rawModelValue.replace(/\D/g,"");return t&&(n.suffix=="3"?(t.length>16?t=t.substr(0,13)+t.substr(t.length-3):t.length==15?t=t.substr(0,13)+"0"+t.substr(t.length-2):t.length==14&&(t=t.substr(0,13)+"00"+t.substr(t.length-1)),t=(t+"0000000000000000").substr(0,16).replace(/(\d{2})(\d{4})(\d{7})(\d{3})/,"$1-$2-$3-$4")):(t.length>15?t=t.substr(0,13)+t.substr(t.length-2):t.length==14&&(t=t.substr(0,13)+"0"+t.substr(t.length-1)),t=(t+"000000000000000").substr(0,15).replace(/(\d{2})(\d{4})(\d{7})(\d{2})/,"$1-$2-$3-$4"))),t!=r.$$rawModelValue&&(r.$setViewValue(t),r.$render()),t}}if(i.ngNzbank!=="false"){r.$parsers.push(function(n){return n});t.on("blur",function(){r.$commitViewValue();u()});t.bind("keydown",function(n){n.which===13&&(r.$commitViewValue(),u())});r.$formatters.unshift(function(){return u()});r.$validators.nzbank=function(t){if(t){var i=r.$$rawModelValue.replace(/\D/g,"");if(n.suffix=="3"){if(i&&i.length==16)return i=i.replace(/(\d{2})(\d{4})(\d{7})(\d{3})/,"$1-$2-$3-$4"),window["NZ-Bank-Account-Validator"].validate(i)}else if(i&&i.length==15)return i=i.replace(/(\d{2})(\d{4})(\d{7})(\d{2})/,"$1-$2-$3-$4"),window["NZ-Bank-Account-Validator"].validate(i);return!1}return!0}}}}}]);typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ng-date-format");angular.module("ng-date-format",[]).directive("ngDateFormat",["$filter",function(){return{require:"ngModel",link:function(n,t,i,r){function u(){if(r.$viewValue&&/\d{8}/.test(r.$viewValue)){var n=r.$viewValue.substring(0,2)+"/"+r.$viewValue.substring(2,4)+"/"+r.$viewValue.substring(4,8);return r.$setViewValue(n),r.$render(),n}}if(i.ngDateFormat!=="false")t.on("blur",function(){r.$commitViewValue();u()})}}}]);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("contained-periodic-values")):"function"==typeof define&&define.amd?define(["contained-periodic-values"],t):n.momentBusiness=t(n.containedPeriodicValues)}(this,function(n){"use strict";function t(n){return n=+n,n>0?1:-1}return{weekDays:function(t,i){var r=void 0,f=void 0,o=i.isBefore(t);o?(r=i,f=t):(r=t,f=i);var u=r.day(),e=Math.abs(f.diff(r,"days")),s=n(u,e+u,0,7),h=n(u,e+u,6,7),c=o?-1:1;return c*(e-(h+s))},weekendDays:function(n,t){var i=t.diff(n,"days"),r=this.weekDays(n,t);return i-r},addWeekDays:function(n,i){var u,s;if(0===i||isNaN(i))return n;var f=t(i),r=n.day(),o=Math.abs(i),e=0;return 0===r&&-1===f?e=1:6===r&&1===f&&(e=1),u=o,0!==r&&6!==r&&f>0?u+=r:0!==r&&6!==r&&0>f&&(u+=6-r),s=Math.max(Math.floor(u/5)-1,0)+(u>5&&u%5>0?1:0),e+=o+2*s,n.add(f*e,"days"),n},subtractWeekDays:function(n,t){return this.addWeekDays(n,-t)},isWeekDay:function(n){return n.isoWeekday()<6},isWeekendDay:function(n){return n.isoWeekday()>5}}});typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ng-phone-number");angular.module("ng-phone-number",[]).directive("ngPhoneNumber",["$filter",function(){return{require:"ngModel",scope:{countryCode:"@?countryCode",format:"@?format",ignoreValidation:"=ignoreValidation"},link:function(n,t,i,r){function u(){var t,i;if(r.$$rawModelValue)return t=r.$$rawModelValue,t&&n.countryCode&&(i=f.parsePhoneNumber(t,n.countryCode),i.isValid()&&(n.format!="international-mobile"||i.getType()=="MOBILE"||i.getType()=="FIXED_LINE_OR_MOBILE")?(t=i.format("INTERNATIONAL"),r.$setValidity(n.format=="international-mobile"?"mobilenumber":"phonenumber",!0)):n.ignoreValidation||r.$setValidity(n.format=="international-mobile"?"mobilenumber":"phonenumber",!1)),t!=r.$$rawModelValue&&(r.$setViewValue(t),r.$render()),t}if(i.ngPhoneNumber!=="false"){var f=window.libphonenumber;r.$parsers.push(function(n){return n});t.on("blur",function(){r.$commitViewValue();u()});t.bind("keydown",function(n){n.which===13&&(r.$commitViewValue(),u())});r.$formatters.unshift(function(){return u()})}}}}])