Skip to content

Instantly share code, notes, and snippets.

@vladan
Created March 6, 2012 18:30
Show Gist options
  • Save vladan/1987996 to your computer and use it in GitHub Desktop.
Save vladan/1987996 to your computer and use it in GitHub Desktop.
JS пликација за пресметување на плати. Во контролерот се вршат пресметките, другото е само приказ. angular.min.js е ставен за да работи сѐ од 1ва.
/*
AngularJS v0.9.19
(c) 2010-2011 AngularJS http://angularjs.org
License: MIT
*/
'use strict';(function(v,K,B){function j(a,b,c){var d;if(a)if(y(a))for(d in a)d!="prototype"&&d!=kc&&d!=lc&&a.hasOwnProperty(d)&&b.call(c,a[d],d);else if(a.forEach&&a.forEach!==j)a.forEach(b,c);else if(M(a)&&ka(a.length))for(d=0;d<a.length;d++)b.call(c,a[d],d);else for(d in a)b.call(c,a[d],d);return a}function Oa(a,b,c){var d=[],e;for(e in a)d.push(e);d.sort();for(e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function Pa(a){a instanceof I&&(a.stack?a=a.message&&a.stack.indexOf(a.message)===-1?
"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function mc(){for(var a=T.length,b;a;){a--;b=T[a].charCodeAt(0);if(b==57)return T[a]="A",T.join("");if(b==90)T[a]="0";else return T[a]=String.fromCharCode(b+1),T.join("")}T.unshift("0");return T.join("")}function u(a){j(arguments,function(b){b!==a&&j(b,function(b,d){a[d]=b})});return a}function Qa(a,b){return u(new (u(function(){},{prototype:a})),b)}function w(){}function ea(a){return a}function xa(a){return function(){return a}}
function U(a,b,c){var d;return a[b]||(d=a[b]=function(a,b,g){a=(c||ea)(a);A(b)&&(d[a]=u(b,g||{}));return d[a]})}function t(a){return typeof a==la}function A(a){return typeof a!=la}function M(a){return a!=null&&typeof a==pb}function q(a){return typeof a==nc}function ka(a){return typeof a==oc}function V(a){return a instanceof Array}function y(a){return typeof a==$}function aa(a){return q(a)?a.replace(/^\s*/,"").replace(/\s*$/,""):a}function ba(a){var b={},a=a.split(","),c;for(c=0;c<a.length;c++)b[a[c]]=
!0;return b}function Ra(a,b){this.html=a;this.get=C(b)=="unsafe"?xa(a):function(){var b=[];qb(a,rb(b));return b.join("")}}function pc(a,b,c){var d=[];j(a,function(a,f,g){d.push(b.call(c,a,f,g))});return d}function sb(a,b){var c=0,d;if(V(a)||q(a))return a.length;else if(M(a))for(d in a)(!b||a.hasOwnProperty(d))&&c++;return c}function tb(a,b){for(var c=0;c<a.length;c++)if(b===a[c])return!0;return!1}function ya(a,b){for(var c=0;c<a.length;c++)if(b===a[c])return c;return-1}function qc(a){if(a)switch(a.nodeName){case "OPTION":case "PRE":case "TITLE":return!0}return!1}
function x(a,b){if(b)if(V(a)){for(;b.length;)b.pop();for(var c=0;c<a.length;c++)b.push(x(a[c]))}else for(c in j(b,function(a,c){delete b[c]}),a)b[c]=x(a[c]);else(b=a)&&(V(a)?b=x(a,[]):a instanceof Date?b=new Date(a.getTime()):M(a)&&(b=x(a,{})));return b}function pa(a,b){if(a==b)return!0;if(a===null||b===null)return!1;var c=typeof a,d;if(c==typeof b&&c=="object")if(a instanceof Array){if((c=a.length)==b.length){for(d=0;d<c;d++)if(!pa(a[d],b[d]))return!1;return!0}}else{c={};for(d in a){if(d.charAt(0)!==
"$"&&!y(a[d])&&!pa(a[d],b[d]))return!1;c[d]=!0}for(d in b)if(!c[d]&&d.charAt(0)!=="$"&&!y(b[d]))return!1;return!0}return!1}function rc(a){return(a=a&&a[0]&&a[0].nodeName)&&a.charAt(0)!="#"&&!tb(["TR","COL","COLGROUP","TBODY","THEAD","TFOOT"],a)}function fa(a,b,c){for(var d;!rc(a);)if(d=a.parent(),d.length)a=a.parent();else return;if(a[0].$NG_ERROR!==c)(a[0].$NG_ERROR=c)?(a.addClass(b),a.attr(b,c.message||c)):(a.removeClass(b),a.removeAttr(b))}function G(a,b){var c=arguments.length>2?ma.call(arguments,
2,arguments.length):[];return typeof b==$&&!(b instanceof RegExp)?c.length?function(){return arguments.length?b.apply(a,c.concat(ma.call(arguments,0,arguments.length))):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}:b}function na(a){a&&a.length!==0?(a=C(""+a),a=!(a=="f"||a=="0"||a=="false"||a=="no"||a=="n"||a=="[]")):a=!1;return a}function ub(a){return(new vb(Sa,wb,D,Q)).compile(a)}function Ta(a){var b={},c,d;j((a||"").split("&"),function(a){a&&(c=a.split("="),d=
unescape(c[0]),b[d]=A(c[1])?unescape(c[1]):!0)});return b}function xb(a){var b=[];j(a,function(a,d){b.push(escape(d)+(a===!0?"":"="+escape(a)))});return b.length?b.join("&"):""}function Ua(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(b?null:/%20/g,"+")}function sc(a,b){yb();for(var c=a.getElementsByTagName("script"),d,b=u({ie_compat_id:"ng-ie-compat"},b),e=0;e<c.length;e++)if(d=(c[e].src||"").match(tc))b.base_url=d[1],
b.ie_compat=d[1]+"angular-ie-compat"+(d[2]||"")+".js",u(b,Ta(d[6])),za(l(c[e]),function(a,c){/^ng:/.exec(c)&&(c=c.substring(3).replace(/-/g,"_"),b[c]=a||!0)});return b}function yb(){(Va=v.jQuery)?(l=Va,u(Va.fn,{scope:zb.scope})):l=Wa;r.element=l}function uc(a,b,c){if(!a)throw new I("Argument '"+(b||"?")+"' is "+(c||"required"));}function R(a,b){var c=[];Xa(c,a,b?"\n ":null,[]);return c.join("")}function ga(a,b){function c(a){if(q(a)&&a.length===Ab)return Ya.toDate(a);else(V(a)||M(a))&&j(a,function(b,
d){a[d]=c(b)});return a}if(!q(a))return a;var d;try{return b&&v.JSON&&v.JSON.parse?(d=JSON.parse(a),c(d)):ha(a,!0).primary()()}catch(e){throw vc("fromJson error: ",a,e),e;}}function Xa(a,b,c,d){if(M(b)){if(b===v){a.push("WINDOW");return}if(b===K){a.push("DOCUMENT");return}if(tb(d,b)){a.push("RECURSION");return}d.push(b)}if(b===null)a.push(Aa);else if(b instanceof RegExp)a.push(r.String.quoteUnicode(b.toString()));else if(y(b))return;else if(typeof b==wc)a.push(""+b);else if(ka(b))isNaN(b)?a.push(Aa):
a.push(""+b);else if(q(b))return a.push(r.String.quoteUnicode(b));else if(M(b))if(V(b)){a.push("[");for(var e=b.length,f=!1,g=0;g<e;g++){var h=b[g];f&&a.push(",");!(h instanceof RegExp)&&(y(h)||t(h))?a.push(Aa):Xa(a,h,c,d);f=!0}a.push("]")}else if(b instanceof Date)a.push(r.String.quoteUnicode(r.Date.toString(b)));else{a.push("{");c&&a.push(c);e=!1;f=c?c+" ":!1;g=[];for(h in b)b.hasOwnProperty(h)&&b[h]!==B&&g.push(h);g.sort();for(h=0;h<g.length;h++){var i=g[h],k=b[i];typeof k!=$&&(e&&(a.push(","),
c&&a.push(c)),a.push(r.String.quote(i)),a.push(":"),Xa(a,k,f,d),e=!0)}a.push("}")}M(b)&&d.pop()}function Za(a){this.paths=[];this.children=[];this.inits=[];this.priority=a;this.newScope=!1}function vb(a,b,c,d){this.markup=a;this.attrMarkup=b;this.directives=c;this.widgets=d}function Bb(a,b){var c,d=a[0].childNodes||[],e;for(c=0;c<d.length;c++){var f=e=d[c];qa(f)=="#text"||b(l(e),c)}}function za(a,b){var c,d=a[0].attributes||[],e,f,g={};for(c=0;c<d.length;c++)e=d[c],f=e.name,e=e.value,W&&f=="href"&&
(e=decodeURIComponent(a[0].getAttribute(f,2))),g[f]=e;Oa(g,b)}function ra(a,b,c){if(!b)return a;for(var d=b.split("."),e,f=a,g=d.length,h=0;h<g;h++){e=d[h];if(!e.match(/^[\$\w][\$\w\d]*$/))throw"Expression '"+b+"' is not a valid expression for accessing variables.";a&&(f=a,a=a[e]);if(t(a)&&e.charAt(0)=="$"){var i=r.Global.typeOf(f);if(e=(i=r[i.charAt(0).toUpperCase()+i.substring(1)])?i[[e.substring(1)]]:B)return a=G(f,e,f)}}return!c&&y(a)?G(f,a):a}function $a(a,b,c){for(var b=b.split("."),d=0;b.length>
1;d++){var e=b.shift(),f=a[e];f||(f={},a[e]=f);a=f}return a[b.shift()]=c}function Cb(a){var b=Db[a];if(b)return b;var c="var l, fn, t;\n";j(a.split("."),function(a){a=Eb[a]?'["'+a+'"]':"."+a;c+="if(!s) return s;\nl=s;\ns=s"+a+';\nif(typeof s=="function" && !(s instanceof RegExp)) s = function(){ return l'+a+".apply(l, arguments); };\n";a.charAt(1)=="$"&&(a=a.substr(2),c+='if(!s) {\n t = angular.Global.typeOf(l);\n fn = (angular[t.charAt(0).toUpperCase() + t.substring(1)]||{})["'+a+'"];\n if (fn) s = function(){ return fn.apply(l, [l].concat(Array.prototype.slice.call(arguments, 0, arguments.length))); };\n}\n')});
c+="return s;";b=Function("s",c);b.toString=function(){return c};return Db[a]=b}function N(a){if(typeof a===$)return a;var b=Fb[a];if(!b)var c=ha(a).statements(),b=Fb[a]=u(function(){return c(this)},{fnSelf:c});return b}function X(a,b,c){function d(){}var a=d.prototype=a||{},e=new d,f={sorted:[]},g,h;u(e,{"this":e,$id:xc++,$parent:a,$bind:G(e,G,e),$get:G(e,ra,e),$set:G(e,$a,e),$eval:function(a){var b=typeof a,c,d,g;if(b==la){a=0;for(b=f.sorted.length;a<b;a++){g=f.sorted[a];d=g.length;for(c=0;c<d;c++)e.$tryEval(g[c].fn,
g[c].handler)}}else if(b===$)return a.call(e);else if(b==="string")return N(a).call(e)},$tryEval:function(a,b){var c=typeof a;try{if(c==$)return a.call(e);else if(c=="string")return N(a).call(e)}catch(d){g&&g.error(d),y(b)?b(d):b?fa(b,Ba,A(d)?Pa(d):d):y(h)&&h(d)}},$watch:function(a,b,c,d){function g(a){var d=f.call(e),i=h;if(a||i!==d)h=d,e.$tryEval(function(){return b.call(e,d,i)},c)}var f=N(a),h=f.call(e),b=N(b);e.$onEval(Gb,g);t(d)&&(d=!0);d&&g(!0)},$onEval:function(a,b,c){ka(a)||(c=b,b=a,a=0);
var d=f[a];if(!d)d=f[a]=[],d.priority=a,f.sorted.push(d),f.sorted.sort(function(a,b){return a.priority-b.priority});d.push({fn:N(b),handler:c})},$become:function(a){if(y(a))e.constructor=a,j(a.prototype,function(a,b){e[b]=G(e,a)}),e.$service.invoke(e,a,ma.call(arguments,1,arguments.length)),y(a.prototype.init)&&e.init()},$new:function(a){var b=X(e);b.$become.apply(e,[a].concat(ma.call(arguments,1,arguments.length)));e.$onEval(b.$eval);return b}});if(!a.$root)e.$root=e,e.$parent=e,(e.$service=Hb(e,
b,c)).eager();g=e.$service("$log");h=e.$service("$exceptionHandler");return e}function Hb(a,b,c){function d(d){if(!(d in c)){var g=b[d];if(!g)throw I("Unknown provider for '"+d+"'.");c[d]=e(a,g)}return c[d]}function e(a,b,c){for(var c=c||[],e=yc(b),k=e.length;k--;)c.unshift(d(e[k]));return b.apply(a,c)}b=b||ab;c=c||{};a=a||{};d.invoke=e;d.eager=function(){j(b,function(a,b){a.$eager&&d(b);if(a.$creation)throw new I("Failed to register service '"+b+"': $creation property is unsupported. Use $eager:true or see release notes.");
})};return d}function Ca(a,b){if(a instanceof Array)return b.$inject=a,b;else{for(var c=0,d=arguments.length-1,e=arguments[d].$inject=[];c<d;c++)e.push(arguments[c]);return arguments[d]}}function E(a,b,c,d){ab(a,b,{$inject:c,$eager:d})}function yc(a){uc(y(a,void 0,"not a function"));if(!a.$inject){var b=a.$inject=[],c=a.toString().replace(zc,"").match(Ac);j(c[1].split(Bc),function(a){a.replace(Cc,function(a,c){b.push(c)})})}return a.$inject}function Dc(a,b){function c(a){return a.indexOf(p)!=-1}function d(){return o+
1<a.length?a.charAt(o+1):!1}function e(a){return"0"<=a&&a<="9"}function f(a){return"a"<=a&&a<="z"||"A"<=a&&a<="Z"||"_"==a||a=="$"}function g(a){return a=="-"||a=="+"||e(a)}function h(b,c,d){d=d||o;throw I("Lexer Error: "+b+" at column"+(A(c)?"s "+c+"-"+o+" ["+a.substring(c,d)+"]":" "+d)+" in expression ["+a+"].");}function i(){for(var b="",c=o;o<a.length;){var f=C(a.charAt(o));if(f=="."||e(f))b+=f;else{var i=d();if(f=="e"&&g(i))b+=f;else if(g(f)&&i&&e(i)&&b.charAt(b.length-1)=="e")b+=f;else if(g(f)&&
(!i||!e(i))&&b.charAt(b.length-1)=="e")h("Invalid exponent");else break}o++}b*=1;s.push({index:c,text:b,json:!0,fn:function(){return b}})}function k(){for(var b="",c=o,d;o<a.length;){d=a.charAt(o);if(d=="."||f(d)||e(d))b+=d;else break;o++}d=bb[b];s.push({index:c,text:b,json:d,fn:d||u(Cb(b),{assign:function(a,c){return $a(a,b,c)}})})}function n(b){var c=o;o++;for(var d="",e=b,g=!1;o<a.length;){var f=a.charAt(o);e+=f;if(g)f=="u"?(f=a.substring(o+1,o+5),f.match(/[\da-f]{4}/i)||h("Invalid unicode escape [\\u"+
f+"]"),o+=4,d+=String.fromCharCode(parseInt(f,16))):(g=Ec[f],d+=g?g:f),g=!1;else if(f=="\\")g=!0;else if(f==b){o++;s.push({index:c,text:e,string:d,json:!0,fn:function(){return d.length==m?r.String.toDate(d):d}});return}else d+=f;o++}h("Unterminated quote",c)}for(var m=b?Ab:-1,s=[],z,o=0,j=[],p,O=":";o<a.length;){p=a.charAt(o);if(c("\"'"))n(p);else if(e(p)||c(".")&&e(d()))i();else if(f(p)){if(k(),"{,".indexOf(O)!=-1&&j[0]=="{"&&(z=s[s.length-1]))z.json=z.text.indexOf(".")==-1}else if(c("(){}[].,;:"))s.push({index:o,
text:p,json:":[,".indexOf(O)!=-1&&c("{[")||c("}]:,")}),c("{[")&&j.unshift(p),c("}]")&&j.shift(),o++;else if(p==" "||p=="\r"||p=="\t"||p=="\n"||p=="\u000b"||p=="\u00a0"){o++;continue}else{var L=p+d(),l=bb[p],da=bb[L];da?(s.push({index:o,text:L,fn:da}),o+=2):l?(s.push({index:o,text:p,fn:l,json:"[,:".indexOf(O)!=-1&&c("+-")}),o+=1):h("Unexpected next character ",o,o+1)}O=p}return s}function ha(a,b){function c(a){return function(){var b=a();P.length!==0&&d("is an unexpected token",P[0]);return b}}function d(b,
c){throw I("Syntax Error: Token '"+c.text+"' "+b+" at column "+(c.index+1)+" of the expression ["+a+"] starting at ["+a.substring(c.index)+"].");}function e(){if(P.length===0)throw I("Unexpected end of expression: "+a);return P[0]}function f(a,b,c,d){if(P.length>0){var e=P[0],g=e.text;if(g==a||g==b||g==c||g==d||!a&&!b&&!c&&!d)return e}return!1}function g(a,c,e,g){return(a=f(a,c,e,g))?(b&&!a.json&&d("is not valid json",a),P.shift(),a):!1}function h(a){g(a)||d("is unexpected, expecting ["+a+"]",f())}
function i(a,b){return function(c){return a(c,b(c))}}function k(a,b,c){return function(d){return b(d,a(d),c(d))}}function n(){return q(Y)}function m(){for(var a=s(),b;;)if(b=g("||"))a=k(a,b.fn,s());else return a}function s(){var a=z(),b;if(b=g("&&"))a=k(a,b.fn,s());return a}function z(){var a=o(),b;if(b=g("==","!="))a=k(a,b.fn,z());return a}function o(){var a;a=j();for(var b;b=g("+","-");)a=k(a,b.fn,j());if(b=g("<",">","<=",">="))a=k(a,b.fn,o());return a}function j(){for(var a=p(),b;b=g("*","/","%");)a=
k(a,b.fn,p());return a}function p(){var a;return g("+")?O():(a=g("-"))?k(da,a.fn,p()):(a=g("!"))?i(a.fn,p()):O()}function O(){var a;if(g("("))a=cb(),h(")");else if(g("["))a=L();else if(g("{"))a=l();else{var b=g();(a=b.fn)||d("not a primary expression",b)}for(;b=g("(","[",".");)b.text==="("?a=Jb(a):b.text==="["?a=y(a):b.text==="."?a=Da(a):d("IMPOSSIBLE");return a}function L(){var a=[];if(e().text!="]"){do a.push(ca());while(g(","))}h("]");return function(b){for(var c=[],d=0;d<a.length;d++)c.push(a[d](b));
return c}}function l(){var a=[];if(e().text!="}"){do{var b=g(),b=b.string||b.text;h(":");var c=ca();a.push({key:b,value:c})}while(g(","))}h("}");return function(b){for(var c={},d=0;d<a.length;d++){var e=a[d],g=e.value(b);c[e.key]=g}return c}}var da=xa(0),P=Dc(a,b),ca=function(){var b=m(),c,e;return(e=g("="))?(b.assign||d("implies assignment but ["+a.substring(0,e.index)+"] can not be assigned to",e),c=m(),function(a){return b.assign(a,c(a))}):b},Ib=m,Jb=function(a){var b=[];if(e().text!=")"){do b.push(ca());
while(g(","))}h(")");return function(c){for(var d=[],e=0;e<b.length;e++)d.push(b[e](c));e=a(c)||w;return e.apply?e.apply(c,d):e(d[0],d[1],d[2],d[3],d[4])}},Da=function(a){var b=g().text,c=Cb(b);return u(function(b){return c(a(b))},{assign:function(c,d){return $a(a(c),b,d)}})},y=function(a){var b=ca();h("]");return u(function(c){var d=a(c),c=b(c);return d?d[c]:B},{assign:function(c,d){return a(c)[b(c)]=d}})},cb=function(){for(var a=ca(),b;;)if(b=g("|"))a=k(a,b.fn,n());else return a},r=function(a){for(var b=
g(),c=b.text.split("."),e,f=0;f<c.length;f++)e=c[f],a&&(a=a[e]);typeof a!=$&&d("should be a function",b);return a},q=function(a){for(var b=r(a),c=[];;)if(g(":"))c.push(ca());else{var d=function(a,d){for(var e=[d],g=0;g<c.length;g++)e.push(c[g](a));return b.apply(a,e)};return function(){return d}}};b&&(ca=m,Jb=Da=y=Ib=cb=r=q=function(){d("is not valid json",{text:a,index:0})});return{assignable:c(Ib),primary:c(O),statements:c(function(){for(var a=[];;)if(P.length>0&&!f("}",")",";","]")&&a.push(cb()),
!g(";"))return a.length==1?a[0]:function(b){for(var c,d=0;d<a.length;d++){var e=a[d];e&&(c=e(b))}return c}}),validator:c(function(){return q(db)}),formatter:c(function(){function a(b){return function(a,c){for(var d=[c],g=0;g<e.length;g++)d.push(e[g](a));return b.apply(a,d)}}var b=g(),c=ia[b.text],e=[];for(c||d("is not a valid formatter.",b);;)if(b=g(":"))e.push(ca());else return xa({format:a(c.format),parse:a(c.parse)})}),filter:c(n)}}function Kb(a,b){this.template=a+="#";this.defaults=b||{};var c=
this.urlParams={};j(a.split(/\W/),function(b){b&&a.match(RegExp(":"+b+"\\W"))&&(c[b]=!0)})}function Ea(a){this.xhr=a}function Fc(a,b,c,d,e){function f(a){try{a.apply(null,ma.call(arguments,1))}finally{if(F--,F===0)for(;p.length;)try{p.pop()()}catch(b){e.error(b)}}}function g(a,b){(function Da(){j(O,function(a){a()});L=b(Da,a)})()}var h=this,i=b[0],k=a.location,n=a.setTimeout,m=a.clearTimeout,s={},z;h.isMock=!1;var o=0,F=0,p=[];h.xhr=function(b,e,g,i,n){var k;F++;if(C(b)=="json"){var m=("angular_"+
Math.random()+"_"+o++).replace(/\d\./,"");a[m]=function(b){a[m].data=b};var s=h.addJs(e.replace("JSON_CALLBACK",m),null,function(){a[m].data?f(i,200,a[m].data):f(i);delete a[m];c[0].removeChild(s)})}else{var z=new d;z.open(b,e,!0);j(n,function(a,b){a&&z.setRequestHeader(b,a)});z.onreadystatechange=function(){z.readyState==4&&f(i,z.status==1223?204:z.status||200,z.responseText,function(a){return(a=C(a))?k?k[a]||null:z.getResponseHeader(a):(k={},j(z.getAllResponseHeaders().split("\n"),function(a){var b=
a.indexOf(":"),c=C(aa(a.substr(0,b))),a=aa(a.substr(b+1));k[c]?k[c]+=", "+a:k[c]=a}),k)})};z.send(g||"")}};h.notifyWhenNoOutstandingRequests=function(a){j(O,function(a){a()});F===0?a():p.push(a)};var O=[],L;h.addPollFn=function(a){t(L)&&g(100,n);O.push(a);return a};h.setUrl=function(a){var b=z;b.match(/#/)||(b+="#");a.match(/#/)||(a+="#");if(b!=a)k.href=a};h.getUrl=function(){return z=k.href};h.onHashChange=function(b){var c=a.document.documentMode;if("onhashchange"in a&&(t(c)||c>=8))l(a).bind("hashchange",
b);else{var d=h.getUrl();h.addPollFn(function(){d!=h.getUrl()&&(b(),d=h.getUrl())})}return b};var u={},da="";h.cookies=function(a,b){var c,d,g,f;if(a)if(b===B)i.cookie=escape(a)+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT";else{if(q(b))i.cookie=escape(a)+"="+escape(b),c=a.length+b.length+1,c>4096&&e.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+c+" > 4096 bytes)!"),u.length>20&&e.warn("Cookie '"+a+"' possibly not set or overflowed because too many cookies were already set ("+
u.length+" > 20 )")}else{if(i.cookie!==da){da=i.cookie;c=da.split("; ");u={};for(g=0;g<c.length;g++)d=c[g],f=d.indexOf("="),f>0&&(u[unescape(d.substring(0,f))]=unescape(d.substring(f+1)))}return u}};h.defer=function(a,b){var c;F++;c=n(function(){delete s[c];f(a)},b||0);s[c]=!0;return c};h.defer.cancel=function(a){if(s[a])return delete s[a],m(a),f(w),!0};var P=w;h.hover=function(a){P=a};h.bind=function(){b.bind("mouseover",function(a){P(l(W?a.srcElement:a.target),!0);return!0});b.bind("mouseleave mouseout click dblclick keypress keyup",
function(a){P(l(a.target),!1);return!0})};h.addCss=function(a){var b=l(i.createElement("link"));b.attr("rel","stylesheet");b.attr("type","text/css");b.attr("href",a);c.append(b)};h.addJs=function(a,b,d){var e=i.createElement("script");e.type="text/javascript";e.src=a;if(b)e.id=b;if(W)e.onreadystatechange=function(){/loaded|complete/.test(e.readyState)&&d&&d()};else if(d)e.onload=e.onerror=d;c[0].appendChild(e);return e}}function qb(a,b){function c(a,c,e,f){c=C(c);if(Lb[c])for(;g.last()&&Mb[g.last()];)d("",
g.last());Nb[c]&&g.last()==c&&d("",c);(f=Ob[c]||!!f)||g.push(c);var h={};e.replace(Gc,function(a,b,c,d,e){h[b]=eb(c||d||e||"")});b.start&&b.start(c,h,f)}function d(a,c){var d=0,e;if(c=C(c))for(d=g.length-1;d>=0;d--)if(g[d]==c)break;if(d>=0){for(e=g.length-1;e>=d;e--)b.end&&b.end(g[e]);g.length=d}}var e,f,g=[],h=a;for(g.last=function(){return g[g.length-1]};a;){f=!0;if(!g.last()||!Pb[g.last()]){if(a.indexOf("<\!--")===0)e=a.indexOf("--\>"),e>=0&&(b.comment&&b.comment(a.substring(4,e)),a=a.substring(e+
3),f=!1);else if(Hc.test(a)){if(e=a.match(Qb))a=a.substring(e[0].length),e[0].replace(Qb,d),f=!1}else if(Ic.test(a)&&(e=a.match(Rb)))a=a.substring(e[0].length),e[0].replace(Rb,c),f=!1;f&&(e=a.indexOf("<"),f=e<0?a:a.substring(0,e),a=e<0?"":a.substring(e),b.chars&&b.chars(eb(f)))}else a=a.replace(RegExp("(.*)<\\s*\\/\\s*"+g.last()+"[^>]*>","i"),function(a,c){c=c.replace(Jc,"$1").replace(Kc,"$1");b.chars&&b.chars(eb(c));return""}),d("",g.last());if(a==h)throw"Parse Error: "+a;h=a}d()}function eb(a){fb.innerHTML=
a.replace(/</g,"&lt;");return fb.innerText||fb.textContent||""}function Sb(a){return a.replace(/&/g,"&amp;").replace(Lc,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rb(a){var b=!1,c=G(a,a.push);return{start:function(a,e,f){a=C(a);!b&&Pb[a]&&(b=a);!b&&Tb[a]==!0&&(c("<"),c(a),j(e,function(a,b){var d=C(b);if(Mc[d]==!0&&(Ub[d]!==!0||a.match(Nc)))c(" "),c(b),c('="'),c(Sb(a)),c('"')}),c(f?"/>":">"))},end:function(a){a=C(a);!b&&Tb[a]==!0&&(c("</"),c(a),
c(">"));a==b&&(b=!1)},chars:function(a){b||c(Sb(a))}}}function Oc(a){var b={},a=a[0].style,c,d;if(typeof a.length=="number")for(c=0;c<a.length;c++)d=a[c],b[d]=a[d];else for(d in a)c=a[d],1*d!=d&&d!="cssText"&&c&&typeof c=="string"&&c!="false"&&(b[d]=c);return b}function Wa(a){if(q(a)&&a.charAt(0)!="<")throw new I("selectors not implemented");return new Z(a)}function Z(a){if(a instanceof Z)return a;else if(q(a)){var b=K.createElement("div");b.innerHTML="<div>&nbsp;</div>"+a;b.removeChild(b.firstChild);
gb(this,b.childNodes);this.remove()}else gb(this,a)}function sa(a){Vb(a);for(var b=0,a=a.childNodes||[];b<a.length;b++)sa(a[b])}function Vb(a){var b=a[Fa],c=Ga[b];c&&(j(c.bind||{},function(b,c){Pc(a,c,b)}),delete Ga[b],a[Fa]=B)}function hb(a,b,c){var d=a[Fa],d=Ga[d||-1];if(A(c))d||(a[Fa]=d=Qc++,d=Ga[d]={}),d[b]=c;else return d?d[b]:null}function ib(a,b){var c;return(" "+a.className+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")>-1}function Wb(a,b){a.className=aa((" "+a.className+" ").replace(/[\n\t]/g,
" ").replace(" "+b+" ",""))}function Xb(a,b){if(!ib(a,b))a.className=aa(a.className+" "+b)}function gb(a,b){if(b)for(var b=!b.nodeName&&A(b.length)&&(!b||!b.document||!b.location||!b.alert||!b.setInterval)?b:[b],c=0;c<b.length;c++)a.push(b[c])}function jb(a){var b=typeof a,c=a;if(b=="object")if(typeof(c=a.$hashKey)=="function")c=a.$hashKey();else if(c===B)c=a.$hashKey=mc();return b+":"+c}function Yb(){}function ja(a,b){r[a]=r[a]||{};j(b,function(b){u(r[a],b)})}function Zb(a,b,c){var d=a<0,c=ta.PATTERNS[c||
0],a=Math.abs(a),e=a+"",f="",g=[];if(e.indexOf("e")!==-1)f=e;else{e=(e.split($b)[1]||"").length;t(b)&&(b=Math.min(Math.max(c[1],e),c[2]));var e=Math.pow(10,b),a=Math.round(a*e)/e,a=(""+a).split($b),e=a[0],a=a[1]||"",h=0,i=c[8],k=c[7];if(e.length>=i+k)for(var h=e.length-i,n=0;n<h;n++)(h-n)%k===0&&n!==0&&(f+=ta.GROUP_SEP),f+=e.charAt(n);for(n=h;n<e.length;n++)(e.length-n)%i===0&&n!==0&&(f+=ta.GROUP_SEP),f+=e.charAt(n);for(;a.length<b;)a+="0";b&&(f+=ta.DECIMAL_SEP+a.substr(0,b))}g.push(d?c[5]:c[3]);
g.push(f);g.push(d?c[6]:c[4]);return g.join("")}function S(a,b,c){var d="";a<0&&(d="-",a=-a);for(a=""+a;a.length<b;)a="0"+a;c&&(a=a.substr(a.length-b));return d+a}function H(a,b,c,d){return function(e){e=e["get"+a]();if(c>0||e>-c)e+=c;e===0&&c==-12&&(e=12);return S(e,b,d)}}function Ha(a,b){return function(c){c=c["get"+a]();c=a=="Month"?Rc[c]:Sc[c];return b?c.substr(0,3):c}}function ac(a){return function(b){var c;return a||!(c=Tc.exec(b.toString()))?(b=b.getTimezoneOffset(),S(b/60,2)+S(Math.abs(b%
60),2)):c[0]}}function oa(a,b){return{format:a,parse:b||a}}function bc(a){return A(a)&&a!==null?""+a:a}function kb(a){function b(){d=!1;c.$eval()}var c=this,d;return a.isMock?b:function(){d||(d=!0,a.defer(b,kb.delay))}}function cc(a){var b=dc[a];if(!b){var c=[];j(Ia(a),function(a){var b=Ja(a);c.push(b?function(a){var c,d=this.$tryEval(b,function(a){c=R(a)});fa(a,Ba,c);return c?c:d}:function(){return a})});dc[a]=b=function(a,b){var f=[],g=this.hasOwnProperty(ec)?this.$element:B;this.$element=a;for(var h=
0;h<c.length;h++){var i=c[h].call(this,a);i&&(i.nodeName||i.bind&&i.find)?i="":M(i)&&(i=R(i,b));f.push(i)}this.$element=g;return f.join("")}}return b}function lb(a){return function(b,c){var d=c[0].className+" ";return function(c){this.$onEval(function(){if(a(this.$index)){var f=this.$eval(c.attr("ng:class")||"");V(f)&&(f=f.join(" "));var g=this.$eval(b);V(g)&&(g=g.join(" "));f&&f!==g&&(g=g+" "+f);c[0].className=aa(d+g)}},c)}}}function Ia(a){for(var b=[],c=0,d;(d=a.indexOf("{{",c))>-1;)c<d&&b.push(a.substr(c,
d-c)),c=d,d=a.indexOf("}}",d),d=d<0?a.length:d+2,b.push(a.substr(c,d-c)),c=d;c!=a.length&&b.push(a.substr(c,a.length-c));return b.length===0?[a]:b}function Ja(a){return(a=a.replace(/\n/gm," ").match(/^\{\{(.*)\}\}$/))?a[1]:null}function ua(a,b){var c=b.attr("name"),d,e;if(c){d=ha(c).assignable();e=d.assign;if(!e)throw new I("Expression '"+c+"' is not assignable.");return{get:function(){return d(a)},set:function(c){if(c!==B)return a.$tryEval(function(){e(a,c)},b)}}}}function fc(a,b){var c=ua(a,b),
d=b.attr("ng:format")||Ka,e=ha(d).formatter()();if(c)return{get:function(){return e.format(a,c.get())},set:function(b){return c.set(e.parse(a,b))}}}function gc(a,b){function c(){var c=aa(b.val());if(b[0].disabled||b[0].readOnly)fa(b,va,null),m.markValid(b);else{var d=Qa(a,{$element:b}),c=n&&!c?"Required":c?e(d,c):null;fa(b,va,c);(k=c)?m.markInvalid(b):m.markValid(b)}}var d=b.attr("ng:validate")||Ka,e=ha(d).validator()(),f=b.attr("ng:required"),g=b.attr("ng:format")||Ka,g=ha(g).formatter()(),h,i,k,
n,m=a.$service("$invalidWidgets")||{markValid:w,markInvalid:w};if(!e)throw"Validator named '"+d+"' not found.";h=g.format;i=g.parse;f?a.$watch(f,function(a){n=a;c()}):n=f==="";b.data(mb,c);return{get:function(){k&&fa(b,va,null);try{var d=i(a,b.val());c();return d}catch(e){k=e,fa(b,va,e)}},set:function(d){var e=b.val(),d=h(a,d);e!=d&&b.val(d||"");c()}}}function La(a){return function(b,c){var d=c.get();!d&&A(a)&&(d=x(a));t(b.get())&&A(d)&&b.set(d)}}function wa(a,b,c,d,e){return Ca("$updateView","$defer",
function(f,g,h){var i=this,k=b(i,h),n=c(i,h),m=h.attr("ng:change")||"",s;k&&(d.call(i,k,n,h),this.$eval(h.attr("ng:init")||""),h.bind(a,function(a){function b(){var a=n.get();if(!e||a!=s)k.set(a),s=k.get(),i.$tryEval(m,h),f()}a.type=="keydown"?g(b):b()}),i.$watch(k.get,function(a){s!==a&&n.set(s=a)}))})}function nb(a){this.directives(!0);this.descend(!0);return Uc[C(a[0].type)]||w}if(typeof K.getAttribute==la)K.getAttribute=function(){};var C=function(a){return q(a)?a.toLowerCase():a},ob=function(a){return q(a)?
a.toUpperCase():a},ec="$element",mb="$validate",wc="boolean",$="function",kc="length",lc="name",Aa="null",oc="number",pb="object",nc="string",la="undefined",Ba="ng-exception",va="ng-validation-error",Ka="noop",Gb=-1E3,Vc={FIRST:-99999,LAST:99999,WATCH:Gb},I=v.Error,W=parseInt((/msie (\d+)/.exec(C(navigator.userAgent))||[])[1],10),l,Va,ma=[].slice,J=[].push,vc=v.console?G(v.console,v.console.error||w):w,r=v.angular||(v.angular={}),Sa=U(r,"markup"),wb=U(r,"attrMarkup"),D=U(r,"directive"),Q=U(r,"widget",
C),db=U(r,"validator"),Y=U(r,"filter"),ia=U(r,"formatter"),ab=U(r,"service");U(r,"callbacks");var qa,tc=/^(|.*\/)angular(-.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/,T=["0","0","0"],Ab=24;qa=W<9?function(a){a=a.nodeName?a:a[0];return a.scopeName&&a.scopeName!="HTML"?ob(a.scopeName+":"+a.nodeName):a.nodeName}:function(a){return a.nodeName?a.nodeName:a[0].nodeName};r.toJson=R;r.fromJson=ga;Za.prototype={attach:function(a,b){var c={};this.collectInits(a,c,b);Oa(c,function(a){j(a,function(a){a()})})},collectInits:function(a,
b,c){var d=b[this.priority],e=c;d||(b[this.priority]=d=[]);this.newScope&&(e=X(c),c.$onEval(e.$eval),a.data("$scope",e));j(this.inits,function(b){d.push(function(){e.$tryEval(function(){return e.$service.invoke(e,b,[a])},a)})});for(var f=a[0].childNodes,g=this.children,h=this.paths,i=h.length,c=0;c<i;c++)g[c].collectInits(l(f[h[c]]),b,e)},addInit:function(a){if(a){if(!a.$inject)a.$inject=[];this.inits.push(a)}},addChild:function(a,b){b&&(this.paths.push(a),this.children.push(b))},empty:function(){return this.inits.length===
0&&this.paths.length===0}};vb.prototype={compile:function(a){var a=l(a),b=0,c,d=a.parent();if(a.length>1)throw I("Cannot compile multiple element roots: "+l("<div>").append(a.clone()).html());if(d&&d[0])for(var d=d[0],e=0;e<d.childNodes.length;e++)d.childNodes[e]==a[0]&&(b=e);c=this.templatize(a,b,0)||new Za;return function(b,d){var e=d?zb.clone.call(a):a,b=b||X();e.data("$scope",b);b.$element=e;(d||w)(e,b);c.attach(e,b);b.$eval();return b}},templatize:function(a,b,c){var d=this,e,f,g=d.directives,
h=!0,i=!0,k=qa(a),n=k.indexOf(":")>0?C(k).replace(":","-"):"",m,s={compile:G(d,d.compile),descend:function(a){A(a)&&(h=a);return h},directives:function(a){A(a)&&(i=a);return i},scope:function(a){if(A(a))m.newScope=m.newScope||a;return m.newScope}};try{c=a.attr("ng:eval-order")||c||0}catch(z){c=c||0}a.addClass(n);q(c)&&(c=Vc[ob(c)]||parseInt(c,10));m=new Za(c);za(a,function(b,c){if(!e&&(e=d.widgets("@"+c)))a.addClass("ng-attr-widget"),e=G(s,e,b,a)});if(!e&&(e=d.widgets(k)))n&&a.addClass("ng-widget"),
e=G(s,e,a);e&&(i=h=!1,k=a.parent(),m.addInit(e.call(s,a)),k&&k[0]&&(a=l(k[0].childNodes[b])));if(h)for(var o=0,F=a[0].childNodes;o<F.length;o++)qa(F[o])=="#text"&&j(d.markup,function(b){if(o<F.length){var c=l(F[o]);b.call(s,c.text(),c,a)}});i&&(za(a,function(b,c){j(d.attrMarkup,function(d){d.call(s,b,c,a)})}),za(a,function(b,c){if(f=g[c])a.addClass("ng-directive"),m.addInit(g[c].call(s,b,a))}));h&&Bb(a,function(a,b){m.addChild(b,d.templatize(a,b,c))});return m.empty()?null:m}};var xc=0,Db={},Fb={},
Eb={};j("abstract,boolean,break,byte,case,catch,char,class,const,continue,debugger,default,delete,do,double,else,enum,export,extends,false,final,finally,float,for,function,goto,if,implements,import,ininstanceof,intinterface,long,native,new,null,package,private,protected,public,return,short,static,super,switch,synchronized,this,throw,throws,transient,true,try,typeof,var,volatile,void,undefined,while,with".split(/,/),function(a){Eb[a]=!0});var Ac=/^function\s*[^\(]*\(([^\)]*)\)/m,Bc=/,/,Cc=/^\s*(.+?)\s*$/,
zc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,bb={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},$undefined:w,"+":function(a,b,c){return(A(b)?b:0)+(A(c)?c:0)},"-":function(a,b,c){return(A(b)?b:0)-(A(c)?c:0)},"*":function(a,b,c){return b*c},"/":function(a,b,c){return b/c},"%":function(a,b,c){return b%c},"^":function(a,b,c){return b^c},"=":w,"==":function(a,b,c){return b==c},"!=":function(a,b,c){return b!=c},"<":function(a,b,c){return b<c},">":function(a,b,c){return b>
c},"<=":function(a,b,c){return b<=c},">=":function(a,b,c){return b>=c},"&&":function(a,b,c){return b&&c},"||":function(a,b,c){return b||c},"&":function(a,b,c){return b&c},"|":function(a,b,c){return c(a,b)},"!":function(a,b){return!b}},Ec={n:"\n",f:"\u000c",r:"\r",t:"\t",v:"\u000b","'":"'",'"':'"'};Kb.prototype={url:function(a){var b=this,c=this.template,d,a=a||{};j(this.urlParams,function(e,g){d=Ua(a[g]||b.defaults[g]||"",!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+");c=c.replace(RegExp(":"+
g+"(\\W)"),d+"$1")});var c=c.replace(/\/?#$/,""),e=[];Oa(a,function(a,c){b.urlParams[c]||e.push(Ua(c)+"="+Ua(a))});c=c.replace(/\/*$/,"");return c+(e.length?"?"+e.join("&"):"")}};Ea.DEFAULT_ACTIONS={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}};Ea.prototype={route:function(a,b,c){function d(a){var c={};j(b||{},function(b,d){c[d]=b.charAt&&b.charAt(0)=="@"?ra(a,b.substr(1)):b});return c}function e(a){x(a||{},this)}var f=
this,g=new Kb(a),c=u({},Ea.DEFAULT_ACTIONS,c);j(c,function(h,i){var k=h.method=="POST"||h.method=="PUT";e[i]=function(a,b,c,i){var o={},F,p=w,l=null;switch(arguments.length){case 4:l=i,p=c;case 3:case 2:if(y(b)){if(y(a)){p=a;l=b;break}p=b;l=c}else{o=a;F=b;p=c;break}case 1:y(a)?p=a:k?F=a:o=a;break;case 0:break;default:throw"Expected between 0-4 arguments [params, data, success, error], got "+arguments.length+" arguments.";}var L=this instanceof e?this:h.isArray?[]:new e(F);f.xhr(h.method,g.url(u({},
h.params||{},d(F),o)),F,function(a,b,c){if(b)h.isArray?(L.length=0,j(b,function(a){L.push(new e(a))})):x(b,L);(p||w)(L,c)},l||h.verifyCache,h.verifyCache);return L};e.bind=function(d){return f.route(a,u({},b,d),c)};e.prototype["$"+i]=function(a,b,c){var g=d(this),f=w,h;switch(arguments.length){case 3:g=a;f=b;h=c;break;case 2:case 1:y(a)?(f=a,h=b):(g=a,f=b||w);case 0:break;default:throw"Expected between 1-3 arguments [params, success, error], got "+arguments.length+" arguments.";}e[i].call(this,g,
k?this:B,f,h)}});return e}};var Wc=v.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(b){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(c){}throw new I("This browser does not support XMLHttpRequest.");},Rb=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Qb=/^<\s*\/\s*([\w:-]+)[^>]*>/,Gc=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,
Ic=/^</,Hc=/^<\s*\//,Jc=/<\!--(.*?)--\>/g,Kc=/<!\[CDATA\[(.*?)]]\>/g,Nc=/^((ftp|https?):\/\/|mailto:|#)/,Lc=/([^\#-~| |!])/g,Ob=ba("area,br,col,hr,img"),Lb=ba("address,blockquote,center,dd,del,dir,div,dl,dt,hr,ins,li,map,menu,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"),Mb=ba("a,abbr,acronym,b,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var"),Nb=ba("colgroup,dd,dt,li,p,td,tfoot,th,thead,tr"),Pb=ba("script,style"),Tb=u({},Ob,
Lb,Mb,Nb),Ub=ba("background,href,longdesc,src,usemap"),Mc=u({},Ub,ba("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,span,start,summary,target,title,type,valign,value,vspace,width")),fb=K.createElement("pre"),Ga={},Fa="ng-"+(new Date).getTime(),Qc=1,Xc=v.document.addEventListener?function(a,b,c){a.addEventListener(b,c,
!1)}:function(a,b,c){a.attachEvent("on"+b,c)},Pc=v.document.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},zb=Z.prototype={ready:function(a){function b(){c||(c=!0,a())}var c=!1;this.bind("DOMContentLoaded",b);Wa(v).bind("load",b)},toString:function(){var a=[];j(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return a>=0?l(this[a]):l(this[this.length+a])},length:0,push:J,sort:[].sort,splice:[].splice},Yc=ba("multiple,selected,checked,disabled,readonly");
j({data:hb,scope:function(a){for(var b;a&&!(b=l(a).data("$scope"));)a=a.parentNode;return b},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:ib,css:function(a,b,c){if(A(c))a.style[b]=c;else return a.style[b]},attr:function(a,b,c){if(Yc[b])if(A(c))a[b]=!!c;else return a[b];else if(A(c))a.setAttribute(b,c);else if(a.getAttribute)return a=a.getAttribute(b,2),a===null?B:a},text:u(W<9?function(a,b){if(a.nodeType==3){if(t(b))return a.nodeValue;a.nodeValue=b}else{if(t(b))return a.innerText;a.innerText=
b}}:function(a,b){if(t(b))return a.textContent;a.textContent=b},{$dv:""}),val:function(a,b){if(t(b))return a.value;a.value=b},html:function(a,b){if(t(b))return a.innerHTML;for(var c=0,d=a.childNodes;c<d.length;c++)sa(d[c]);a.innerHTML=b}},function(a,b){Z.prototype[b]=function(b,d){var e,f;if((a.length==2?b:d)===B)if(M(b)){for(e=0;e<this.length;e++)for(f in b)a(this[e],f,b[f]);return this}else{if(this.length)return a(this[0],b,d)}else{for(e=0;e<this.length;e++)a(this[e],b,d);return this}return a.$dv}});
j({removeData:Vb,dealoc:sa,bind:function(a,b,c){var d=hb(a,"bind");d||hb(a,"bind",d={});j(b.split(" "),function(b){var f=d[b];if(!f)d[b]=f=function(b){if(!b.preventDefault)b.preventDefault=function(){b.returnValue=!1};if(!b.stopPropagation)b.stopPropagation=function(){b.cancelBubble=!0};if(!b.target)b.target=b.srcElement||K;j(f.fns,function(c){c.call(a,b)})},f.fns=[],Xc(a,b,f);f.fns.push(c)})},replaceWith:function(a,b){var c,d=a.parentNode;sa(a);j(new Z(b),function(b){c?d.insertBefore(b,c.nextSibling):
d.replaceChild(b,a);c=b})},children:function(a){var b=[];j(a.childNodes,function(a){a.nodeName!="#text"&&b.push(a)});return b},append:function(a,b){j(new Z(b),function(b){a.nodeType===1&&a.appendChild(b)})},prepend:function(a,b){if(a.nodeType===1){var c=a.firstChild;j(new Z(b),function(b){c?a.insertBefore(b,c):(a.appendChild(b),c=b)})}},remove:function(a){sa(a);var b=a.parentNode;b&&b.removeChild(a)},after:function(a,b){var c=a,d=a.parentNode;j(new Z(b),function(a){d.insertBefore(a,c.nextSibling);
c=a})},addClass:Xb,removeClass:Wb,toggleClass:function(a,b,c){t(c)&&(c=!ib(a,b));(c?Xb:Wb)(a,b)},parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},next:function(a){return a.nextSibling},find:function(a,b){return a.getElementsByTagName(b)},clone:function(a){return a.cloneNode(!0)}},function(a,b){Z.prototype[b]=function(b,d){for(var e,f=0;f<this.length;f++)e==B?(e=a(this[f],b,d),e!==B&&(e=l(e))):gb(e,a(this[f],b,d));return e==B?this:e}});var J={typeOf:function(a){if(a===null)return Aa;
var b=typeof a;if(b==pb){if(a instanceof Array)return"array";if(a instanceof Date)return"date";if(a.nodeType==1)return"element"}return b}},Ma={copy:x,size:sb,equals:pa},Zc={extend:u},$c={indexOf:ya,sum:function(a,b){for(var c=r.Function.compile(b),d=0,e=0;e<a.length;e++){var f=1*c(a[e]);isNaN(f)||(d+=f)}return d},remove:function(a,b){var c=ya(a,b);c>=0&&a.splice(c,1);return b},filter:function(a,b){var c=[];c.check=function(a){for(var b=0;b<c.length;b++)if(!c[b](a))return!1;return!0};var d=function(a,
b){if(b.charAt(0)==="!")return!d(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return(""+a).toLowerCase().indexOf(b)>-1;case "object":for(var c in a)if(c.charAt(0)!=="$"&&d(a[c],b))return!0;return!1;case "array":for(c=0;c<a.length;c++)if(d(a[c],b))return!0;return!1;default:return!1}};switch(typeof b){case "boolean":case "number":case "string":b={$:b};case "object":for(var e in b)e=="$"?function(){var a=(""+b[e]).toLowerCase();a&&c.push(function(b){return d(b,a)})}():function(){var a=
e,g=(""+b[e]).toLowerCase();g&&c.push(function(b){return d(ra(b,a),g)})}();break;case $:c.push(b);break;default:return a}for(var f=[],g=0;g<a.length;g++){var h=a[g];c.check(h)&&f.push(h)}return f},add:function(a,b){a.push(t(b)?{}:b);return a},count:function(a,b){if(!b)return a.length;var c=r.Function.compile(b),d=0;j(a,function(a){c(a)&&d++});return d},orderBy:function(a,b,c){function d(a,b){return na(b)?function(b,c){return a(c,b)}:a}if(!b)return a;for(var b=V(b)?b:[b],b=pc(b,function(a){var b=!1,
c=a||ea;if(q(a)){if(a.charAt(0)=="+"||a.charAt(0)=="-")b=a.charAt(0)=="-",a=a.substring(1);c=N(a).fnSelf}return d(function(a,b){var d;d=c(a);var e=c(b),g=typeof d,f=typeof e;g==f?(g=="string"&&(d=d.toLowerCase()),g=="string"&&(e=e.toLowerCase()),d=d===e?0:d<e?-1:1):d=g<f?-1:1;return d},b)}),e=[],f=0;f<a.length;f++)e.push(a[f]);return e.sort(d(function(a,c){for(var d=0;d<b.length;d++){var e=b[d](a,c);if(e!==0)return e}return 0},c))},limitTo:function(a,b){var b=parseInt(b,10),c=[],d,e;b>0?(d=0,e=b):
(d=a.length+b,e=a.length);for(;d<e;d++)c.push(a[d]);return c}},ad=/^(\d{4})-(\d\d)-(\d\d)(?:T(\d\d)(?:\:(\d\d)(?:\:(\d\d)(?:\.(\d{3}))?)?)?Z)?$/,Ya={quote:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v")+'"'},quoteUnicode:function(a){for(var a=r.String.quote(a),b=[],c=0;c<a.length;c++){var d=a.charCodeAt(c);d<128?b.push(a.charAt(c)):(d="000"+d.toString(16),b.push("\\u"+d.substring(d.length-
4)))}return b.join("")},toDate:function(a){var b;if(q(a)&&(b=a.match(ad)))a=new Date(0),a.setUTCFullYear(b[1],b[2]-1,b[3]),a.setUTCHours(b[4]||0,b[5]||0,b[6]||0,b[7]||0);return a}},hc={toString:function(a){if(!a)return a;var b=a.toISOString?a.toISOString():"";return b.length==24?b:S(a.getUTCFullYear(),4)+"-"+S(a.getUTCMonth()+1,2)+"-"+S(a.getUTCDate(),2)+"T"+S(a.getUTCHours(),2)+":"+S(a.getUTCMinutes(),2)+":"+S(a.getUTCSeconds(),2)+"."+S(a.getUTCMilliseconds(),3)+"Z"}};Yb.prototype={put:function(a,
b){var c=jb(a),d=this[c];this[c]=b;return d},get:function(a){return this[jb(a)]},remove:function(a){var a=jb(a),b=this[a];delete this[a];return b}};ja("Global",[J]);ja("Collection",[J,Ma]);ja("Array",[J,Ma,$c]);ja("Object",[J,Ma,Zc]);ja("String",[J,Ya]);ja("Date",[J,hc]);r.Date.toString=hc.toString;ja("Function",[J,Ma,{compile:function(a){return y(a)?a:a?N(a).fnSelf:ea}}]);Y.currency=function(a,b){this.$element.toggleClass("ng-format-negative",a<0);if(t(b))b=ta.CURRENCY_SYM;return Zb(a,2,1).replace(/\u00A4/g,
b)};var ta={DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[[1,0,3,"","","-","",3,3],[1,2,2,"\u00a4","","(\u00a4",")",3,3]],CURRENCY_SYM:"$"},$b=".";Y.number=function(a,b){return isNaN(a)||!isFinite(a)?"":Zb(a,b,0)};var Sc="Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),Rc="January,February,March,April,May,June,July,August,September,October,November,December".split(","),bd={yyyy:H("FullYear",4),yy:H("FullYear",2,0,!0),y:H("FullYear",1),MMMM:Ha("Month"),MMM:Ha("Month",!0),MM:H("Month",
2,1),M:H("Month",1,1),dd:H("Date",2),d:H("Date",1),HH:H("Hours",2),H:H("Hours",1),hh:H("Hours",2,-12),h:H("Hours",1,-12),mm:H("Minutes",2),m:H("Minutes",1),ss:H("Seconds",2),s:H("Seconds",1),EEEE:Ha("Day"),EEE:Ha("Day",!0),a:function(a){return a.getHours()<12?"am":"pm"},z:ac(!1),Z:ac(!0)},cd={"long":"MMMM d, y h:mm:ss a z",medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",longTime:"h:mm:ss a z",mediumTime:"h:mm:ss a",
shortTime:"h:mm a"},Tc=/[A-Z]{3}(?![+\-])/,dd=/([^yMdHhmsazZE]*)(E+|y+|M+|d+|H+|h+|m+|s+|a|Z|z)(.*)/,ed=/^\d+$/;Y.date=function(a,b){b=cd[b]||b;q(a)&&(a=ed.test(a)?parseInt(a,10):Ya.toDate(a));ka(a)&&(a=new Date(a));if(!(a instanceof Date))return a;var c=a.toLocaleDateString(),d;if(b&&q(b)){for(var c="",e=[],f;b;)(f=dd.exec(b))?(e=e.concat(ma.call(f,1,f.length)),b=e.pop()):(e.push(b),b=null);j(e,function(b){d=bd[b];c+=d?d(a):b})}return c};Y.json=function(a){this.$element.addClass("ng-monospace");
return R(a,!0)};Y.lowercase=C;Y.uppercase=ob;Y.html=function(a,b){return new Ra(a,b)};Y.linky=function(a){if(!a)return a;for(var b=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s\.\;\,\(\)\{\}\<\>]/,c=a,d=[],e=rb(d),f,g;a=c.match(b);)f=a[0],a[2]==a[3]&&(f="mailto:"+f),g=a.index,e.chars(c.substr(0,g)),e.start("a",{href:f}),e.chars(a[0].replace(/^mailto:/,"")),e.end("a"),c=c.substring(g+a[0].length);e.chars(c);return new Ra(d.join(""))};var fd=/^\s*[-+]?\d*(\.\d*)?\s*$/;ia.noop=oa(ea,ea);ia.json=
oa(R,function(a){return ga(a||"null")});ia["boolean"]=oa(bc,na);ia.number=oa(bc,function(a){if(a==null||fd.exec(a))return a===null||a===""?null:1*a;else throw"Not a number";});ia.list=oa(function(a){return a?a.join(", "):a},function(a){var b=[];j((a||"").split(","),function(a){(a=aa(a))&&b.push(a)});return b});ia.trim=oa(function(a){return a?aa(""+a):""});u(db,{noop:function(){return null},regexp:function(a,b,c){return a.match(b)?null:c||"Value does not match expected format "+b+"."},number:function(a,
b,c){var d=1*a;return d==a?typeof b!=la&&d<b?"Value can not be less than "+b+".":typeof b!=la&&d>c?"Value can not be greater than "+c+".":null:"Not a number"},integer:function(a,b,c){return(b=db.number(a,b,c))?b:!(""+a).match(/^\s*[\d+]*\s*$/)||a!=Math.round(a)?"Not a whole number":null},date:function(a){var b=(a=/^(\d\d?)\/(\d\d?)\/(\d\d\d\d)$/.exec(a))?new Date(a[3],a[1]-1,a[2]):0;return b&&b.getFullYear()==a[3]&&b.getMonth()==a[1]-1&&b.getDate()==a[2]?null:"Value is not a date. (Expecting format: 12/31/2009)."},
email:function(a){return a.match(/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/)?null:"Email needs to be in username@host.com format."},phone:function(a){return a.match(/^1\(\d\d\d\)\d\d\d-\d\d\d\d$/)?null:a.match(/^\+\d{2,3} (\(\d{1,5}\))?[\d ]+\d$/)?null:"Phone number needs to be in 1(987)654-3210 format in North America or +999 (123) 45678 906 internationally."},url:function(a){return a.match(/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/)?null:"URL needs to be in http://server[:port]/path format."},
json:function(a){try{return ga(a),null}catch(b){return b.toString()}},asynchronous:function(a,b,c){if(a){var d=this,e=d.$element,f=e.data("$asyncValidator");f||e.data("$asyncValidator",f={inputs:{}});f.current=a;var g=f.inputs[a],h=d.$service("$invalidWidgets");g?g.inFlight?h.markInvalid(d.$element):(c||w)(g.response):(f.inputs[a]=g={inFlight:!0},h.markInvalid(d.$element),e.addClass("ng-input-indicator-wait"),b(a,function(b,c){g.response=c;g.error=b;g.inFlight=!1;f.current==a&&(e.removeClass("ng-input-indicator-wait"),
h.markValid(e));e.data(mb)();d.$service("$updateView")()}));return g.error}}});E("$cookieStore",function(a){return{get:function(b){return ga(a[b])},put:function(b,c){a[b]=R(c)},remove:function(b){delete a[b]}}},["$cookies"]);E("$cookies",function(a){var b=this,c={},d={},e,f=!1;a.addPollFn(function(){var g=a.cookies();e!=g&&(e=g,x(g,d),x(g,c),f&&b.$eval())})();f=!0;this.$onEval(99999,function(){var b,e,f;for(b in d)t(c[b])&&a.cookies(b,B);for(b in c)e=c[b],q(e)?e!==d[b]&&(a.cookies(b,e),f=!0):A(d[b])?
c[b]=d[b]:delete c[b];if(f)for(b in e=a.cookies(),c)c[b]!==e[b]&&(t(e[b])?delete c[b]:c[b]=e[b])});return c},["$browser"]);E("$defer",function(a,b,c){return function(d,e){a.defer(function(){try{d()}catch(a){b(a)}finally{c()}},e)}},["$browser","$exceptionHandler","$updateView"]);E("$document",function(a){return l(a.document)},["$window"]);E("$exceptionHandler",function(a){return function(b){a.error(b)}},["$log"]);E("$hover",function(a,b){var c,d,e=l(b[0].body);a.hover(function(a,b){if(b&&(d=a.attr(Ba)||
a.attr(va))){c||(c={callout:l('<div id="ng-callout"></div>'),arrow:l("<div></div>"),title:l('<div class="ng-title"></div>'),content:l('<div class="ng-content"></div>')},c.callout.append(c.arrow),c.callout.append(c.title),c.callout.append(c.content),e.append(c.callout));var h=e[0].getBoundingClientRect(),i=a[0].getBoundingClientRect(),h=h.right-i.right-10;c.title.text(a.hasClass("ng-exception")?"EXCEPTION:":"Validation error...");c.content.text(d);h<300?(c.arrow.addClass("ng-arrow-right"),c.arrow.css({left:"301px"}),
c.callout.css({position:"fixed",left:i.left-10-300-4+"px",top:i.top-3+"px",width:"300px"})):(c.arrow.addClass("ng-arrow-left"),c.callout.css({position:"fixed",left:i.right+10+"px",top:i.top-3+"px",width:"300px"}))}else c&&(c.callout.remove(),c=null)})},["$browser","$document"],!0);E("$invalidWidgets",function(){function a(b){if(b==v.document)return!1;b=b.parentNode;return!b||a(b)}var b=[];b.markValid=function(a){a=ya(b,a);a!=-1&&b.splice(a,1)};b.markInvalid=function(a){ya(b,a)===-1&&b.push(a)};b.visible=
function(){var a=0;j(b,function(b){var e=a,b=b[0].getBoundingClientRect(),f=b.height||b.bottom||0-b.top||0;a=e+((b.width||b.right||0-b.left||0)>0&&f>0?1:0)});return a};this.$onEval(99999,function(){for(var c=0;c<b.length;){var d=b[c];a(d[0])?(b.splice(c,1),d.dealoc&&d.dealoc()):c++}});return b});var gd=/^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,hd=/^([^\?]*)?(\?([^\?]*))?$/,ic={http:80,https:443,ftp:21};E("$location",function(a){function b(a){if(q(a)){var b=
u,c=i,d={},h=gd.exec(a);if(h)d.href=a.replace(/#$/,""),d.protocol=h[1],d.host=h[3]||"",d.port=h[5]||ic[d.protocol]||null,d.path=h[6]||"",d.search=Ta(h[8]),d.hash=h[10]||"",u(d,g(d.hash));b(c,d)}else{A(a.hash)&&u(a,q(a.hash)?g(a.hash):a.hash);u(i,a);if(A(a.hashPath||a.hashSearch))i.hash=f(i);i.href=e(i)}}function c(a,c){var d={};q(a)?(d.hashPath=a,d.hashSearch=c||{}):d.hashSearch=a;d.hash=f(d);b({hash:d})}function d(){if(!pa(i,k)){if(i.href==k.href)if(i.hash!=k.hash){var a=g(i.hash);c(a.hashPath,a.hashSearch)}else i.hash=
f(i),i.href=e(i);b(i.href)}}function e(a){var b=xb(a.search),c=a.port==ic[a.protocol]?null:a.port;return a.protocol+"://"+a.host+(c?":"+c:"")+a.path+(b?"?"+b:"")+(a.hash?"#"+a.hash:"")}function f(a){var b=xb(a.hashSearch);return escape(a.hashPath).replace(/%21/gi,"!").replace(/%3A/gi,":").replace(/%24/gi,"$")+(b?"?"+b:"")}function g(a){var b={},c=hd.exec(a);if(c)b.hash=a,b.hashPath=unescape(c[1]||""),b.hashSearch=Ta(c[3]);return b}var h=this,i={update:b,updateHash:c},k={};a.onHashChange(function(){b(a.getUrl());
x(i,k);h.$eval()})();this.$onEval(-99999,d);this.$onEval(99999,function(){d();a.getUrl()!=i.href&&(a.setUrl(i.href),x(i,k))});return i},["$browser"]);E("$log",function(a){function b(b){var d=a.console||{},e=d[b]||d.log||w;return e.apply?function(){var a=[];j(arguments,function(b){a.push(Pa(b))});return e.apply(d,a)}:e}return{log:b("log"),warn:b("warn"),info:b("info"),error:b("error")}},["$window"]);E("$resource",function(a){a=new Ea(a);return G(a,a.route)},["$xhr.cache"]);E("$route",function(a,b){var c=
{},d=[],e=function(a,b,c){var d="^"+b.replace(/[\.\\\(\)\^\$]/g,"$1")+"$",e=[],f={};j(b.split(/\W/),function(a){if(a){var b=RegExp(":"+a+"([\\W])");d.match(b)&&(d=d.replace(b,"([^/]*)$1"),e.push(a))}});var g=a.match(RegExp(d));g&&(j(e,function(a,b){f[a]=g[b+1]}),c&&this.$set(c,f));return g?f:null},f=this,g=0,h,i,k={routes:c,onChange:function(a){d.push(a);return a},parent:function(a){a&&(f=a)},when:function(a,b){if(t(a))return c;var d=c[a];d||(d=c[a]={reloadOnSearch:!0});b&&u(d,b);g++;return d},otherwise:function(a){k.when(null,
a)},reload:function(){g++}};this.$watch(function(){return g+a.hash},function(){var g,m,s,z,o,l;if(k.current&&!k.current.reloadOnSearch&&h==a.hashPath)k.current.params=u({},a.hashSearch,i);else{h=a.hashPath;k.current=null;j(c,function(b,c){if(!s&&(s=e(a.hashPath,c)))m=b});if(m=m||c[null]){if(m.redirectTo){q(m.redirectTo)?(l={hashPath:"",hashSearch:u({},a.hashSearch,s)},j(m.redirectTo.split(":"),function(b,c){c==0?l.hashPath+=b:(z=b.match(/(\w+)(.*)/),o=z[1],l.hashPath+=s[o]||a.hashSearch[o],l.hashPath+=
z[2]||"",delete l.hashSearch[o])})):l={hash:m.redirectTo(s,a.hash,a.hashPath,a.hashSearch)};a.update(l);b();return}g=X(f);k.current=u({},m,{scope:g,params:u({},a.hashSearch,s)});i=s}j(d,f.$tryEval);g&&g.$become(k.current.controller)}});return k},["$location","$updateView"]);kb.delay=25;E("$updateView",kb,["$browser"]);E("$window",G(v,ea,v));E("$xhr.bulk",function(a,b,c){function d(b,c,e,i,k){y(e)&&(k=i,i=e,e=null);var n;j(d.urls,function(a){if(y(a.match)?a.match(c):a.match.exec(c))n=a});if(n){if(!n.requests)n.requests=
[];b={method:b,url:c,data:e,success:i};if(k)b.error=k;n.requests.push(b)}else a(b,c,e,i,k)}var e=this;d.urls={};d.flush=function(f,g){j(d.urls,function(d,i){var k=d.requests;if(k&&k.length)d.requests=[],d.callbacks=[],a("POST",i,{requests:k},function(a,d,e){j(d,function(a,d){try{a.status==200?(k[d].success||w)(a.status,a.response,e):y(k[d].error)?k[d].error(a.status,a.response,e):b(k[d],a)}catch(g){c.error(g)}});(f||w)()},function(a,d,e){j(k,function(g){try{y(g.error)?g.error(a,d,e):b(g,d)}catch(f){c.error(f)}});
(g||w)()}),e.$eval()})};this.$onEval(99999,d.flush);return d},["$xhr","$xhr.error","$log"]);E("$xhr.cache",function(a,b,c,d){function e(a,h,i,k,n,m,s){y(i)?(y(k)?(s=m,m=n,n=k):(m=k,s=n,n=null),k=i,i=null):y(n)||(s=m,m=n,n=null);if(a=="GET"){var l;if(l=e.data[h])if(s?k(200,x(l.value),x(l.headers)):b(function(){k(200,x(l.value),x(l.headers))}),!m)return;(m=f[h])?(m.successes.push(k),m.errors.push(n)):(f[h]={successes:[k],errors:[n]},e.delegate(a,h,i,function(a,b,c){a==200&&(e.data[h]={value:b,headers:c});
var g=f[h].successes;delete f[h];j(g,function(e){try{(e||w)(a,x(b),c)}catch(g){d.error(g)}})},function(b,e,k){var m=f[h].errors,n=f[h].successes;delete f[h];j(m,function(f,m){try{y(f)?f(b,x(e),x(k)):c({method:a,url:h,data:i,success:n[m]},{status:b,body:e})}catch(j){d.error(j)}})}))}else e.data={},e.delegate(a,h,i,k,n)}var f={};e.data={};e.delegate=a;return e},["$xhr.bulk","$defer","$xhr.error","$log"]);E("$xhr.error",function(a){return function(b,c){a.error("ERROR: XHR: "+b.url,b,c)}},["$log"]);E("$xhr",
function(a,b,c,d){function e(e,h,i,k,n){y(i)&&(n=k,k=i,i=null);i&&M(i)&&(i=R(i));a.xhr(e,h,i,function(a,f,j){try{q(f)&&(f.match(/^\)\]\}',\n/)&&(f=f.substr(6)),/^\s*[\[\{]/.exec(f)&&/[\}\]]\s*$/.exec(f)&&(f=ga(f,!0))),200<=a&&a<300?k(a,f,j):y(n)?n(a,f,j):b({method:e,url:h,data:i,success:k},{status:a,body:f})}catch(o){c.error(o)}finally{d()}},u({"X-XSRF-TOKEN":a.cookies()["XSRF-TOKEN"]},f.common,f[C(e)]))}var f={common:{Accept:"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest"},
post:{"Content-Type":"application/x-www-form-urlencoded"},get:{},head:{},put:{},"delete":{},patch:{}};e.defaults={headers:f};return e},["$browser","$xhr.error","$log","$updateView"]);D("ng:init",function(a){return function(b){this.$tryEval(a,b)}});D("ng:controller",function(a){this.scope(!0);return function(){var b=ra(v,a,!0)||ra(this,a,!0);if(!b)throw"Can not find '"+a+"' controller.";if(!y(b))throw"Reference '"+a+"' is not a class.";this.$become(b)}});D("ng:eval",function(a){return function(b){this.$onEval(a,
b)}});D("ng:bind",function(a,b){b.addClass("ng-binding");return function(b){var d=w,e=w;this.$onEval(function(){var f,g,h,i,k;i=this.hasOwnProperty(ec)?this.$element:B;this.$element=b;g=this.$tryEval(a,function(a){f=Pa(a)});this.$element=i;if(i=g instanceof Ra)g=(h=g).html;if(!(d===g&&e==f)&&(k=g&&(g.nodeName||g.bind&&g.find),!i&&!k&&M(g)&&(g=R(g,!0)),g!=d||f!=e))d=g,e=f,fa(b,Ba,f),f&&(g=f),i?b.html(h.get()):k?(b.html(""),b.append(g)):b.text(g==B?"":g)},b)}});var dc={};D("ng:bind-template",function(a,
b){b.addClass("ng-binding");var c=cc(a);return function(a){var b;this.$onEval(function(){var f=c.call(this,a,!0);f!=b&&(a.text(f),b=f)},a)}});var id={disabled:"disabled",readonly:"readOnly",checked:"checked",selected:"selected",multiple:"multiple"};D("ng:bind-attr",function(a){return function(b){var c={};this.$onEval(function(){var d=this.$eval(a),e;for(e in d){var f=cc(d[e]).call(this,b),g=id[C(e)];c[e]!==f&&(c[e]=f,g?(na(f)?(b.attr(g,g),b.attr("ng-"+g,f)):(b.removeAttr(g),b.removeAttr("ng-"+g)),
(b.data(mb)||w)()):b.attr(e,f))}},b)}});D("ng:click",function(a){return Ca("$updateView",function(b,c){var d=this;c.bind("click",function(e){d.$tryEval(a,c);b();e.stopPropagation()})})});D("ng:submit",function(a){return Ca("$updateView",function(b,c){var d=this;c.bind("submit",function(e){d.$tryEval(a,c);b();e.preventDefault()})})});D("ng:class",lb(function(){return!0}));D("ng:class-odd",lb(function(a){return a%2===0}));D("ng:class-even",lb(function(a){return a%2===1}));D("ng:show",function(a){return function(b){this.$onEval(function(){b.css("display",
na(this.$eval(a))?"":"none")},b)}});D("ng:hide",function(a){return function(b){this.$onEval(function(){b.css("display",na(this.$eval(a))?"none":"")},b)}});D("ng:style",function(a){return function(b){var c=Oc(b);this.$onEval(function(){var d=this.$eval(a)||{},e,f={};for(e in d)c[e]===B&&(c[e]=""),f[e]=d[e];for(e in c)f[e]=f[e]||c[e];b.css(f)},b)}});Sa("{{}}",function(a,b,c){var d=Ia(a);if(d.length>1||Ja(d[0])!==null)if(qc(c[0]))c.attr("ng:bind-template",a);else{var e=b,f;j(Ia(a),function(a){var b=
Ja(a);b?(f=l("<span>"),f.attr("ng:bind",b)):f=l(K.createTextNode(a));W&&a.charAt(0)==" "&&(f=l("<span>&nbsp;</span>"),b=f.html(),f.text(a.substr(1)),f.html(b+f.html()));e.after(f);e=f});b.remove()}});Sa("option",function(a,b,c){C(qa(c))=="option"&&(W<=7?qb(c[0].outerHTML,{start:function(b,e){t(e.value)&&c.attr("value",a)}}):c[0].getAttribute("value")==null&&c.attr("value",a))});var jc={};j("src,href,checked,disabled,multiple,readonly,selected".split(","),function(a){jc["ng:"+a]=a});wb("{{}}",function(a,
b,c){if(!D(b)&&!D("@"+b)){W&&b=="src"&&(a=decodeURI(a));var d=Ia(a);if(d.length>1||Ja(d[0])!==null)c.removeAttr(b),d=ga(c.attr("ng:bind-attr")||"{}"),d[jc[b]||b]=a,c.attr("ng:bind-attr",R(d))}});var J=wa("keydown change",ua,gc,La(),!0),Uc={text:J,textarea:J,hidden:J,password:J,checkbox:wa("click",fc,function(a,b){var c=b[0];return{get:function(){return!!c.checked},set:function(a){c.checked=na(a)}}},La(!1)),radio:wa("click",fc,function(a,b){var c=b[0];return{get:function(){return c.checked?c.value:
null},set:function(a){c.checked=a==c.value}}},function(a,b,c){var d=a.get(),e=b.get(),c=c[0];c.checked=!1;c.name=this.$id+"@"+c.name;t(d)&&a.set(d=null);d==null&&e!==null&&a.set(e);b.set(d)}),"select-one":wa("change",ua,gc,La(null)),"select-multiple":wa("change",ua,function(a,b){var c=b.attr("ng:format")||Ka,d=ha(c).formatter()();return{get:function(){var c=[];j(b[0].options,function(b){b.selected&&c.push(d.parse(a,b.value))});return c},set:function(c){var f={};j(c,function(b){f[d.format(a,b)]=!0});
j(b[0].options,function(a){a.selected=f[a.value]})}}},La([]))};Q("input",nb);Q("textarea",nb);var jd=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/;Q("select",function(a){this.descend(!0);this.directives(!0);var b=a.attr("multiple"),c=a.attr("ng:options"),d=N(a.attr("ng:change")||"").fnSelf,e;if(!c)return nb.call(this,a);if(!(e=c.match(jd)))throw I("Expected ng:options in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+
c+"'.");var f=N(e[2]||e[1]).fnSelf,g=e[4]||e[6],h=e[5],i=N(e[3]||"").fnSelf,k=N(e[2]?e[1]:g).fnSelf,n=N(e[7]).fnSelf,m=l(K.createElement("option")),s=l(K.createElement("optgroup")),z=!1;return function(c){var e=[[{element:c,label:""}]],p=this,y=ua(p,a);j(c.children(),function(a){a.value==""&&(z={label:l(a).text(),id:""})});c.html("");c.bind("change",function(){var a,f=n(p)||[],i=c.val(),j=Qa(p),m,l,s,z,u,r;try{if(b){m=[];z=0;for(r=e.length;z<r;z++){a=e[z];s=1;for(u=a.length;s<u;s++)if((l=a[s].element)[0].selected)h&&
(j[h]=i),j[g]=f[l.val()],m.push(k(j))}}else i=="?"?m=B:i==""?m=null:(j[g]=f[i],h&&(j[h]=i),m=k(j));A(m)&&y.get()!==m&&(d(p),y.set(m));p.$tryEval(function(){p.$root.$eval()})}finally{j=null}});p.$onEval(function(){var a={"":[]},d=[""],j,l,p,r,q;r=p=n(this)||[];var w,A,v,t;w=Qa(this);v=y.get();var x=!1;if(b){if(x=new Yb,v&&ka(A=v.length))for(t=0;t<A;t++)x.put(v[t],!0)}else if(v===null||z)a[""].push(u({selected:v===null,id:"",label:""},z)),x=!0;if(h){r=[];for(l in p)p.hasOwnProperty(l)&&r.push(l);r.sort()}for(t=
0;A=r.length,t<A;t++){w[g]=p[h?w[h]=r[t]:t];j=i(w)||"";if(!(l=a[j]))l=a[j]=[],d.push(j);b?j=!!x.remove(k(w)):(j=v===k(w),x=x||j);l.push({id:h?r[t]:t,label:f(w)||"",selected:j})}d.sort();!b&&!x&&a[""].unshift({id:"?",label:"",selected:!0});v=0;for(w=d.length;v<w;v++){j=d[v];l=a[j];if(e.length<=v)e.push(r=[p={element:s.clone().attr("label",j),label:l.label}]),c.append(p.element);else if(r=e[v],p=r[0],p.label!=j)p.element.attr("label",p.label=j);x=null;t=0;for(A=l.length;t<A;t++)if(j=l[t],q=r[t+1]){x=
q.element;if(q.label!==j.label)x.text(q.label=j.label);if(q.id!==j.id)x.val(q.id=j.id);q.selected!==j.selected&&x.attr("selected",j.selected)}else(q=m.clone()).val(j.id).attr("selected",j.selected).text(j.label),r.push({element:q,label:j.label,id:j.id,checked:j.selected}),x?x.after(q):p.element.append(q),x=q;for(t++;r.length>t;)r.pop().element.remove()}for(;e.length>v;)e.pop()[0].element.remove()})}});Q("ng:include",function(a){var b=this,c=a.attr("src"),d=a.attr("scope")||"",e=a[0].getAttribute("onload")||
"";if(a[0]["ng:compiled"])this.descend(!0),this.directives(!0);else return a[0]["ng:compiled"]=!0,u(function(a,g){function h(){j++}var i=this,k,j=0,m=!1;this.$watch(c,h);this.$watch(d,h);i.$onEval(function(){if(k&&!m){m=!0;try{k.$eval()}finally{m=!1}}});this.$watch(function(){return j},function(){var h=this.$eval(c),j=this.$eval(d);h?a("GET",h,null,function(a,c){g.html(c);k=j||X(i);b.compile(g)(k);i.$eval(e)},!1,!0):(k=null,g.html(""))})},{$inject:["$xhr.cache"]})});var kd=Q("ng:switch",function(a){var b=
this,c=a.attr("on"),d=a.attr("using")||"equals",e=d.split(":"),f=kd[e.shift()],g=a.attr("change")||"",h=[];if(!f)throw"Using expression '"+d+"' unknown.";if(!c)throw"Missing 'on' attribute.";Bb(a,function(a){var c=a.attr("ng:switch-when"),d={change:g,element:a,template:b.compile(a)};if(q(c))d.when=function(a,b){var d=[b,c];j(e,function(a){d.push(a)});return f.apply(a,d)},h.unshift(d);else if(q(a.attr("ng:switch-default")))d.when=xa(!0),h.push(d)});j(h,function(a){a.element.remove()});a.html("");return function(a){var b=
this,d;this.$watch(c,function(c){var e=!1;a.html("");d=X(b);j(h,function(b){!e&&b.when(d,c)&&(e=!0,d.$tryEval(b.change,a),b.template(d,function(b){a.append(b)}))})});b.$onEval(function(){d&&d.$eval()})}},{equals:function(a,b){return""+a==b}});Q("a",function(){this.descend(!0);this.directives(!0);return function(a){var b=(a.attr("ng:bind-attr")||"").indexOf('"href":')!==-1;!b&&!a.attr("name")&&!a.attr("href")&&a.attr("href","");a.attr("href")===""&&!b&&a.bind("click",function(a){a.preventDefault()})}});
Q("@ng:repeat",function(a,b){b.removeAttr("ng:repeat");b.replaceWith(l("<\!-- ng:repeat: "+a+" --\>"));var c=this.compile(b);return function(d){var e=a.match(/^\s*(.+)\s+in\s+(.*)\s*$/),f,g,h,i;if(!e)throw I("Expected ng:repeat in form of '_item_ in _collection_' but got '"+a+"'.");f=e[1];g=e[2];e=f.match(/^([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\)$/);if(!e)throw I("'item' in 'item in collection' should be identifier or (key, value) but got '"+keyValue+"'.");h=e[3]||e[1];i=e[2];var j=[],n=this;this.$onEval(function(){var a=
0,e=j.length,f=d,o=this.$tryEval(g,d),r=sb(o,!0),p=b[0].nodeName!="OPTION"?K.createDocumentFragment():null,u,q,t;for(t in o)if(o.hasOwnProperty(t))a<e?(q=j[a],q[h]=o[t],i&&(q[i]=t),f=q.$element,q.$position=a==0?"first":a==r-1?"last":"middle",q.$eval()):(q=X(n),q[h]=o[t],i&&(q[i]=t),q.$index=a,q.$position=a==0?"first":a==r-1?"last":"middle",j.push(q),c(q,function(b){b.attr("ng:repeat-index",a);p?(p.appendChild(b[0]),u=!0):(f.after(b),f=b)})),a++;for(u&&f.after(l(p));j.length>a;)j.pop().$element.remove()},
d)}});Q("@ng:non-bindable",w);Q("ng:view",function(a){var b=this;if(a[0]["ng:compiled"])this.descend(!0),this.directives(!0);else return a[0]["ng:compiled"]=!0,Ca("$xhr.cache","$route",function(a,d,e){var f;d.onChange(function(){var g;if(d.current)g=d.current.template,f=d.current.scope;g?a("GET",g,function(a,c){e.html(c);b.compile(e)(f)}):e.html("")})();this.$onEval(function(){f&&f.$eval()})})});var Na;ab("$browser",function(a){Na||(Na=new Fc(v,l(v.document),l(v.document.body),Wc,a),Na.bind());return Na},
{$inject:["$log"]});u(r,{element:l,compile:ub,scope:X,copy:x,extend:u,equals:pa,forEach:j,injector:Hb,noop:w,bind:G,toJson:R,fromJson:ga,identity:ea,isUndefined:t,isDefined:A,isString:q,isFunction:y,isObject:M,isNumber:ka,isArray:V,version:{full:"0.9.19",major:0,minor:9,dot:19,codeName:"canine-psychokinesis"}});yb();Wa(K).ready(function(){var a=sc(K),b=K,c=a.autobind;c&&(b=q(c)?b.getElementById(c):b,b=ub(b)(X({$config:a})).$service("$browser"),a.css?b.addCss(a.base_url+a.css):W<8&&b.addJs(a.ie_compat,
a.ie_compat_id))})})(window,document);angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";.ng-format-negative{color:red;}.ng-exception{border:2px solid #FF0000;font-family:"Courier New",Courier,monospace;font-size:smaller;white-space:pre;}.ng-validation-error{border:2px solid #FF0000;}#ng-callout{margin:0;padding:0;border:0;outline:0;font-size:13px;font-weight:normal;font-family:Verdana,Arial,Helvetica,sans-serif;vertical-align:baseline;background:transparent;text-decoration:none;}#ng-callout .ng-arrow-left{background-image:url("data:image/gif;base64,R0lGODlhCwAXAKIAAMzMzO/v7/f39////////wAAAAAAAAAAACH5BAUUAAQALAAAAAALABcAAAMrSLoc/AG8FeUUIN+sGebWAnbKSJodqqlsOxJtqYooU9vvk+vcJIcTkg+QAAA7");background-repeat:no-repeat;background-position:left top;position:absolute;z-index:101;left:-12px;height:23px;width:10px;top:-3px;}#ng-callout .ng-arrow-right{background-image:url("data:image/gif;base64,R0lGODlhCwAXAKIAAMzMzO/v7/f39////////wAAAAAAAAAAACH5BAUUAAQALAAAAAALABcAAAMrCLTcoM29yN6k9socs91e5X3EyJloipYrO4ohTMqA0Fn2XVNswJe+H+SXAAA7");background-repeat:no-repeat;background-position:left top;position:absolute;z-index:101;height:23px;width:11px;top:-2px;}#ng-callout{position:absolute;z-index:100;border:2px solid #CCCCCC;background-color:#fff;}#ng-callout .ng-content{padding:10px 10px 10px 10px;color:#333333;}#ng-callout .ng-title{background-color:#CCCCCC;text-align:left;padding-left:8px;padding-bottom:5px;padding-top:2px;font-weight:bold;}.ng-input-indicator-wait{background-image:url("data:image/png;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==");background-position:right;background-repeat:no-repeat;}</style>');
kalkulator.ot.mk
function Calculator() {
var calculate = function (bruto) {
var osloboduvanje = 7470;
var penzisko = bruto * 0.15;
var zdravstveno = bruto * 0.073;
var pridones = bruto * 0.012;
var zaboluvanje = bruto * 0.005;
var pridonesi = penzisko + zdravstveno + pridones + zaboluvanje;
var osnova = bruto - osloboduvanje - pridonesi;
var personalen = osnova * 0.10;
var davacki = personalen + pridonesi;
var neto = bruto - davacki;
vals = Array()
vals.push({ name: 'Бруто плата', value: bruto.toFixed(2) });
vals.push({ name: 'Придонес за пензискo осигурување', p: '15%', value: penzisko.toFixed(2) });
vals.push({ name: 'Придонес за здравствено осигурување', p: '7.3%', value: zdravstveno.toFixed(2) });
vals.push({ name: 'Придонес за вработување', p: '1.2%', value: pridones.toFixed(2) });
vals.push({ name: 'Придонес за професионално заболување', p: '0.5%', value: zaboluvanje.toFixed(2) });
vals.push({ name: 'Вкупно придонеси', value: pridonesi.toFixed(2) });
vals.push({ name: 'Бруто - придонеси', value: (bruto - pridonesi).toFixed(2) });
vals.push({ name: 'Даночно ослободување', p: '7470', value: osloboduvanje.toFixed(2) });
vals.push({ name: 'Даночна основа', value: osnova.toFixed(2) });
vals.push({ name: 'Персонален данок', p: '10%', value: personalen.toFixed(2) });
vals.push({ name: 'Вкупно придонеси и данок', value: davacki.toFixed(2) });
vals.push({ name: 'Нето плата', value: neto.toFixed(2) });
return vals;
}
var neto2bruto = function (neto) {
var pridonesi = 0.15 + 0.073 + 0.012 + 0.005;
var personalen = 0.10;
var k = (1 - pridonesi) * (1 - personalen);
var bruto = (neto - 730) / k;
return bruto;
}
this.getBrutoVals = function() {
var bruto = parseFloat(this.bruto.toString());
this.vals = calculate(bruto);
this.neto = vals.slice(-1)[0].value;
}
this.getNetoVals = function() {
var bruto = neto2bruto(parseFloat(this.neto.toString()));
this.vals = calculate(bruto);
this.bruto = bruto.toFixed(2);
}
}
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>пресметка на бруто плата</title>
<link rel="stylesheet" href="plati.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="plati_print.css" type="text/css" media="print" charset="utf-8">
<script type="text/javascript" charset="utf-8" src="controllers.js"></script>
<script type="text/javascript" charset="utf-8" src="angular.min.js" ng:autobind></script>
</head>
<body ng:controller="Calculator">
<h1>Информации за придонесите и бруто и нето износот на платата</h1>
<a href="https://gist.github.com/1987996"><img class="ribbon" src="https://a248.e.akamai.net/assets.github.com/img/6429057dfef9e98189338d22e7f6646c6694f032/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
<a href="http://dl.dropbox.com/u/13597364/upatstvo_bruto_plata.pdf"><img style="position: absolute; top: 0; right: 0; border: 0; height:64px;" src="http://dl.dropbox.com/u/13597364/f02a62981db2.png" alt="закон за пресметување на плати"></a>
<div class="form">
<p>
<label for="bruto">Бруто:</label>
<input type="text" name="bruto" id="bruto" placeholder="бруто"
ng:validate="number" ng:change="getBrutoVals()" />
</p><p>
<label for="neto">Нето:</label>
<input type="text" name="neto" id="neto" placeholder="нето"
ng:validate="number" ng:change="getNetoVals()" />
</p>
</div>
<div id="results">
<p ng:repeat="val in vals">{{ val.name }} {{ val.p }} {{ val.value }}</p>
</div>
</body>
</html>
body {
padding: 0 20px;
font: 0.8em sans-serif;
}
h1 {
display:none;
}
body > div {
margin: 0 auto;
width: 550px;
padding: 0px 80px 20px 80px;
}
div.form p input[type='text'] {
width: 300px;
}
body > div.form p > label {
margin: 0 0 0 -80px;
padding: 12px 0 0 22px;
width: 50px;
text-align: right;
}
p {
clear: both;
}
img.ribbon {
position: absolute;
top: 0;
left: 0;
border: 0;
}
input.ng-directive {
margin:5px 10px 0 0;
}
p > * {
display: block;
float: left;
margin:5px 0px;
padding:5px;
}
#results {
border-top: 1px solid #9f9f9f;
clear: both;
margin-top: 40px;
padding:0 80px;
}
#results p {
border-bottom:1px solid #dfdfdf;
overflow:hidden;
}
#results p:first-child {
font-weight:bold;
}
#results p:last-child {
font-weight:bold;
border-bottom:1px solid #000000;
}
#results > p > * {
padding-top:0;
}
#results > p > span:first-child {
width:340px;
}
#results > p > span:last-child {
float:right;
text-align:right;
}
body {
padding: 0 20px 20px 20px;
font: 0.8em sans-serif;
}
h1 {
display: block;
font-weight: normal;
text-align: center;
}
body > div {
margin: 0 auto;
width: 550px;
padding: 10px 80px;
}
body > div.form {
display: none;
}
a img {
display:none;
}
p {
clear: both;
}
p > * {
display: block;
float: left;
margin:5px 0px;
padding:5px;
}
#results {
border-top: 1px solid #9f9f9f;
clear: both;
margin-top: 40px;
}
#results p {
border-bottom:1px solid #dfdfdf;
overflow:hidden;
}
#results p:first-child {
font-weight:bold;
}
#results p:last-child {
font-weight:bold;
border-bottom:1px solid #000000;
}
#results > p > * {
padding-top:0;
}
#results > p > span:first-child {
width:340px;
}
#results > p > span:last-child {
float:right;
text-align:right;
}
@novica
Copy link

novica commented Jan 8, 2013

http://ujp.gov.mk/mk/javnost/soopstenija/pogledni/356 нови податоци за 2013 година. треба да се поправи даночно ослободување

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment