rails-angularjs 1.3.12 → 1.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/rails-angularjs/version.rb +2 -2
  4. data/vendor/assets/javascripts/{angularjs/angular-animate.js → angular-animate.js} +1 -1
  5. data/vendor/assets/javascripts/{angularjs/angular-animate.min.js → angular-animate.min.js} +1 -1
  6. data/vendor/assets/javascripts/{angularjs/angular-aria.js → angular-aria.js} +16 -6
  7. data/vendor/assets/javascripts/angular-aria.min.js +12 -0
  8. data/vendor/assets/javascripts/{angularjs/angular-cookies.js → angular-cookies.js} +1 -1
  9. data/vendor/assets/javascripts/{angularjs/angular-cookies.min.js → angular-cookies.min.js} +1 -1
  10. data/vendor/assets/javascripts/{angularjs/angular-loader.js → angular-loader.js} +2 -2
  11. data/vendor/assets/javascripts/{angularjs/angular-loader.min.js → angular-loader.min.js} +2 -2
  12. data/vendor/assets/javascripts/{angularjs/angular-messages.js → angular-messages.js} +1 -1
  13. data/vendor/assets/javascripts/{angularjs/angular-messages.min.js → angular-messages.min.js} +1 -1
  14. data/vendor/assets/javascripts/{angularjs/angular-mocks.js → angular-mocks.js} +2 -2
  15. data/vendor/assets/javascripts/{angularjs/angular-resource.js → angular-resource.js} +2 -1
  16. data/vendor/assets/javascripts/{angularjs/angular-resource.min.js → angular-resource.min.js} +1 -1
  17. data/vendor/assets/javascripts/{angularjs/angular-route.js → angular-route.js} +1 -1
  18. data/vendor/assets/javascripts/{angularjs/angular-route.min.js → angular-route.min.js} +1 -1
  19. data/vendor/assets/javascripts/{angularjs/angular-sanitize.js → angular-sanitize.js} +7 -19
  20. data/vendor/assets/javascripts/angular-sanitize.min.js +16 -0
  21. data/vendor/assets/javascripts/{angularjs/angular-scenario.js → angular-scenario.js} +89 -38
  22. data/vendor/assets/javascripts/{angularjs/angular-touch.js → angular-touch.js} +1 -1
  23. data/vendor/assets/javascripts/{angularjs/angular-touch.min.js → angular-touch.min.js} +1 -1
  24. data/vendor/assets/javascripts/{angularjs/angular.js → angular.js} +89 -38
  25. data/vendor/assets/javascripts/angular.min.js +250 -0
  26. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-animate.js +1 -1
  27. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-animate.min.js +1 -1
  28. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-aria.js +16 -6
  29. data/vendor/assets/javascripts/unstable/angular-aria.min.js +12 -0
  30. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-cookies.js +1 -1
  31. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-cookies.min.js +1 -1
  32. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-loader.js +2 -2
  33. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-loader.min.js +2 -2
  34. data/vendor/assets/javascripts/unstable/angular-messages.js +644 -0
  35. data/vendor/assets/javascripts/unstable/angular-messages.min.js +12 -0
  36. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-mocks.js +2 -2
  37. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-resource.js +3 -2
  38. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-resource.min.js +1 -1
  39. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-route.js +1 -1
  40. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-route.min.js +1 -1
  41. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-sanitize.js +12 -22
  42. data/vendor/assets/javascripts/unstable/angular-sanitize.min.js +16 -0
  43. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-scenario.js +317 -155
  44. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-touch.js +1 -1
  45. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular-touch.min.js +1 -1
  46. data/vendor/assets/javascripts/{angularjs/unstable → unstable}/angular.js +317 -155
  47. data/vendor/assets/javascripts/unstable/angular.min.js +282 -0
  48. metadata +46 -46
  49. data/vendor/assets/javascripts/angularjs/angular-aria.min.js +0 -12
  50. data/vendor/assets/javascripts/angularjs/angular-sanitize.min.js +0 -16
  51. data/vendor/assets/javascripts/angularjs/angular.min.js +0 -250
  52. data/vendor/assets/javascripts/angularjs/unstable/angular-aria.min.js +0 -12
  53. data/vendor/assets/javascripts/angularjs/unstable/angular-messages.js +0 -400
  54. data/vendor/assets/javascripts/angularjs/unstable/angular-messages.min.js +0 -10
  55. data/vendor/assets/javascripts/angularjs/unstable/angular-sanitize.min.js +0 -16
  56. data/vendor/assets/javascripts/angularjs/unstable/angular.min.js +0 -281
@@ -1,400 +0,0 @@
1
- /**
2
- * @license AngularJS v1.4.0-beta.3
3
- * (c) 2010-2015 Google, Inc. http://angularjs.org
4
- * License: MIT
5
- */
6
- (function(window, angular, undefined) {'use strict';
7
-
8
- /**
9
- * @ngdoc module
10
- * @name ngMessages
11
- * @description
12
- *
13
- * The `ngMessages` module provides enhanced support for displaying messages within templates
14
- * (typically within forms or when rendering message objects that return key/value data).
15
- * Instead of relying on JavaScript code and/or complex ng-if statements within your form template to
16
- * show and hide error messages specific to the state of an input field, the `ngMessages` and
17
- * `ngMessage` directives are designed to handle the complexity, inheritance and priority
18
- * sequencing based on the order of how the messages are defined in the template.
19
- *
20
- * Currently, the ngMessages module only contains the code for the `ngMessages`
21
- * and `ngMessage` directives.
22
- *
23
- * # Usage
24
- * The `ngMessages` directive listens on a key/value collection which is set on the ngMessages attribute.
25
- * Since the {@link ngModel ngModel} directive exposes an `$error` object, this error object can be
26
- * used with `ngMessages` to display control error messages in an easier way than with just regular angular
27
- * template directives.
28
- *
29
- * ```html
30
- * <form name="myForm">
31
- * <input type="text" ng-model="field" name="myField" required minlength="5" />
32
- * <div ng-messages="myForm.myField.$error">
33
- * <div ng-message="required">You did not enter a field</div>
34
- * <div ng-message="minlength">The value entered is too short</div>
35
- * </div>
36
- * </form>
37
- * ```
38
- *
39
- * Now whatever key/value entries are present within the provided object (in this case `$error`) then
40
- * the ngMessages directive will render the inner first ngMessage directive (depending if the key values
41
- * match the attribute value present on each ngMessage directive). In other words, if your errors
42
- * object contains the following data:
43
- *
44
- * ```javascript
45
- * <!-- keep in mind that ngModel automatically sets these error flags -->
46
- * myField.$error = { minlength : true, required : false };
47
- * ```
48
- *
49
- * Then the `required` message will be displayed first. When required is false then the `minlength` message
50
- * will be displayed right after (since these messages are ordered this way in the template HTML code).
51
- * The prioritization of each message is determined by what order they're present in the DOM.
52
- * Therefore, instead of having custom JavaScript code determine the priority of what errors are
53
- * present before others, the presentation of the errors are handled within the template.
54
- *
55
- * By default, ngMessages will only display one error at a time. However, if you wish to display all
56
- * messages then the `ng-messages-multiple` attribute flag can be used on the element containing the
57
- * ngMessages directive to make this happen.
58
- *
59
- * ```html
60
- * <div ng-messages="myForm.myField.$error" ng-messages-multiple>...</div>
61
- * ```
62
- *
63
- * ## Reusing and Overriding Messages
64
- * In addition to prioritization, ngMessages also allows for including messages from a remote or an inline
65
- * template. This allows for generic collection of messages to be reused across multiple parts of an
66
- * application.
67
- *
68
- * ```html
69
- * <script type="text/ng-template" id="error-messages">
70
- * <div ng-message="required">This field is required</div>
71
- * <div ng-message="minlength">This field is too short</div>
72
- * </script>
73
- * <div ng-messages="myForm.myField.$error" ng-messages-include="error-messages"></div>
74
- * ```
75
- *
76
- * However, including generic messages may not be useful enough to match all input fields, therefore,
77
- * `ngMessages` provides the ability to override messages defined in the remote template by redefining
78
- * them within the directive container.
79
- *
80
- * ```html
81
- * <!-- a generic template of error messages known as "my-custom-messages" -->
82
- * <script type="text/ng-template" id="my-custom-messages">
83
- * <div ng-message="required">This field is required</div>
84
- * <div ng-message="minlength">This field is too short</div>
85
- * </script>
86
- *
87
- * <form name="myForm">
88
- * <input type="email"
89
- * id="email"
90
- * name="myEmail"
91
- * ng-model="email"
92
- * minlength="5"
93
- * required />
94
- *
95
- * <div ng-messages="myForm.myEmail.$error" ng-messages-include="my-custom-messages">
96
- * <!-- this required message has overridden the template message -->
97
- * <div ng-message="required">You did not enter your email address</div>
98
- *
99
- * <!-- this is a brand new message and will appear last in the prioritization -->
100
- * <div ng-message="email">Your email address is invalid</div>
101
- * </div>
102
- * </form>
103
- * ```
104
- *
105
- * In the example HTML code above the message that is set on required will override the corresponding
106
- * required message defined within the remote template. Therefore, with particular input fields (such
107
- * email addresses, date fields, autocomplete inputs, etc...), specialized error messages can be applied
108
- * while more generic messages can be used to handle other, more general input errors.
109
- *
110
- * ## Animations
111
- * If the `ngAnimate` module is active within the application then both the `ngMessages` and
112
- * `ngMessage` directives will trigger animations whenever any messages are added and removed
113
- * from the DOM by the `ngMessages` directive.
114
- *
115
- * Whenever the `ngMessages` directive contains one or more visible messages then the `.ng-active` CSS
116
- * class will be added to the element. The `.ng-inactive` CSS class will be applied when there are no
117
- * messages present. Therefore, CSS transitions and keyframes as well as JavaScript animations can
118
- * hook into the animations whenever these classes are added/removed.
119
- *
120
- * Let's say that our HTML code for our messages container looks like so:
121
- *
122
- * ```html
123
- * <div ng-messages="myMessages" class="my-messages">
124
- * <div ng-message="alert" class="some-message">...</div>
125
- * <div ng-message="fail" class="some-message">...</div>
126
- * </div>
127
- * ```
128
- *
129
- * Then the CSS animation code for the message container looks like so:
130
- *
131
- * ```css
132
- * .my-messages {
133
- * transition:1s linear all;
134
- * }
135
- * .my-messages.ng-active {
136
- * // messages are visible
137
- * }
138
- * .my-messages.ng-inactive {
139
- * // messages are hidden
140
- * }
141
- * ```
142
- *
143
- * Whenever an inner message is attached (becomes visible) or removed (becomes hidden) then the enter
144
- * and leave animation is triggered for each particular element bound to the `ngMessage` directive.
145
- *
146
- * Therefore, the CSS code for the inner messages looks like so:
147
- *
148
- * ```css
149
- * .some-message {
150
- * transition:1s linear all;
151
- * }
152
- *
153
- * .some-message.ng-enter {}
154
- * .some-message.ng-enter.ng-enter-active {}
155
- *
156
- * .some-message.ng-leave {}
157
- * .some-message.ng-leave.ng-leave-active {}
158
- * ```
159
- *
160
- * {@link ngAnimate Click here} to learn how to use JavaScript animations or to learn more about ngAnimate.
161
- */
162
- angular.module('ngMessages', [])
163
-
164
- /**
165
- * @ngdoc directive
166
- * @module ngMessages
167
- * @name ngMessages
168
- * @restrict AE
169
- *
170
- * @description
171
- * `ngMessages` is a directive that is designed to show and hide messages based on the state
172
- * of a key/value object that it listens on. The directive itself compliments error message
173
- * reporting with the `ngModel` $error object (which stores a key/value state of validation errors).
174
- *
175
- * `ngMessages` manages the state of internal messages within its container element. The internal
176
- * messages use the `ngMessage` directive and will be inserted/removed from the page depending
177
- * on if they're present within the key/value object. By default, only one message will be displayed
178
- * at a time and this depends on the prioritization of the messages within the template. (This can
179
- * be changed by using the ng-messages-multiple on the directive container.)
180
- *
181
- * A remote template can also be used to promote message reusability and messages can also be
182
- * overridden.
183
- *
184
- * {@link module:ngMessages Click here} to learn more about `ngMessages` and `ngMessage`.
185
- *
186
- * @usage
187
- * ```html
188
- * <!-- using attribute directives -->
189
- * <ANY ng-messages="expression">
190
- * <ANY ng-message="keyValue1">...</ANY>
191
- * <ANY ng-message="keyValue2">...</ANY>
192
- * <ANY ng-message="keyValue3">...</ANY>
193
- * </ANY>
194
- *
195
- * <!-- or by using element directives -->
196
- * <ng-messages for="expression">
197
- * <ng-message when="keyValue1">...</ng-message>
198
- * <ng-message when="keyValue2">...</ng-message>
199
- * <ng-message when="keyValue3">...</ng-message>
200
- * </ng-messages>
201
- * ```
202
- *
203
- * @param {string} ngMessages an angular expression evaluating to a key/value object
204
- * (this is typically the $error object on an ngModel instance).
205
- * @param {string=} ngMessagesMultiple|multiple when set, all messages will be displayed with true
206
- * @param {string=} ngMessagesInclude|include when set, the specified template will be included into the ng-messages container
207
- *
208
- * @example
209
- * <example name="ngMessages-directive" module="ngMessagesExample"
210
- * deps="angular-messages.js"
211
- * animations="true" fixBase="true">
212
- * <file name="index.html">
213
- * <form name="myForm">
214
- * <label>Enter your name:</label>
215
- * <input type="text"
216
- * name="myName"
217
- * ng-model="name"
218
- * ng-minlength="5"
219
- * ng-maxlength="20"
220
- * required />
221
- *
222
- * <pre>myForm.myName.$error = {{ myForm.myName.$error | json }}</pre>
223
- *
224
- * <div ng-messages="myForm.myName.$error" style="color:maroon">
225
- * <div ng-message="required">You did not enter a field</div>
226
- * <div ng-message="minlength">Your field is too short</div>
227
- * <div ng-message="maxlength">Your field is too long</div>
228
- * </div>
229
- * </form>
230
- * </file>
231
- * <file name="script.js">
232
- * angular.module('ngMessagesExample', ['ngMessages']);
233
- * </file>
234
- * </example>
235
- */
236
- .directive('ngMessages', ['$compile', '$animate', '$templateRequest',
237
- function($compile, $animate, $templateRequest) {
238
- var ACTIVE_CLASS = 'ng-active';
239
- var INACTIVE_CLASS = 'ng-inactive';
240
-
241
- return {
242
- restrict: 'AE',
243
- controller: function() {
244
- this.$renderNgMessageClasses = angular.noop;
245
-
246
- var messages = [];
247
- this.registerMessage = function(index, message) {
248
- for (var i = 0; i < messages.length; i++) {
249
- if (messages[i].type == message.type) {
250
- if (index != i) {
251
- var temp = messages[index];
252
- messages[index] = messages[i];
253
- if (index < messages.length) {
254
- messages[i] = temp;
255
- } else {
256
- messages.splice(0, i); //remove the old one (and shift left)
257
- }
258
- }
259
- return;
260
- }
261
- }
262
- messages.splice(index, 0, message); //add the new one (and shift right)
263
- };
264
-
265
- this.renderMessages = function(values, multiple) {
266
- values = values || {};
267
-
268
- var found;
269
- angular.forEach(messages, function(message) {
270
- if ((!found || multiple) && truthyVal(values[message.type])) {
271
- message.attach();
272
- found = true;
273
- } else {
274
- message.detach();
275
- }
276
- });
277
-
278
- this.renderElementClasses(found);
279
-
280
- function truthyVal(value) {
281
- return value !== null && value !== false && value;
282
- }
283
- };
284
- },
285
- require: 'ngMessages',
286
- link: function($scope, element, $attrs, ctrl) {
287
- ctrl.renderElementClasses = function(bool) {
288
- bool ? $animate.setClass(element, ACTIVE_CLASS, INACTIVE_CLASS)
289
- : $animate.setClass(element, INACTIVE_CLASS, ACTIVE_CLASS);
290
- };
291
-
292
- //JavaScript treats empty strings as false, but ng-message-multiple by itself is an empty string
293
- var multiple = angular.isString($attrs.ngMessagesMultiple) ||
294
- angular.isString($attrs.multiple);
295
-
296
- var cachedValues, watchAttr = $attrs.ngMessages || $attrs['for']; //for is a reserved keyword
297
- $scope.$watchCollection(watchAttr, function(values) {
298
- cachedValues = values;
299
- ctrl.renderMessages(values, multiple);
300
- });
301
-
302
- var tpl = $attrs.ngMessagesInclude || $attrs.include;
303
- if (tpl) {
304
- $templateRequest(tpl)
305
- .then(function processTemplate(html) {
306
- var after, container = angular.element('<div/>').html(html);
307
- angular.forEach(container.children(), function(elm) {
308
- elm = angular.element(elm);
309
- after ? after.after(elm)
310
- : element.prepend(elm); //start of the container
311
- after = elm;
312
- $compile(elm)($scope);
313
- });
314
- ctrl.renderMessages(cachedValues, multiple);
315
- });
316
- }
317
- }
318
- };
319
- }])
320
-
321
-
322
- /**
323
- * @ngdoc directive
324
- * @name ngMessage
325
- * @restrict AE
326
- * @scope
327
- *
328
- * @description
329
- * `ngMessage` is a directive with the purpose to show and hide a particular message.
330
- * For `ngMessage` to operate, a parent `ngMessages` directive on a parent DOM element
331
- * must be situated since it determines which messages are visible based on the state
332
- * of the provided key/value map that `ngMessages` listens on.
333
- *
334
- * @usage
335
- * ```html
336
- * <!-- using attribute directives -->
337
- * <ANY ng-messages="expression">
338
- * <ANY ng-message="keyValue1">...</ANY>
339
- * <ANY ng-message="keyValue2">...</ANY>
340
- * <ANY ng-message="keyValue3">...</ANY>
341
- * </ANY>
342
- *
343
- * <!-- or by using element directives -->
344
- * <ng-messages for="expression">
345
- * <ng-message when="keyValue1">...</ng-message>
346
- * <ng-message when="keyValue2">...</ng-message>
347
- * <ng-message when="keyValue3">...</ng-message>
348
- * </ng-messages>
349
- * ```
350
- *
351
- * {@link module:ngMessages Click here} to learn more about `ngMessages` and `ngMessage`.
352
- *
353
- * @param {string} ngMessage a string value corresponding to the message key.
354
- */
355
- .directive('ngMessage', ['$animate', function($animate) {
356
- var COMMENT_NODE = 8;
357
- return {
358
- require: '^ngMessages',
359
- transclude: 'element',
360
- terminal: true,
361
- restrict: 'AE',
362
- link: function($scope, $element, $attrs, ngMessages, $transclude) {
363
- var index, element;
364
-
365
- var commentNode = $element[0];
366
- var parentNode = commentNode.parentNode;
367
- for (var i = 0, j = 0; i < parentNode.childNodes.length; i++) {
368
- var node = parentNode.childNodes[i];
369
- if (node.nodeType == COMMENT_NODE && node.nodeValue.indexOf('ngMessage') >= 0) {
370
- if (node === commentNode) {
371
- index = j;
372
- break;
373
- }
374
- j++;
375
- }
376
- }
377
-
378
- ngMessages.registerMessage(index, {
379
- type: $attrs.ngMessage || $attrs.when,
380
- attach: function() {
381
- if (!element) {
382
- $transclude($scope, function(clone) {
383
- $animate.enter(clone, null, $element);
384
- element = clone;
385
- });
386
- }
387
- },
388
- detach: function() {
389
- if (element) {
390
- $animate.leave(element);
391
- element = null;
392
- }
393
- }
394
- });
395
- }
396
- };
397
- }]);
398
-
399
-
400
- })(window, window.angular);
@@ -1,10 +0,0 @@
1
- /*
2
- AngularJS v1.4.0-beta.3
3
- (c) 2010-2015 Google, Inc. http://angularjs.org
4
- License: MIT
5
- */
6
- (function(r,f,s){'use strict';f.module("ngMessages",[]).directive("ngMessages",["$compile","$animate","$templateRequest",function(q,k,l){return{restrict:"AE",controller:function(){this.$renderNgMessageClasses=f.noop;var b=[];this.registerMessage=function(d,a){for(var c=0;c<b.length;c++)if(b[c].type==a.type){if(d!=c){var g=b[d];b[d]=b[c];d<b.length?b[c]=g:b.splice(0,c)}return}b.splice(d,0,a)};this.renderMessages=function(d,a){d=d||{};var c;f.forEach(b,function(b){var e;if(e=!c||a)e=d[b.type],e=null!==
7
- e&&!1!==e&&e;e?(b.attach(),c=!0):b.detach()});this.renderElementClasses(c)}},require:"ngMessages",link:function(b,d,a,c){c.renderElementClasses=function(b){b?k.setClass(d,"ng-active","ng-inactive"):k.setClass(d,"ng-inactive","ng-active")};var g=f.isString(a.ngMessagesMultiple)||f.isString(a.multiple),e;b.$watchCollection(a.ngMessages||a["for"],function(b){e=b;c.renderMessages(b,g)});(a=a.ngMessagesInclude||a.include)&&l(a).then(function(a){var h;a=f.element("<div/>").html(a);f.forEach(a.children(),
8
- function(a){a=f.element(a);h?h.after(a):d.prepend(a);h=a;q(a)(b)});c.renderMessages(e,g)})}}}]).directive("ngMessage",["$animate",function(f){return{require:"^ngMessages",transclude:"element",terminal:!0,restrict:"AE",link:function(k,l,b,d,a){for(var c,g,e=l[0],n=e.parentNode,h=0,p=0;h<n.childNodes.length;h++){var m=n.childNodes[h];if(8==m.nodeType&&0<=m.nodeValue.indexOf("ngMessage")){if(m===e){c=p;break}p++}}d.registerMessage(c,{type:b.ngMessage||b.when,attach:function(){g||a(k,function(a){f.enter(a,
9
- null,l);g=a})},detach:function(){g&&(f.leave(g),g=null)}})}}}])})(window,window.angular);
10
- //# sourceMappingURL=angular-messages.min.js.map
@@ -1,16 +0,0 @@
1
- /*
2
- AngularJS v1.4.0-beta.3
3
- (c) 2010-2015 Google, Inc. http://angularjs.org
4
- License: MIT
5
- */
6
- (function(n,h,p){'use strict';function E(a){var d=[];s(d,h.noop).chars(a);return d.join("")}function g(a){var d={};a=a.split(",");var c;for(c=0;c<a.length;c++)d[a[c]]=!0;return d}function F(a,d){function c(a,b,c,l){b=h.lowercase(b);if(t[b])for(;f.last()&&u[f.last()];)e("",f.last());v[b]&&f.last()==b&&e("",b);(l=w[b]||!!l)||f.push(b);var m={};c.replace(G,function(a,b,d,c,e){m[b]=r(d||c||e||"")});d.start&&d.start(b,m,l)}function e(a,b){var c=0,e;if(b=h.lowercase(b))for(c=f.length-1;0<=c&&f[c]!=b;c--);
7
- if(0<=c){for(e=f.length-1;e>=c;e--)d.end&&d.end(f[e]);f.length=c}}"string"!==typeof a&&(a=null===a||"undefined"===typeof a?"":""+a);var b,k,f=[],m=a,l;for(f.last=function(){return f[f.length-1]};a;){l="";k=!0;if(f.last()&&x[f.last()])a=a.replace(new RegExp("(.*)<\\s*\\/\\s*"+f.last()+"[^>]*>","i"),function(a,b){b=b.replace(H,"$1").replace(I,"$1");d.chars&&d.chars(r(b));return""}),e("",f.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e",b)===b&&(d.comment&&d.comment(a.substring(4,
8
- b)),a=a.substring(b+3),k=!1);else if(y.test(a)){if(b=a.match(y))a=a.replace(b[0],""),k=!1}else if(J.test(a)){if(b=a.match(z))a=a.substring(b[0].length),b[0].replace(z,e),k=!1}else K.test(a)&&((b=a.match(A))?(b[4]&&(a=a.substring(b[0].length),b[0].replace(A,c)),k=!1):(l+="<",a=a.substring(1)));k&&(b=a.indexOf("<"),l+=0>b?a:a.substring(0,b),a=0>b?"":a.substring(b),d.chars&&d.chars(r(l)))}if(a==m)throw L("badparse",a);m=a}e()}function r(a){if(!a)return"";var d=M.exec(a);a=d[1];var c=d[3];if(d=d[2])q.innerHTML=
9
- d.replace(/</g,"&lt;"),d="textContent"in q?q.textContent:q.innerText;return a+d+c}function B(a){return a.replace(/&/g,"&amp;").replace(N,function(a){var c=a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(c-55296)+(a-56320)+65536)+";"}).replace(O,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(a,d){var c=!1,e=h.bind(a,a.push);return{start:function(a,k,f){a=h.lowercase(a);!c&&x[a]&&(c=a);c||!0!==C[a]||(e("<"),e(a),h.forEach(k,function(c,f){var k=
10
- h.lowercase(f),g="img"===a&&"src"===k||"background"===k;!0!==P[k]||!0===D[k]&&!d(c,g)||(e(" "),e(f),e('="'),e(B(c)),e('"'))}),e(f?"/>":">"))},end:function(a){a=h.lowercase(a);c||!0!==C[a]||(e("</"),e(a),e(">"));a==c&&(c=!1)},chars:function(a){c||e(B(a))}}}var L=h.$$minErr("$sanitize"),A=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,z=/^<\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^</,
11
- J=/^<\//,H=/\x3c!--(.*?)--\x3e/g,y=/<!DOCTYPE([^>]*?)>/i,I=/<!\[CDATA\[(.*?)]]\x3e/g,N=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,O=/([^\#-~| |!])/g,w=g("area,br,col,hr,img,wbr");n=g("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");p=g("rp,rt");var v=h.extend({},p,n),t=h.extend({},n,g("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),u=h.extend({},p,g("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"));
12
- n=g("animate,animateColor,animateMotion,animateTransform,circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,set,stop,svg,switch,text,title,tspan,use");var x=g("script,style"),C=h.extend({},w,t,u,v,n),D=g("background,cite,href,longdesc,src,usemap,xlink:href");n=g("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,size,span,start,summary,target,title,type,valign,value,vspace,width");
13
- p=g("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan");
14
- var P=h.extend({},D,p,n),q=document.createElement("pre"),M=/^(\s*)([\s\S]*?)(\s*)$/;h.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(a){return function(d){var c=[];F(d,s(c,function(c,b){return!/^unsafe/.test(a(c,b))}));return c.join("")}}]});h.module("ngSanitize").filter("linky",["$sanitize",function(a){var d=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/,c=/^mailto:/;return function(e,b){function k(a){a&&g.push(E(a))}
15
- function f(a,c){g.push("<a ");h.isDefined(b)&&g.push('target="',b,'" ');g.push('href="',a.replace(/"/g,"&quot;"),'">');k(c);g.push("</a>")}if(!e)return e;for(var m,l=e,g=[],n,p;m=l.match(d);)n=m[0],m[2]||m[4]||(n=(m[3]?"http://":"mailto:")+n),p=m.index,k(l.substr(0,p)),f(n,m[0].replace(c,"")),l=l.substring(p+m[0].length);k(l);return a(g.join(""))}}])})(window,window.angular);
16
- //# sourceMappingURL=angular-sanitize.min.js.map