OpenShot Video Editor  2.0.0
Functions | Variables
angular.min.js File Reference

Go to the source code of this file.

Functions

return this index a< this.text.length?this.text.charAt(this.index+a):!1}, isNumber:function(a){return"0"<=a &&"9">=a}, isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a}, isIdent:function(a){return"a"<=a &&"z">=a||"A"<=a &&"Z">=a||"_"===a||"$"===a}, isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)}, throwError:function(a, c, d){d=d||this.index;c=G(c)?"s "+c+"-"+this.index+" ["+this.text.substring(c, d)+"]":" "+d;throw ea("lexerr", a, c, this.text);}, readNumber:function(){for(var a="", c=this.index;this.index< this.text.length;){var d=A(this.text.charAt(this.index));if("."==d||this.isNumber(d)) a+=d;else{var e=this.peek();if("e"==d &&this.isExpOperator(e)) a+=d;else if(this.isExpOperator(d)&&e &&this.isNumber(e)&&"e"==a.charAt(a.length-1)) a+=d;else if(!this.isExpOperator(d)||e &&this.isNumber(e)||"e"!=a.charAt(a.length-1)) break;else this.throwError("Invalid exponent")}this.index++}a *=1;this.tokens.push({index:c, text:a, literal:!0, constant:!0, fn:function(){return a}})}, readIdent:function(){for(var a=this, c="", d=this.index, e, f, g, h;this.index< this.text.length;){h=this.text.charAt(this.index);if("."===h||this.isIdent(h)||this.isNumber(h))"."===h &&(e=this.index), c+=h;else break;this.index++}if(e) for(f=this.index;f< this.text.length;){h=this.text.charAt(f);if("("===h){g=c.substr(e-d+1);c=c.substr(0, e-d);this.index=f;break}if(this.isWhitespace(h)) f++;else break}d={index:d, text:c};if(gb.hasOwnProperty(c)) d.fn=gb[c], d.literal=!0, d.constant=!0;else{var k=Ec(c, this.options, this.text);d.fn=F(function(a, c){return k(a, c)},{assign:function(d, e){return tb(d, c, e, a.text, a.options)}})}this.tokens.push(d);g &&(this.tokens.push({index:e, text:"."}), this.tokens.push({index:e+1, text:g}))}, readString:function(a){var c=this.index;this.index++;for(var d="", e=a, f=!1;this.index< this.text.length;){var g=this.text.charAt(this.index), e=e+g;if(f)"u"===g?(f=this.text.substring(this.index+1, this.index+5), f.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+f+"]"), this.index+=4, d+=String.fromCharCode(parseInt(f, 16))):d+=Ve[g]||g, f=!1;else if("\\"===g) f=!0;else{if(g===a){this.index++;this.tokens.push({index:c, text:e, string:d, literal:!0, constant:!0, fn:function(){return d}});return}d+=g}this.index++}this.throwError("Unterminated quote", c)}};var fb=function(a, c, d){this.lexer=a;this.$filter=c;this.options=d};fb.ZERO=F(function(){return 0},{constant:!0});fb.prototype={constructor:fb, parse:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.statements();0!==this.tokens.length &&this.throwError("is an unexpected token", this.tokens[0]);a.literal=!!a.literal;a.constant=!!a.constant;return a}, primary:function(){var a;if(this.expect("(")) a=this.filterChain(), this.consume(")");else if(this.expect("[")) a=this.arrayDeclaration();else if(this.expect("{")) a=this.object();else{var c=this.expect();(a=c.fn)||this.throwError("not a primary expression", c);a.literal=!!c.literal;a.constant=!!c.constant}for(var d;c=this.expect("(","[",".");)"("===c.text?(a=this.functionCall(a, d), d=null):"["===c.text?(d=a, a=this.objectIndex(a)):"."===c.text?(d=a, a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a}, throwError:function(a, c){throw ea("syntax", c.text, a, c.index+1, this.text, this.text.substring(c.index));}, peekToken:function(){if(0===this.tokens.length) throw ea("ueoe", this.text);return this.tokens[0]}, peek:function(a, c, d, e){if(0< this.tokens.length){var f=this.tokens[0], g=f.text;if(g===a||g===c||g===d||g===e||!(a||c||d||e)) return f}return!1}, expect:function(a, c, d, e){return(a=this.peek(a, c, d, e))?(this.tokens.shift(), a):!1}, consume:function(a){this.expect(a)||this.throwError("is unexpected, expecting ["+a+"]", this.peek())}, unaryFn:function(a, c){return F(function(d, e){return a(d, e, c)},{constant:c.constant})}, ternaryFn:function(a, c, d){return F(function(e, f){return a(e, f)?c(e, f):d(e, f)},{constant:a.constant &&c.constant &&d.constant})}, binaryFn:function(a, c, d){return F(function(e, f){return c(e, f, a, d)},{constant:a.constant &&d.constant})}, statements:function(){for(var a=[];;) if(0< this.tokens.length &&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";")) return 1===a.length?a[0]:function(c, d){for(var e, f=0;f< a.length;f++){var g=a[f];g &&(e=g(c, d))}return e}}, filterChain:function(){for(var a=this.expression(), c;;) if(c=this.expect("|")) a=this.binaryFn(a, c.fn, this.filter());else return a}, filter:function(){for(var a=this.expect(), c=this.$filter(a.text), d=[];;) if(a=this.expect(":")) d.push(this.expression());else{var e=function(a, e, h){h=[h];for(var k=0;k< d.length;k++) h.push(d[k](a, e));return c.apply(a, h)};return function(){return e}}}, expression:function(){return this.assignment()}, assignment:function(){var a=this.ternary(), c, d;return(d=this.expect("="))?(a.assign||this.throwError("implies assignment but ["+this.text.substring(0, d.index)+"] can not be assigned to", d), c=this.ternary(), function(d, f){return a.assign(d, c(d, f), f)}):a}, ternary:function(){var a=this.logicalOR(), c, d;if(this.expect("?")){c=this.assignment();if(d=this.expect(":")) return this.ternaryFn(a, c, this.assignment());this.throwError("expected :", d)}else return a}, logicalOR:function(){for(var a=this.logicalAND(), c;;) if(c=this.expect("||")) a=this.binaryFn(a, c.fn, this.logicalAND());else return a}, logicalAND:function(){var a=this.equality(), c;if(c=this.expect("&&")) a=this.binaryFn(a, c.fn, this.logicalAND());return a}, equality:function(){var a=this.relational(), c;if(c=this.expect("==","!=","===","!==")) a=this.binaryFn(a, c.fn, this.equality());return a}, relational:function(){var a=this.additive(), c;if(c=this.expect("<",">","<=",">=")) a=this.binaryFn(a, c.fn, this.relational());return a}, additive:function(){for(var a=this.multiplicative(), c;c=this.expect("+","-");) a=this.binaryFn(a, c.fn, this.multiplicative());return a}, multiplicative:function(){for(var a=this.unary(), c;c=this.expect("*","/","%");) a=this.binaryFn(a, c.fn, this.unary());return a}, unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(fb.ZERO, a.fn, this.unary()):(a=this.expect("!"))?this.unaryFn(a.fn, this.unary()):this.primary()}, fieldAccess:function(a){var c=this, d=this.expect().text, e=Ec(d, this.options, this.text);return F(function(c, d, h){return e(h||a(c, d))},{assign:function(e, g, h){(h=a(e, h))||a.assign(e, h={});return tb(h, d, g, c.text, c.options)}})}, objectIndex:function(a){var c=this, d=this.expression();this.consume("]");return F(function(e, f){var g=a(e, f), h=Cc(d(e, f), c.text), k;la(h, c.text);if(!g) return v;(g=ma(g[h], c.text))&&(g.then &&c.options.unwrapPromises)&&(k=g,"$$v"in g||(k.$$v=v, k.then(function(a){k.$$v=a})), g=g.$$v);return g},{assign:function(e, f, g){var h=la(Cc(d(e, g), c.text), c.text);(g=ma(a(e, g), c.text))||a.assign(e, g={});return g[h]=f}})}, functionCall:function(a, c){var d=[];if(")"!==this.peekToken().text){do d.push(this.expression());while(this.expect(","))}this.consume(")");var e=this;return function(f, g){for(var h=[], k=c?c(f, g):f, l=0;l< d.length;l++) h.push(ma(d[l](f, g), e.text));l=a(f, g, k)||B;ma(k, e.text);var m=e.text;if(l){if(l.constructor===l) throw ea("isecfn", m);if(l===Te||l===Ue||Qc &&l===Qc) throw ea("isecff", m);}h=l.apply?l.apply(k, h):l(h[0], h[1], h[2], h[3], h[4]);return ma(h, e.text)}}, arrayDeclaration:function(){var a=[], c=!0;if("]"!==this.peekToken().text){do{if(this.peek("]")) break;var d=this.expression();a.push(d);d.constant||(c=!1)}while(this.expect(","))}this.consume("]");return F(function(c, d){for(var g=[], h=0;h< a.length;h++) g.push(a[h](c, d));return g},{literal:!0, constant:c})}, object:function(){var a=[], c=!0;if("}"!==this.peekToken().text){do{if(this.peek("}")) break;var d=this.expect(), d=d.string||d.text;this.consume(":");var e=this.expression();a.push({key:d, value:e});e.constant||(c=!1)}while(this.expect(","))}this.consume("}");return F(function(c, d){for(var e={}, k=0;k< a.length;k++){var l=a[k];e[l.key]=l.value(c, d)}return e},{literal:!0, constant:c})}};var De={}, Ce={}, ya=z("$sce"), fa={HTML:"html", CSS:"css", URL:"url", RESOURCE_URL:"resourceUrl", JS:"js"}, X=W.createElement("a"), Hc=wa(V.location.href,!0);jc.$inject=["$provide"];Ic.$inject=["$locale"];Kc.$inject=["$locale"];var Nc=".", Ne={yyyy:Y("FullYear", 4), yy:Y("FullYear", 2, 0,!0), y:Y("FullYear", 1), MMMM:ub("Month"), MMM:ub("Month",!0), MM:Y("Month", 2, 1), M:Y("Month", 1, 1), dd:Y("Date", 2), d:Y("Date", 1), HH:Y("Hours", 2), H:Y("Hours", 1), hh:Y("Hours", 2,-12), h:Y("Hours", 1,-12), mm:Y("Minutes", 2), m:Y("Minutes", 1), ss:Y("Seconds", 2), s:Y("Seconds", 1), sss:Y("Milliseconds", 3), EEEE:ub("Day"), EEE:ub("Day",!0), a:function(a, c){return 12 > a getHours ()?c.AMPMS[0]
 
function z (b)
 

Variables

is __pad0__
 
is peek
 
function V
 
function v {'use strict'
 
function W
 
is was
 

Function Documentation

return this index a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=G(c)?"s "+c+"-"+this.index+" ["+this.text.substring(c,d)+"]":" "+d;throw ea("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=A(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var e=this.peek();if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}a*=1;this.tokens.push({index:c,text:a,literal:!0,constant:!0,fn:function(){return a}})},readIdent:function(){for(var a=this,c="",d=this.index,e,f,g,h;this.index<this.text.length;){h=this.text.charAt(this.index);if("."===h||this.isIdent(h)||this.isNumber(h))"."===h&&(e=this.index),c+=h;else break;this.index++}if(e)for(f=this.index;f<this.text.length;){h=this.text.charAt(f);if("("===h){g=c.substr(e-d+1);c=c.substr(0,e-d);this.index=f;break}if(this.isWhitespace(h))f++;else break}d={index:d,text:c};if(gb.hasOwnProperty(c))d.fn=gb[c],d.literal=!0,d.constant=!0;else{var k=Ec(c,this.options,this.text);d.fn=F(function(a,c){return k(a,c)},{assign:function(d,e){return tb(d,c,e,a.text,a.options)}})}this.tokens.push(d);g&&(this.tokens.push({index:e,text:"."}),this.tokens.push({index:e+1,text:g}))},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,f=!1;this.index<this.text.length;){var g=this.text.charAt(this.index),e=e+g;if(f)"u"===g?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d+=Ve[g]||g,f=!1;else if("\\"===g)f=!0;else{if(g===a){this.index++;this.tokens.push({index:c,text:e,string:d,literal:!0,constant:!0,fn:function(){return d}});return}d+=g}this.index++}this.throwError("Unterminated quote",c)}};var fb=function(a,c,d){this.lexer=a;this.$filter=c;this.options=d};fb.ZERO=F(function(){return 0},{constant:!0});fb.prototype={constructor:fb,parse:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.statements();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);a.literal=!!a.literal;a.constant=!!a.constant;return a},primary:function(){var a;if(this.expect("("))a=this.filterChain(),this.consume(")");else if(this.expect("["))a=this.arrayDeclaration();else if(this.expect("{"))a=this.object();else{var c=this.expect();(a=c.fn)||this.throwError("not a primary expression",c);a.literal=!!c.literal;a.constant=!!c.constant}for(var d;c=this.expect("(","[",".");)"("===c.text?(a=this.functionCall(a,d),d=null):"["===c.text?(d=a,a=this.objectIndex(a)):"."===c.text?(d=a,a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a},throwError:function(a,c){throw ea("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},peekToken:function(){if(0===this.tokens.length)throw ea("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){if(0<this.tokens.length){var f=this.tokens[0],g=f.text;if(g===a||g===c||g===d||g===e||!(a||c||d||e))return f}return!1},expect:function(a,c,d,e){return(a=this.peek(a,c,d,e))?(this.tokens.shift(),a):!1},consume:function(a){this.expect(a)||this.throwError("is unexpected, expecting ["+a+"]",this.peek())},unaryFn:function(a,c){return F(function(d,e){return a(d,e,c)},{constant:c.constant})},ternaryFn:function(a,c,d){return F(function(e,f){return a(e,f)?c(e,f):d(e,f)},{constant:a.constant&&c.constant&&d.constant})},binaryFn:function(a,c,d){return F(function(e,f){return c(e,f,a,d)},{constant:a.constant&&d.constant})},statements:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";"))return 1===a.length?a[0]:function(c,d){for(var e,f=0;f<a.length;f++){var g=a[f];g&&(e=g(c,d))}return e}},filterChain:function(){for(var a=this.expression(),c;;)if(c=this.expect("|"))a=this.binaryFn(a,c.fn,this.filter());else return a},filter:function(){for(var a=this.expect(),c=this.$filter(a.text),d=[];;)if(a=this.expect(":"))d.push(this.expression());else{var e=function(a,e,h){h=[h];for(var k=0;k<d.length;k++)h.push(d[k](a,e));return c.apply(a,h)};return function(){return e}}},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary(),c,d;return(d=this.expect("="))?(a.assign||this.throwError("implies assignment but ["+this.text.substring(0,d.index)+"] can not be assigned to",d),c=this.ternary(),function(d,f){return a.assign(d,c(d,f),f)}):a},ternary:function(){var a=this.logicalOR(),c,d;if(this.expect("?")){c=this.assignment();if(d=this.expect(":"))return this.ternaryFn(a,c,this.assignment());this.throwError("expected :",d)}else return a},logicalOR:function(){for(var a=this.logicalAND(),c;;)if(c=this.expect("||"))a=this.binaryFn(a,c.fn,this.logicalAND());else return a},logicalAND:function(){var a=this.equality(),c;if(c=this.expect("&&"))a=this.binaryFn(a,c.fn,this.logicalAND());return a},equality:function(){var a=this.relational(),c;if(c=this.expect("==","!=","===","!=="))a=this.binaryFn(a,c.fn,this.equality());return a},relational:function(){var a=this.additive(),c;if(c=this.expect("<",">","<=",">="))a=this.binaryFn(a,c.fn,this.relational());return a},additive:function(){for(var a=this.multiplicative(),c;c=this.expect("+","-");)a=this.binaryFn(a,c.fn,this.multiplicative());return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a=this.binaryFn(a,c.fn,this.unary());return a},unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(fb.ZERO,a.fn,this.unary()):(a=this.expect("!"))?this.unaryFn(a.fn,this.unary()):this.primary()},fieldAccess:function(a){var c=this,d=this.expect().text,e=Ec(d,this.options,this.text);return F(function(c,d,h){return e(h||a(c,d))},{assign:function(e,g,h){(h=a(e,h))||a.assign(e,h={});return tb(h,d,g,c.text,c.options)}})},objectIndex:function(a){var c=this,d=this.expression();this.consume("]");return F(function(e,f){var g=a(e,f),h=Cc(d(e,f),c.text),k;la(h,c.text);if(!g)return v;(g=ma(g[h],c.text))&&(g.then&&c.options.unwrapPromises)&&(k=g,"$$v"in g||(k.$$v=v,k.then(function(a){k.$$v=a})),g=g.$$v);return g},{assign:function(e,f,g){var h=la(Cc(d(e,g),c.text),c.text);(g=ma(a(e,g),c.text))||a.assign(e,g={});return g[h]=f}})},functionCall:function(a,c){var d=[];if(")"!==this.peekToken().text){do d.push(this.expression());while(this.expect(","))}this.consume(")");var e=this;return function(f,g){for(var h=[],k=c?c(f,g):f,l=0;l<d.length;l++)h.push(ma(d[l](f,g),e.text));l=a(f,g,k)||B;ma(k,e.text);var m=e.text;if(l){if(l.constructor===l)throw ea("isecfn",m);if(l===Te||l===Ue||Qc&&l===Qc)throw ea("isecff",m);}h=l.apply?l.apply(k,h):l(h[0],h[1],h[2],h[3],h[4]);return ma(h,e.text)}},arrayDeclaration:function(){var a=[],c=!0;if("]"!==this.peekToken().text){do{if(this.peek("]"))break;var d=this.expression();a.push(d);d.constant||(c=!1)}while(this.expect(","))}this.consume("]");return F(function(c,d){for(var g=[],h=0;h<a.length;h++)g.push(a[h](c,d));return g},{literal:!0,constant:c})},object:function(){var a=[],c=!0;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;var d=this.expect(),d=d.string||d.text;this.consume(":");var e=this.expression();a.push({key:d,value:e});e.constant||(c=!1)}while(this.expect(","))}this.consume("}");return F(function(c,d){for(var e={},k=0;k<a.length;k++){var l=a[k];e[l.key]=l.value(c,d)}return e},{literal:!0,constant:c})}};var De={},Ce={},ya=z("$sce"),fa={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},X=W.createElement("a"),Hc=wa(V.location.href,!0);jc.$inject=["$provide"];Ic.$inject=["$locale"];Kc.$inject=["$locale"];var Nc=".",Ne={yyyy:Y("FullYear",4),yy:Y("FullYear",2,0,!0),y:Y("FullYear",1),MMMM:ub("Month"),MMM:ub("Month",!0),MM:Y("Month",2,1),M:Y("Month",1,1),dd:Y("Date",2),d:Y("Date",1),HH:Y("Hours",2),H:Y("Hours",1),hh:Y("Hours",2,-12),h:Y("Hours",1,-12),mm:Y("Minutes",2),m:Y("Minutes",1),ss:Y("Seconds",2),s:Y("Seconds",1),sss:Y("Milliseconds",3),EEEE:ub("Day"),EEE:ub("Day",!0),a:function(a,c){return 12> a getHours ( )

Definition at line 181 of file angular.min.js.

function z (   b)

Definition at line 6 of file angular.min.js.

Variable Documentation

is __pad0__

Definition at line 164 of file angular.min.js.

is peek

Definition at line 164 of file angular.min.js.

function V

Definition at line 6 of file angular.min.js.

function v {'use strict'

Definition at line 6 of file angular.min.js.

function W

Definition at line 6 of file angular.min.js.

is was

Definition at line 164 of file angular.min.js.