diff --git a/.gitignore b/.gitignore index 55ad84c2..c822c282 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,17 @@ temp node_modules libpeerconnection.log +dist/angular-leaflet-directive.ngmin.js +dist/angular-leaflet-directive.pre.js +dist/angular-leaflet-directive.min.no-header.js +js/angular-leaflet-directive-webpage.ngmin.js *.swp .*.swp *.iml .idea - +.project +node_modules +coverage/*.json +coverage/**/lcov.info +selenium +saucelabs.json diff --git a/CHANGELOG b/CHANGELOG deleted file mode 100644 index 022eecfe..00000000 --- a/CHANGELOG +++ /dev/null @@ -1,23 +0,0 @@ -angular-leaflet-directive (0.5.1) -* fix: wrap marker click event broadcast in scope apply - -angular-leaflet-directive (0.5.0) -* add options for setting doubleClickZoom -* add options for setting callbacks on map events - -angular-leaflet-directive (0.4.0) -* broadcast marker click event - -angular-leaflet-directive (0.3.3) -* add binding for main marker -* add minZoom option - -angular-leaflet-directive (0.3.2) -* add binding for markers' icons - -angular-leaflet-directive (0.3.1) -* add width, height attributes -* support for boundingbox binding - -angular-leaflet-directive (0.3) -* Add multiple paths binding support. Now path attribute is discarded and paths should be used instead. See path-example.html for more details. diff --git a/Gruntfile.js b/Gruntfile.js index 349e1a12..385677d6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -8,7 +8,7 @@ module.exports = function(grunt) { }, dist: { files: { - 'dist/<%= pkg.name %>.min.js': ['src/angular-leaflet-directive.js'] + 'js/<%= pkg.name %>.min.js': ['js/angular-leaflet-directive-webpage.ngmin.js'] } } }, @@ -30,54 +30,46 @@ module.exports = function(grunt) { unused: false, browser: true, globals: { + app: true, angular: true, module: true, + console: true, L: true, } }, source: { - src: ['src/angular-leaflet-directive.js'] - }, - tests: { - src: ['test/unit/*.js', 'test/e2e/*.js'], + src: ['src/app.js', 'src/controllers/*.js'] }, grunt: { src: ['Gruntfile.js'] } }, - connect: { - options: { - port: 8000, - base: './' - }, - server: { - options: { - keepalive: true - } - }, - testserver: {} + ngmin: { + directives: { + expand: true, + cwd: 'js', + src: ['angular-leaflet-directive-webpage.js'], + dest: 'js', + ext: '.ngmin.js', + flatten: 'js/' + } }, - karma: { - unit: { - configFile: 'config/karma.conf.js', - //autoWatch: true - //singleRun: false - }, - e2e: { - configFile: 'config/karma-e2e.conf.js' + concat: { + options: { + //separator: ';', + banner: '(function (angular) {\n', + footer: '})(window.angular);' }, - background: { - configFile: 'config/karma.conf.js', - background: true, - autoWatch: false, - singleRun: false, - browsers: ['PhantomJS'] + dist: { + src: ['src/app.js', 'src/controllers/*.js'], + dest: 'js/angular-leaflet-directive-webpage.js', } }, + watch: { source: { - files: ['src/angular-leaflet-directive.js', 'test/unit/*.js', 'test/e2e/*.js'], - tasks: [ 'karma:background:run', 'jshint', 'uglify' ] + files: ['src/app.js', 'src/controllers/*.js'], + tasks: ['jshint', 'concat', 'ngmin', 'uglify'] }, grunt: { files: ['Gruntfile.js'], @@ -88,13 +80,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-karma'); + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-ngmin'); - grunt.registerTask('test:e2e', ['connect:testserver', 'karma:e2e']); - grunt.registerTask('test', ['karma:unit', 'test:e2e']); - grunt.registerTask('server', ['connect:server']); - grunt.registerTask('default', ['karma:background', 'watch']); + grunt.registerTask('build', ['jshint', 'concat', 'ngmin', 'uglify']); + grunt.registerTask('default', ['build']); }; diff --git a/README.md b/README.md deleted file mode 100644 index 271d7e85..00000000 --- a/README.md +++ /dev/null @@ -1,96 +0,0 @@ -# angular-leaflet-directive - -[AngularJS](http://angularjs.org/) directive for the Leaflet Javascript -Library. This software aims to easily embed maps managed by leaflet on your -[Leaflet](http://leaflet.cloudmade.com) project. - -See some basic examples: - -* [Basic example](http://tombatossals.github.io/angular-leaflet-directive/examples/simple-example.html) -* [Custom parameters example](http://tombatossals.github.io/angular-leaflet-directive/examples/custom-parameters-example.html) -* [Markers example](http://tombatossals.github.io/angular-leaflet-directive/examples/markers-example.html) -* [Polyline example](http://tombatossals.github.io/angular-leaflet-directive/examples/path-example.html) -* [Tile changer example](http://tombatossals.github.io/angular-leaflet-directive/examples/tiles-example.html) -* [Legend example](http://tombatossals.github.io/angular-leaflet-directive/examples/legend-example.html) -* [GeoJson example](http://tombatossals.github.io/angular-leaflet-directive/examples/geojson-example.html) -* [Layers example](http://tombatossals.github.io/angular-leaflet-directive/examples/layers-example.html) -* [Events example](http://tombatossals.github.io/angular-leaflet-directive/examples/events-example.html) -* [Overlays example](http://tombatossals.github.io/angular-leaflet-directive/examples/overlays-example.html) - - -To see it in action, go to the main page where you can find more examples and -some documentation: - - * http://tombatossals.github.com/angular-leaflet-directive - - -## How to use it - -You must include the leaflet-directive dependency on your angular module: -``` -var app = angular.module("demoapp", ["leaflet-directive"]); -``` - -After that, you can change the default values of the directive (if you want) on -your angular controller. For example, you can change the tiles source, the -maxzoom on the leaflet map or the polyline path properties. - -```javascript -angular.extend($scope, { - defaults: { - tileLayer: "http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png", - maxZoom: 14, - path: { - weight: 10, - color: '#800000', - opacity: 1 - } - } -}); -``` - -If you want to set the start of the map to a precise position, you can define -the "center" property of the scope (lat, lng, zoom). It will be updated -interacting on the scope and on the leaflet map in two-way binding. Example: -```javascript -angular.extend($scope, { - center: { - lat: 51.505, - lng: -0.09, - zoom: 8 - } -}); - -``` -Finally, you must include the markup directive on your HTML page, like this: -```html - -``` - - -## How to contribute - -You can use grunt/karma to test your code, and grunt/jshint to lint your code. -First, make sure you have npm and grunt-cli installed globally. - -``` -# Inside the project dir, install the dependencies -$ npm install - -# Set the PATH for the binaries of grunt -$ export PATH=$PATH:node_modules/.bin - -# JSHINT -$ grunt jshint -Running "jshint:files" (jshint) task ->> 2 files lint free. - -Done, without errors. - -# KARMA -$ grunt karma -Running "karma:unit" (karma) task -INFO [karma]: Karma server started at http://localhost:9018/ -INFO [launcher]: Starting browser PhantomJS -INFO [PhantomJS 1.9 (Linux)]: Connected on socket id y6MlOmYdWFtvS-F83ZHu -PhantomJS 1.9 (Linux): Executed 8 of 8 SUCCESS (0.438 secs / 0.137 secs) diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..3766ed5d --- /dev/null +++ b/bower.json @@ -0,0 +1,64 @@ +{ + "name": "angular-leaflet-directive", + "author": "https://github.com/tombatossals/angular-leaflet-directive/graphs/contributors", + "description": "angular-leaflet-directive - An AngularJS directive to easily interact with Leaflet maps", + "version": "0.9.5", + "homepage": "http://tombatossals.github.io/angular-leaflet-directive/", + "keywords": [ + "angularjs", + "javascript", + "directive", + "leaflet" + ], + "main": [ + "dist/angular-leaflet-directive.js" + ], + "dependencies": { + "angular": "1.x", + "leaflet": "0.7.x" + }, + "devDependencies": { + "jquery": "*", + "semantic-ui": "*", + "bootstrap": "*", + "prism": "*", + "angular-route": "1.x", + "angular-animate": "1.x", + "angular-mocks": "1.x", + "leaflet.markercluster": "*", + "leaflet.draw": "*", + "Leaflet.label": "*", + "leaflet-tilelayer-geojson": "*", + "Leaflet.utfgrid": "danzel/Leaflet.utfgrid", + "Leaflet.awesome-markers": "*", + "leaflet-providers": "*", + "leaflet.vector-markers": "*", + "webgl-heatmap-leaflet": "*", + "leaflet-plugins": "*", + "esri-leaflet": "*", + "proj4": "*", + "font-awesome": "*", + "proj4leaflet": "*", + "Leaflet.MakiMarkers": "*", + "Leaflet.heat": "https://github.com/Leaflet/Leaflet.heat/archive/gh-pages.tar.gz", + "Leaflet.ExtraMarkers": "https://github.com/coryasilva/Leaflet.ExtraMarkers/archive/v1.0.2.tar.gz", + "Leaflet.fullscreen": "http://github.com/Leaflet/Leaflet.fullscreen/archive/v0.0.4.tar.gz", + "Leaflet.PolylineDecorator": "bbecquet/Leaflet.PolylineDecorator", + "ionrangeslider": "*", + "leaflet-minimap": "*", + "esri-leaflet-clustered-feature-layer": "~1.0.x", + "esri-leaflet-heatmap-feature-layer": "~1.0.x", + "leaflet-search": "*" + }, + "ignore": [ + "**/.*", + "src", + "doc", + "examples", + "test", + "*.md", + "Gruntfile.js", + "package.json", + "bower.json" + ] +} diff --git a/bower_components/Leaflet.ExtraMarkers/.bower.json b/bower_components/Leaflet.ExtraMarkers/.bower.json new file mode 100644 index 00000000..4930b1e1 --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/.bower.json @@ -0,0 +1,37 @@ +{ + "name": "Leafet.extra-markers", + "version": "1.0.2", + "homepage": "https://github.com/coryasilva/Leaflet.ExtraMarkers", + "authors": [ + "Cory Silva" + ], + "description": "Custom Markers for Leaflet JS based on Awesome Markers", + "main": [ + "src/leaflet.awesome-markers.css", + "src/leaflet.awesome-markers.less", + "src/leaflet.awesome-markers.js" + ], + "license": "MIT", + "ignore": [ + "gh-pages", + ".bowerrc", + ".gitignore", + ".jshintignore", + ".jshintrc", + "bower.json", + "gruntfile.js", + "package.json", + "README.md" + ], + "dependencies": {}, + "devDependencies": {}, + "_cacheHeaders": { + "ETag": "\"936e96cc208811fefb340c4b45e49e430ebba02b\"", + "Content-Type": "application/x-gzip", + "Content-Disposition": "attachment; filename=Leaflet.ExtraMarkers-1.0.2.tar.gz" + }, + "_release": "e-tag:936e96cc2", + "_source": "https://github.com/coryasilva/Leaflet.ExtraMarkers/archive/v1.0.2.tar.gz", + "_target": "*", + "_originalSource": "https://github.com/coryasilva/Leaflet.ExtraMarkers/archive/v1.0.2.tar.gz" +} \ No newline at end of file diff --git a/bower_components/Leaflet.ExtraMarkers/LICENSE b/bower_components/Leaflet.ExtraMarkers/LICENSE new file mode 100644 index 00000000..c45fecdd --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 coryasilva + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/bower_components/Leaflet.ExtraMarkers/bower.json b/bower_components/Leaflet.ExtraMarkers/bower.json new file mode 100644 index 00000000..ae389031 --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/bower.json @@ -0,0 +1,30 @@ +{ + "name": "Leafet.extra-markers", + "version": "1.0.2", + "homepage": "https://github.com/coryasilva/Leaflet.ExtraMarkers", + "authors": [ + "Cory Silva" + ], + "description": "Custom Markers for Leaflet JS based on Awesome Markers", + "main": [ + "src/leaflet.awesome-markers.css", + "src/leaflet.awesome-markers.less", + "src/leaflet.awesome-markers.js" + ], + "license": "MIT", + "ignore": [ + "gh-pages", + ".bowerrc", + ".gitignore", + ".jshintignore", + ".jshintrc", + "bower.json", + "gruntfile.js", + "package.json", + "README.md" + ], + "dependencies": { + }, + "devDependencies": { + } +} diff --git a/bower_components/Leaflet.ExtraMarkers/src/images/markers_default.png b/bower_components/Leaflet.ExtraMarkers/src/images/markers_default.png new file mode 100644 index 00000000..37dea5c5 Binary files /dev/null and b/bower_components/Leaflet.ExtraMarkers/src/images/markers_default.png differ diff --git a/bower_components/Leaflet.ExtraMarkers/src/images/markers_default@2x.png b/bower_components/Leaflet.ExtraMarkers/src/images/markers_default@2x.png new file mode 100644 index 00000000..8c4c44e6 Binary files /dev/null and b/bower_components/Leaflet.ExtraMarkers/src/images/markers_default@2x.png differ diff --git a/examples/plugins/awesome-markers/images/markers-shadow.png b/bower_components/Leaflet.ExtraMarkers/src/images/markers_shadow.png similarity index 100% rename from examples/plugins/awesome-markers/images/markers-shadow.png rename to bower_components/Leaflet.ExtraMarkers/src/images/markers_shadow.png diff --git a/examples/plugins/awesome-markers/images/markers-shadow@2x.png b/bower_components/Leaflet.ExtraMarkers/src/images/markers_shadow@2x.png similarity index 100% rename from examples/plugins/awesome-markers/images/markers-shadow@2x.png rename to bower_components/Leaflet.ExtraMarkers/src/images/markers_shadow@2x.png diff --git a/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.css b/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.css new file mode 100644 index 00000000..9baa97fe --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.css @@ -0,0 +1,110 @@ +/* Version 1.0.1 */ +/* Marker setup */ +.extra-marker { + background: url('images/markers_default.png') no-repeat 0 0; + width: 35px; + height: 46px; + position:absolute; + left:0; + top:0; + display: block; + text-align: center; +} + +.extra-marker-shadow { + background: url('images/markers_shadow.png') no-repeat 0 0; + width: 36px; + height: 16px; +} + +/* Retina displays */ +@media (min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2), +(-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) { + .extra-marker { + background-image: url('images/markers_default@2x.png'); + background-size: 540px 184px; + } + .extra-marker-shadow { + background-image: url('images/markers_shadow@2x.png'); + background-size: 35px 16px; + } +} + +/* Icons */ +.extra-marker i { + color: #fff; + margin-top: 10px; + display: inline-block; + font-size: 14px; +} + +/* Semantic UI Fix */ +.extra-marker i.icon { + margin-right: 0; + opacity: 1; +} + +/* Sprites setup */ +.extra-marker-circle-red { background-position: 0 0 } +.extra-marker-circle-orange-dark { background-position: -36px 0 } +.extra-marker-circle-orange { background-position: -72px 0 } +.extra-marker-circle-yellow { background-position: -108px 0 } +.extra-marker-circle-blue-dark { background-position: -144px 0 } +.extra-marker-circle-blue { background-position: -180px 0 } +.extra-marker-circle-cyan { background-position: -216px 0 } +.extra-marker-circle-purple { background-position: -252px 0 } +.extra-marker-circle-violet { background-position: -288px 0 } +.extra-marker-circle-pink { background-position: -324px 0 } +.extra-marker-circle-green-dark { background-position: -360px 0 } +.extra-marker-circle-green { background-position: -396px 0 } +.extra-marker-circle-green-light { background-position: -432px 0 } +.extra-marker-circle-black { background-position: -468px 0 } +.extra-marker-circle-white { background-position: -504px 0 } + +.extra-marker-square-red { background-position: 0 -46px } +.extra-marker-square-orange-dark { background-position: -36px -46px } +.extra-marker-square-orange { background-position: -72px -46px } +.extra-marker-square-yellow { background-position: -108px -46px } +.extra-marker-square-blue-dark { background-position: -144px -46px } +.extra-marker-square-blue { background-position: -180px -46px } +.extra-marker-square-cyan { background-position: -216px -46px } +.extra-marker-square-purple { background-position: -252px -46px } +.extra-marker-square-violet { background-position: -288px -46px } +.extra-marker-square-pink { background-position: -324px -46px } +.extra-marker-square-green-dark { background-position: -360px -46px } +.extra-marker-square-green { background-position: -396px -46px } +.extra-marker-square-green-light { background-position: -432px -46px } +.extra-marker-square-black { background-position: -468px -46px } +.extra-marker-square-white { background-position: -504px -46px } + +.extra-marker-star-red { background-position: 0 -92px } +.extra-marker-star-orange-dark { background-position: -36px -92px } +.extra-marker-star-orange { background-position: -72px -92px } +.extra-marker-star-yellow { background-position: -108px -92px } +.extra-marker-star-blue-dark { background-position: -144px -92px } +.extra-marker-star-blue { background-position: -180px -92px } +.extra-marker-star-cyan { background-position: -216px -92px } +.extra-marker-star-purple { background-position: -252px -92px } +.extra-marker-star-violet { background-position: -288px -92px } +.extra-marker-star-pink { background-position: -324px -92px } +.extra-marker-star-green-dark { background-position: -360px -92px } +.extra-marker-star-green { background-position: -396px -92px } +.extra-marker-star-green-light { background-position: -432px -92px } +.extra-marker-star-black { background-position: -468px -92px } +.extra-marker-star-white { background-position: -504px -92px } + +.extra-marker-penta-red { background-position: 0 -138px } +.extra-marker-penta-orange-dark { background-position: -36px -138px } +.extra-marker-penta-orange { background-position: -72px -138px } +.extra-marker-penta-yellow { background-position: -108px -138px } +.extra-marker-penta-blue-dark { background-position: -144px -138px } +.extra-marker-penta-blue { background-position: -180px -138px } +.extra-marker-penta-cyan { background-position: -216px -138px } +.extra-marker-penta-purple { background-position: -252px -138px } +.extra-marker-penta-violet { background-position: -288px -138px } +.extra-marker-penta-pink { background-position: -324px -138px } +.extra-marker-penta-green-dark { background-position: -360px -138px } +.extra-marker-penta-green { background-position: -396px -138px } +.extra-marker-penta-green-light { background-position: -432px -138px } +.extra-marker-penta-black { background-position: -468px -138px } +.extra-marker-penta-white { background-position: -504px -138px } \ No newline at end of file diff --git a/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.js b/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.js new file mode 100644 index 00000000..3089f516 --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.js @@ -0,0 +1,102 @@ +/* + * Leaflet.ExtraMarkers is a near copy of Leaflet.AwesomeMarkers (c) 2012-2013, Lennard Voogdt, https://github.com/lvoogdt + * Making color changes and adding shapes are what drove me to make this copy and not a fork... + */ + +/*global L*/ + +(function (window, document, undefined) { + "use strict"; + + L.ExtraMarkers = {}; + + L.ExtraMarkers.version = '1.0.1'; + + L.ExtraMarkers.Icon = L.Icon.extend({ + options: { + iconSize: [35, 45], + iconAnchor: [17, 42], + popupAnchor: [1, -32], + shadowAnchor: [10, 12], + shadowSize: [36, 16], + className: 'extra-marker', + prefix: '', + extraClasses: '', + shape: 'circle', + icon: '', + markerColor: 'red', + iconColor: '#fff' + }, + + initialize: function (options) { + options = L.Util.setOptions(this, options); + }, + + createIcon: function () { + var div = document.createElement('div'), + options = this.options; + + if (options.icon) { + div.innerHTML = this._createInner(); + } + + if (options.bgPos) { + div.style.backgroundPosition = + (-options.bgPos.x) + 'px ' + (-options.bgPos.y) + 'px'; + } + + this._setIconStyles(div, options.shape + '-' + options.markerColor); + return div; + }, + + _createInner: function() { + var iconClass, iconSpinClass = "", iconColorClass = "", iconColorStyle = "", options = this.options; + + if(options.iconColor) { + iconColorStyle = "style='color: " + options.iconColor + "' "; + } + + return ""; + }, + + _setIconStyles: function (img, name) { + var options = this.options, + size = L.point(options[name === 'shadow' ? 'shadowSize' : 'iconSize']), + anchor; + + if (name === 'shadow') { + anchor = L.point(options.shadowAnchor || options.iconAnchor); + } else { + anchor = L.point(options.iconAnchor); + } + + if (!anchor && size) { + anchor = size.divideBy(2, true); + } + + img.className = 'extra-marker-' + name + ' ' + options.className; + + if (anchor) { + img.style.marginLeft = (-anchor.x) + 'px'; + img.style.marginTop = (-anchor.y) + 'px'; + } + + if (size) { + img.style.width = size.x + 'px'; + img.style.height = size.y + 'px'; + } + }, + + createShadow: function () { + var div = document.createElement('div'); + + this._setIconStyles(div, 'shadow'); + return div; + } + }); + + L.ExtraMarkers.icon = function (options) { + return new L.ExtraMarkers.Icon(options); + }; + +}(this, document)); diff --git a/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.less b/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.less new file mode 100644 index 00000000..1f90ca93 --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/src/leaflet.extra-markers.less @@ -0,0 +1,111 @@ +/* Version 1.0.1 */ +/* This LESS file is added for convenience */ +/* Marker setup */ +.extra-marker { + background: url('images/markers_default.png') no-repeat 0 0; + width: 35px; + height: 46px; + position:absolute; + left:0; + top:0; + display: block; + text-align: center; +} + +.extra-marker-shadow { + background: url('images/markers_shadow.png') no-repeat 0 0; + width: 36px; + height: 16px; +} + +/* Retina displays */ +@media (min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2), +(-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) { + .extra-marker { + background-image: url('images/markers_default@2x.png'); + background-size: 540px 184px; + } + .extra-marker-shadow { + background-image: url('images/markers_shadow@2x.png'); + background-size: 35px 16px; + } +} + +/* Icons */ +.extra-marker i { + color: #fff; + margin-top: 10px; + display: inline-block; + font-size: 14px; +} + +/* Semantic UI Fix */ +.extra-marker i.icon { + margin-right: 0; + opacity: 1; +} + +/* Sprites setup */ +.extra-marker-circle-red { background-position: 0 0 } +.extra-marker-circle-orange-dark { background-position: -36px 0 } +.extra-marker-circle-orange { background-position: -72px 0 } +.extra-marker-circle-yellow { background-position: -108px 0 } +.extra-marker-circle-blue-dark { background-position: -144px 0 } +.extra-marker-circle-blue { background-position: -180px 0 } +.extra-marker-circle-cyan { background-position: -216px 0 } +.extra-marker-circle-purple { background-position: -252px 0 } +.extra-marker-circle-violet { background-position: -288px 0 } +.extra-marker-circle-pink { background-position: -324px 0 } +.extra-marker-circle-green-dark { background-position: -360px 0 } +.extra-marker-circle-green { background-position: -396px 0 } +.extra-marker-circle-green-light { background-position: -432px 0 } +.extra-marker-circle-black { background-position: -468px 0 } +.extra-marker-circle-white { background-position: -504px 0 } + +.extra-marker-square-red { background-position: 0 -46px } +.extra-marker-square-orange-dark { background-position: -36px -46px } +.extra-marker-square-orange { background-position: -72px -46px } +.extra-marker-square-yellow { background-position: -108px -46px } +.extra-marker-square-blue-dark { background-position: -144px -46px } +.extra-marker-square-blue { background-position: -180px -46px } +.extra-marker-square-cyan { background-position: -216px -46px } +.extra-marker-square-purple { background-position: -252px -46px } +.extra-marker-square-violet { background-position: -288px -46px } +.extra-marker-square-pink { background-position: -324px -46px } +.extra-marker-square-green-dark { background-position: -360px -46px } +.extra-marker-square-green { background-position: -396px -46px } +.extra-marker-square-green-light { background-position: -432px -46px } +.extra-marker-square-black { background-position: -468px -46px } +.extra-marker-square-white { background-position: -504px -46px } + +.extra-marker-star-red { background-position: 0 -92px } +.extra-marker-star-orange-dark { background-position: -36px -92px } +.extra-marker-star-orange { background-position: -72px -92px } +.extra-marker-star-yellow { background-position: -108px -92px } +.extra-marker-star-blue-dark { background-position: -144px -92px } +.extra-marker-star-blue { background-position: -180px -92px } +.extra-marker-star-cyan { background-position: -216px -92px } +.extra-marker-star-purple { background-position: -252px -92px } +.extra-marker-star-violet { background-position: -288px -92px } +.extra-marker-star-pink { background-position: -324px -92px } +.extra-marker-star-green-dark { background-position: -360px -92px } +.extra-marker-star-green { background-position: -396px -92px } +.extra-marker-star-green-light { background-position: -432px -92px } +.extra-marker-star-black { background-position: -468px -92px } +.extra-marker-star-white { background-position: -504px -92px } + +.extra-marker-penta-red { background-position: 0 -138px } +.extra-marker-penta-orange-dark { background-position: -36px -138px } +.extra-marker-penta-orange { background-position: -72px -138px } +.extra-marker-penta-yellow { background-position: -108px -138px } +.extra-marker-penta-blue-dark { background-position: -144px -138px } +.extra-marker-penta-blue { background-position: -180px -138px } +.extra-marker-penta-cyan { background-position: -216px -138px } +.extra-marker-penta-purple { background-position: -252px -138px } +.extra-marker-penta-violet { background-position: -288px -138px } +.extra-marker-penta-pink { background-position: -324px -138px } +.extra-marker-penta-green-dark { background-position: -360px -138px } +.extra-marker-penta-green { background-position: -396px -138px } +.extra-marker-penta-green-light { background-position: -432px -138px } +.extra-marker-penta-black { background-position: -468px -138px } +.extra-marker-penta-white { background-position: -504px -138px } \ No newline at end of file diff --git a/bower_components/Leaflet.ExtraMarkers/src/markers.ai b/bower_components/Leaflet.ExtraMarkers/src/markers.ai new file mode 100644 index 00000000..41214e88 --- /dev/null +++ b/bower_components/Leaflet.ExtraMarkers/src/markers.ai @@ -0,0 +1,13716 @@ +%PDF-1.5 %���� +1 0 obj <>/OCGs[5 0 R 6 0 R 37 0 R 38 0 R 39 0 R 40 0 R 41 0 R 75 0 R 76 0 R 77 0 R 78 0 R 79 0 R 107 0 R 108 0 R 109 0 R 110 0 R 111 0 R 139 0 R 140 0 R 141 0 R 142 0 R 143 0 R 173 0 R 174 0 R 175 0 R 176 0 R 177 0 R 816 0 R 817 0 R 1100 0 R 1101 0 R 1638 0 R 1639 0 R 2172 0 R 2173 0 R 2706 0 R 2707 0 R 3222 0 R 3223 0 R 3738 0 R 4010 0 R 4282 0 R 4554 0 R 4826 0 R]>>/Pages 3 0 R/Type/Catalog>> endobj 2 0 obj <>stream + + + + + application/pdf + + + map markers + + + + + 2014-03-12T02:22:44-07:00 + 2014-03-12T02:22:44-07:00 + 2014-03-11T17:09:02-07:00 + Adobe Illustrator CS6 (Windows) + + + + 256 + 56 + JPEG + /9j/4AAQSkZJRgABAgEASABIAAD/7QAsUGhvdG9zaG9wIDMuMAA4QklNA+0AAAAAABAASAAAAAEA AQBIAAAAAQAB/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoK DBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8f Hx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAOAEAAwER AAIRAQMRAf/EAaIAAAAHAQEBAQEAAAAAAAAAAAQFAwIGAQAHCAkKCwEAAgIDAQEBAQEAAAAAAAAA AQACAwQFBgcICQoLEAACAQMDAgQCBgcDBAIGAnMBAgMRBAAFIRIxQVEGE2EicYEUMpGhBxWxQiPB UtHhMxZi8CRygvElQzRTkqKyY3PCNUQnk6OzNhdUZHTD0uIIJoMJChgZhJRFRqS0VtNVKBry4/PE 1OT0ZXWFlaW1xdXl9WZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+Ck5SVlpeYmZ qbnJ2en5KjpKWmp6ipqqusra6vo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NR6fN6cZdno//ADkJ+X0Nx5Wt9e0i3Ec+gRLDNDEKA2C7AAf8UHcf5JbDo9RwmjyLldn6 rglwnkfvTb8ovyyt9N/L2W31iEjUPMMYlv1Io8UZH7iMV6NGDz9nJ8MhqdQZTscgx1WsMsolH+Hk xb8vfIGpyefbu01aOtp5fkDztT4JpD8Vvxr1Vh+8+Wx65LLnBjt1dlrdfE4Rw85/Z3pR/wA5Iflv qH6fsPMWhWxmOtTR2N5bxjf643wwvt/v0fCfcf5Wa2cLeH1ukEpcQ6vST+UFlF+VSeUoSp1GFPrS XfZtQpVnqf2WP7v2TDLHcabs2gjLB4f4tiP/ADj55IuTd3fmbVYGia0kksrCGQUImQlLiQg/yGsY 9+XhlWDGRuXX9kdn8EjkkNxsP0ojzV5G1CPz5baVp6lbLWGaa3lAqsSLvOD/AMY61A91GanUdnk5 qj9MvwXOy6c+JQ5FG/8AOQP5W2+t/l9HPpMFNR8txmS0VR8UlsoHrRnxNF5j3B8c3sYiIAHIOyiK FKf/ADjR+XH+HfJp1vUIuOra+qyUYfFHadYk9udeZ/2Phkkl6dBeXsupyadINoRylkpsYz9n/g+n 3+GKH//Z + + + + + + uuid:0398f9f8-8684-4abe-920e-1f1ec06914dd + xmp.did:CEC6C77373A9E3118F80FBEE95244B91 + uuid:5D20892493BFDB11914A8590D31508C8 + proof:pdf + + uuid:86615fb0-61eb-4e71-b6ca-e49d9b698e52 + xmp.did:CDC6C77373A9E3118F80FBEE95244B91 + uuid:5D20892493BFDB11914A8590D31508C8 + proof:pdf + + + + + saved + xmp.iid:CDC6C77373A9E3118F80FBEE95244B91 + 2014-03-11T16:18:28-07:00 + Adobe Illustrator CS6 (Windows) + / + + + saved + xmp.iid:CEC6C77373A9E3118F80FBEE95244B91 + 2014-03-11T17:09:02-07:00 + Adobe Illustrator CS6 (Windows) + / + + + + + + Document + Print + + + False + True + 1 + + 1080.000000 + 368.000000 + Pixels + + + + Cyan + Magenta + Yellow + Black + + + + + + Default Swatch Group + 0 + + + + White + RGB + PROCESS + 255 + 255 + 255 + + + Black + RGB + PROCESS + 35 + 31 + 32 + + + R=112 G=176 B=68 1 + RGB + PROCESS + 112 + 176 + 68 + + + R=0 G=149 B=73 1 + RGB + PROCESS + 0 + 149 + 73 + + + R=0 G=104 B=56 1 + RGB + PROCESS + 0 + 104 + 56 + + + R=192 G=87 B=160 1 + RGB + PROCESS + 192 + 87 + 160 + + + R=144 G=39 B=142 1 + RGB + PROCESS + 144 + 39 + 142 + + + R=91 G=57 B=108 1 + RGB + PROCESS + 91 + 57 + 108 + + + R=50 G=169 B=221 1 + RGB + PROCESS + 50 + 169 + 221 + + + R=27 G=117 B=187 1 + RGB + PROCESS + 27 + 117 + 187 + + + R=40 G=98 B=115 1 + RGB + PROCESS + 40 + 98 + 115 + + + R=245 G=187 B=58 1 + RGB + PROCESS + 245 + 187 + 58 + + + R=239 G=146 B=40 1 + RGB + PROCESS + 239 + 146 + 40 + + + R=215 G=63 B=41 1 + RGB + PROCESS + 215 + 63 + 41 + + + R=162 G=51 B=55 1 + RGB + PROCESS + 162 + 51 + 55 + + + R=76 G=76 B=76 1 + RGB + PROCESS + 76 + 76 + 76 + + + + + + + + + Adobe PDF library 10.01 + + + + + + + + + + + + + + + + + + + + + + + + + +endstream endobj 3 0 obj <> endobj 8 0 obj <>/Resources<>/ExtGState<>/Properties<>/XObject<>>>/Thumb 304 0 R/TrimBox[0.0 0.0 540.0 184.0]/Type/Page>> endobj 819 0 obj <>/Resources<>/ExtGState<>/Properties<>/XObject<>>>/TrimBox[0.0 0.0 1080.0 368.0]/Type/Page>> endobj 4958 0 obj <>stream +H��Kn�6��} +]�iփErO�� ���<���?�*��&��hu6�auSRKd�U�_|��yz����>G}�-@�M��ee�{��X�I �������"�\��>���O��=��y��{}#�.��:�*� ��]��B�,�� �C�c$�e�<��Y�#K�d V'�/6q�j!�!��e��,q�%+��:Q�a�eAUj�rwYRG���BV-��rjo�y�rY�����C6w1a�4° �?C����b�`E�v`|S�J 9T���Z �U#�j���\ˁ�U�������{^/l~O������&� ���3|�?H(�b �� �?C�������V�;`�,)��9c;ٳ|\-�ʤ�ZP�_������g�H�(�S1�Z��k��_���7M6ˏ�S�mG)�^R�]��!L%L��q�|(�I�Z�c���qX��Y�d�-?�6��^�dAh�%�#���|weHg.�FF���ĺ�l�ulB��蒅rZ(C��z"khA�t �,��;��"�<�C�#[t�f�U��~��5����O��p���\����u�+���������b�7�e�* : �:�êIyǺc|]��AN7��l�=�ض-������jg9�?�P�J?�����Ԝ��J�nI�u��g��ܮ$�=ƛrp����.�6#]^�MwΫ�|�Ol� A� +Z ��ܱ��!���|�5��O��"��,gP�;ћ3��Jv���������q��p�>�߇;�?v�̬��=3C��p�-�>�ښ��,���V�.�1��ُ&������&lW���m�h��#���-5��d<GP[�>ZqĔDb���ii��xK���4�U�A�A��l��dO�X�f���m����c��yҏ, � +endstream endobj 4959 0 obj <> endobj 4960 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +35 360 m +18.982 360 6 347.208 6 331.427 c +6 329.628 6.187 327.876 6.512 326.171 c +7.242 322.306 8.746 318.71 10.887 315.561 c +11.145 315.198 l +34.916 282 l +58.965 315.344 l +59.07 315.491 l +61.367 318.852 62.926 322.732 63.602 326.903 c +63.84 328.38 64 329.884 64 331.427 c +64 347.208 51.016 360 35 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 35 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4961 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 35 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4962 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +179 360 m +162.982 360 150 347.208 150 331.427 c +150 329.628 150.187 327.876 150.512 326.171 c +151.242 322.306 152.746 318.71 154.887 315.561 c +155.145 315.198 l +178.916 282 l +202.965 315.344 l +203.07 315.491 l +205.367 318.852 206.926 322.732 207.602 326.903 c +207.84 328.38 208 329.884 208 331.427 c +208 347.208 195.016 360 179 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 179 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4963 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +798 57.336 m +812.5 84 l +841.5 84 l +856 57.336 l +827 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 827 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4964 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 841.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 4965 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +1062.334 268 m +1023.666 268 l +1019.396 268 1015.934 264.508 1015.934 260.2 c +1015.934 223.15 l +1015.934 218.843 1019.396 215.35 1023.666 215.35 c +1033.334 215.35 l +1042.967 190 l +1052.666 215.35 l +1062.334 215.35 l +1066.604 215.35 1070.066 218.843 1070.066 223.15 c +1070.066 260.2 l +1070.066 264.508 1066.604 268 1062.334 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 1043 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4966 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 1062.334 268 cm +0 0 m +-38.668 0 l +-42.938 0 -46.4 -3.492 -46.4 -7.8 c +-46.4 -44.85 l +-46.4 -49.157 -42.938 -52.65 -38.668 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.668 -52.65 l +0 -52.65 l +4.27 -52.65 7.732 -49.157 7.732 -44.85 c +7.732 -7.8 l +7.732 -3.492 4.27 0 0 0 c +0 -1.975 m +3.175 -1.975 5.758 -4.588 5.758 -7.8 c +5.758 -44.85 l +5.758 -48.062 3.175 -50.676 0 -50.676 c +-9.668 -50.676 l +-11.027 -50.676 l +-11.513 -51.945 l +-19.361 -72.457 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.668 -50.676 l +-41.843 -50.676 -44.426 -48.062 -44.426 -44.85 c +-44.426 -7.8 l +-44.426 -4.588 -41.843 -1.975 -38.668 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 4967 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +1070.947 149.312 m +1064.559 155.756 l +1064.559 164.87 l +1064.559 166.871 1062.949 168.494 1060.967 168.494 c +1051.93 168.494 l +1045.541 174.938 l +1044.137 176.354 1041.863 176.354 1040.459 174.938 c +1034.07 168.494 l +1025.033 168.494 l +1023.051 168.494 1021.443 166.871 1021.443 164.87 c +1021.443 155.756 l +1015.053 149.312 l +1013.648 147.897 1013.648 145.603 1015.053 144.187 c +1021.443 137.743 l +1021.443 128.63 l +1021.443 126.628 1023.051 125.005 1025.033 125.005 c +1034.07 125.005 l +1042.922 98 l +1051.93 125.005 l +1060.967 125.005 l +1062.949 125.005 1064.559 126.628 1064.559 128.63 c +1064.559 137.743 l +1070.947 144.187 l +1072.352 145.603 1072.352 147.897 1070.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 1043 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4968 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 1043 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.967 -7.506 l +-19.949 -7.506 -21.557 -9.129 -21.557 -11.13 c +-21.557 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.557 -38.257 l +-21.557 -47.37 l +-21.557 -49.372 -19.949 -50.995 -17.967 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.967 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.967 -7.506 c +8.93 -7.506 l +2.541 -1.062 l +1.839 -0.354 0.92 0 0 0 c +0 -1.975 m +0.429 -1.975 0.834 -2.145 1.139 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.967 -9.48 l +18.858 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.858 -49.021 17.967 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.967 -49.021 l +-18.857 -49.021 -19.582 -48.28 -19.582 -47.37 c +-19.582 -38.257 l +-19.582 -37.444 l +-20.154 -36.866 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.154 -21.635 l +-19.582 -21.058 l +-19.582 -20.244 l +-19.582 -11.13 l +-19.582 -10.221 -18.857 -9.48 -17.967 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 4969 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +1014 57.336 m +1028.5 84 l +1057.5 84 l +1072 57.336 l +1043 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 1043 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4970 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 1057.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 4971 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +990.332 268 m +951.668 268 l +947.395 268 943.934 264.508 943.934 260.2 c +943.934 223.15 l +943.934 218.843 947.395 215.35 951.668 215.35 c +961.332 215.35 l +970.965 190 l +980.666 215.35 l +990.332 215.35 l +994.604 215.35 998.066 218.843 998.066 223.15 c +998.066 260.2 l +998.066 264.508 994.604 268 990.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 971 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4972 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 990.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 4973 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 179 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4974 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +998.947 149.312 m +992.559 155.756 l +992.559 164.87 l +992.559 166.871 990.949 168.494 988.965 168.494 c +979.93 168.494 l +973.539 174.938 l +972.137 176.354 969.863 176.354 968.459 174.938 c +962.07 168.494 l +953.035 168.494 l +951.051 168.494 949.441 166.871 949.441 164.87 c +949.441 155.756 l +943.053 149.312 l +941.648 147.897 941.648 145.603 943.053 144.187 c +949.441 137.743 l +949.441 128.63 l +949.441 126.628 951.051 125.005 953.035 125.005 c +962.07 125.005 l +970.922 98 l +979.93 125.005 l +988.965 125.005 l +990.949 125.005 992.559 126.628 992.559 128.63 c +992.559 137.743 l +998.947 144.187 l +1000.352 145.603 1000.352 147.897 998.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 971 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4975 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 971 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 4976 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +942 57.336 m +956.5 84 l +985.5 84 l +1000 57.336 l +971 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 971 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4977 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 985.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 4978 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +918.332 268 m +879.668 268 l +875.395 268 871.934 264.508 871.934 260.2 c +871.934 223.15 l +871.934 218.843 875.395 215.35 879.668 215.35 c +889.332 215.35 l +898.965 190 l +908.666 215.35 l +918.332 215.35 l +922.604 215.35 926.066 218.843 926.066 223.15 c +926.066 260.2 l +926.066 264.508 922.604 268 918.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 899 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4979 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 918.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 4980 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +926.947 149.312 m +920.559 155.756 l +920.559 164.87 l +920.559 166.871 918.949 168.494 916.965 168.494 c +907.93 168.494 l +901.539 174.938 l +900.137 176.354 897.863 176.354 896.459 174.938 c +890.07 168.494 l +881.035 168.494 l +879.051 168.494 877.441 166.871 877.441 164.87 c +877.441 155.756 l +871.053 149.312 l +869.648 147.897 869.648 145.603 871.053 144.187 c +877.441 137.743 l +877.441 128.63 l +877.441 126.628 879.051 125.005 881.035 125.005 c +890.07 125.005 l +898.922 98 l +907.93 125.005 l +916.965 125.005 l +918.949 125.005 920.559 126.628 920.559 128.63 c +920.559 137.743 l +926.947 144.187 l +928.352 145.603 928.352 147.897 926.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 899 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4981 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 899 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 4982 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +870 57.336 m +884.5 84 l +913.5 84 l +928 57.336 l +899 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 899 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4983 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 913.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 4984 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +467 360 m +450.982 360 438 347.208 438 331.427 c +438 329.628 438.187 327.876 438.512 326.171 c +439.242 322.306 440.746 318.71 442.887 315.561 c +443.145 315.198 l +466.916 282 l +490.965 315.344 l +491.07 315.491 l +493.367 318.852 494.926 322.732 495.602 326.903 c +495.84 328.38 496 329.884 496 331.427 c +496 347.208 483.016 360 467 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 467 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4985 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 467 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4986 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +1043 360 m +1026.982 360 1014 347.208 1014 331.427 c +1014 329.628 1014.189 327.876 1014.514 326.171 c +1015.242 322.306 1016.748 318.71 1018.887 315.561 c +1019.146 315.198 l +1042.918 282 l +1066.967 315.344 l +1067.072 315.491 l +1069.367 318.852 1070.928 322.732 1071.604 326.903 c +1071.842 328.38 1072 329.884 1072 331.427 c +1072 347.208 1059.018 360 1043 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 1043 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4987 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 1043 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.811 -32.124 -28.486 -33.829 c +-27.758 -37.694 -26.252 -41.29 -24.113 -44.439 c +-23.854 -44.802 l +-0.082 -78 l +23.967 -44.656 l +24.072 -44.509 l +26.367 -41.148 27.928 -37.268 28.604 -33.097 c +28.842 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.018 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.857 26.903 -31.234 26.654 -32.781 c +26.027 -36.648 24.61 -40.22 22.466 -43.36 c +22.365 -43.501 l +-0.076 -74.616 l +-22.248 -43.651 l +-22.493 -43.31 l +-24.513 -40.331 -25.876 -37.018 -26.546 -33.46 c +-26.868 -31.766 -27.025 -30.167 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4988 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +539 360 m +522.982 360 510 347.208 510 331.427 c +510 329.628 510.187 327.876 510.512 326.171 c +511.242 322.306 512.746 318.71 514.887 315.561 c +515.145 315.198 l +538.916 282 l +562.965 315.344 l +563.07 315.491 l +565.367 318.852 566.926 322.732 567.602 326.903 c +567.84 328.38 568 329.884 568 331.427 c +568 347.208 555.016 360 539 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 539 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4989 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 539 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4990 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +611 360 m +594.982 360 582 347.208 582 331.427 c +582 329.628 582.187 327.876 582.512 326.171 c +583.242 322.306 584.746 318.71 586.887 315.561 c +587.145 315.198 l +610.916 282 l +634.965 315.344 l +635.07 315.491 l +637.367 318.852 638.926 322.732 639.602 326.903 c +639.84 328.38 640 329.884 640 331.427 c +640 347.208 627.016 360 611 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 611 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4991 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 611 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4992 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +107 360 m +90.982 360 78 347.208 78 331.427 c +78 329.628 78.188 327.876 78.512 326.171 c +79.242 322.306 80.746 318.71 82.887 315.561 c +83.145 315.198 l +106.916 282 l +130.965 315.344 l +131.07 315.491 l +133.367 318.852 134.926 322.732 135.602 326.903 c +135.84 328.38 136 329.884 136 331.427 c +136 347.208 123.016 360 107 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 107 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4993 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +899 360 m +882.982 360 870 347.208 870 331.427 c +870 329.628 870.187 327.876 870.512 326.171 c +871.242 322.306 872.746 318.71 874.887 315.561 c +875.145 315.198 l +898.916 282 l +922.965 315.344 l +923.07 315.491 l +925.367 318.852 926.926 322.732 927.602 326.903 c +927.84 328.38 928 329.884 928 331.427 c +928 347.208 915.016 360 899 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 899 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4994 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 899 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4995 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +827 360 m +810.982 360 798 347.208 798 331.427 c +798 329.628 798.187 327.876 798.512 326.171 c +799.242 322.306 800.746 318.71 802.887 315.561 c +803.145 315.198 l +826.916 282 l +850.965 315.344 l +851.07 315.491 l +853.367 318.852 854.926 322.732 855.602 326.903 c +855.84 328.38 856 329.884 856 331.427 c +856 347.208 843.016 360 827 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 827 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4996 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 827 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4997 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +755 360 m +738.982 360 726 347.208 726 331.427 c +726 329.628 726.187 327.876 726.512 326.171 c +727.242 322.306 728.746 318.71 730.887 315.561 c +731.145 315.198 l +754.916 282 l +778.965 315.344 l +779.07 315.491 l +781.367 318.852 782.926 322.732 783.602 326.903 c +783.84 328.38 784 329.884 784 331.427 c +784 347.208 771.016 360 755 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 755 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4998 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 755 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 4999 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +683 360 m +666.982 360 654 347.208 654 331.427 c +654 329.628 654.187 327.876 654.512 326.171 c +655.242 322.306 656.746 318.71 658.887 315.561 c +659.145 315.198 l +682.916 282 l +706.965 315.344 l +707.07 315.491 l +709.367 318.852 710.926 322.732 711.602 326.903 c +711.84 328.38 712 329.884 712 331.427 c +712 347.208 699.016 360 683 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 683 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5000 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 683 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 5001 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +971 360 m +954.982 360 942 347.208 942 331.427 c +942 329.628 942.187 327.876 942.512 326.171 c +943.242 322.306 944.746 318.71 946.887 315.561 c +947.145 315.198 l +970.916 282 l +994.965 315.344 l +995.07 315.491 l +997.367 318.852 998.926 322.732 999.602 326.903 c +999.84 328.38 1000 329.884 1000 331.427 c +1000 347.208 987.016 360 971 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 971 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5002 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 971 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 5003 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 107 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 5004 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +54.332 268 m +15.668 268 l +11.395 268 7.934 264.508 7.934 260.2 c +7.934 223.15 l +7.934 218.843 11.395 215.35 15.668 215.35 c +25.332 215.35 l +34.965 190 l +44.666 215.35 l +54.332 215.35 l +58.604 215.35 62.066 218.843 62.066 223.15 c +62.066 260.2 l +62.066 264.508 58.604 268 54.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 35 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5005 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 54.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5006 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +62.947 149.312 m +56.559 155.756 l +56.559 164.87 l +56.559 166.871 54.949 168.494 52.965 168.494 c +43.93 168.494 l +37.539 174.938 l +36.137 176.354 33.863 176.354 32.459 174.938 c +26.07 168.494 l +17.035 168.494 l +15.051 168.494 13.441 166.871 13.441 164.87 c +13.441 155.756 l +7.053 149.312 l +5.648 147.897 5.648 145.603 7.053 144.187 c +13.441 137.743 l +13.441 128.63 l +13.441 126.628 15.051 125.005 17.035 125.005 c +26.07 125.005 l +34.922 98 l +43.93 125.005 l +52.965 125.005 l +54.949 125.005 56.559 126.628 56.559 128.63 c +56.559 137.743 l +62.947 144.187 l +64.352 145.603 64.352 147.897 62.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 35 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5007 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 35 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 5008 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +6 57.336 m +20.5 84 l +49.5 84 l +64 57.336 l +35 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 35 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5009 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 49.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.204 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5010 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +126.332 268 m +87.668 268 l +83.395 268 79.934 264.508 79.934 260.2 c +79.934 223.15 l +79.934 218.843 83.395 215.35 87.668 215.35 c +97.332 215.35 l +106.965 190 l +116.666 215.35 l +126.332 215.35 l +130.604 215.35 134.066 218.843 134.066 223.15 c +134.066 260.2 l +134.066 264.508 130.604 268 126.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 107 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5011 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 126.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5012 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +134.947 149.312 m +128.559 155.756 l +128.559 164.87 l +128.559 166.871 126.949 168.494 124.965 168.494 c +115.93 168.494 l +109.539 174.938 l +108.137 176.354 105.863 176.354 104.459 174.938 c +98.07 168.494 l +89.035 168.494 l +87.051 168.494 85.441 166.871 85.441 164.87 c +85.441 155.756 l +79.053 149.312 l +77.648 147.897 77.648 145.603 79.053 144.187 c +85.441 137.743 l +85.441 128.63 l +85.441 126.628 87.051 125.005 89.035 125.005 c +98.07 125.005 l +106.922 98 l +115.93 125.005 l +124.965 125.005 l +126.949 125.005 128.559 126.628 128.559 128.63 c +128.559 137.743 l +134.947 144.187 l +136.352 145.603 136.352 147.897 134.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 107 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5013 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 107 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 5014 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +395 360 m +378.982 360 366 347.208 366 331.427 c +366 329.628 366.187 327.876 366.512 326.171 c +367.242 322.306 368.746 318.71 370.887 315.561 c +371.145 315.198 l +394.916 282 l +418.965 315.344 l +419.07 315.491 l +421.367 318.852 422.926 322.732 423.602 326.903 c +423.84 328.38 424 329.884 424 331.427 c +424 347.208 411.016 360 395 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 395 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5015 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +78 57.336 m +92.5 84 l +121.5 84 l +136 57.336 l +107 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 107 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5016 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 121.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.204 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5017 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +198.332 268 m +159.668 268 l +155.395 268 151.934 264.508 151.934 260.2 c +151.934 223.15 l +151.934 218.843 155.395 215.35 159.668 215.35 c +169.332 215.35 l +178.965 190 l +188.666 215.35 l +198.332 215.35 l +202.604 215.35 206.066 218.843 206.066 223.15 c +206.066 260.2 l +206.066 264.508 202.604 268 198.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 179 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5018 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 198.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5019 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +206.947 149.312 m +200.559 155.756 l +200.559 164.87 l +200.559 166.871 198.949 168.494 196.965 168.494 c +187.93 168.494 l +181.539 174.938 l +180.137 176.354 177.863 176.354 176.459 174.938 c +170.07 168.494 l +161.035 168.494 l +159.051 168.494 157.441 166.871 157.441 164.87 c +157.441 155.756 l +151.053 149.312 l +149.648 147.897 149.648 145.603 151.053 144.187 c +157.441 137.743 l +157.441 128.63 l +157.441 126.628 159.051 125.005 161.035 125.005 c +170.07 125.005 l +178.922 98 l +187.93 125.005 l +196.965 125.005 l +198.949 125.005 200.559 126.628 200.559 128.63 c +200.559 137.743 l +206.947 144.187 l +208.352 145.603 208.352 147.897 206.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 179 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5020 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 179 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 5021 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +150 57.336 m +164.5 84 l +193.5 84 l +208 57.336 l +179 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 179 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5022 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 193.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.204 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5023 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +270.332 268 m +231.668 268 l +227.395 268 223.934 264.508 223.934 260.2 c +223.934 223.15 l +223.934 218.843 227.395 215.35 231.668 215.35 c +241.332 215.35 l +250.965 190 l +260.666 215.35 l +270.332 215.35 l +274.604 215.35 278.066 218.843 278.066 223.15 c +278.066 260.2 l +278.066 264.508 274.604 268 270.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 251 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5024 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 270.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5025 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 395 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 5026 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +278.947 149.312 m +272.559 155.756 l +272.559 164.87 l +272.559 166.871 270.949 168.494 268.965 168.494 c +259.93 168.494 l +253.539 174.938 l +252.137 176.354 249.863 176.354 248.459 174.938 c +242.07 168.494 l +233.035 168.494 l +231.051 168.494 229.441 166.871 229.441 164.87 c +229.441 155.756 l +223.053 149.312 l +221.648 147.897 221.648 145.603 223.053 144.187 c +229.441 137.743 l +229.441 128.63 l +229.441 126.628 231.051 125.005 233.035 125.005 c +242.07 125.005 l +250.922 98 l +259.93 125.005 l +268.965 125.005 l +270.949 125.005 272.559 126.628 272.559 128.63 c +272.559 137.743 l +278.947 144.187 l +280.352 145.603 280.352 147.897 278.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 251 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5027 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 251 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 5028 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +222 57.336 m +236.5 84 l +265.5 84 l +280 57.336 l +251 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 251 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5029 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 265.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.204 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5030 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +342.332 268 m +303.668 268 l +299.395 268 295.934 264.508 295.934 260.2 c +295.934 223.15 l +295.934 218.843 299.395 215.35 303.668 215.35 c +313.332 215.35 l +322.965 190 l +332.666 215.35 l +342.332 215.35 l +346.604 215.35 350.066 218.843 350.066 223.15 c +350.066 260.2 l +350.066 264.508 346.604 268 342.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 323 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5031 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 342.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5032 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +350.947 149.312 m +344.559 155.756 l +344.559 164.87 l +344.559 166.871 342.949 168.494 340.965 168.494 c +331.93 168.494 l +325.539 174.938 l +324.137 176.354 321.863 176.354 320.459 174.938 c +314.07 168.494 l +305.035 168.494 l +303.051 168.494 301.441 166.871 301.441 164.87 c +301.441 155.756 l +295.053 149.312 l +293.648 147.897 293.648 145.603 295.053 144.187 c +301.441 137.743 l +301.441 128.63 l +301.441 126.628 303.051 125.005 305.035 125.005 c +314.07 125.005 l +322.922 98 l +331.93 125.005 l +340.965 125.005 l +342.949 125.005 344.559 126.628 344.559 128.63 c +344.559 137.743 l +350.947 144.187 l +352.352 145.603 352.352 147.897 350.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 323 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5033 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 323 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 5034 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +294 57.336 m +308.5 84 l +337.5 84 l +352 57.336 l +323 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 323 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5035 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 337.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.204 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5036 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +323 360 m +306.982 360 294 347.208 294 331.427 c +294 329.628 294.187 327.876 294.512 326.171 c +295.242 322.306 296.746 318.71 298.887 315.561 c +299.145 315.198 l +322.916 282 l +346.965 315.344 l +347.07 315.491 l +349.367 318.852 350.926 322.732 351.602 326.903 c +351.84 328.38 352 329.884 352 331.427 c +352 347.208 339.016 360 323 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 323 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5037 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +414.332 268 m +375.668 268 l +371.395 268 367.934 264.508 367.934 260.2 c +367.934 223.15 l +367.934 218.843 371.395 215.35 375.668 215.35 c +385.332 215.35 l +394.965 190 l +404.666 215.35 l +414.332 215.35 l +418.604 215.35 422.066 218.843 422.066 223.15 c +422.066 260.2 l +422.066 264.508 418.604 268 414.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 395 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5038 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 414.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5039 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +422.947 149.312 m +416.559 155.756 l +416.559 164.87 l +416.559 166.871 414.949 168.494 412.965 168.494 c +403.93 168.494 l +397.539 174.938 l +396.137 176.354 393.863 176.354 392.459 174.938 c +386.07 168.494 l +377.035 168.494 l +375.051 168.494 373.441 166.871 373.441 164.87 c +373.441 155.756 l +367.053 149.312 l +365.648 147.897 365.648 145.603 367.053 144.187 c +373.441 137.743 l +373.441 128.63 l +373.441 126.628 375.051 125.005 377.035 125.005 c +386.07 125.005 l +394.922 98 l +403.93 125.005 l +412.965 125.005 l +414.949 125.005 416.559 126.628 416.559 128.63 c +416.559 137.743 l +422.947 144.187 l +424.352 145.603 424.352 147.897 422.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 395 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5040 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 395 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.429 -1.975 0 -1.975 c +f +Q + +endstream endobj 5041 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +366 57.336 m +380.5 84 l +409.5 84 l +424 57.336 l +395 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 395 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5042 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 409.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.204 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5043 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +486.332 268 m +447.668 268 l +443.395 268 439.934 264.508 439.934 260.2 c +439.934 223.15 l +439.934 218.843 443.395 215.35 447.668 215.35 c +457.332 215.35 l +466.965 190 l +476.666 215.35 l +486.332 215.35 l +490.604 215.35 494.066 218.843 494.066 223.15 c +494.066 260.2 l +494.066 264.508 490.604 268 486.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 467 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5044 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 486.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5045 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +494.947 149.312 m +488.559 155.756 l +488.559 164.87 l +488.559 166.871 486.949 168.494 484.965 168.494 c +475.93 168.494 l +469.539 174.938 l +468.137 176.354 465.863 176.354 464.459 174.938 c +458.07 168.494 l +449.035 168.494 l +447.051 168.494 445.441 166.871 445.441 164.87 c +445.441 155.756 l +439.053 149.312 l +437.648 147.897 437.648 145.603 439.053 144.187 c +445.441 137.743 l +445.441 128.63 l +445.441 126.628 447.051 125.005 449.035 125.005 c +458.07 125.005 l +466.922 98 l +475.93 125.005 l +484.965 125.005 l +486.949 125.005 488.559 126.628 488.559 128.63 c +488.559 137.743 l +494.947 144.187 l +496.352 145.603 496.352 147.897 494.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 467 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5046 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 467 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 5047 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 323 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 5048 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +438 57.336 m +452.5 84 l +481.5 84 l +496 57.336 l +467 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 467 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5049 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 481.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.796 -2.026 l +h +f +Q + +endstream endobj 5050 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +558.332 268 m +519.668 268 l +515.395 268 511.934 264.508 511.934 260.2 c +511.934 223.15 l +511.934 218.843 515.395 215.35 519.668 215.35 c +529.332 215.35 l +538.965 190 l +548.666 215.35 l +558.332 215.35 l +562.604 215.35 566.066 218.843 566.066 223.15 c +566.066 260.2 l +566.066 264.508 562.604 268 558.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 539 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5051 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 558.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5052 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +566.947 149.312 m +560.559 155.756 l +560.559 164.87 l +560.559 166.871 558.949 168.494 556.965 168.494 c +547.93 168.494 l +541.539 174.938 l +540.137 176.354 537.863 176.354 536.459 174.938 c +530.07 168.494 l +521.035 168.494 l +519.051 168.494 517.441 166.871 517.441 164.87 c +517.441 155.756 l +511.053 149.312 l +509.648 147.897 509.648 145.603 511.053 144.187 c +517.441 137.743 l +517.441 128.63 l +517.441 126.628 519.051 125.005 521.035 125.005 c +530.07 125.005 l +538.922 98 l +547.93 125.005 l +556.965 125.005 l +558.949 125.005 560.559 126.628 560.559 128.63 c +560.559 137.743 l +566.947 144.187 l +568.352 145.603 568.352 147.897 566.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 539 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5053 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 539 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 5054 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +510 57.336 m +524.5 84 l +553.5 84 l +568 57.336 l +539 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 539 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5055 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 553.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 5056 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +630.332 268 m +591.668 268 l +587.395 268 583.934 264.508 583.934 260.2 c +583.934 223.15 l +583.934 218.843 587.395 215.35 591.668 215.35 c +601.332 215.35 l +610.965 190 l +620.666 215.35 l +630.332 215.35 l +634.604 215.35 638.066 218.843 638.066 223.15 c +638.066 260.2 l +638.066 264.508 634.604 268 630.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 611 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5057 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 630.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5058 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +251 360 m +234.982 360 222 347.208 222 331.427 c +222 329.628 222.187 327.876 222.512 326.171 c +223.242 322.306 224.746 318.71 226.887 315.561 c +227.145 315.198 l +250.916 282 l +274.965 315.344 l +275.07 315.491 l +277.367 318.852 278.926 322.732 279.602 326.903 c +279.84 328.38 280 329.884 280 331.427 c +280 347.208 267.016 360 251 360 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 251 360 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5059 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +638.947 149.312 m +632.559 155.756 l +632.559 164.87 l +632.559 166.871 630.949 168.494 628.965 168.494 c +619.93 168.494 l +613.539 174.938 l +612.137 176.354 609.863 176.354 608.459 174.938 c +602.07 168.494 l +593.035 168.494 l +591.051 168.494 589.441 166.871 589.441 164.87 c +589.441 155.756 l +583.053 149.312 l +581.648 147.897 581.648 145.603 583.053 144.187 c +589.441 137.743 l +589.441 128.63 l +589.441 126.628 591.051 125.005 593.035 125.005 c +602.07 125.005 l +610.922 98 l +619.93 125.005 l +628.965 125.005 l +630.949 125.005 632.559 126.628 632.559 128.63 c +632.559 137.743 l +638.947 144.187 l +640.352 145.603 640.352 147.897 638.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 611 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5060 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 611 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 5061 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +582 57.336 m +596.5 84 l +625.5 84 l +640 57.336 l +611 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 611 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5062 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 625.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 5063 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +702.332 268 m +663.668 268 l +659.395 268 655.934 264.508 655.934 260.2 c +655.934 223.15 l +655.934 218.843 659.395 215.35 663.668 215.35 c +673.332 215.35 l +682.965 190 l +692.666 215.35 l +702.332 215.35 l +706.604 215.35 710.066 218.843 710.066 223.15 c +710.066 260.2 l +710.066 264.508 706.604 268 702.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 683 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5064 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 702.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5065 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +710.947 149.312 m +704.559 155.756 l +704.559 164.87 l +704.559 166.871 702.949 168.494 700.965 168.494 c +691.93 168.494 l +685.539 174.938 l +684.137 176.354 681.863 176.354 680.459 174.938 c +674.07 168.494 l +665.035 168.494 l +663.051 168.494 661.441 166.871 661.441 164.87 c +661.441 155.756 l +655.053 149.312 l +653.648 147.897 653.648 145.603 655.053 144.187 c +661.441 137.743 l +661.441 128.63 l +661.441 126.628 663.051 125.005 665.035 125.005 c +674.07 125.005 l +682.922 98 l +691.93 125.005 l +700.965 125.005 l +702.949 125.005 704.559 126.628 704.559 128.63 c +704.559 137.743 l +710.947 144.187 l +712.352 145.603 712.352 147.897 710.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 683 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5066 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 683 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 5067 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +654 57.336 m +668.5 84 l +697.5 84 l +712 57.336 l +683 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 683 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5068 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 697.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 5069 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 251 360 cm +0 0 m +-16.018 0 -29 -12.792 -29 -28.573 c +-29 -30.372 -28.812 -32.124 -28.488 -33.829 c +-27.758 -37.694 -26.254 -41.29 -24.113 -44.439 c +-23.855 -44.802 l +-0.084 -78 l +23.965 -44.656 l +24.07 -44.509 l +26.367 -41.148 27.926 -37.268 28.602 -33.097 c +28.84 -31.62 29 -30.116 29 -28.573 c +29 -12.792 16.016 0 0 0 c +0 -1.975 m +14.901 -1.975 27.025 -13.907 27.025 -28.573 c +27.025 -29.849 26.903 -31.226 26.652 -32.781 c +26.025 -36.652 24.607 -40.223 22.464 -43.36 c +22.363 -43.501 l +-0.078 -74.616 l +-22.246 -43.657 l +-22.48 -43.329 l +-24.505 -40.35 -25.873 -37.03 -26.548 -33.46 c +-26.864 -31.796 -27.025 -30.151 -27.025 -28.573 c +-27.025 -13.907 -14.901 -1.975 0 -1.975 c +f +Q + +endstream endobj 5070 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +774.332 268 m +735.668 268 l +731.395 268 727.934 264.508 727.934 260.2 c +727.934 223.15 l +727.934 218.843 731.395 215.35 735.668 215.35 c +745.332 215.35 l +754.965 190 l +764.666 215.35 l +774.332 215.35 l +778.604 215.35 782.066 218.843 782.066 223.15 c +782.066 260.2 l +782.066 264.508 778.604 268 774.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 755 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5071 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 774.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5072 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +782.947 149.312 m +776.559 155.756 l +776.559 164.87 l +776.559 166.871 774.949 168.494 772.965 168.494 c +763.93 168.494 l +757.539 174.938 l +756.137 176.354 753.863 176.354 752.459 174.938 c +746.07 168.494 l +737.035 168.494 l +735.051 168.494 733.441 166.871 733.441 164.87 c +733.441 155.756 l +727.053 149.312 l +725.648 147.897 725.648 145.603 727.053 144.187 c +733.441 137.743 l +733.441 128.63 l +733.441 126.628 735.051 125.005 737.035 125.005 c +746.07 125.005 l +754.922 98 l +763.93 125.005 l +772.965 125.005 l +774.949 125.005 776.559 126.628 776.559 128.63 c +776.559 137.743 l +782.947 144.187 l +784.352 145.603 784.352 147.897 782.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 755 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5073 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 755 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 5074 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +726 57.336 m +740.5 84 l +769.5 84 l +784 57.336 l +755 6 l +h +W n +q +0 g +/GS0 gs +-0.0000034 -78.0004883 -78.0004883 0.0000034 755 84 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5075 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 769.5 84 cm +0 0 m +-29 0 l +-43.5 -26.664 l +-14.5 -78 l +14.5 -26.664 l +h +-1.205 -2.026 m +12.184 -26.646 l +-14.5 -73.881 l +-41.184 -26.646 l +-27.795 -2.026 l +h +f +Q + +endstream endobj 5076 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +846.332 268 m +807.668 268 l +803.395 268 799.934 264.508 799.934 260.2 c +799.934 223.15 l +799.934 218.843 803.395 215.35 807.668 215.35 c +817.332 215.35 l +826.965 190 l +836.666 215.35 l +846.332 215.35 l +850.604 215.35 854.066 218.843 854.066 223.15 c +854.066 260.2 l +854.066 264.508 850.604 268 846.332 268 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 827 268 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5077 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 846.332 268 cm +0 0 m +-38.664 0 l +-42.938 0 -46.398 -3.492 -46.398 -7.8 c +-46.398 -44.85 l +-46.398 -49.157 -42.938 -52.65 -38.664 -52.65 c +-29 -52.65 l +-19.367 -78 l +-9.666 -52.65 l +0 -52.65 l +4.271 -52.65 7.734 -49.157 7.734 -44.85 c +7.734 -7.8 l +7.734 -3.492 4.271 0 0 0 c +0 -1.975 m +3.176 -1.975 5.76 -4.588 5.76 -7.8 c +5.76 -44.85 l +5.76 -48.062 3.176 -50.676 0 -50.676 c +-9.666 -50.676 l +-11.024 -50.676 l +-11.511 -51.944 l +-19.36 -72.458 l +-27.154 -51.949 l +-27.638 -50.676 l +-29 -50.676 l +-38.664 -50.676 l +-41.84 -50.676 -44.424 -48.062 -44.424 -44.85 c +-44.424 -7.8 l +-44.424 -4.588 -41.84 -1.975 -38.664 -1.975 c +0 -1.975 l +f +Q + +endstream endobj 5078 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +854.947 149.312 m +848.559 155.756 l +848.559 164.87 l +848.559 166.871 846.949 168.494 844.965 168.494 c +835.93 168.494 l +829.539 174.938 l +828.137 176.354 825.863 176.354 824.459 174.938 c +818.07 168.494 l +809.035 168.494 l +807.051 168.494 805.441 166.871 805.441 164.87 c +805.441 155.756 l +799.053 149.312 l +797.648 147.897 797.648 145.603 799.053 144.187 c +805.441 137.743 l +805.441 128.63 l +805.441 126.628 807.051 125.005 809.035 125.005 c +818.07 125.005 l +826.922 98 l +835.93 125.005 l +844.965 125.005 l +846.949 125.005 848.559 126.628 848.559 128.63 c +848.559 137.743 l +854.947 144.187 l +856.352 145.603 856.352 147.897 854.947 149.312 c +W n +q +0 g +/GS0 gs +-0.0000034 -78 -78 0.0000034 827 176 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 5079 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 827 176 cm +0 0 m +-0.92 0 -1.839 -0.354 -2.541 -1.062 c +-8.93 -7.506 l +-17.965 -7.506 l +-19.949 -7.506 -21.559 -9.129 -21.559 -11.13 c +-21.559 -20.244 l +-27.947 -26.687 l +-29.352 -28.103 -29.352 -30.397 -27.947 -31.812 c +-21.559 -38.257 l +-21.559 -47.37 l +-21.559 -49.372 -19.949 -50.995 -17.965 -50.995 c +-8.93 -50.995 l +-0.078 -78 l +8.93 -50.995 l +17.965 -50.995 l +19.949 -50.995 21.559 -49.372 21.559 -47.37 c +21.559 -38.257 l +27.947 -31.812 l +29.352 -30.397 29.352 -28.103 27.947 -26.687 c +21.559 -20.244 l +21.559 -11.13 l +21.559 -9.129 19.949 -7.506 17.965 -7.506 c +8.93 -7.506 l +2.539 -1.062 l +1.838 -0.354 0.919 0 0 0 c +0 -1.975 m +0.428 -1.975 0.832 -2.145 1.137 -2.452 c +7.527 -8.896 l +8.106 -9.48 l +8.93 -9.48 l +17.965 -9.48 l +18.857 -9.48 19.584 -10.221 19.584 -11.13 c +19.584 -20.244 l +19.584 -21.057 l +20.156 -21.635 l +26.546 -28.079 l +27.187 -28.725 27.187 -29.775 26.545 -30.422 c +20.156 -36.867 l +19.584 -37.444 l +19.584 -38.257 l +19.584 -47.37 l +19.584 -48.28 18.857 -49.021 17.965 -49.021 c +8.93 -49.021 l +7.507 -49.021 l +7.057 -50.37 l +-0.062 -71.709 l +-7.053 -50.38 l +-7.499 -49.021 l +-8.93 -49.021 l +-17.965 -49.021 l +-18.857 -49.021 -19.584 -48.28 -19.584 -47.37 c +-19.584 -38.257 l +-19.584 -37.444 l +-20.156 -36.867 l +-26.546 -30.421 l +-27.187 -29.775 -27.187 -28.725 -26.545 -28.078 c +-20.156 -21.635 l +-19.584 -21.057 l +-19.584 -20.244 l +-19.584 -11.13 l +-19.584 -10.221 -18.857 -9.48 -17.965 -9.48 c +-8.93 -9.48 l +-8.106 -9.48 l +-7.527 -8.896 l +-1.14 -2.453 l +-0.834 -2.145 -0.43 -1.975 0 -1.975 c +f +Q + +endstream endobj 5202 0 obj <> endobj 4832 0 obj <> endobj 4831 0 obj [/ICCBased 5203 0 R] endobj 5203 0 obj <>stream +H���yTSw�oɞ����c [���5la�QIBH�ADED���2�mtFOE�.�c��}���0��8�׎�8G�Ng�����9�w���߽����'����0 �֠�J��b�  + 2y�.-;!���K�Z� ���^�i�"L��0���-�� @8(��r�;q��7�L��y��&�Q��q�4�j���|�9�� +�V��)g�B�0�i�W��8#�8wթ��8_�٥ʨQ����Q�j@�&�A)/��g�>'K���t�;\�� ӥ$պF�ZUn����(4T�%)뫔�0C&�����Z��i���8��bx��E���B�;�����P���ӓ̹�A� om?�W= +�x������-�����[���0����}��y)7ta�����>j���T�7���@���tܛ�`q�2��ʀ��&���6�Z�L�Ą?�_��yxg)˔z���çL�U���*�u�Sk�Se�O4?׸�c����.�� ��R� ߁��-��2�5������ ��S�>ӣV����d�`r��n~��Y�&�+`��;�A4�� ���A9�=�-�t��l�`;��~p���� �Gp| ��[`L��`<� "A � YA�+��Cb(��R�,�*�T�2B-� +�ꇆ��n���Q�t�}MA�0�al������S�x ��k�&�^���>�0|>_�'��,�G!"F$H:R��!z��F�Qd?r 9�\A&�G� ��rQ ��h������E��]�a�4z�Bg�����E#H �*B=��0H�I��p�p�0MxJ$�D1��D, V���ĭ����KĻ�Y�dE�"E��I2���E�B�G��t�4MzN�����r!YK� ���?%_&�#���(��0J:EAi��Q�(�()ӔWT6U@���P+���!�~��m���D �e�Դ�!��h�Ӧh/��']B/����ҏӿ�?a0n�hF!��X���8����܌k�c&5S�����6�l��Ia�2c�K�M�A�!�E�#��ƒ�d�V��(�k��e���l ����}�}�C�q�9 +N'��)�].�u�J�r� +�� w�G� xR^���[�oƜch�g�`>b���$���*~� �:����E���b��~���,m,�-��ݖ,�Y��¬�*�6X�[ݱF�=�3�뭷Y��~dó ���t���i �z�f�6�~`{�v���.�Ng����#{�}�}��������j������c1X6���fm���;'_9 �r�:�8�q�:��˜�O:ϸ8������u��Jq���nv=���M����m����R 4 � +n�3ܣ�k�Gݯz=��[=��=�<�=GTB(�/�S�,]6*�-���W:#��7�*���e��^YDY�}U�j��AyT�`�#�D=���"�b{ų���+�ʯ:�!kJ4G�m��t�}uC�%���K7YV��fF���Y �.�=b��?S��ƕƩ�Ⱥ����y��� چ ���k�5%4��m�7�lqlio�Z�lG+�Z�z�͹��mzy��]�����?u�u�w|�"űN���wW&���e֥ﺱ*|����j��5k��yݭ���ǯg��^y�kEk�����l�D_p߶������7Dm����o꿻1m��l�{��Mś� n�L�l�<9��O�[����$�����h�՛B��������d�Ҟ@��������i�ءG���&����v��V�ǥ8��������n��R�ĩ7�������u��\�ЭD���-�������u��`�ֲK�³8���%�������y��h��Y�ѹJ�º;���.���!������ +�����z���p���g���_���X���Q���K���F���Aǿ�=ȼ�:ɹ�8ʷ�6˶�5̵�5͵�6ζ�7ϸ�9к�<Ѿ�?���D���I���N���U���\���d���l���v��ۀ�܊�ݖ�ޢ�)߯�6��D���S���c���s���� ����2��F���[���p������(��@���X���r������4���P���m��������8���W���w����)���K���m�� ���� +endstream endobj 5201 0 obj <> endobj 5082 0 obj <> endobj 5204 0 obj <> endobj 5205 0 obj <> endobj 5206 0 obj <> endobj 5200 0 obj <> endobj 5199 0 obj <> endobj 5198 0 obj <> endobj 5197 0 obj <> endobj 5196 0 obj <> endobj 5195 0 obj <> endobj 5194 0 obj <> endobj 5193 0 obj <> endobj 5192 0 obj <> endobj 5191 0 obj <> endobj 5190 0 obj <> endobj 5189 0 obj <> endobj 5188 0 obj <> endobj 5187 0 obj <> endobj 5186 0 obj <> endobj 5185 0 obj <> endobj 5184 0 obj <> endobj 5183 0 obj <> endobj 5182 0 obj <> endobj 5181 0 obj <> endobj 5180 0 obj <> endobj 5179 0 obj <> endobj 5178 0 obj <> endobj 5177 0 obj <> endobj 5176 0 obj <> endobj 5175 0 obj <> endobj 5174 0 obj <> endobj 5173 0 obj <> endobj 5172 0 obj <> endobj 5171 0 obj <> endobj 5170 0 obj <> endobj 5169 0 obj <> endobj 5168 0 obj <> endobj 5167 0 obj <> endobj 5166 0 obj <> endobj 5165 0 obj <> endobj 5164 0 obj <> endobj 5163 0 obj <> endobj 5162 0 obj <> endobj 5161 0 obj <> endobj 5160 0 obj <> endobj 5159 0 obj <> endobj 5158 0 obj <> endobj 5157 0 obj <> endobj 5156 0 obj <> endobj 5155 0 obj <> endobj 5154 0 obj <> endobj 5153 0 obj <> endobj 5152 0 obj <> endobj 5151 0 obj <> endobj 5150 0 obj <> endobj 5149 0 obj <> endobj 5148 0 obj <> endobj 5147 0 obj <> endobj 5146 0 obj <> endobj 5145 0 obj <> endobj 5144 0 obj <> endobj 5143 0 obj <> endobj 5142 0 obj <> endobj 5141 0 obj <> endobj 5140 0 obj <> endobj 5139 0 obj <> endobj 5138 0 obj <> endobj 5137 0 obj <> endobj 5136 0 obj <> endobj 5135 0 obj <> endobj 5134 0 obj <> endobj 5133 0 obj <> endobj 5132 0 obj <> endobj 5131 0 obj <> endobj 5130 0 obj <> endobj 5129 0 obj <> endobj 5128 0 obj <> endobj 5127 0 obj <> endobj 5126 0 obj <> endobj 5125 0 obj <> endobj 5124 0 obj <> endobj 5088 0 obj <> endobj 5207 0 obj <> endobj 5208 0 obj <> endobj 5123 0 obj <> endobj 5122 0 obj <> endobj 5121 0 obj <> endobj 5120 0 obj <> endobj 5119 0 obj <> endobj 5118 0 obj <> endobj 5117 0 obj <> endobj 5116 0 obj <> endobj 5115 0 obj <> endobj 5114 0 obj <> endobj 5113 0 obj <> endobj 5112 0 obj <> endobj 5111 0 obj <> endobj 5110 0 obj <> endobj 5109 0 obj <> endobj 5108 0 obj <> endobj 5107 0 obj <> endobj 5106 0 obj <> endobj 5105 0 obj <> endobj 5104 0 obj <> endobj 5103 0 obj <> endobj 5102 0 obj <> endobj 5101 0 obj <> endobj 5100 0 obj <> endobj 5099 0 obj <> endobj 5098 0 obj <> endobj 5097 0 obj <> endobj 5096 0 obj <> endobj 5095 0 obj <> endobj 5094 0 obj <> endobj 5093 0 obj <> endobj 5092 0 obj <> endobj 5091 0 obj <> endobj 5090 0 obj <> endobj 5089 0 obj <> endobj 5087 0 obj <> endobj 5086 0 obj <> endobj 5085 0 obj <> endobj 5084 0 obj <> endobj 5083 0 obj <> endobj 5081 0 obj <> endobj 4826 0 obj <> endobj 5209 0 obj [/View/Design] endobj 5210 0 obj <>>> endobj 4833 0 obj <> endobj 4834 0 obj <> endobj 4835 0 obj <> endobj 4836 0 obj <> endobj 4837 0 obj <> endobj 4830 0 obj <> endobj 5211 0 obj <> endobj 5212 0 obj <>stream +%!PS-Adobe-3.0 +%%Creator: Adobe Illustrator(R) 16.0 +%%AI8_CreatorVersion: 16.0.3 +%%For: (Cory) () +%%Title: (markers.ai) +%%CreationDate: 3/12/2014 2:22 AM +%%Canvassize: 16383 +%%BoundingBox: 3 -362 1632 -4 +%%HiResBoundingBox: 3 -362 1632 -4 +%%DocumentProcessColors: Cyan Magenta Yellow Black +%AI5_FileFormat 12.0 +%AI12_BuildNumber: 691 +%AI3_ColorUsage: Color +%AI7_ImageSettings: 0 +%%RGBProcessColor: 0 0 0 ([Registration]) +%AI3_Cropmarks: 560 -368 1640 0 +%AI3_TemplateBox: 504.5 -306.5 504.5 -306.5 +%AI3_TileBox: 704 -490 1496 122 +%AI3_DocumentPreview: None +%AI5_ArtSize: 14400 14400 +%AI5_RulerUnits: 6 +%AI9_ColorModel: 1 +%AI5_ArtFlags: 0 0 0 1 0 0 1 0 0 +%AI5_TargetResolution: 800 +%AI5_NumLayers: 1 +%AI9_OpenToView: 222.5 161 2 2016 1275 18 0 0 50 116 0 0 0 1 1 0 0 1 0 1 +%AI5_OpenViewLayers: 7 +%%PageOrigin:198 -702 +%AI7_GridSettings: 72 8 72 8 1 0 0.8 0.8 0.8 0.9 0.9 0.9 +%AI9_Flatten: 1 +%AI12_CMSettings: 00.MS +%%EndComments + +endstream endobj 5213 0 obj <>stream +%%BoundingBox: 3 -362 1632 -4 +%%HiResBoundingBox: 3 -362 1632 -4 +%AI7_Thumbnail: 128 28 8 +%%BeginData: 7329 Hex Bytes +%0000330000660000990000CC0033000033330033660033990033CC0033FF +%0066000066330066660066990066CC0066FF009900009933009966009999 +%0099CC0099FF00CC0000CC3300CC6600CC9900CCCC00CCFF00FF3300FF66 +%00FF9900FFCC3300003300333300663300993300CC3300FF333300333333 +%3333663333993333CC3333FF3366003366333366663366993366CC3366FF +%3399003399333399663399993399CC3399FF33CC0033CC3333CC6633CC99 +%33CCCC33CCFF33FF0033FF3333FF6633FF9933FFCC33FFFF660000660033 +%6600666600996600CC6600FF6633006633336633666633996633CC6633FF +%6666006666336666666666996666CC6666FF669900669933669966669999 +%6699CC6699FF66CC0066CC3366CC6666CC9966CCCC66CCFF66FF0066FF33 +%66FF6666FF9966FFCC66FFFF9900009900339900669900999900CC9900FF +%9933009933339933669933999933CC9933FF996600996633996666996699 +%9966CC9966FF9999009999339999669999999999CC9999FF99CC0099CC33 +%99CC6699CC9999CCCC99CCFF99FF0099FF3399FF6699FF9999FFCC99FFFF +%CC0000CC0033CC0066CC0099CC00CCCC00FFCC3300CC3333CC3366CC3399 +%CC33CCCC33FFCC6600CC6633CC6666CC6699CC66CCCC66FFCC9900CC9933 +%CC9966CC9999CC99CCCC99FFCCCC00CCCC33CCCC66CCCC99CCCCCCCCCCFF +%CCFF00CCFF33CCFF66CCFF99CCFFCCCCFFFFFF0033FF0066FF0099FF00CC +%FF3300FF3333FF3366FF3399FF33CCFF33FFFF6600FF6633FF6666FF6699 +%FF66CCFF66FFFF9900FF9933FF9966FF9999FF99CCFF99FFFFCC00FFCC33 +%FFCC66FFCC99FFCCCCFFCCFFFFFF33FFFF66FFFF99FFFFCC110000001100 +%000011111111220000002200000022222222440000004400000044444444 +%550000005500000055555555770000007700000077777777880000008800 +%000088888888AA000000AA000000AAAAAAAABB000000BB000000BBBBBBBB +%DD000000DD000000DDDDDDDDEE000000EE000000EEEEEEEE0000000000FF +%00FF0000FFFFFF0000FF00FFFFFF00FFFFFF +%524C459A6FCA93BCC9C1C2CFC1CE592E7E600DA9603D845352A86A9CA29B +%A2830B833412848257A82752A8FD05FFA19AA1FFFFFF9ABCC9FFFFCFC2C8 +%CAFFFFC9C8CEFFFFA85953A8FFFF845A5AFFFFFF846184FFFFFF7777A8FF +%FFA871A2CBFFFFC49BCAFFFFA8582EAEFFFF833B58FFFFFF838283FFFFFF +%5252A8FD06FF686F9A9392C998C1A6C6C859057D300D5A3D147E214C7D46 +%4CA26AA22E0458340A8357577D2720A8FD04FF766F6F6F76FF93929293A8 +%CF98C198C1FFC99EC79EC9FF2F062E06A8840E0D0E2FFF6014143684FF4C +%4C284CA8CB46714677FFA2709B71A2AE2E040B05FF84110B1134FF7C5757 +%5783FF27F8F827A8FFA8FFFFFFA876FFA1C3FFC2C9FFA0FFA953FFAF53FF +%8485FF7D7DFF77A8FF9BCBFF2EFFA858FFA883FF52A8FFA8A8FFFF9A686F +%6F76A89392938CC3C9C09EC1C0CFC1FD04C7A9062E0C0C7D850D360E30A8 +%61363D1461A84C284C22A8A26B717146CB9B9B719B9CA8040B0B0B7D8311 +%121112A882575E5783A2272127F8A8FD05FFA1A1A8C3A1FFA0CACAC9C9A9 +%59A8847EA8855AFF7DA2A8A2A2CBA1CB8459A88459AF83A7A87D7DFFA8FF +%FFFF7668686876FF92928C8CA1CF98C098C1FFC89EC79EC8A92E050C05A8 +%840D070E0DFF5A1414145AFF27282128A8A846714671FFA270956AA2AE0B +%040B04A883110B110BFF5857325783FFF827F827A8FFA8FFA8FF6F68C392 +%93A0C0C1C9C0C8590653360D85363D7E4C28A24677A2959B34045F34115F +%82577DF827FD06FF6F6F6FFFFFCA8C929AFFFFC298C1C9FFCFC7C0C7CFFF +%7E060559FFFF2F0E07A9FFFF363636FFFFA2212753FFFF77464CA2FFCB95 +%6A9BFFFF7D050459FFFF340B0AAEFFFF335757FFFFA8F82052FFFFFFA8FF +%FF6F6FA89993CA98C8C9C1C88405845A2FA86036A94C52A27177CA70A258 +%047D5F0BA8575DA72727FFA8FD04FFA844A8FFFFFF9A68FFFFFFCF999AFF +%FFFFA7C0A7FFFFFF5227A8FFFFFF065AFFFFFFA90DA9FFFFFF5221FFFFFF +%A84C77FFFFFFA270A8FFFFFF2D2DFD04FF0459FFFFFF830AAEFFFFFF5227 +%FFFFFFA8A8A8FFFFA8FFA8FFFFCACFFFCAFFFFA8FFFFA8FFAFAFFFFFA8FF +%A8FFFFCAFFFFA8FFFFAEFFFFA8FFA8FD08FFCBFD0AFFCAFD05FFA8FD05FF +%A8FD15FFA8FD05FFA8FD05FFA8FD15FFA8FFFFA1A1CAC3A0FFA0C9A8C9CA +%A853A9845AA88560FF77A2A89CA2FF9BCB8358A88434FF8383A87D7DFFA8 +%FFFFFFA8A1A1A1A8FFA1C3A1C3CAFFA0C9A1C9FFCFC9C9A6CFFF8459847D +%FFA8847E847EFFA8858485A8FF7DA27D7EA8FF7DA277A8FFCBA1CAA2CBFF +%83598359FFA8835F8384FFA8A78383A8FFFD047DFFFFA8FFFFFF6F68CA92 +%93C9C09FCFC0CE59067D5A07A93637844C28A2469CA295A2590483341183 +%8257A8F827A8FD04FFA1686F68A1FF9992B592CAC9C1C0C19FFFC8C7C1C7 +%C9FF2E2E0C2EA8AF0D0E0D36FF61143D1485CA4C284C28FFA86B467171FF +%9B9B9595A2FF0B0B040BA8840B121134FF83575D32ADCB27F827F8A8FD05 +%FFA1A1FFA1A0FFA0CACFC8CAAF2EFFA85AFFA95AFF777EFF77A2FF77CBA8 +%58A8A834FF8383FF7D7DFFA8FFFFFF766F6F6F76FF93939293A1CA98C19E +%C1CAC8C1C79EC9AF2E062E06A8840E0D0E0DFF5A36143660CA284C284CA8 +%A846714671FFA2719B71A2A80B0B0B04AE5F110B1111FF7C5D575782FF20 +%27F827A8FD06FFA1FFA8CAFFCACFFFA7FFFFA8FFFF84FFA9AFFFA8A8FFA2 +%FFFFCAFFFF7DFFAE84FFFFA8FFA8FD06FF9A446F689AFF9392938CCAC9C0 +%98C1BAFF9FC7C1C6C8FF062E060684A907300D30FF6114371485CA28214C +%21A8A26B6A6B46FF9B957195A2AF040B0B0BA8840A110B11FF82325D3283 +%A827F827F8A8FD05FF6F6FA19993C998C2A7C7C87E057E360E7E6014A84C +%527E7171A270C4580B595F0B84575E832727FFFFFFA8FFA16F446FA1FF9A +%938C9AA8FF9FBA98C9FFCA9FC19FCAFF7D05052EFFA830072F5AFF84360E +%3684FF53282153A8CB4C4646A2FFA8707170CAFF5904052EFFA8340A1158 +%FF83573258A8FF5227F852A8FFA8A8A8FF7669CA9399CAC1C2CFC0CE7E06 +%84850DAF363DA84C4CCB469CA895A28304A85811A88257CF2752FD06FFA8 +%6FCAFFFFFFA19AFD04FF99C9FD04FF9FFD04FF7D2EFD04FF547EFFFFFFA9 +%36AFFFFFFF7753FD04FF4CA2FD04FF70FD04FF7D2EFD04FF3483FFFFFFA8 +%58FD04FF7D52FD04FFA8FFFFA1A1FFC3A1FFA0CAFFC8CAFF52FFA87EFFA9 +%5AFF7DA8FFA2A8FF77FFA858FFAE58FF8383FF7D7DFFA8FD05FFA1FD05FF +%A8FD04FFCAA8FD04FFCAFD04FFA8A8FD04FFA8FD05FFA8FD05FFA8FD04FF +%A8A8FD04FFA8FD04FFA8A8FD04FFA8FD05FFA8FD05FFA8FD05FFA8FD34FF +%CAFD05FFCFFD05FFCFFD05FFAFFD05FFAFFD0FFFA8FD05FFCBFD05FFA8FD +%0FFFA8FD34FFA89A6F76A8FFA19392C3FFFFA0C199C9FFFFA0C79FFFFF84 +%2E2E59FFFF5A0D3084FFA85A1460A9FF7D4C287DFFFF77714CA8FFCB779B +%77FFFF840B0B58FFFF5F0B3484FFA8825782A8FF7D27F87DFFFFA8FFA8FD +%2DFFA1696F68A1FF9A92B592CACFC1C0C19FFFC9C7C1C7C9FF2E2E0C2EA8 +%AF0D360D5AFF85143D1485FF77284C28FFA8716B7177FFA19B9B9BA2FF2D +%0B0B0BA8AE0B12113AFF83575E57AEFF27F82727FD32FF7669686876FF93 +%928C92A8CF98C198C1CBC9C0C79EC9AF2E052E06A8840E0D0E0DFF5A1414 +%1460FF284C2228A8CB46714677FFA1709B70A2A80B040B04AE84110B1134 +%FF5857575783FF2720F827A8FFA8FD30FF6F6F6FFFFFC392929AFFFFC298 +%C1C9FFCAC7C0C7CAFF7D280559FFFF2F0E0DA9FFFF363636FFFF7E212853 +%FFFF774670A2FFA895709BCBFF590B0458FFFF34110AA8FFAE335757FFFF +%7D202752FFFFFFA8FD2FFFCA44CAFFFFFFA16FFD04FF99A0FFFFFFA8C1A8 +%FFFFFF592EFD04FF297EFFFFFFAF0DAFFFFFFF7D28FFFFFFCF707DFFFFFF +%A870A8FFFFFF522EFD04FF0B83FFFFFFA82DFD04FF7D52FD04FFA8A8FD2F +%FFA8FD04FFCACAFD04FFA7FD05FFA7FD05FF84FD04FFA9A9FD04FF85FD04 +%FFA8A8FD04FFA2FD05FFA2FD04FFAF84FD04FF84A8FD04FFA8FD04FFA8A8 +%FD04FFA8FD30FFCAFD05FFCFFD05FFCFFFFFFFCFFD0BFFA8FD0BFFA8FD0F +%FFAEFD05FFAFFD05FFAEFD3AFF6F6F6FFFFFCA93999AFFFFC9C1C1C9FFFF +%C8C1C8FFFF842F2E7DFFFF5A300DA9FFFF363D36FFFFA84C4C77FFFF9C46 +%71A8FFCA9B9B9CFFFF830B0B5FFFFF341211AEFFFF575E58FFFFA821277D +%FD32FF766F6F6F76FF93939293A8CF98C198C1A9C99EC79EC9A92E062E06 +%A8840E0D0E2FFF5A36143660FF284C284CA8CA46714677FFA2709B71A2A8 +%2D040B04AF83110B1134FF7C57575783FF27F8F827A8FFA8FD2FFFA1686F +%68A1FF9992B592CACAC1C0C19FFFC8C7C1C7C8FF2E2E0C2EA8AF0D300D36 +%FF61143D1485CA4C284C21CBA26B6B7171FF9B9B9595A2FFFD040BA8840B +%121134FF83575D57ADCB27F82721A8FD31FFA86F686FA8FFA18C8C9AFFFF +%9FC098C9FFFF9EC19EFFFF7E05062EFFFF5A070D7EFFA8361436A9FF7728 +%2153FFFF714646A2FFCB709571FFFF7D04042EFFFF340A1183FFA8573257 +%A8FF7DF8F87DFFFFA8FFA8FD2EFF766876FFFFFF9392A8FFFFCF98C1FFFF +%FFC9C0C9FFFFFF2E05AFFFFFA8072FFFFFFF60147EFFFFFF2727A8FFFFCB +%4677FFFFFFA26AA2FFFFFF2D04AFFFFF840B33FFFFFF583283FFFFFF2727 +%A8FFFFFFA8FD30FF4BFD04FFA175FD04FFA0A1FFFFFFA8C2CAFFFFFF7D52 +%FD04FF2F84FD04FF2FFD04FF7D52FD04FF777DFFFFFFA877A8FFFFFF5858 +%FD04FF2E84FFFFFFAE2DFD04FF7D52FD04FFA8A8FF +%%EndData + +endstream endobj 5214 0 obj <>stream +%AI12_CompressedDatax���o\DZ8�]���y���?<�3C��^%����0hjd�~i���_UuU����D�j�65�9�O/յW���_߾~�����+�gF/_��w������՟F��������~��/F6��j�/�{���������<~{���~ry��������^��v~|�O�~��� }�<=��o����36�ܟ��E�_�t����g�_��˛�7�?�/���^���K7z��������\3�<�9�]\{uy2��aryvy��O��/�����o�G�5;;��y4>;>�'ܳ������� �w~|=���b�/�}?�9={����3�y����{����;�?<��s��]_��ࡴ��� @�����:�������.��b��1�]��32|��f���`Yi�ф������0+�0��S�Ȇ�`��/Vk�����?�������_]�n��1�7�כ����/N�a��`���W�ofgp�����1-5;��+�v|��������Э�S`ݏ����Y~�7�g�� �9�Ɏ�� ����Bψ��c��а'�G��q���������Ӌ?�ZF��q���:}3llv��~Q�{������{�¢Z�UO��J�|�Sz� ���S ~��;�y�����; /?\_���9���oO/��@_ߜ^φ��<���������+�+�~��� z����n4��ğ��ߜq����@�d���h%�t����~���y�´k��&�-�l������L��Zc�u��`#0�l �j���N�M��3�R� .�䲫n��M݁;��;�}��'�A<��c?�S�� .�B )�P�~�I���p��F} 1����q��0�d�K>��RN%մ��i��� ��l��.�r�)�\r��y��E��i>ȇ& +SqTB�%���R�~� �?-�qA������ +���¥D��m\'Ц����}X�}X&\�}��~���P�a0��}�y���ߗ/��x�m���!���f��B�|���{�v�w6�������N���;������.�>�.��屛�.�}� ;]|]�m�S���]aQd�M��~g�o\���s�!x�_��_��������|�8���a�2�OÀ�8@�{*8�c�"��;�ў�yO��ʎʞ��=m;�'W����.�h^���u{���S��~O[k;�G>��\��>ཕ�-���wa�i���1�)�2�s�}����yq�e�e�e�����ɗ]��v���Q�F� +,�����=ڮ9m��̆���́CWr����iX�p1r�$ ��=a_�S��u�x�>`�슀U�i +xd�"`�>��`����w\�{�}�)��g��ٜ��c?�� �?OeO����1� +�����p�ݡ=4�Ӄ���xtˀ���Ɂj��pz0�N'�1�{�k��y��q�~�����`2�L&c uR��0��،���x�ڇ�c�����0�0�o*�)��"���,���=\����a�V!�8 ΅�Sr�9�>�W��`��3����;�38�ӸG��*���jXs+o�J�.L`/�aG +|�`wB�t�&aצ�wc�� +��a7#쩇��фCX�)Й1�y��ϰ�������>�z�j��$��8䀲wX5���i�`�󟼧+wtZ`OtG�pNuG`?q7aO��ϵv��%�q��������k�%p8�=���tqWaO�;�k�*�Ӈ9������ж���a����W�֘=`� Ɍ�C��}�80�<#F��Y�aD���ܢ�vdG���`�h�����v�L;|��zޏ�F�DQ�U �j�0>�j�+�#�pP ���^]� ��m��� rvBe)A������4�Z-D�T���A�k�41qP�x(�� +� .���2�)��-�H�Nl"�;���ݮ����W��a_v�8 $�K�U8� ���n�^� ��[���a��~Y���b��a�bٹU�5�[�Z�4/�Xm��Ekz��|ߺ���)�s2^�\����J��r��Z�g��jP�?����� �>����dU j(ג4a%�wJ�4~V"�Skw�[��n���r��:�c�+=~Ȇf4+��j1���p�X�P]�!��{�r��X�����t�J�ݢ�:�M���Ѹʨ�� ���eU������JH�h�ѫА��F��H|���-;�Fn=��#�Q�E"[阐x���؜ɾ��B�m� \��G@tKH>�G@�hM(=t΀ʞ���P��"�:�S��a\�Et���c�JQ'����.��"�B=i��}��'[�,���6tL��"����zÇ�b\���%��� ���N{���,Lx�/��H���9��QT=k���{�,�/�������sߴ�S�}� +�9���Pϵ�mzG;�=,���[4w4�l�]�\�d{V���;]��鉬%�=P-��Y�� 酇�z�9�*��&��;$����P†�-pr���N��a�,p��ث�B��{ڢH�;s/�N���i�� � ����a��IK!OҀ��!�;�"���x!(-���c.�A�“��1�0��mੇ�W�_A�E[-mzD/*we�� yc�*�$�VP�X;FKڅ�-���y&�R�����H|}�<]W��Ny8��sO�㺬��Uw�g;rG�i�v�.s�) �#r�C��V�X�bq����*@�b���j�%#u��:$Ή��BV1PKR�ԦL}�,����3� +�$�WA�����]�S$2Թ`��1f�����%x���$ݪ>��~x�ok�14�b�ŷ=����OP�O� �d�}����N +����S��֬Z̢�b+�w0|�Vɼ�92!����yڎ�t�対��5�M����3���i���l��:�&^9���Ƌ���7]V�Z�k�k�k�_�cZ��A�o�kS�%$s�� ��̲�$����V5_��ƬzT2%b���K�8`imLc!�^$�e �����"� )nL&�B��%*#��Y(ա:r@�c����� �=1z�"��H4ٯbI��h� G�uHމ I��:5�S�Q$2�z2�X�T�Io���h� +�X��"��(��Ң�މr$� +��)T��~&,O����KĬ�(�SP�K��oAwYd�n�`�P�5��‹�n�쪪ˊ.���䢊�\�1�1[�-�r;���;tJ-� �вF �lSe]��Ax�.ƣ^�m�(���v�+����~���d����z@"(z� +y�"i�)Te�lb��/��6��NyW+�f�ݴL/h�Yc(z�knq���h�nk��ȟ]���o(誰+��5�5?��5"B�/ڿ$(-w�̵ڵ��6n zl�&]�ε��o��;�Ҁ�࿮k~�-hs]Ks-K�A�k�k�sm<�&]� z��O��Ⱦ�[IK�+��yˮ%;56ČՕ�����[Pb�Y)�p��Z�ψ�U�+��5�n"�+���B��FR�H��hy%�N�Β['�ʎ��)�t@ tH�$T9J�i�� �p�F|P�� �RAx��~@BK���d)S����l�Q��w&�p�E$���#"�,�"�k5�-��:އeE���׉�� +�#�ND��SKX<�� �&�[��B'�.2Ɓ-�{���� �٢"6�x-�[�h^T�& mz���BтW+]s��=mN!V���"=�����|{�� ���ݸc2���F��J4b�%�a�h�� S$#xV}�x�i���J� +�(H��4�\I�C��D"EA�1�XPID@�Ң+�@�I�h����U�Q}�$�%M���hZM�k +s$�-�I�0���8y@��!�s��vZ��Tw(�ZTÄ�"` L�X�cM�(�W��Z�Z�Z�ѭ�D�:Y����DS�W5�x@��ͭ��������{[��TP��C����ʸX �O�T�A%�R0�$r п�,�ϙ' $�RY񿸟�Ug��� O>e��B�qp0 ��4ƠA/mfV�a�í��A�G��^�N���ص�,1��id��rf��]z����tf���G���;��z����gn��Grg� +3�6rQ=h{�=v!W��dmB+��,����� ���΂;%��� �à�}��aD��@��QH{��2�~��~��26֐S8]7�PS`����� +k�`/РS�3k�����p�i����K�����߻OYh���ۗ�A�����m!��,�p6�|��+<��5h rUn�[斸EnA����! �#y�;�5'�������{[q�_�;ڲufu�u\�n��m��%>P{�=v��S�?��S����.�e���/m@�Q����N�|���B�9P]���A�/_ta������"�|m/Bn�FC&1R%y���I�~�)=r@�eJ�ĐT�0BcљH�Sֹ'�U�h�ɡF�4�l­��qR�!=j :���&� ܔta�}S�7�4���������- 6 zܿ��5[��֏oy�Q�惶����.K /]�ː��X�B����s0渠�k�G#0Eq�xRP(!fJj����( ���e*b��� � +���2&��0֬�ʪ;��,�8!r��1xen� �j'  �T���\�w����t-ϵ�5&䥍�#1��R���ڡA�v���ڢ�j����|j�W3��F��ڞo�s^2��g忹H�ssP��6���8w��D rMٴ*G�A�C�L���F֏B��C����}E��Ov���.��9�����9ј�i�i�ރ��& �}Ӹ[���{�O���ؠ.M� + ��5iI����9�ODa�6�(��זiB�k%��EIW֗�G[����� �m�ͱ�c�lm�*�G¸�&�f�h5�:��f�m=G2P $�`� v��U��ޕ4�m + �PL��x�)ŧ6��t�� +P8���$m" �d"��k��fT`�"�� +�S6��U|�g<.*��b|�k�mw�DͲ(Љ� �(�'�CTO͜\�ڼ�m�Z���@"� �δwz�gH�ğ^"A� :YS9{�(v����D#�4�C�9�a�s��(���B�:( � ��� t�%lm>pmE�Z ^�]Y����k���ȹ +1���cC����kl�H!�H�J��{(���$�$�q s� +�_ �H֥JՆ�q-��F�8{�nIJE��D�b9V&R?@o��O��ggC(HGI+S��ӺP1�R�-��7�C���%7Z��!͊��2�d��h@�^Kt�^d�E�~^J$h���;��ǩ�O�Z;��W� �)�(���.�70E����F� ��-���6Y�Ƌ���>�)�n;�9*S�h�- ��S�J���y�������\��ĥ�1�»��$[�5�2wn�I›)넖�1�9眓�?�ħ[�W~���fe�ܓfG�1�5�8jv�}�Q�T*�$�9 +dT�M{��S���ל#ɸK�w�Z��H�ƛHnۘ��;�R��oe.c�3o��o�9���t|��v�ۜ[��α�: �Q4H�u�� �P�1�-�r9���R��[*�u9�"i!3��;_,��6Q��qy�"u�逫�J=��嚤��d��m���6阼D6-�"��([�8��I����3�a�h\=�6]���Z֎��Wy�"���iC-��v0���1t��@�8�$v-*��qVj+H��C�} � Zŵ�f�H�e��(EU�^�`�����4|H�f� ������d�,m��Or8�aQ S�]"xJ@�2� �=}n+�2'� +R�ϵe�g\�h�D����?e�u��G5!3K���J.�=�D��i\u.T�`�N[�D�ҥ1�IL} +S;½<�U7�w��_U�~H8w�LӕE�&6y�Y�&8I���N좔C�#���A���>G���@d�:}s+۲����.���$�[6�.�jo{qq�S�E��H�����#��d�Z#W�����U�#%o(:j�_ը�kK|ie������?A$X��趢v +iĬ7mu� �ܒ�@�Pl�\�|�Ϊ�=o���t�)2L�6�d������1U ����b“U��5ᩫe�U2[Y�L��@Bcvz�N��+w��6�=�Wi��_�!TQ�����N����ᛌ0O�'T�{� ��@�(�ag������X�K-��[���0�PU��'����S�Зn9]�;�T{Gp+�^��2o7��k ��"�����g���c�\=y>��]�A�E:��X���ܣɥ`��Z> ��.u�*H�u��.VA�C ���l�ڕ\��R �n�#X�q5)<Ŭ�5�����G��� g�>��uo~wKU7��>x�#��H�V�*p��"'��ߦl����wG^�����,�+Qެ�ڽ�Ҁo]���:��4}��.�����;�$o|Q���FA�Xr��)�(�"�G�g#e��V_�s ZX��[f�L���^����Yx�zJ�C�W�t�V���Ճ��U\*ꎢ]ԡ��aꬕ�*� ��]Q��SH3f�wW�t��pr�A�׃���i��X� �^h�l��sK���t���h�K�q����M_�Kg_�������=q�����_�<�5�]ٖƿ4�Ons=n�J���l��G��G�]���9�1�� wo�8�|CGنs��[q���rQa ++ʭ��+�����c�$]6{g��������� ��fo�ܧ��Z2Ŋ9�/��2��<����b9g�l��9�$["筎ˠ�C +@����M��Wh:���(�Z�r��_�"L/6�(�X�j�[� ���Oi����z�;�-c�� ��������y��b%z+�����ۧsy�>8sh�����ꔚ�M�k��1����H\���R�/�Glu���+��K�ޜ}r��MY�ɞ�2�!�[}�7{��ޡ.�|}�Ig��L^G�#����7 %�$��h��e���u$W+s�ȼ�Uy�H���o�� =�/5)�2����� P0�m��c�P=�k(�OmT4�A�S�q>�o�*P�V���\p�c@�����h�97 W[[�ѵ�Y�J~�ڢe��Z=neى]���B�M�r�կ�Y|�̊W� �ڿ\fx��D��ql�/o��̙�F�#$�g���+#��x����x!�-k���h6�˦�y��kr��c��l�ܒ�9&�5I����6w��򖈷yw%�5���ط�m!n���y[r�B�����Оw� ��wg�O8�+bK=l<����(� ƏR0v�W<�7\�o8��e�_�4�B'r +���w�����|� +��@ON�!�޵��.�u�.�} ���!�uȽo/]rW�<�>��1]��L]^>4PN�gH�w��"�}�[b����~��VGo��h]��W���Ǵ���|e��nT��A�S�q�<�����vL�2F��w��b��=�bȓ`�:��r��B�\�{hɪ49�jȕK�Iv�|G>`^XH�[y�B:ƤG9yU��<`�@�7��zu����Ҿ_�|x����������=�y������:F����� ~�\<��_���O� ��Ga����nj������W9��T�(���R���/�}����KZ ���n��<�o>����C`���e��׽��'��!��h�C�X��~������������VC�>��^�e� ^z(�:]]~�-���ƺg�.=X��ON��~yEo�w�������_���OB�2�=_L���8/K0���$  \5��.��ҿ.B@6��G��G�]����^�y���@�v= %:���y<N�]��_��۳q�R(|a���&-�����A��Cx�'����#���X8� ,�/v&Y��67�8G'�C��z�0VXӶ���܀�{&�"޵`� 9g ( �˷�����������S���s>��\��hu\��v%�L��bs�'�gk3K.��j.dj {f.=��Z\h�jM{���X똀ٹ��x���Fٺ��V�=��{��:0\܀��Z�^����z��QFm`��؀>edz��h���T����K;F��@�y� �i�0&Zs8��Е�* �o+ H`�/�x[ -(�m_���8���-�e�4eŠd�Z�40��5�:[��j������1�� ��Cm@$��1�M����k� �O�ޘҀ����֏��+�A1�n�Ժ��.U���u�O:`��A�j+i���Q$�( r���v��Wb�v:�A��N�(d|dk� D�/�^1! ��\1Ąz(Ƌ��L�4L.a|�'^ok@�8���tzpsBt���F�d �k�6 L� �KXH{�w�YXI�]��k�>,�w�w�f���h�,,f{V��2�#Y�=�5�*/��c��ɅU8��Li���(d���:(����T���� ���V�@ԔH:o�~��=���W��N'���D�f��M��@pv��\��N��Jť��󎹍qAz0� ���^Z��D��߉�(��� ����s;����^U��?�|n�XϫAE8�\_��X^\�A�p{��pRjd?�U ���^UD��]����{'� w����� "���Gw�Gd���/?���=z���Ѯ��K��s�HJ�n��?z�}4�g������B����G/�?��X5�t�������G/�?<ڪ�>�h�I��#B�$����G/��� lN�$b2-R!:�"ҁď��{��lY�c�����׻�����K�h,� B��ݠQ i�Ci@g@� �v�5?Up���������Cل�� 5���?i�`�~�j̹�1ك�%[Y��XM��`��R?G���GQ��� �C�� ^Rhc�$�܀�Ƕ$(���LFa� �Xd�Ѵ�Э�Ґ�k*���w��m嘇� �Uފd�����3��N�à �h\vD��d:�m�O�C0�����v];��FΎ��"&.L���|�粋�[����){���d�˨�D[��Zd�O���um�p$(6�i���s�7)����s�C])E(���]�| +b:����[Ժt� +���ke�+2E�������D����'��dA��,?�A*:(m��ÀU��H�)��lA*裕c�t�V��:T���rP{2�C��c�࠳2A���m� �p�����u�5���3���a*őW�ج�dό��)�m̤]�u2�!1�g�ҧ�aE3�ʡ��^x��:�;��gEK�����30H��[g3�(�`j�RU;�w��YH�I7~/t3&��C��߹�}�:-��X^�}_�gxD�LnQ�����#,�L��f��C)�g&�Cf� ������W ���Y� +���1� c�j�BS�f1�R�"L:�Gq��9W�󕁰�w/t�9����GA6�ä�bc� ]�~�bb^ �݁��P�%EaK�j��?�vYz�&�h���'�ma �v�rl����"�\�0�z#|����y��F�hHo�Ԭ(|m�rm���+&1/��0��J���U7P�Z�ξȺŠ�n��-�\x$�Bڭ�$*e[�0< ')q��TZ�q�P�.Y�zFso[; � )�i�HLe��rԋ��&56�4��n�5� ���z]���)����m��@�4F/d�xE�^~�Q�� ��CS��`�o��C��$ܶ�[�� c2΄]�J+C�k2/H����Ѐ�DCD„�@!��0�xA?��E��k�QLQ�K^.�z| �;V͠?��*���� �c�_�l�s�nq�.� �0'W���X�6�v8#œX�p��]��P�}�P\9�H]��;�H6!����z�JG��q��t��8Y�i���kS�ʪ�X�kσ�dn�v�ꇱ����89%���)*��&�ek��zP�l����:2_}R*��H�*B���8�s�hj��L�' <99��{������&EE��Vp��_��W�˪ͽ��8����"LCX���ُX�Zc�P�x̢z�f5�K^��P��0�y +\��nE�v(|X�F����D���̃��g��85�A�Bm1F��)�b����8���z����<�@ ��^M�:�" ���-�W������R/�D�<�SY]��>�P����sb�g�2 +�r�_�ե��܄������f1��(?��MƜ~����g�n�go���P|SݾE+�ɜ�TD�4Q���[d����n��ztK?�+H�O�>'�{�zd��;�G4k�9��Џ>"Î'"���{gD��8�����!�x��ᦶ�D`s] 06io�g]�l�Ό_��o�N���%�C����#�;��P\��=�C1�.�ei�G<��5�5j�A�q�(0�A1z!�XU�rP�q�Y����IL���ܴrl:�d@��LY2�*�J=�������tħ�B����,����ݲ䉂];^˳� ������b���CQ�K�fX�� ��$�R�7ZF���&����c��Y��/� ���.��>�H,�� ��C\h0��6��*+l��"��Wp��N�-������rl�8�����2$1�,�=YݩrM���R&�+� �g���2ۅ�\?�ȫ���$�&�U��ס[�G+�0�F��OL�i������Xup�3p�=x��BV�83�Yä۬AM�V�;�-Uq)�`�*qdC9��=��aN�j���T5��Ӆ�c�!S�:��m�Y�;�$X|��y��(�h���AH +��ҋE�(��f���/jX�tuxa�W��2�h!G_�Y;��|q���#q��w����:/ �z/�Z��bn���m��2�a@�E�@۔���F�+�8�fa�T>6SY�_��>f,4�j1]S87Q� ��CӲ[΃􀞨���\Io�_�6�T�o k�,C��䖡)��|�fkD�9W��1٪i�V�_��MQh2����Z���TE�\~b ��!�Ǹ�"�E�s��� ��d�H��5�Te2@2W��$U����8zL?��Q��M^k4r �Ih�6s����~�r�:��(S�E�5�eL�q��km�ñ�c%\�K�KT~AZVL��E�3�F�[�J}��.=�h�@���������| ��d��U1� a�W�nS�+z��6 �ĵ0�¦�;����h�z�/��f�� +0�2d5�d '���aG�D:>ͼC��}".���s����7���v�� kZ +h�0b���-��$$�Ǒ��I!BS�(8O8�@�ΎO�/�xi�����WAV����[+{�5��XS��=�>������M��S�t �`���F��h�� d'|7 R�u��'w��@^ +�̂ ���xv�)K�$Y�- �� w#6�#O/Y��)IX#nDn� ��Z�(���c�� �X��x��`�AL -�X-�G�j�@�'<�J,���� S�%o��Q$\�f�1fJe�ѵ �;�|&�B��q,#"0���9��\��̤�$Ԩ/6il2k�Ai����Pd$��%Yv�xK�\�+C@[y)Cj���B �`?���&�d�,��]NC��E +��I��6���9����D�ƪڦVZX<� ����*^I��hCiB �c̀�H6-;AKJb� ;v���Պ��Kq��s���g5�`2��Mb֊��`�Y��^�2 n�x]c�|��|����SV[*�������U;�����d�ј�P�6��:ޠT�8�@��$kjŪd[����-��-f��g�@8[��yZ6�Ȱ��tP�G�!<�(�M-���)�K��l�%:��!�TJ)�������j ����3�y����yq�;��72^f!�����Ȫ�Roe�#3:d������j�<�ѫɑ��LL*qnI3qY�H�� +3�^߀!��P�0� �G�H�Y̙���pQ��v���V��(����H�C ��*� l h�^��W���@�W�k�sB�,����)x���&16�mγ5�6�%±v��1(E��WSSXb;� 21���<�2�a��D9�ca���^h����aNI#ʩH�H~��{Є�dH7k?��s��/Ct�*cQTK��F`�����W�����Ҥ�Z̾�(���u:DGsN����l��F�RT`! +����Zz��������V�Ί�/t�;�a�iF�6�ژ)V�+0�J>^T��삤�U_� T���u�Z�J�hmЋ����-_x��IΤ��ajI�����("^���8+�����5{AZ]��J.��������� +1��_QU�'�UU�0�"��� +0�dpǎ�*�k�Z�������N<8^u:*oP�@��[X$I0��ء�BsQ��u��m��'q`$5��C@�a�-$�3j��i��N�x�;=�/ـ!��\9Z ������dH��ݪ� 0� �ڀ�%ڃ��᝼�����Q�^���A�Jĉ䆞9m�k?t B���(��\5R:�މ(6(��C%l��iC#Q #� Q��l� �'5g1� Xi#�`��A *nՂ��y�����>��T������\���2�2��$���ͨ��� ��،��P|���n�� +Jnl�����pȝ&:���j\i���/�b�% +�����̌>��QN�A�[]���5ҲW � ZHz�����s׃u"����Yī L6A��u�Qu�,Z��&`�g�������2f�K�b� 4*���'4�0jp FL� Z|\ ĉ�$IG�CJci�&ꆱ;#IP4�r��J/ �1n(r��O�O�p"#�1U�0���ܝm�~�R�_� �)�C��A/%_��D�0�" ��ѹ��)�~�@�&�fš'������ +)#��9���Yī�K�ja�~��M���V�*Z/�*!N7�CF�a��]�4QO�����kΰkǷ�}�x%G^���bI���$=�!�*q���rqb/C � ͰWZM��=[@�����Y�N� �������i\��&��+^��\AX�Ÿ��z%�x"�f���X�/-��u"�_Q��b�%K�� �D#O��bOO�Cdw�����t��7'�6"'{��!0�&Ϛ���P�J�� S�K)TQ��lԳܹE��-�_{6-��"ߓ��%��S {�(��)��r���]L��7�����dDe�����#�e�R���C����Uq�t������DU��"��H�!InOe���V�)���F>]�����@i�8�m#�4�n�h��2�ڃ�2���J���Ҩ2�X��P�8�öT+=t�����fsP��2����9(I�h�7�Ŗ���.�f�`�`DR�+���Q��c;=&i���촗�%�Pt�S3d3pȹ�D����)��Ӵ�ˮ4�$��/�&pQ(k�,� >4���H�8l����%��}� E�@e e�g�2��MpI��V� v��J.#�|kRk 7��ƒ�=Q���Nrŭ�Wj6P� p��P0[ +q�4��2w0 �O�2z=��*�!y��9��{ѱ���)�W�1�<7T�Ax��wB�#��I9��`��9A���p5��9+#��G�����^ӳ�y � �G'@l~�&z# $��W 8EV;�Rb�C�K�j��f�'oElg����-�6�� +u�amE?Ш�$�w �)�UeG4���,�����$���$S-�T^Ym�f=���KOc{F���;+*�7��]�X@���t���z����N�j:��5�>��C��T�XKRғjlB�6#�ε BQ7���:P��|g��]�sEk��9�8@�s%Q�^ʫFԡ��D�VS2� �W�0��:�=�,)�X�8��e�X��<��6�1HE��|j%*����������4�8��+KQl�1 +�Uct�S�,k|�0�,{� h��2���CR-O%Y,����N�k���N�*��"�)"jb[���쑘d����4`{��PY������fؐQ����Ƭ�v����(�����9 ��z��%�P�86��+�:��� &� C�?��|�9��U�E"���U�i3�V��l�U,휆U�e2�U��D�o U�01w�$騰���p �O�3^���Ji�Gvp��T���&~���`�s�@�C�G�y��e��A���LU��V�����(� G�!!�y�(Np��76���j�$�"W���C�� w��Q +��jyM^�rt�O��ԅ:�(p$��P��FA<����i)�QC�%�Pk�m�]��aws +-�.�S�r�I�HY�z6u�‘C�'1�5�PGS���$��],�0c��!K*�U�0K��T���.��W�kB� h-I�)k���Sn�XA��!1��M���� %�+%T+뉧06ἁ�� ��z��ưIQ��e`���˨91�v�/�u��p�τ��y |M�˦��/��X��FA���P�‰�ٶ��f��ˮ�JQ�&�N�*�K �|�*7�uR�dhd��D�w-I#{�E���@08�I��H%9v��P�����ϩ3��!�9s�s�ै�*9�9wĶ�v�rָ#�B���O���T�z tE�Y� ��҉�RH�^�t�k���5�}�P��׬p����8��(Ū��^��H���#g�`rA�97�0��d��/T1�O���$�'a���VVD�.��r ��W�w*�qW����B +S%^�&T���T��,�!G_L*��V�c� +��6G/f��M�/H�dR�$-�������x@VE��N��l�Fe;|�DSMWT�KO�,r�����Ns'�֡⌅j5q��~�;�W�Z1�@��I��/T*�>S�D�v��j��")!R�kM١�8�mq�Y͚�赼0\?TjFq%��4����t� +\��B/l..U�E�T�W*�"�����S���ڡ[k��V"+ȑ�9��vS���'U�-^�Y��V}bU�3�&�����eB�`��N�NՄ�J�}���m���,�&�Z�[� +K3�5�] pVD�i>�JN)Cب @z3Kh>+�j��DB/ªr2gX�۳���7^�bF�Ř^�o�w Zei!@8�sy\��tq5��c``.��|���b)�8t.��6&/!�d�%�� +�0"0�h�ަԮ��qZ� sK�by^4�bZ�+�@��CSG���VFB�E:��A�cZ8�#\=����>N�F ���8i�� �b�p�!���)�֛�KF���H��⢧���oς��L���8�nm��!����h�����D4�!oEB^3j�5m�9�����I��vq��sE"�z�����Bu��3�B0[\�\ ��X .h�jK�T +��p}��߮�j�D���g=�� %zT hn� ��.;(d�XB=h"�i�P� �+;�f&��.ڃi|��<�Q��`=�8A����9#�qt��e��?�p �1�����D�B2��Q�V��;h�����<;>�Ejd�|���h�9:��7�1;~\�b=J�K(����V�,�Q]��Ȫ��pJ2-hN�12���n�a(�R�b%�*^��\Ї=P���� �����b��H���^�H/D02<���Fse�k� I�5k�"�CO{�tf�A��g~f5�>���5� F�X��g�%��k�bi�q����R,�D�&杵�H�CP��T wé��C���.��E�V �؀�J�:��Es)��Y�P.�{�V$��V�k�ja5 C��ՌK��(�5k�{m0�!�4�C3ZZQ++c�4�%I��XƊ5!%�}��$e 8� + ���$<�6WgE��l�qQl��N��uP糆XV,�$��9���9/aЙuT�uH������E��q�c^��TVDG��V6����r.$�P%��� ���*����rCᕩ���F�CP0�Y5��^�]zŵ,�v�l�E�^�׀V���9��S��G}� +��/�<�d-�U���"6�m��$Y4��E������b2�F�%�z�%�2qA��43��KV&�7��arJp�FB��\�.�|�"�S8�?�)h�:�vQ�8��N���V|��DJK�C�DUJ�:=*�-��D-�d���9Y�s�b�lNw�F3>M{�΂�8����x}��e �/H8%gBP�T) N ��(�+�ByG�Q8\�$�K�Pm��R�aپ�d�*��V��]����BW�JS<%wPZfR�e~=H)�bM�JHSAA!00du7 ��!Ħ�`\u����@h�bj�+Z��Z-�S���pɸRQ�8 ���$������a(��y%u��y�-(I%?�����.�*/')It����.�;e��z&�Z�:k%�D97�h�RvX�Dz� +S΋�)/�+� �[?nX|5 �NMa���X��V1��k�(/�tF/�I��4:[«Ȯ<��'b��*K|7Z%͈����� +j�)^�v8Z�.� +-)��K."J{1$}'�KՃ�U��Ld�{.wg��l{EHE`q �Q� +h��zH��<�㧨���YX��*��̪.�h4�'Z��S��C �#�a6��pصT��>�_���ё)b�-� �CIc1�c�*B�u��@�:�s������b%�?ߪ��j�9�j#�O���j���r�~Q_k�[���$�Vcb�z���)�ZT�tC����E�`��4�0��r!�'Lf���� +Ce��%�j��:x1�V�0�HZUE�+��$Y6�h��M�\Y�U��g[YN͊��?u~�I��9yb�vD��NJѢr{�de�q����)kɈ*�� +0�G�^k��Z$)-@��\�~@l��9�n"�V˰�gT�&F��_uWI%�peە�����W�O!� �R��-�wv�%� k�C\,�j`Z� �٬(i8Sٜ�.��"�x|W�]�,M~#�P�X*���1�:T����{�S�r(�A�-rQ�<��tY���U QP�+Q1�YB(�͏�{#��gihè��G�w�G{xW��p��BozͫI�Ȼ'��\�Խ*i�x�Ɇ3�� d�n�8!�m��+E3A���/�����ڠ��Fk��)�~\��p��W-U%��� �A��y�J�|��!C����^ް#���C�_6 +pa +��F������֒H����86���eIB[B���{�c��‡t� +��0�-�'vq(�(�"� F`���<J�*.q�KU�RY��`ǡ�Nct�.У���-��(Z�(��)�G��P�>v�.\��/ҩg�e}��7�����%�j(-���V�W%��tI�n�b��H:H��aHf �/m�f��[G�xv���IV��E����v������h�n�/����7㫛�=���]]0t<���b���_\��ތ<��~�Ҍ�Qa���/n��j����|�_��<�f����nj��-���;�Q�# �h�����u{���RX�zY �������fR�AM�Kd���Q�B?QD[,:�(* +��ȖG�� za}�������w�!�0�0��%<_���Ñ���X����[ˣ $<-���P*�7��w3�/pH�=Y��Ҫ��w G��A��@��C ����c��:�۹�-����I�i��F��܊�%��nχ�w�n� +&�u8L�{��Z|q��K���B�p~=\;t�Mji��j�3Q�7/_�n-o�hӡ�mc�`xXA*� ��`� �mLg��a�0���I��o��#�M��vQno�n��b��dz�⁦`�� ����"�F�2 +�!�w��'�;O�I���2ط��ϥ��t��=��6��������@]P�9w���"�H�S%c����fL�+p�R�t�¡�u'Ml!e�LzN]I�i��8 ��D���nϋ��F|+@�[��)1-� �8����e~���2אZ���PlsC˻�=���.�G����-�y�{� ��ח�^�^\�^����I6�y������5��������t������O��w_}}�fF���'ק��W���՗�������|�:���z����������kNޝ����]�n�ǿ\\_��_�����[c~����8=�k�����k:>��>}s���Q@��a8|��aj�f�?��^nr�cM�����\�/o.��8Ǘ�Z{�o ����Ow�ǚ��_��?{���{��dO����M/z�9m�����]�lń���~B�������뛫n�f'��ץݼ���mzkO�j���l"+�?��..__�^���� ~���vz6ۀ����XSuk���������6�bϣ�=מ��f�W��sw��pۚ$��ػ泚��|~��5IO7��7��S�Ӌ{y���ŏ���kO��������j�� w<��^_�\���|u�����۷��=��\����pz�����C�����t�v��N9�)����>k�4�ӝr�%��۫c�Ͼ�<��SOw���Y> �t}������V͝v�d(�N;�i��w���N;��U��|��M��m�)hj��O�����\������ܳ��6��g��5�E��_�s=q1�������c�&�L�c�򇳛{x��(��)|����Ç���s}�����f���)�3ڀ���ז��m!��o�~�]�|��T|C3�f"q�-��\�]^���w�*]s�엳 �|�c���!n����^�o4���v�'����䛛{����W�p%nΎ�&���/6���6[��t����b�1���R� �H�Y{������uc�Ѥ�DᏛ��W��-A���Ӌ룍�e��F��� /�,�}�Md�yΘM咝���Է�r3=5�>���=bf�Cx�ӗ���7���m�G�ظ�f�b�6�U�|DV�9-�&||uz��|v�A��62��,2� u���ާ�x����Sc�a@߲��fW?�p]�Y���H~���� �Y���]8��0�3MV�\^���f���|��o��鶘�ן�g�f��/Upu���f��)�?�f�9=;� r`{��������͵��^��`��<�t~y�������s�'�C�h�V���G �o���~;J������$�tK���~��#f�m}��(�g_�b��R��`�e��3�ޱ~���V�XQ�z�S?�[��GA�{��zz�af�#��l�w[T�9���m{��}�{�)�u}�����������lv���m��ǚ����������֦�ޟ���g�_��f�v~ ݭ��&�͌���>ڹ�kO�>n G���@^���o��:f�a����&������i�M6hK����\h}s������+��vJ�n�����l�Xóm8�o�.�7�]�X�:;����Rpr|v�������5���������������_��������ft���X������ �߼9�>�i��x4�\�lPt�]�X�����`�NNn�o�۷�ǚ���X?Y��4���;ۣ���#���� �@��GU��/N�7��?�Zy>�&_�]�ғW@O�o��S�2{�.ri�}z\��&ȷ-�b�� "�6�����K��^ܧ~&���=�إ�E��]��&v�9�������v�K�إ]��.v��c��g�� y�f�|c�6�ږ��$vi� ڒ��y�.�<�إ ��eD�Wp�mc(�&�9�y� ~�B7��m�o�=�j��۝_u0O` ϱ���_��R���7��=��� ���bO���oV��Q��Gխڑŏ �iGy~�Ď,���,>O�xp�����3��Q��Q\�(�D��/*��(��ZD���}�a��3�����ķ�˺;i}������_��I۝���)�Q\?��-�_7 ��ny,��3}1෧���}{v���f?c�y5;���XʖVi:�x3{{zqﻢ�"��ώ����X�ny��~x���֞�6nڕ9Z��6�9�����96� �9ZS��9�?a\�=��/������>ÿ_���"���ԧ�(��Ԥ������\��X�{5�-N$�hr�T����lK���ݖ;�6;b[B�O.��_~E���{����Ǥ#��6�� �������^�hr��3�'lnF�U��gt��rnFa+�hn��GdV'�o +>�:�~w>��@��F��Q�kY�oR"�9��mt}܆o[d�.�u�Ϳm v��-��oX�t���y�oDݛ���i��_��Λ�������)�z�I�E�3_n&��<��d��[�΃���?�R���߽G����.^{��N|w �:� +�����}�&gnx�^o������ߜ�}{�a6���bʲt��,�s�����Em���wm!��8�l�ߦ��L�侳*;��Ϊ��HB�w�o�UqEcgZ|�Ŧe~���lv�%H��/�W��x��O��g��/�fo���:��/tags|t�͖�����>=�����s�Pnx,DM�Onvmfs�nyd�����#��O Z�C��S�m> @�>s��������g' �]�Fi2�V�>~�rln ]�s�#��_�A����w�,Q;K����D�,Q;K����D=eK۝�%��Rd��Y��M��Y���xt���㟋}�5+m������ܟyə��:�,j�>���JnK� ʴ� +�<�mIᙍ#��&Eg~�8=��q����}.�O~��h�����y���Ϣ�����vu7����\JT����7뿛��},��`F�����kK�Ӷ��˷o?̮��\��lF���d|C3��u�O���Aiyj���9.�n�v�����6�߭��?���$��/,Vj�S{7�(lN�49�6 �:�eR�l\K7�5Q��hJ(��o��ƒvƛg��=�Myvƛ f�3��7;��6l��`xj۵3��7��x���7��{�o��O��Ͼ�<� �ݾ����e�'�j��Li} ֶտ��|}}z}r��x�,�����l��s7=�T7(�uqs� �ҟ6�c�cM��_����ë����]�l�X/ܶGrW6��bW��+������<�`��ǚ�gP����>��� ���ǛӮ��� ���ܮ�ܶ֕�@B�5��=�Q�#J��Z���\�ps� ���H[�㹉��]���}�Y�7�x<�p�M�� � +O��k�����6� n���0���>�p��5E�-����v��w���������w��N;}d�t#���Ow��N?��[���/g���'<��B?}��; �yh����^ u�9��'CAw +�NA�)����������v +�V(��yy��ǫ� ���N_�g��n4��BC}�o�Y_�ߕ\y�J�f�/��E�ϥ�̮�3�Ցy2EE��^�Q@f{)ზ�yS�h�N.�.�������?�5������_������/g����BM���=x��n���!��6�O*+�3? 3�'l'�<5��� O�3�|�o���&u�А �Z�|���x�ca��/|}r���5w�ӟ#�|ry������V�)��7>�\���ps���d���ߵ��pR���~����L�"Y���=�����&N\��6=�_�lvm�Z�ny� #�b_��D7=%~v��{���x������3�E���%[+�|x?;�9;���f}����&�����w>�l�g�2�����}�t�;w�N@{$m'��6��k>��A@�E�o���c���@����,< +� �����~�������e��S)knF~+ftO��܌�V�h���GdY���_�^�;�m��md��;���������T�O~�ٰ\x�"K[?�UA� ^S��ӽ�L���[���6�;2�V}R��s���J�~�Xȶp�?���v|J����Wk�ѧMe����y����M��=��9�֗ȶ�|Ϋ�W?緲�=��y�\��$�_p��l{�T�<�ssy[( +�m7��� �9���gö��Iz[,����~����"�?o&�������Փ1=�ݿ>�a���&î��N�U�dž�۹���\��u�����ý<2�� ����'���s#��"D���������� ^��O��&��,>O���Q"�6�� ?��Ŀ3�ܱe>�v�T6멭�G��.����qo����_����⍾]�`A�}y�-�BU�^1|<������勯߷~B���/�?\���hv�0�/^����f���/_��������?�����Q}5���1�7p�w}��s{��0r~�T[F��𱤪��� +>�P��֕��� �7�kϸ`l�rN�ÿ��di�{��1{>��CL%��w�г�{�zCڋ��C}�̞���^��b����#\���8��vY�)�^ŽP����\�C�˦ ���)1%�:��CӞuq���� �j��7!#$��ٽ�C��>�v��Mؕ�Ge�^�0@�y/�n{�-�ݳ�@���셀�laȾ���{9⟹�:��u>ְ�-�� ��b�l +��0�T���0�`rz�pv�k��O��.e�7�m L��=�B�'��-M�� ��y��+�#��J��='��s��g���g��=�oqg,� +�b lI��c�o�K������]@�9$���4Q|\�@G +4��朱�bJ�q���ae����.�uTh�`��ؾ�S8��SL؍7>��D�o�bG�4y*��W�Cٺ�+�\aJ��wq�F �P��кZG3J�$��P`�e�3��.�� �\[@���V����5�D�v �^�!д���]�a���b��Z�CC��Á��Lv�m:����Z�q��Y�H���Hl<`���X�������0 ��@0�K�Kl��M����jc�~�3�h�pi �рl1�AsD��V F����Bz�4� C��}��Pl�]i�P�u�r� ���#n���i���^��p >| �P7�M�2Б�65�z!���t�A�.!�#O��S�0o�m|[3� �vpǕ�h��) l faWp��dG�,0��R :ו G��p G+f�_�z|�]�!Јm �d�4@X4� �����!!��c���2�`H�H3L�Y @ +1�����(4�V�L��A!h�3���-�=~�>]|E�E�S�R2VP��l,"�*���Bv Bl�-u��Ӎ��-5�;$����(YD�Ɓ3m����dn�̖~���*��T�(�{�-Q���~�-m��^�x!H{�D�W��J�YB5��G�IQ�c���g�͚�8�,��2��^dF�5.3�̜z" �F]PI��U��F�.! ]Xh �*ͯ�8�xDFf~�H2�����%2�����ɝ˙�tn�E(h��-��C� Г}�o��ik����v�9��'�V8����\�] �zM=!��TM����cv���u-�U�Z~�Zu���P�����&�" O �y �< Ga��= �b���E�h�u�A3R�m�%>\S���f�c>�,��U��i�a�"��O�xC�����[���Q�h< ��-��%w91��f�)�-��B����ŁIC�I��$��"6�_���Lf<��!�Q���#9]��7��-¤@�.l�D�.�eR�H�g�@�P�#��� �I( +g��ED��� @O!po�i*?A�G�,����޵�膭a) +�͊�8j�~�Jn����1��(ωJc��›�\1�L�����X:|��/���4!&(�Qdj���3� l?_o��8��2��%��Mx�T�Y�GP��/3�"}r��T�D��PlL`�r�q �G=ўģ#릤#��2{"؉�>̎S����!9r�jٚ` +�&eGx#E�~.��G)��k��*�p���)U?�޵�x,+^���)Z`�,ST4�� ���8�,��g�c�-��� �e;�g�rg ��>�����$���X!�=1�l��: a�S�TV���l ���p�a�U�l)��{���BZ\� /t��y�>��O�� �/Vx�-'��Ak�u�ps�]��9s�L�����w|3ľ�$ř��wVY��RW�9/҉��'r P �-Lxk9(���X9s>�9B�/�b��5.#_��?�m���;�0�>�Y��W� NX�2ڛ�(������IĖ�@����&�%IL���l�ѫh���y�YI��@���̬��l�W��{��-����x"h vS�LBEu�J���\��#����~���e ����5��������˄K�����R9~�ʵ���y����f�/�Gpt{�5'd4�˜�.D�ЉvK + �X� ���le��� +D�H�BA����y��o�2��_��v�������a5��D �`�x�8�2�׌��QwoF~"Z��/q6[369TNj (�������/��;&S�������2���hb3Ʀ�\�����O�u��3Ѽ��R1���8r���|���w���b>���8s��|O���M����ܑP�� g'�Ќ�Sl��6Y������5���={���[[r�@�����_����훻F`ϰ�&W�4(0\�@�:���G\P�e�7�� +D(��,b|�3O���+7��|�\��^���{I��ml�i���(��y᠋z��q�W��*{8����ن�gs����=�E�݋Df4�����@ӽ�\�\�J3���js�`9��@O c���%�M�I�l���x�7%y�V��B�(� +��0�HS����h�Q�f�˭� �c-hNNQjN>�ӗ˝~���$����KiH>I&ͅH%����@��Ɣ�b���Ow����3&�h�nl���)�^��_`m~V[��N��:�Λ�)��d^��hZ�V6�մ|��wxp����",vJ�9_RO�"@�YJ��/R����bSEH&s�!G�kp!�ҕ����$G� �����<����.z�"G8�� �tIg-)�⃠�rRҵ�ǘ���G=�6��Nb֥-�Ku���N ��ܧȀ'�2.1� L���Δ�0qЏQv��� ��<`����� �����;q�W�]����H���/�� ҃��g��$|q +��?D���E�A%�r���L�7�IU.%��{�i ��=�4��c�)�O1�_K8"{O��ǐ�[s��;α�BD��iޯ����3���u�t�J��r p�w=�t�|����S�1��&��q׸ձ:)D���Z(��Yc���Dʺ.|�iI3�ܑ=�@�J���z�i>dh" <�zYLa��#���7�� �J{���-��{.k“�#��\�x(��ky��@Hc�l�W�X��lGǤ��M�G� �����0m�ټEm=t���K�DR�n�=q�����c��)��ΡC��9<��b��� \����a���9`~{A��Xށ�#Td`y�f���6Y��D�EX$�`Q�C�������={W���Yˑ,�EtNƻ=뼝�,�4)Xsʯ�I�J�'3:i��D������Ċ��@��m:�� +-2�� �8̓ef: +���{�]䧠1�U(���*m`OupZ '�7��C��.�Lض@���KpOc.����������d����& YČ������uo��n3��h��K��}�a��t��*0�R�5�� ODL�����BK�2���_��!����C���\�qL2D����' %����,TC�R0��d�|s �9E��|n��-��Q-���Bg� ��U4R_d�N�|�d�!F�g�!���r-�+����M�pƈ•A�i�tj�__�>��e��Yv�"T�D +M�aM<~]��.��ʼ�\FX$pg5|y�ʷ,��[��!P�J,�!��"%O�����[F��b̈�W����x�)��w=�e��>>��vbP.O\~X[ޔi�a$�[!����&>�b�}��)��j�׵�s�!��(�t:F�jyc���`ӨL�}���9���CU�q��T�\�Ԧ�L ZMW���!�!�� + k�=Y輸 �d^O N.t�vv����������k.ܽ3I�����gj���S� `]�� \8�g�Ou�]Dg7�o��'u�Z���:N�7�!�I�}�'۽�s4�={/�n*33||̋�n���z�Uk��+&��SwIp&�h��`�}2Lz��鞃�h"<���������ݶ�h;[��/ 3�j��꠻�����`ޠ��,��&<%�Ib�l�I:Ƈ���B�K��aՔݎ�W����U�j~�L)�O�s�̺���Sj��ģfC8�W~��y� +������K�&��M;��[�_��j����.9���i��;�%��1w��v�TI��SԱ�����>���K�s�V̕f����_�M'�DZ�+�/<�.�w�yrz��6�˟��n��ɭ�n9�����"���7z��'�An +j����,P{ˉ��P�P�ܳp#�o�}k�݅�G�z����c;�h�y�V\��X^�9�κ��uL��$㏕ 1�ȅw*޹2ۙl�e�?��=#ީK�����$�j������;�Q0�$鯾 𣀉v׺2���w-ȸK����ߋ�?|�R���G�w��i��g��]7S�q���x8��2Z� �%X=l���$y�6Bc�{�I O^� {;�左�x���b�y("���0Պ�a�gA�\�3_��鑟}����o��'w�={\��� �y�����O�-;��G�[���~V;��W��Ϟ��}m^����o�?�}�嗗�>�}Q���4��4%��F�DλT�5-p[I)mY��Ӻ�ݯ�hvʪ6�͚Ց�] ���:F��J8&�}��u#�)����k4�����>q{�la�6���������KL�?ldOp�j�8�}��`(�{��iB�o<�^�@�t���i[!N��z�= �*�z�<|�G�W��k|� +��- �}#���!�Nu�߂c���I���l�g���ԋ���ߘ+�����H����o,Yf�L�g'-��-͹H��vi[痪�c�����\ŦԸse�le���:�׶7_}���rկ�r�tS��'��<�޼d����f�mR�Ƌ<����;-ɢ��ֲk�7���h�=K��`�����>P��L�?�����I��v�y˰�y͕�f K�~�0ʞ��+�v��v��=�~��8t_����e6�g܏�u���dy��h�z�x�=���{�:(�u�\Uo�p��g��8:�Ϩs�֗��y�;ڝ�x^�����դ���{�*��џ�\����G�}�ԍ���jX�Ws�y/w.�X�F�0$ea5bА��Xa[���D���,R���`���2k��z������0I�\D�LR�[@�37��+��� O7�hR��J��~^�C�X��Q���ې��|o�HE�b��'扦?�J���I�(;� �r(Ɋ�%�fJ��ʇ8zO�d~��-t_���i��CTog&�7�T��2Ԩl�Jt�����2�����<��=�VQ �f��%�q ��sK��'�s�g�Df�ˋ��M�_��n�R���='��j��l%�{��&��Q�P"�ey +��*���K + ��&*p6�(�����R� +o=��������'�}������ѧ��w��o�xx��ç�����ۿ���݇y��n����E +�����}�U���^@���eY��B[�(���g�/�%0Y�SV�Y��i�f5� +i�ɫb��J�2� ��+]He�ծ���C+<���3���p��@]�����b�(��0�Cuf=��)��.��l"�9�l:�S`���e§K�E?&�Q�5̣9PS��`f,�i)O��� BA,X���+(1u�rK���y�lb����E�+:,�����:*�����@��f+�>���x�"�7M����"�8��8�l�l��� +A�Jۗg��Q˭R6ކ +& �@��b�"͑XNE)Ւ��&e5Fo[kN5èH���TӪ~�����=jg!�;P�*��� %���c��6IH,�jH�W��A\J��V�M�K�AbPk��!�Q�JG��5���w����V�ĩ�\:8:-��Vm�dK�&��!\�H���Y�d��J�pH����4'�3�<[i�T��7X +���,\����E(+{ c:Qe��ZA�`��ǒ&��+W� + ��A�hd��r��f2Kw�Ή3?�d;1f��4�V�0pz 4qv4�x�� (��v�*Ԡw�7J�c��� +��aE�tX ;k|/�9䭼�q&{y��T��㡥VV�_���[�q�Y峴XLT��k����y���n�k=���`��[�Vn�V�E.��&���ڹ�=^��h k,C/�- k��M��f� ���),�C�j�K?A�Hا�`a_ �b����6N]˼5b�&ҫ8���Y� qg�R3�,�U�4 4�[��ԅ0��+�%t���u���y ���0��Eef�3=�=U}ғ3��c`U�Y�~���$� +�W�������I�^�HzW��Uc�vlA��l80�� ��ą��@-Z����O�����o� ��;�[�����#_�nv��?zr�Ճ�����}���^�������G����G�d j���m�tYY��j�w�߷����������i+�0�Iu�U����K���������_�x΅��sB����c@9#���� K��Q2�giv�Ϫ[ŒP/z3̷��P�(V�,�?��z�n\�i �������n ��C�A�ɩ�e���e�u ˱ԇ_�k����(�tZ�h�bͬ��ҿ�˗�&�1Pm�1����k���1��U��!�?���FO�3�t ��!�m ����w��j@,���W��C ���!�1��!Cǐ�{�z��CD9>].��B +��8���1�)�!��������iYX��Ǩ޴O/�l����c��Mi�S�JWN(~sQP&6`-����.�R�}��uܼۛ��{k�u3�L�g[��\|�KW{���m�ڽ˯���Z��/�ǣ��2�_�:L��u�3�z��N ����y\��^[ڻO�D������z��|Y��ކ�w � ���X�H���:E�*� $�@b�U�r�{�觨�2�����+ +튍T�L,ȹ��%zX6 +u�:�v+�[��[uUZ���=�<����,�&�$<[���(�T��A�"�e����nn6���y�[� ��\��B{΄�Lb�0ͺPe�4��"c��$i�� YĐ/Q4�W�U}��۽3���FbS��������M�o=s@E��h��BI�EZ�q-��^��X��I�Ou��� 4�Fѝ�\���qE��Ch6;}�t�5������1w��6RT�p��Qs�/Q��%�X0PdE/Rj� ��V���CUSAR��m�z��Gv�l��K�W���(V�P�&����*IԀ9�P�6�A�Mk�A*#��!Sݙ* +����x�H�d�J���Z7�2��T��$(R��m����~��g6{�%酺�F��D�-H�D��m��zs�iu��_�[�-�_:��M)E�6nԽ� :y]d��fj�Yf�M|�Ǚ�Ec�;�� K�XP'o���f����H�!���0��x����� ?���Z�8�f����z ��^�&�q�iA�QuO��X7�Xݎq�/�mIZC�ˋ�����wסL��ks�t��p��m���v�U:��q��}:do[\1���VF{���Y5�jMx�c5��ЌJ��a&�l���пu4�zC�.�L��l���'�E��y\��!���;�v��+�� ���~��s�=�(��I��LsG�dIX7jM��gw���|I01�C��Y�Ѡ̧ �J'���m�z��u�k���!��� M&�P}���o_�4�s�-�Q�(z��9w�&�6j���ttt6j�Bc�L�jԪ��&s�ɡ�vZu��!�"���d�_�F���U�A��� %�M��9jX\]{'C���Fj��n�ƹ���n^�u=��Q��[:X5��S�u~6���=i75��*l�h��K����Y��r�<���Ed�j#� P��~�A~��U��kx4�3&Js��C @R�HO���8� \WP��"FmIA��|S��J������B��� ��s������ +�7d��'�c�M&�v�>��9���g*]���W�d����6��!5~Щ�]���cG�=��ʅxܔw���:w��4:����"Qaj���9참��v{�8��z���ђ(*Pbt2?�j����F�6�J��J��T�����W�R�e��m����������2:��������G o�w�����H�2�k;n��ogRO�ή�jg�f�W=�ڵ��=�D��h�ʲ��_̗}Dw|���;�����K��0��<�DD,�tD)�=4���x��=޹�˲Ca�)�|[���g�d�7W��{�������a���wcC��;�M~nPR��RERP�Ԥ��d�ԟ�y�t�v\�q4I�D�^�N�R��4:���j�pl|�j*�>�/@��O%5������}�H��_����`⍚Bu����u�֑\�i7j��֧��l�v��h1��E�� �z��v�q%>>�;�H�����FE��3��R%nMA�I���;�G� �ZOTɸlYRPnT3'�󯐲�g��7H~S�w"��䣍O_|%�'��:*�|�����>�$Ua���b� ����-U�%-��������Q:����$l�Я���nu�⢑6џ����bM.uC�Ke��Ҫڞ�K�w�֠6F�����S��!�� Ҽ�f�'�T�FmBJ�\�jaWx�����~�����,Vi�^UE�3̇K��,�"��eQI�����<͹�j� �w'��"�mչT);�R#VD��Nf᝶�v�E�=��[G�E}����ԝ� �W�QX����Q�����c�w�f:�Γ��Qݹ��~�Ki�Xi�f7t�ۜK������Y��X��u�p����m3���fe��[�=VP��#�� �w�C}�we�U�C��g�]���–����j����%�P�x��P�b3ŰY]�uE%�6KK�s ߙ����]�j���{�Y�l�{���8p'��x� 7�6w���B ��"va�O��H�OYL��6�����Tm�w�q��M��n�~�zd9캻XyFW��F�7�Fm�ZA խπ�0�%DP~�܉�I1wG�����~#�)�v[�S�����m%��J���3�E�;;�M�HM�7���� +7�J��2o��Y�ݝ=�Pj;�ʹj��,��ȼ? �S�[����FJ�^��!��we�>j QQ%~[ !i�}�E�VG�B}��HT�g��$.�����`��L�o�f1�qt�k¼��QQ����L�b,Sg�a�� �%�g ���5�v�!�d�XH���\�H�^&�.\����Ɉ����^�Z(�e��gd� Yj��6����A��t�G�� +��1��$v��%���g[���",O��L�v���'��hX�����v������� �=�d�9�v +�V�;n4XiR���,4^�n��O{ɪ2@�m��lOlƥU"27�ّv��Q�M�ܐ��*#��y/� +u^��F���Z�a��hhg{f%���uR���J�Aw�w�9� + ����DIV�};x��o�SOڎ��j�]2gw*�.���yo�S1��M�ԝ��b���y�O��wJh���Ƀ`'�^����A04�/��"i�����Ky��L�����3�vkW�H� +� �����#{ hC[vA=�f1���fK��͎ʘ��ۅBvcd9���x;��fg���l�~7j����$K}\��C� �4 ��}�� +V��^�s�9ɣf8SY��{&l��L��T q���<�O����;��I����&������r|����1*ǧST�Oעr�Nux����E��t������ӵ���Q9>�r�ϭ]���r��1_�m|:E��t-*ǧST�OǨ��}�>�r|:E��t����ZT���lS|��a��r|����)*ǧST�Oעrv**ǧST�Oעr|:E��t����ZT��Ǩ�Q9>^�������)*��vQ9�u5*��ST�ߥ�[T����OQ9>^��i�5��,��r|����)*��STN%��rv**��?7���W�r|\���](/�������֨OQ9>��r|����1*ǧST�Oעr|:E��t����ZT�O���NQ9>]�������)*ǟR��v��*�Φgsk��{�P5wOv�g�H9�|���{����5;�;�so����R�v�����^";�q4�ܻaW�����t���V���`?��ЭQ��VRv�J��*��H.����jo8Q�z��>���0���z��p;�h};�@=��M�v��v"���[mo�����\���:����7�����o����{;�~jz����t�엤����v�n����z;��=�Qv�/Z���K:��C;���f#�����K��T�fo�-r�����^��9�*�G�lP�h��\5r�hh�ݦ�w�Փ�v�n +������w�t�뷃������+*>Q�v�J��3��bF��<l�{�B/h��tH7�L����n��Uwq]u����N����3��&@�-�P1��$�� Ռ�F�Ih����n�l�� ����<��LE���H�V���.T��f� ��:���R��- DGi��:u7�f �1�[U%��L9��Tm�k�\/t"m~֍�v�Q�����- Yyz[@u]��ljD)RsI%����5��p��k��l��d�]�-T�ZM�f�) �_I�) YX6{��呷҅f +(�5�q�) YR/��\}�uޫ��k�v�M�e�_��9|�Έ�#�,���д�ly�<�4��-�ZrK������I���,&LNF�l���g��w~�e^g-Bg2X�{;k��4H�%�Um�f +HV)O��lm�I�Mɔ69�{��U7S@��v�6S@2���&����⃹�e#m�@�-݅��j����J��- Z��j +H�5�p�l���ZMx�ͱY�N�N3�v�Yҍ�r�XL�T��X�M� ` �Ij��Y3�[j�6P�:8�aAs���9p� �=�_�ޜ|�Y���ߊF�)� +�o�h?e�WG��� ��[Ѭ�b� �Yo�Ѷ{��*�)����e^h��.D �"1��,W�*QӶd6s�YR-���xԞ��c��KZ�ư��4�+Ch1o�28�f%:�hae�M/V�ƾb۪��C�7��}(�&Ĺ�=O����J�C�7�^� ��#i�E�H}P�Fm5߬�kW�-׎I��oy��L�-~���`+��X�Jj�`������"� �,�*Y{�,{�/�MdnV�<�N�7�є�� Q#�6[�F�i���}�����I�}ca|R[�aľp[����%��� �Xx;�xIg���K�:Q�xI�ϸ���y\_r��v���KJ�s���T���xIW�/9m��)���޲�K��`��� �T}4w��V���_�R37����f���bmj]���nqZ;�f7���.�mA�ǩb�;�~k�g��}�/�Vc)��ߖ��vs�r.�X�+�+ĆV����k��9���Σ�+�*_dO��Q7N�:|ǯ�X�3vN)v@n����,��m���`I�lM�`�m�`I*&�=��w6���t���� �ܨ�)�%���{�f��v��a���ۯy�w��$�Vף�N�)���vn��YS�zRX��Ñ���?z��.\r#�"��K�4���$Xx8@���'-�ċ��-�q�M[�w��ӡ��R��QY�ٹ�%Xج�1�5��@�Ԓ��^�~���-�7��yI��v;��Vc�� ���.�����z��7j����{Iu󒴧m^����/э�:0�Ow��[���.���6���Y�(P�%qَ���D��av��}\G�!��Z�G{�O\E@=�q����w�[�ES=-vɮ� ����ȗIE�7J:��=Ugb� ٦[�B�$1���3d�1:Kv�Im���[�7�R�XU�m�#�Jѳ5O��Uf���.�,��fg�^�uiO�f��L�*Pى_�͝L�hy�� Ղ�O����۲7jېK2п��*�{[��V�ok�ۭͯ�W�Fj�,��d��O�,S���'�l&����Dz���o���7���nf6R?���*��,�qM)�%^���k�>c��۳�g��3#)��Hm�v{f=��{'WM���Ɖ�!�X�<�k��m^z�M���m��[w�Q٣����:Y���I�>� ovN����s�S�w��uV�\��~@�"'����kT�9D{�{‰J�l�j���C0�~%��B�� ��A͊���7Uu�V��� O�J$gP��^ cڜh.�x�8��;�é� ko7�QV螪��h�鲑�1�'�D�+3eϵ�v�v�bI�I,}�p�֯�t�l� W ^['D +����?�̚��4J?<(2��IK4-��� 9��l���W��Sѡ<�JmO:���M�FY#JY�dj��c5�"Vzr�-B��v���Ҧ*�i��Xs�a3F�M���A���0�G�kLס񷄃��?/��X3�[���G�w��۹��"�Z�ܵi.��/�Ξ�RطrvhN�]��������^~~���W�\{��d��M�+p��T��j���ZR��dW�[)k�oU����ն��R���O�>5���� �rzS��U��܍]unK��V����Ŵ�n�j�MK�i_]���_�Au������e���T��O�6�{B���Ծ�-�/��Ǹ�oW�� y�U�~3i�إ��I��S>uS^�0���%�����~�{^۳�GK�[���sٞ����'kL����k{�:�W?I��ݯE�{^�3R�g^�/�~�{V�sɞ���ޮ,�Q��������ec{�n��m����"w( -掷�.���o�3���\Q�A��� ��֞ݦ���݁�_����_ѝ[�/s�F�iCvU�������>�7����4.iאK�C��n�&c)m�vؽ#��h�خ�����,�U�3��|�����#�/]��+K��a��^�����y=�����gf��Ž���m xf�#��|� v#�N�������� +��x�+g^:�ۙ#w�[/;Y�����hg^���n�o� N������^۝g�"�X�"�����g�|������=�����6]>������G��ҥ�<�������_޾��ߟ����?}�������?��7\��Y�Q�8ݤ�2���O~����_=x����Z>3�����?]�������>x���_�������=3]>������)��߿xX�� �^���W�>��v��?��/�=�=����z���˟�G��\<}���E���-yZI���˳�2�'?��t�������?}�{�/�?�������{������������?)��[b ��Y2,�fG�̿����},h�eQ�tl����<���B\��˨^(A1K��ݣu�]~�HMɋZ3 +�����<#���+{ +;Q58)�2C8�2w�0�~��Q�� kfz��e~a���@2C�u��9�����{_�L� �{gkp�5����cʅM�!^�I� +J��d���eV�u~�X� +� �S2r���v�Z���a�����ң5g��X.�&�I^%��]��3��ta�̬粆�)���U�a��r⺲P�e��Xf��Lˆ,s�*����d!���8[���e���lw +X�FT��[gA7vJ.���BI�ϲ�6�ۿqmD�.��Y�r����Rw�ELyO\����0�C� l�3�y#�ؑ��F��n�F�ӱ,O��R��8�'���ZL����s9JϘ�9L[���zQ��oy0�R����ZX����D����.����v��3t^�^k��]3f>f?B ��>�`��YY��]wF��.�7΁����lw��P6XyV�!���T��k�<���4�af�յ����r��'�� *݌k +eo�0�����qVs(�*у��L��=kZ/i��[��9ܒ+T���j=��;�'$�j�gd��1ž�Q����X ���t�Ij�8E��ً��f�4������5z���]h���y˞��BHH��r�6�9� �ˢ%+x����&��.���!n�� +�Jp ����f�xM�J�-ϒ�KN�^ݤ�4!z�U�:�M��E.���u�WtUL]B Fc�s���`�1p��� ��`��Q��+�,8�l��A,����M� �k)�l� 86�J{�]��̬��G+2<#Te�ݶ'�U�[Cu5V���L+3�fV���Q��g��6�v� Ni����C{���c�D�(��� �7ڦ�MPD*k�`Ӷz���"-���lf� l����o�*����'�'3-9(;qz��E@4Xa<���*#Ԩ��Z�9P e�X�xV�OB���u�, �-�N�l��8+�EJ_&DpOD�F�J����l�x�WCD�4d�9ɧ;��z�j�Ġ�c���A�SٿqVX<���~��Sp�" �5i��I�{yϪ���[� �B�F�ڎ 0!�D3j���$L�Lt��&����){#�Eb6"���{]=�2��jRm�rWdL"�������5���J� �d<9��RҼ�o Ϩ/�TQ��n�e>����&��1@\�� Zs�>��]�!���L��V�EϚ�Z�~gq�����^W��TNCcW��(��d]�3��O�F��"�#�� �d�+d�����Q]f�C���2� �Y�ز������MApZO,�, :<��qŜ�M���-y(X�ׄ�~��*^%t)�o𪲮��Q��6)�2!k�,� +ŽZ�K����UPG�(,����[�xA� �V4e����{�u��m�� D� ���8KC����/PD�Cψ�)6�����e��ˍ��nj�3GW��BkIR�9���9/����Y�Obo��,_dU-���XI�C�E���,1��~/ +�bR-��c��D��[����{Q���˂���y�vZ��b'K�a[0^��^m�ɚ�Ma]����SVd�ߢwET��"���Oz�F�_he�3b*�:S�q^L��X�x.!�o��NHՂ¬ýi�h}���,s6N¸i��v�� O|����-k0�y+t_�������m1Ö� ��a�]�A��\X� ֚�~Vy��*�-���RQ6-ʅ�~�m�r��B�I��S�}㔴�e�TF*�䲲R���uU�9[ϔ�o,�N}kt�J)w����rG��=��T_�=��U�,� �S��sʻ��Ym�)V�i����*1�** �P�Q��n-ed�f� [�7�"��h��{�Z_���4d��B޳��v9��]����pF�7�婗+,W����~pu=�&�]Z��i�Ȫ���F��&%��'#�`� ���;�j�j���^3#�� W�� 4�(��"������=p �[kz��w�|{*�Om��4� �w? �X�`����Y��>� s!�b�V��\/����!u�h|� p[_�n�I�Ý�T�Y�ll���`ٿ�j����g�~�tΗ:R��O��iw��.�JQ�av�,�ᬘ!��T������8���*��:�cX�z�}�t(U��4NսaU#~�� +��&����/j5�`O���e�(6�h喲|Pdp��zU��Y{���5�?�6����wX�I*��r���N�V�6�5[,��H���Z^���%`�Y��� ��hb-OJ��L�p� x�U\ ڴ~���>�|bhxJ�XgPh\Cd���fX�����1�ڳZ�ea %��>�p�@W��W� +ba}��Я�T�/����q.t���ֲ��&/G'P'w^��g�[���f&5��୽� �XQ�"�6 �)S{����Qnb9���Eu��;��� �r���Wˡ� + ���h��PX�� �'6(M>���r|�s����e+�"I���}E! n�m_^� # +�/��g'���<�$F�)�^x���c@R��瑪\�_���+8�a��� ���y �/��` +a�.�Nn@# +�1dm����e���C �ʤ��0�-��0(�7���{��]2�p&�,k)�=ܕu���`>S�������ֻz�w��aJ�2�(��� }N?x�:���f�� #7�wa��Ů� +���Gg�D��)�(������VR3��x�!�ˡ��~� &�OP)$�JE�����h��N{5@:T����•���-yb�ޑ̒���񷀛kY8�S$.Ӳ�Y/���\�:}���d�+�����Wr�A$�P��4;`�k鹇��� Fe۲�0?x�](����e-��"W�\r)ʦ��&��Ӫ��AZd_��������w�����T��V�q�A���8e� l�5�w��K�- ne��@4��}����өF�9�U�f� +ϩ`$����-�R @�D9 !� + �0 ~UO-v�x�@ �-c��oF���;�^K�Dt�R�K�!Kj��$�pKe����4�zaq@ʰh�B��Wk`�q�0��M`L$�d��F!���# B���璀'�g��K:��0��X�Y�W�KG'HD��*>S���1!���ƶ�L�Q���p����\P6�G��mA�{���V�o`�X�=����)�j��B�C}U��B��sP�  ,1:ӣH�4�N���U���� J](�BV�('S$c�fE[�����*�V9k����*:�LD�Ѫ��GEI$�5D���F���%W�/V� �LT�`�K-&�T�a#ofXh�o:L۞��i�J�,S��)�Y#������7@T�n���%"ڀ�฀39��8�d�jؔQ�8�\�&��x�ݳ�^?[�š�CP t��"1�ȹ���0+�eUчN���dw� � ��������=ꮃ�B� +i������ I]$�3�.[��M3�O.r����e��n�|9�D��C�la�U��GY�Y�߰�$���$�f f���)Um���9 R�"̛av��{�j����Ѫ��:{9��fh�� )�P��0�j� ��Ú�@Q��׎����[�4ƽƃO��gO�x����/_���/O�}~ [��8�QL��Kr�����c���w3?�ۘ���?��gO����e�w�����_~�O�����o�y�U����ʔ��>���g~x����/�v�Ճ��������?����Nj�z���Ǐ����{tk�����'�t�������O��~|)#�h�{�-���� =����<��7���K��W����^� +���iY������g�����g_�\~�\������٣� c����uEݯ�}Q�1��6��^\���z��||��%/l�_��yN�w�a�_�S��?B�O�\���_~v�y�M������\��g�~W�L�� lR>�Ń����^�D���I�;��C�I�(N���_������^ `9�.�ps��{�zw���+�g��߼}5����; +?����ӊ���z�/��ϧ� ���O�>+���+ +8�ɧ�}�����{ ��q�*�R��Ӌ.�c}�]�߀�?��/8Ň^y��^<���o����|t����Ͽz���]@���+��s�U��^��\���g!=�h�[�Gx'�c��8�SX� �_T�?}��TJ��j-�rb*%�����ÿ\��R&�n,��|��/�Yz+K�jm9��_��/_>|�1?奏�藏E������*#�D{�����G�'^����/PC����5W��_>��T!,_�X�" +�����׏_����v�X/w��ފ��_�A�]��=.������m���<��mQ8�%�(�����S����K���Q���4}�_>���������0�;���C 10��C��»���@3E�E�����Uf����&�x��C 10��C��"�u����ˢ�J��fTD폒3�0R�T��C��C 1JL��1�(<�b��Qb�{@���@ �� ��� nf���7�53Yӯ�1:��)�0L��Kz�r���J�S(1jR(1�ĀJ (�B���Č�uM�N��;���bf�C�� � PF���%Fi�%�Pb@�%�C(1�[b�b`��!��=��5��!FEʁ!�b`��!�C �N~b���#�7����S���7� �t�QG�c�Q�r`��!�b`��C��s�4���f}��\�Bt�U���=`�Q�����,��Nj����a0�0�y�o�� d�ΐ����6��������k�'�4� �`ZCf��4h/c(?�[���2��Y&шO��ӷG"���D�뻕�;\��~��;m~'�a�ЦB���K�i��S�6n*�������E]�i�ߥ8�L�۟��ց��ee�?������:�%�`�~��C:B��ZE�w��kW�b� ��#(n�yq�e�B�g�����b�ue��b`��!�x�0���g���F�K���[�� ����>Γd��� �.�Ĩ?��H 1���$�y �XT�-�)��e�����w�m�x�bԌb �� ��}DVX%MK`��X����]P������JL�i��w�#F���#�8b���#�?1������B�Z�B�%b�� �|f$H�s1��1�@A �>"�B�/c�g�g���Ud����%�x��ɤb �� ��G� �goE���(�r�T���i��l0P�F3�A��A �ZA�P�(��"�Z�.9p�;����� �� ��� nf��6�53=�Y��g��P�$}- i"�x�@b�@b�$�@��Ʌ�Y���w.*s�����Iy�W&�X�w$F�$�@b�$�? ��a�:$AoMAN���z�>t��V�+F��;Gn�b �� ���C���.V�^���a��6�j��9��x�bT�b �� ���C��'�����Ȍ�,(��g��MD��E cT�z�bT�b �� ���C>� ��5;�|3װ��cM�<�E�{�0�M����q��;�h�@H�{? +F��:���t�� �!.U$�`X�E�G�#�E�C��=���!FɁ!�b`��!��u0Ĩ$90��a3���b`��!���b�Qur`�a�b`��!�? �&���bY���u sb�\bk��g2��y�,S��$�%�U'�@b�$�@b�����ë1��H 1��� ?�O 1,H 1���$��]�T���3KGy��XEV�)��dk4�x�b�b �� �b �� �=��'�Ό� �b �� �=�E(�6�� ��}D)�@��S\���� A(�B ��U����G�\�@A 1�@A ���(V9��b 1�@A ���(U9İA 1�@��X�:�H�L�RDf��'b +7G��0��wQĄ��x�8b��8b���#�8b���#^G�j�G ���G 1p����#F�ʁ#�=b���#�xq���S~g\ ��)�)��7nJ �sE�� ��"�0�T1�@A 1�@�A�*�A _�@A 1�@�A�*�A �@A ��!��ƙ-�\v~��K˴A0��,#�ɟ��g�"�Q�r �� �b �� ���bT�bx1�b �� ���bT�b� �b ��A��/�,s� ,W�F� �"���TΚ��}H~e�'@�]�Q�r�$�@b�$�xm 1�U 1|H 1��H�6��*��$�@��Ʌ�U*�59BL޹�\O3��r�'խ�E�b�w $F��$�@b�$�@�u�De+���$�@b�$^H��H ��H �� |F�ݬ���+`�9v�bާ��"�Q�r ��r�a ��r���aT��a8/r�a ��r���aT��a�r�a ��9���><�"j�N����`��)�\��8�KdN' +W.A�S1�T1�@A 1�@�A��A ��@A 1�@�A���A �@A ��!�%��j����y?L�� R���/EΥ� �)�)�b �� �b �o� F%ʁ �c �� �b �o� �(A9İA\ۧn ���y{������}��.x��`T��`��� .�`��� *.�".�� .�`��� *.� �`��~�����/��9�c>��LC���Q�q��� .�`��� .��`Tp�������?.�`�����?x\0�GF�G���Gx&�i�������9Z �wl*�N��g�M�SǕ����]+�!�3� f&�3������}N���g$��mL�wg�Q�u�!���JR�W�*��Bw5���A�R��e�#� 0��#� �G�^F� p�FA`�F�#|/#FߵA���b�FA�-��!)���$����u����|$�e����/�1į���c�!0��c���!H�t:���>�ߍ�P�}.� "���4=���QK��K0���)+1���@_刁H` ������I��Tr��~/���D��܋,��*�\)���"|�#FA`�F?Ax(/ru�z�>dx�]�A0(���������!-���Cb�FA`���!Q����9����M�(��@�]�|�n��_�#�u�G`�q�G�DA(����w�P��v.d� �y]���rLA�J�/��#� 0����!���"�J�"�>�M�#| �@�P�Q� t���_� ��A`�FA�<���@�^�[��M�� ��>t��?�p:a�':�@?0���@�T��H` ���� a�/���!�فp���9� � +ˠ�^��(>���H� +1��@ $0��y@��rR.(��~��2��{����&I�iIḌ_��E�9`䀑F9�<��'��@��r��nt7�q�+))��E#hw�Ot�$pD�/E^|M%FA`�F?A";I�d���O:��p��.Ʊҳ�t����`�K��#� ��)��?��\A8{A��!�]oI��J\�o����������)����������e +���$���� ����<��'�%���<���Hb�=��yݤC !0���� �����/�� � "0�� ������A�BI�$0��H# �$~ ���>��WIb�!�B`�#!N���!�DC !0��C�!p���H�;%1��@ $0���@'���‡/��C !0���B����C|�$�B`�!�?B�4ݿ ���Pb$��FI`$������ |s%FI`$��F?I�D�?:�++1t��C 0t���g���_X�!�B`�!��8U�χ��J !0��������� !Į�8W�����=0௮�ݍ'���o���=N���|��`�>t�@:��@g����'�!�%�Ib�!�B�=Q8[��~|�$D`�A?D�lݿ ��Kb$��FI`$������!�QC !0��C� !p��!�U�B`�!�B�@��u�.@_,��H` ��ď8[�O��bI !0��C !~ ��ٺ>��Kb�!�B`�!���� |%FI`$��F?I�lݿ ��WWb$��FI`$�����s���C 0t��C�p�� !��ru[w���� B8F����*�޴�6�3&��=T�L�`/�r��]���ț�W���s����: �UgB�v��:�' ���@��͘�z�}k�z�o�xI���@�p�p����Pq�Tj��l���ڗ��9��{k��{Н-��ER�'��2��6��UH��`�������S���!�3tg5��nwU���?Ng��*�8��?�-\OYĹCeq�[�T�B�2``����Z`��ȿ!0�N���� 0��H# �$0��AÏ��;$�3`$��FI`$�;��|�3`耡�:`����;��>�,�C !0��� ?����H9�������b����9}@�y0��' �Y�!�B`�!�~;�t����'<�E�I2��.��D�~��#�K�������_� vsn��?�(���-�_�O�_��7M`\p..�� �z\�- ز�?�#�e�w�NI�d�~�tS�^���OH���H�AWIhW@0�c�C`�!0��c�!~���}�@� n���c�3�.���I��C� �׍��#�A`�� 0��#� ~���@:���(� P ���� Z H�.��#�D�N��`��.0�����H` ��?g���I�<�)����pM'���^Xy�HH�)�eQ� ��b�FA`���~� <� ����}���w���`,�3 x�5�3�B>� 0��#� 0��9�����!|.t��&�)H��tQ�ၰ���>�=�#�#~=��c�q�G`�q��~ ��^���(����B��(�"�C�VC3����!��U�Li��{�0�v�3�8{�>ڌϘ�'�Qeb���G��K8v�Jf�a��,��%=� +4���BA���쿭t6� ��i��:������{esx�|E3�u\��-�<����f�����yG���^g��=����܎̓h}U�w��ey����,����h�}�����_�W��b�nA�9��n9 ��ɢ���=A�yb���j���ϐ�U(�oKz1�׷����o����א��IA�Jץ�0�����M���7k�G�Y�:��������{�;���+�j��j��:�����e7� h7�~�b9�{jя���5z䁏� + >�,F6��y|ddl�g0��tao�‰b�~ +�2���Ӊ� �ګ�Ɨ*��]��W���_���7�W����O6���o��[��o_'h��A��LfL��)�-y�����Z X'hm<�uq��~��}����8u�� +��{���H���vq�JX9�Y&삽'�NN�'���IP�5����� �R�-[��; � +j3�J��V�L�o���ݰ��OP5��T�}�`�� j+�c>^���C����W\an�\�8LVN�&b�n��]r��\�3�\�R��t�u(�P� �y�p/J��G��(����N&�č�]ƕ8+�b���\�~���������"�ü������ڸ�_��$���?GJ��G��G��#��#��#��#��#�yF�:|R����U0��ӳ���0�����ײh� g��=R��2�� b�\e��(')U5,��=���A_0I������#����&���G�M� ��]�I2�1� ;�r6�E�0��?@32�ߍȈ#�ˇ + ]5�KX��'�m�iޢbq�ڑ�2,^��-��r� �����x�W��p2���rz)��T���#Yx�BB��8��#?8�U�� + R���yw�?���f��ol%���3�'���W�Ȥ;��)����|��M?{i�ۦ���A��-z6Y n7@p���`6��o����b3�(���F�m'��v����^�6!0���(���,�ـϋK�f�^�Di���K��r�ס����ĸ�Fޘ�n�9;�n���}�v�$�-��N�-#���+9o��$��zX���f�`SY.�\���e� +���#e�x��9K/�ʬ� �H�2��f��y⤐���@ lt��p�+�F�7������g��~�,:�}B�����J�g{��6�>�-t�ɇ��� Q�����j�ǀ^Aw�}S9<�S�v�ޟ^��U��� �^��]�$j'�T\�z� �j�� :(��rK� +ɉ�ꐹE��ڠ�\��tA�C�͛��G�P*9i� ap������|������By�V}��3�%�'bÿZѻr2 ���nF�%ǃ‚�#Z�_�︓�*5���c��mGY��ru��LQ�C_��La�@l�z0�h��v��M�`o���V����cR=!�K��SْkV��NX�h�Q1d�=!G���d��Zz�rB��;����Dʾ���uw��wV�E`��>��s�B.Z@W0 6�p/�!X���tQ��n:E��};P�����%�`/�X��h����Cvb �#��d�ڻ�qTa1�|��d�?N�t�[�zB#�q��b-;�A� ��ܣ �^�!�uV +ر+(ׁ�h>��f!+�a��!*��\F�I�Y,J>�`�����;=����DeA%��.4��*ԣ��Se ��pp�͉�;IZںz-7�l7��<� �Jo�G�"҅�{%Y|�-QP��'�.�m���.6���Dd +���r!+a����ڦy�[��&8�]ۻ��,��I@�T��d-Y�K����2)���am_�;��K 6�ش�c�H�>A1��n�ߕ�oc��hZx��N�Ċ���J�m���|c 2V�E�(OZ�;|�V��rՓ�8��Zn�Q��V^A�����(`k[ *6�.zrs�)���͉�}�Y,� +�Z0*vR��͹H��h��o���mb�����Z�\i�n�p���� r��X����3?��[t{�?�nN��f|R�f@��J9�S��W^T��U�]��: ��c�/��:�z�a��+��f��\"�c�b�� =c������,��#{�Cz�+x��m�f�BG_�i1F���1�)��O���X-���<����J�Jm��|�]ՊD\IG9��;::� K��+x�R�MB�wg��@9��Oҥ�_�rk;N�3��_��R�>�*�٠V��y5���)����2*g�~ȑ�����c��� ��=�ԾL<:�0-ҏaO���e? �g꣗��?��ϸ��������^��C�|��aT��C1_�s~����: �1�cV���RW3�� �����S�ɺ���z���m ~�H�6��_��G��-��2����w��4�����������5��L�Ʃn�P�C�m��*ޙ]q����u�T���6�����Krh�ꒅ�� q ���G#`�iTcg2�*9�ڗ�� ���_i�(E�'#�nk=;S*[�1�G,�1���A ��q�B���y�y��w4j�k�;z?�󠫆�x>�� �p����M��6؋&M��v�s���d&�z�ƪ�;}<�иQ����כ%��S��9oS�i�o�~�&qΌb�-��k氠��~����6J��U�5�p6`I��d��絤��{ʥ�����1�T�Ȇ��b5kt�����,�;oG����Λz�������QZ��� �(hO)�[g˩.a�� +-���%n�?�$s��T�Eg��̣�z�����{9�2��…�~���e��U�-�s�����M�1�ͮNmmW2^*E��ѿ�d�K�1�6�l*u?��R%�n0y�Ju�����wf2��U���/�9�7��Ό.(�[��W��&m\�����mf��M#|e��\�W����ƚ�Wi���J��X.{�*0���x7{Q�R���\�U�u\em�5T�v�Se��L*�hV�ʃ�\{*�f�U����ʣ�U�U����-�T��;� +<��T�^�*�ozU�H���k�G�肴��sR�xѼ�RzZ�JW����n�V��+��`��TŎ�]ug1�*z*�z��&�Z��V=O����S�zZZS�����i?=zUo�����jM�ZiU�~����ꉬjh}��e{F��k~�6VgV��u�j�*^R����8~zT[w�ڶ�}��R'�v��9 ��|�j߽��mu�� ��t�K�Wk��[��ν�f�b;[V��%��:{X�7���E��ڱ�Z�^S���s@z�9ՓGP�\�zU�*�$�1�CM����I��˚l�Hk��iXSi?�5�ϰM�Ҙ �W�J��T:�f0��5���' �YTc�Zi�廡�`M�����XK �Z��q���߿���J�M$I�6�ٴ%Kӣ�Z�am��hێFE� h^��Ra��~����&cש��0 ��?�u����#�; ��Yt�{}D'�5]f�0֕ +a���Gu-��I�6�~���J���Qѭ���^����i�Ao��Wz�W�*�>:�}�j����B_�[���LW�!&n�h�y�/�M�~k35 �u�f� Ow��n>ۆxa�6�ʵ��Ҏ������ C�e1̋�w�f���� ������H���1���S����d������v�g��WE�,NP�M��6⃞ɑ�TL�b1b�{[�M����T�O���|�i�X� +�I�ɘ�f>�Y��������zM~���9����e��Z���Y�m�N^_̛����d�Z���%�Uw-�bh��&g�f鉶t�k���[6����5q�3����l�kj��X˽���z����W�:�N�6��>��t����l�����0.m O�e�h7K���:�mGτ�)�)}wf��W����06�bHk���Y~1s���V�v����Hl�o�r`�rK&R�(E&�D��8q�>�Aս�;�Ǩ��}ӣ�����ɲ����o�����Z�_����w4��]{[y߼mT���/�T?��F �0�P���Q!�w�Oo��s�U�����c��e�n��lZ�U궥�߅ꕀ�\m��Gs��y���ϵ��#]N��0�(�#��P��l��57 ӌ����g�Nݤ����}�|*[���Ѵ�kY>��V����z}q��U���90.�=׭����j.��Hh�$ʚU����ZZTy@����|5s5�r�t��ڠ����ڤ��_��89J>cj�M��3E�bV��b:[o�=�[���[Lo�m=�|σӦ����,������dz��;�� ��w%�/��e��)����o���"+�����HY��}WֿXBͰ!�y��]��-�3�q`�P��*�ѐ�t�k-��MQ�@�1)��Ŷ���=o:�,�t�ۭ!�u�39��h��n����ut]p:�h�������(�P��܃��"���n�*�[��7���ϙM��5�~�Y�"W\�r����4�tҭm�?g�& ���hmZ��m<��c���!M�[.� Mӯ���>�$��mژ�į��{y��6�P�{ + ��Mb�}&y��'{d�+Ȏ�4z�x�-�/�TUq��S��4 �O����-�T��`L����PL��[�����=���9��k�@��Lᯉ%5,��$��x��#0y���3ݝ�F[��X����0E��1�P��k4���p)��mx��D��^2�n�y o�E�����,��6� >�V�LZE]4� i�)���d��D���%���]�+�7�Ё.E +endstream endobj 5215 0 obj <>stream +(�� դ�U���D�v��/䫦�ttB����LC2|�jAE��ι��H:��j� +L��5����l9s`?�H$eu&�F�]E�p(���C�yh1����ɀR��� �lHc� +K ��GO�#vC���z�>{�z�Ӓ: +_�NǠ�S�LJP6���ǽM���bu� N�������SOw����˛�oS�6��Ng���Z&��T���1Y"�`�%X3 �z'-���)������(5��(�<�#h�Z�K������sY�g3��*��,�1���q"� �2Ą�(Bu��`}�����17��a�~��h|�y�/�$&dն�����)1��ϩ.2'4m%�v<���ȁ�L�=O�9�}��-ؓ�Oog'�Q�վ�X�-^J'�yA��t�?o!I*2��� +7�ʩM��ٺ&,h4���df�Z!d-"�����r=�˺ɬ�]��t� x̭���d=��贽T�&M.��+8��`MWMp��,��s~Ou�2������?��>�I�$lL3 Y*V/-G�F=�I�|O�L�B����R��3��O`��To���S@ e�aĴ��P�2l�Ug+3��C' D�������X�U�����/��{��D�N��>9��x[B5�~7�ƨ#@/`iy����) Ly;�s3�V3˔�� F>4��Z"aʅ��슓�>� +�' ��-JyL�-��ȼ`��KQ]|�'�p�^؅���M��h���V��*�}{���*m�iҾ%�L���"`��ab� ܑVc��� �,�GLQ� ��2��DR���� ���Y��*���[��|^�`��а<|�<Њ�R�lE H�_G����� *�SAmB���Ř���2}�͂ ��gATK�!�l�U��i����� |�:r�r�) [�0r1 +>�PC,=� q{Î`Dv|�`$�`0A~���� V�9F�b�DUHg�F@�o@#bOvX�F�_�~1T�?w3Mtz(��p��/v�g�7�� +3}E+hϑ0�kX�,�W��dl zz`K�_��9 �[�V@u?6�����F�ɋ +Cf�D�L����A�0Suכ4�%�W)�9���4��p +@^*��ICԹ�=o2�1�1-t��ZY�|���~1Cp諗j؇@��v�?��U�����`����E:J�Sh��e�[��Cj�9F%Bx +��\���5P�]@�����f��C�Es!�4� ,��]`_�7�=��� �=�� sP�l,^T�x�X�m' q�f���f?����S�7Qf��Sb4N�ws�����?<\y���n�?ꦻu �H���V���F�6>I�_@ŤJ��n*iSeL'=�NK$�a��4��ǐp!�x�ށwV�����{����[!��� +1�Sr}���G|�h$��?�c����*����q��>�U���jc��� �ËÜ�|x�u� ���Q(7+�������R�"CW���`�:̯4��c�L���0�>����!���6n����̋��z�،�x���=�E5�HC���k���ځ�~fRqPQ�~��M���5��b�����>�r��W��*Q�]���;� ���ZM<�Q��{��X&r���#�X=����|�,�T�)���M���L � �<�O}%`s\����Ե��~yN*�Ov݃�ؼ��"�(�fíM�2�f;vW�]ɠ#Y[2O�?N/cNK�2�P� �#�d��>&����_%�2�^���y��(����m/U�ҝ����NY�Ԑݳl���[���l�).Կ����a'� +,R��;x6�����:ԈU���P����O:i�,ҧ�O�Z� w k��=�X���j��N}P� ��ɭ��ߌ�������jHs��]QK��` +C�C|� �`M�L���Y|�3�8���'�4��T�֓�������(h:�����7��`� � +��ͿdքE*�n�`i� �"��]�%3��0Y(�Ih���xQ�kk�w�� �e�sL5�Mګ}�Z��wp�(uz���wϠ�}Ղ)0���DV�c�ٖ� +y�"��1Ck%F�Q7�ڨ*��`_8�S�4T��-$K1E<���"��̡r@�8�������q�'���9�K���қ��Ju�+� `&��! AUb�@� �W�x�oȄ� �>V@m���8��`�Tޢ!J���\�@� �o�>l��t +��[�V�Zg"�� �K*4�|:�DG7���I�'$ �wSv�����W �����J�N���!�j��@yڀ��ϟ2m�^P�.wh~qg��OF<��nw�h(��@�}��^���^'�Q��4E�����K��4}-����|}0V2��Oc�z��™���g�Ќ�u�)�y��_����������ȴ|��#<��4+��~���h��4am��t'��#�5�m����U�6��F��M���.}]��� A�����Lh���3 ������C�V���5�d!?�f�m�S0i���`��*/�v���ow�z R�^���>��è�b�Y�+�G�D���)��x <[��"� ++�'����� ��u� +�|�V���?�:U��~@�g�Lթ�>����Ꮥ��Xu~�yr�.:�buD@��ZE6X +F5�Ǟa�t���ɡ�@%�έĘ�Ɨ ���0�OK-T� м��ۚ��n�����og��B��F��Ka������)K�%�F��1��;qZ��e�ѥ��l�����1�}�ۛ���� �)�]2�<���F��M��#��H�f���}r� ��x��M���> ev�����q���$\]���p7\Ū �>�N��\�a���it��VV(��{��;gB����!��Z�e���SW�9�6m�u��kӓ�7�W ��+�b�e/l�zC��[�.�� +'GJ�n�*�eN %�A���~�މ��N��Ȅ�^u�(�Ƽ&���2�Yi�l�51����g�\��ld=����H6q֤���n���1r�GV$�vL��/�_��NG�Mg��5���Ew��^�o�y:1�sq|9ɸ���y޶�Lk鸢sW�!��:�>�4�Y=�7y�5d�G �����Ǥ��o��'�I�������V��Ė㲙]FR�����X��b�B�Q r‰�U�]�ԩ^k��4��IG�tӿ��ޞƏ@ݱ�x}` +P��Of���mA�la�4�&�L�(�'^2�&�E��rl�f$��}�s������ƙ�7�H͵��*t����n"�zs��v�0�� *�6fE���s���C���8�[�,ь-cC#�Պ�g����MAc�!�۪'�����H?�����Mi5{[�?�|��K�Fz��5��SU|u�E�N�UC�Ӻ]��o�\9[�O�]Л<#���GN����#��L�B���+м*�d���-���V�� +�R�T/`y�Q���S/Z��I��e�Pxc�r@+�Έ\�<���-f�]��3�W qr��^p퐘�#tr�$��uz2G) ��tF��J��@�}��mˊ�ƹ1�r��F������o��Ѳw(��Q��E`����m��nƃ��mD���fl\��g�qS��8�L��F�s��dpB.8��P�s��]����C��u�1�r�S]�;Y4��0e��Xi0X@v�gIO�B�];,�� ���su��*b�;D�_F/~u����J�i]�,N,K�l��q4 d7B��=� q�X��B��k��&��}b���:�A}��w��L�ξ�����z�@��M q�ν�J~��> V)+�ث��M� +��Lp�@ +�;�O\CrB*����b�>���u���Γ,�R"Ec=z��l��?��Zr�u&>)�{����ʣ8�J%$�y,⡻s�H�>��.��<N׭(�2����E>׎��ɍJ|�οH '���(�I<��p�P����]�nY��+3���F��œF�^��f��e"��C + r>�W|���*s�ݟ�/�[V� +�cP����6z|gO��Ǡ�� ����^B2�m��Ovr���tn��Q|�x"Qұ٬6���d�>�ɃȒ�O-�{bP�GOI�=��7��_��b��x$�%���Z�]ᰔl����9ݡ������� ����xr��L�{I'9$Z��[�%\��*�+V����D�!���ٯ��'���Ю�l5����Tو��p�[FDߣJ��k�Z�����W���Q����� ���Ⱦ��MG�ݘuu����/j���gw#E����s�UO�c�i�y;2.�%a3W�"%�a�KvWѯ�L;*U\�tp]T�9��1a۶��7 ��r�'�z�.��ү�:*�m-��J��ΌMrjw�}��+� �����$�j�~-�ĩf�o�@��.J�M{-��,UjR��ĩ�TFzM�hq���V;f�* �^�%�U���1�R�Tݦ�%���U�~�&o��jV�.���T)�vA��T[oDzx_c�ޠ��*�'��uQ����.�a�s������M������m� �����r��H��^M�"�Q� ���}�R�Lh��;�:^�%�F;�7�%E���}T��B[��e �ŻR��5�AU��C���΋bT-�Y �R�cßP��hY����"�~�^��:=�j�sgY�*tMH���%�Kit�E)!E�Cd� q�"f�-D�����X�vT[6���w����é�4ͣ�"�^ ��T��:;XRՎ� {W�i\|y�HP�4�i?�&E5I�̯~D�4Aws_��'}_�Z \�T �����6�������b�]� ���˳�(J�aX�$���]D�9��K�hV!q�E��1 �ũ��j1�PBC��z#��2Ѽ+$ũ�"�����WQ���iQE��qw?[�~Z�j�G��g6q����y��s �B2��{ζ�d2��YTT[�Dj2ϋR���Ԫ� �4@8�%\<�w���j�e,�s�cFT���1��k��0b���� +�@ �ϯ���T�K}xGusg�U����� E+�~�� @�~,�r6�]@5�9��Y5�P�# 6�P��������D����t���T U�� ��i�W ��=����sx� 8�^>� ����N�}Կ-�o[�!�vLd?t[���FqR/�9�%�o���+xK������z�;^��b�~+�H�J.Ж|�s���oǝ7˴�1���'��hY�9��v�� �V�4JSV��Y��}Y}6��f� _~������Iu��i��|m!V��xI˔�|��u*��d |`�H�ݛW+��sSYe%�N�����i�i:�&�9h�C�#�6�tG�d���-�����z�>�6K�M�J݁�ۼ�NM�0-�rjM���,� +����������n�6a-�l�#c���k�����D��؉�� �]�T�����B�����ŗi΍j� �-�o-�����gi�5YM��H�;�w����T�{)H���pŶ��@�㴈�e_��h�@U��2%���ݧ-��j= 8 j�p��:Eo?�6�쥡�K�BT) ԃ^ĩ�[ϒT���I +q��H�� +����>���5ia�}�ơ���5,U������������Ũ�\�<&���T�n A��@7xc�����*I0y햦 +uI�� T��� ��rT�I�h�T���@��ځO�� �)�ܟ+)���/xR@�(��zK=�O��w�o'7����^t-��2��1�D�[z'g���`�;&����'�2��;����] �2�V�*����?��D��3/I �:)H�Ŋ��HJ���ZZ�( t����N�"п��)%0Vw�I��*M�ll�C�$$��v�#��@�F?V�=ĺ[�A �� gN*z>&:�b"����?pZ6j�X�����Y�6�o `��N���� ���Pt�n�S�����(�"=4�${���I��0�ǰ�>=��C���&�I�ke��| �h�������4�?ӒU��vr�����5����ߤ���i��}Q����s����Y��&�/�2K��_ +�$��i�#�j�h.���P�H!q���[`�L�h�5ee�ٱ�\���eSI +q�� x��k���o[C�s�5�S�����і$-�~�5N��~7�dj +�i,�꒨�3h|O��#w����uOI����Ȏ֐E�؝|�7���=^Z���Ý��$^��6����D���I+]�����Vv@5�����^,�#���Ĥ1UR�4������� zx����ph�aLo6ѶE2ݵT7��`��8Bg���Q +K��a�gN�3�Rh�vhɝJ�d ��ܦ��q� g [��*Q)����JKv/�i��./�{���)�z�M�@o?|��`�Zy�qR#� �B'�6��Le�V����V[(h\��j�o0�6�pX���%���M.ڻ�i��5�Ɨng6l%��|x�#�vY9��o@��b +��ݳ���L�o�幹S_oyƟ��������hf�K��R��gPK�W����SȠ���S��7�#Ƭ@<����CY�k����'�qcN�E-�����d�I[$��Qڼ_�Pݙ�M���5�|]w�S8���s?u ���*9d#*I$JN�0�Fq�4�� ���F'�S+9V(� H�Р��;��I���iˇ�s���9x4ؼ��Jn���:������f$���%0v)���C/9~)_�j�F~���y�:,v�K�:�+=�z�_���i[��j��9�C^h�6Gΐ+4���||/�:�6��q�~ +�mQ�CO��RC�F ���w�oB�d�r�.10GC�|�����h�Ӥ�z�<<'n]d$��Q` �d�lBs�(�$�����V��d��?�%�� 9]��sط�i�E:�)5D������jkgm�J�� <��;wz��ݐ�o�a�^��T��#<�f��(�{�y�8훼y?a��[�kT +� v�S���z����y�����)����;��E���ǽ~��m��U�G��6)+���v�xHYiamg�Bq� +,@��#4r�{ {Rx�"��y^s�'�LE�.E������r���Tt�F��Dj�4����O ��`4��X�^���|�|72��g�����ݠ��+��ɗ��E}_�w��y�|��qa8�|,��N����e"�*����F8�(h���8y�Wܬ,h+-Ԥ��x�c#�b�K���>�IaR��mVͼI+�^=��F%Ai��A㔽EpR(W�����2��SA|�{(0t���w��&Ѩ�,yC�\�Ă�PoΊ�S$vR����ya\���Kv�i�.&盛�l���f��Z6�|��ک�;��幦DfB�����̄�I�ԨSaw�J��iWt�d]Lx��)-%%����0+����E��t�_'1�ɯN�,͘Y�R�q�%��yV�� ��+)��tOP�DS�`�����F�>d�yV�>�*�'��QV�>(U��'�7�8u� ���ʢ��5J�ftė �;m���?Y[6 ����f�\���wP�#rxtI�~���(C���Q�1�Q�u���Ԅ�̝g ѥv�D�ޑ��ڈn���i9�k�]��8�3w�-H:���9�۬�0I�֍Q�<8�z�kO���r�c)�iU+��dX�Vڦ.�����ttˈ]`7f¢�a��#�ͥnp%kXo�'�'����� �.���z*0ʹ������Q����'�����XA�Y��3���!e�A0Z,<Z�� LRB��t��2��J����ѢQ0#n�#$W���F�� <�c� Oy+�����.ֆ/󑋵���`��i�q�zd㟸�K�#�M�Q�&�[+��Q�C���S�N�+]u�*:o�������e& +���I�w,u��c��}�'�s�[���&�� F���HuR�>�l����n'�^Kݚ�;4��]AX�� َ��Ķp"��:A���+�Š�$ ��.���\%HV��k��,�;���U�g�/�l�)�_�O�GAP��L�vPG �+t��<�zP��N>��U�st� ���4&.�o �3?� Ay�4�\K1r�� �~h�諱�[����8-a?�7)�#�Uy�!�am���l��P>�d�*�Rx$w�0�b{ ���ka�_[��^q0��l�J����bw�R�F��̬�yOj��Tگ����J*���F���y[(�z�9EGcY��O���D"�(�� ��~�����٧�ab�oH��J�H���$��{��h͡��u!��F*���z� ��;$��z\6�OW��:RT?d�fl~UaDX����aw�q�Q��6ʅݑv�~���\*؏�h��m[*��E.�m~"�oY�KR�����<�O�TS�/Ik��Un��,�]�ѯ�t(,+�3?����EEU�M��n3-R"���FE�ۙp���9+���[�b��)SE��Np�gX��E:�ח�6q��d�u�����NŽfz=��+7"7�(�Eɥ�;�l��T�y"8���� ��S���}�Ϫ��${xt~�T�hEidWP��S9V���]�T�u�H�c�t�U���;�}ߴٜ�'�%��vW �Sz�ͅ�}bVģusy`�XT��w1����������[��I���Ī�9q��7���I��'v���W �������'է�k��>1+�^Žb`��3���A���u�Ģ�n$�ֿ ��Mc� ��n`�lEL�n`����Z]�'��t�o�I�������K�U��_)��{L;;�O>��j�}Q������r`��a���� +�}b�B��^#����ʕ��7��c�_+��d@�u�Ģ��]F�W�m���a�g�;��s����Q����N,{��K)�qA��6m�1ѵ���@e��X g�������D +�/4�F"[�Y�6) +��(�f�϶��&�4Ь��T˵I�7CZ�ȰJ&O���D�_e�#�k�����W'2�˛�ۚl������p��R�׿��OR����}�s�k�n�ʔ��)�8�����l�2�Ս�4;�F-E��N!!o.N��G6���.N�w�D������iU��]��GR~ ψ�(\��iU`Ḙ;��΅MJg��1L�w����,�}PŖ7�+��S�A ɜ�w�� Q���87��$i,Lhe��i�A�������حVRF�����e|W+0�N��+v�U��OS�jjS�D.�I��u1/?I��en=�O�)ʁ+V �q�v���j9 +�� `>i�jS�+��B�[[G��W���v����L�U"ظ��$7�b���)�m>>�A��.�� +����`=�N`��f����qUŭ"ԩ$���H�6+��g%��<ƒ��.�L-��gTt�k ��.���Բ_���yV2"A������M���PB��xq޿�}��T�o�G��2�*y����.�߅�m��OA��5��)�F޿�C��ףL޿~l��������ˋ S����O���0��h�� ~$U\�Ѿ�����F���m}3��(�s�� ;�D�y�Q ++��=�r���`Z"jk'+���R�t,�"xN��X �x� +��z O �3��>��X*%�T��P[�nkJb���/�ݳ�3`T�<�R� !0����tV ��s�+)�����nv��d! F�{�Z ����&�җ�!���<}g%�Dܔ�i��ݪ�b��wے�U�Ȧ�>+���o��r����FA8��[�&���rq�;s��W���ػl������#�LjyhL�Yj����B�_� + +5L?��}�!�N2�slλ_�x���*�*/2�Yk� +ײ�OMH��$"�L����#@ +$� $�0K"R��jz��lKR��Q�W.����$UC�kI��3�Toe,�+'�*?Fnm��� �.AХ�x�2� +�@& 3��B;�@D.� ��UJ�s�'?8�[ap޻ Ռ����y�<�Q�A��|Y^���jU.�b�!M5�zL��a-,`=��E�n�a +H�s%�r7�xO���)��XnR�� z�r ���go�� ��a�S� ��1��$.�I*p�T�]�������鰨c�-�6� -ݬ������U�k%�Av�S�i�ڝ��[�÷G6�f���q� ^�yAx� OP�O7��lV ���!k�1�g���hӑ�ѺQ���|��fIۗ�k��n`��� +DW�1�O�S"c��i��s +��>e�}K]�&ʖM%6ߏ��5K+>&zK]r�� !yt�ݷ���Ͽ�.��B�g��{����Ko����F2n�Vs|ߝ��$aO㻢��v�g�x�6�iҝ�����:�'���C��I�xm����ݠ<���בG��G�R$vЯ'�3��ڎ�x\��N>���H/�YW1p�$���g�l�'�:�M����7g���8�*�-����%�x*�1���3�C��A��4;g�v*���(�W�6�.s!�NF)�&��R��L)tӊ�DmGQ�b�qϴo�$*�G<s:PMQ<��K���D��"v�sB��#�ΰ� +IT�Ș���ț/2Z���y!�J�Ӿ�ȲT^���#�� IT��j�� +I�h�Q<"�ܓi�q�.OVx�P�Mx(��P������&$ ������SP�V�o$����y +�,�� ����v�%sQ��c47��ABw=��{� ��o'<�w�Z����Pdl8�%�vn�� l�|��x%�{^��bb���(Hx(;-��O.Kx(�w*�� �t���� ��f;<�i�o��'<��F;ds�.� �!��rG��H�:�/�՗�_U�״�xx=vw�WJ?� vZ�)f�����_+Q�q}p��jCm3fr'?��ja�����;�������� �^ռ�3h]� ���r��X��^���@Ѧ��z���[ޢ*��a � Q"/ĉ���'2��J�~#��5sk��]{�/�C�g�vؚvWѯ��}:�u{ 3��5 '����s���=���}H� �mn?H�9-�����:�ѣ�qiU��E�ƎaP�4���v��N�h���U}ۚ߇���֕�:ĕ(BRK��:B;�3v�ʒ�W�e:WIp��X+-�s@ĉq"B��w0��<����L���O��Q�&��:��`گ�VRͨ� pn��O�X�RuAE��}�L~Q#i�za`e�-,�hԯ�|�&t��l�[R��,��\��a(��Q�#��T+±1B��� #��a��4"�3��w���Q,2�=����ޗv�M$�~��Cy�׶���iv�34;f0�xx��Ͻ���oD���dTw�����b�@�iI)EDF�"�̄��%g���`X��7@ƣ��;7�ּ��w����]|r���7ި�=�??����_Cu��r|T|�/�+c���݃5��ū��_�f濍��oͭ��<��������ϼ�?�l޾ ���׏�� cW�d,E���������F���f�؍)l�ޮp��O������&���//替w5����k �߻�3��4Ͻt �\����#�� +�g�����>���z�קw��x�Z����_����o�V?<��T���U��_�.��T=��_]�j{�"�lӔ�[�H6o�Oq�7�e�nY����/\���o�K��ۯ_|s {߭��g\������M��W�3/��՝��?�������)��}�E4폏��n�F�c�3���tӯ�5ӯ'�9G��k�ܟ~5�vx�.���g��-?;��"�4�<������?���˟d���a�����|��������k�6_}|ađ�y$>��ǣo������~� �O�ՠ1'�e� V���^|�ƣ����_�}������>�y7����|^;���O���yg���;����W�����k__�c�_���� <�w�:��'d=�Y�D��+�h�Џ*'z�w~���Ƿ��ǭ�?���(�wo�V}X:Q�I�s��������e��h0��'?\M���ɗ�W7~��э�����3��Uu���ɧ���󘥅Cw9ο�_��+xx�j �K������E�w�{>��Ŝ�#LIܽ�&u�2L���%����xT?5k��+ɝ\/~��kv�F�~ d������~#\�qUu_���x���֯}���}!���/q�����S���x-ai�x��t +���[?���;���wj���ݗ�G?�ޕ�R�N�$R�^��V�-����A3�y�������'V�8����'):|���E��������7pW�q���S��şo��ۋ�\�QTܑ���o��ns)|�R������=���� n��k?�{�w>y�&)����ĥ;���{�Eÿ�ݵ�/��2c�:c��v�w~�J.�}����d��ر���e\�#\��q� �"���~�?�{�d� ��|�"�����||�A� ��ꝴA7>j��Ƽ�A�C;����6Oj�f�.��Y�7|�O�z#���>��ˍ�R �ۭO?��G�:�~���A���~��N�I_r!4߾�����qw�,�o{�60��������Y� ��3�l�k����~��pEm�}�"���HG�B�P��Ë��^�������g71��o��x��[�߼J��tw�8����f9]_k S�? �f� j� Dr*M�1� ,rZޱ|h���(��[�"��0e���"�n�P!u��y‹����+g1�8������P�8�]_�"�Ѡ��6ݣ�����{�{�N}��|�Ա ���o�߽u5/�s����_٩0�^�λ�}}�X�g2���;��=��ѥ3[ڱ;��� �|�:��=�?��li�ϗ�r�����k'[Ir��ŋ|9�I���o_�1[ڶ��O������9�b���%�n�_%i&�m��׿u��}z�i�)���7Ϧ��ϼr������E h^�G���f����3�7D����o/ݨ�=��G�^`���ˋ[ b�������S�q�C��6;*��M�����]g����G�i��q�a?�X��·/��2?���+��{�N��]})ƚ�fa|Xh�_����~���On?y�����? �K߃�+s*����7Mn��f���*������T��)s{��M��D��"��2�I7��T�Hhf'�Mu��X|��M�لfv��T�Mhf'�ͫ2�)�����*��\��'7Uf���Hn�l7��~�ǿ�,��Ks�z���w]I�|���L.�Γ���1kQ���^���QhУZ�^�} ?g��w7��"���}���ke�t=�]�����'�Ѿ���i��1M�ʌ�� ++��Mĩ�=��EW�ӥK7g�t3�ȥ��/o�0c�D��������XNq� _P����/��N�{������W��)�4�ZQ��ӮGw6 =ٍɓM9�G �o~�{��n޾|�“�ƻ�\��}�����~j�����V7��������o��yu�駞����Q��~��;�=z������/�����ǫ���~0���n?z��7�V�'�}5�DJz����� ���������_|p�_է/1�X̝<���p�����ՇG/\�����5w>�p������ӔkIIQ�@��I���v��kW�:�X��8���>|�o�}|��������n�}��7ov�^���%��SYT�Xݨ���[��� �_x�]�~㹏��~;�]o��]~���q��{{��m������~s��[�ܽp�׿ð��W�S��6W�d> �w�ߟ;����Αt�Dz�~��ѯ�Ѓi��)���x�������G�*���S�{�W�A�������S�Kֈ_��=�u���H�FE!t��a�3� /�����g�������a��0����5�|�[�>��+��y5%����'���C�e�M��w�D�p��G���!Cħp��C����wn�O�-�� ދ���t����*� +�����W�����T*�jn&��g(��7����o~�ޝ^s߳�~��'痽��3S%�#�<�-��M�ލo9������ ��;�<����o|�ⅩW}�I=���� ͤ!����>\~��Ⱦ~�zu����{7&����������� ��4X}�e�Rx�}}� rq��o\�Ǥ�ޏ���zp��\����j��%����s/�4=�ߴ�_^h��ۤP�_/No��O}t]�-���}y�_���w޹����g�1y��>�+ѿ�척�c�'G��<�L��U�z��%����}C���8���+�{�ѝ+�_z~����޺��[C�p ���C��ׯb��E?EF��s2�db:�\7VL���/� ���Ʌk}�xȏ?�p���.MN���w������.��K����?ѱ&�a��H�OJ{������z)vo�K�����b]���ub �\�T,|�y� _D�G�9]��k7_|,G)�?܃f����ΟZSWP^6~��Ma���C�R^�rȵt�˥Rh�߷f�x�2�[�Җ���?c���R�Tx}�[�B{;E�1-4ED��S%O������� ��U6���Ć�N�)uP��lb��EPF�;�:�U�j��A�EЙ!q�uP�:��γj����Y�W�"hd�o�*�f^���A-!�A�s�*������A�<�I��-�V4e�ϵj=Ě��Y�W�"�̼�Kt���Y�Vt�9�A�d�̼�K�*�b����K,� uЫFt��m]����X�����ίjA���G���M�� r�����C��y�A���rn�Y��Y���\����<~^uP����s��ZE���k�z�� �c��Q����γ�A�"���l��꠩��q�*�>=�Ap�uP�*��0��뛗���\>|��&a\ȵ�7�� �}C5�����7EH�,��W8v�R�;�}���[�����\���%��:�o���y&$�=�ǡpߛ>���oN_.���%U*����޻1�C_~c�C�7��(޷e�̻����E��;���l��/������~`մb���h.߽����؍���{�/Ra�{��3�^��3�����],<X�7_<��)���m�u:����M���S ��]��7��1���/�#��zN\}�X���Ϳ\��k�����g�3*VDF��+�U�Wͫ�͗���Y��p��g�,����6��[�ѡ�����>{����O?�4�F�x��~�[�:ĜQ��W}:޾�/߹��[͵��?uգ�o�h�G9��ٔ�6�&n�J�>mA6q�T��O-�&n�J�ԅ��-S�1��a6�,�>���7���k?Ë�_�G���;��ݿ����~>~�`��W���=�U��U�up�!z���O]���o?<���˫��&�o������=|��/??��W7#��[��޸������_]�g�����˱�z����OU�W�_�����z�?n�ށ5]��fU��v�??8�H���s�m�?m����x��.p��ţ����?��Z�����j�������Շ�nuݭ�(�P75���uuԆ>��G����ç�£�~T׸���:���AZ��q��g�M]��#�f�ڡ��"wԻn�� ��{x�0�Ƨ�ꎺ�i�*��8>��<t �B|Q_W��m����o&�&˩��� �Y�p¿�~ +5�6ߥ�o}���ҽ�~�ӣoV����������Q�C%z:��ַO?u�����[x��]M<��{��|Rۂ�������W��� x�[�ΠfxӦ�w] !�խMZ�*��,�Zݺ��tG}����&�h}7t�9��u=G;D�vT���(/Nc��Q�C�� +* ]5dޥ��j@��0�k���Xh�MZ<��~����3�A�^q�f�ū�jڦV`k�B��C�5�O���Uo۷x`��� �a2������*.��Ё��<� �ta���xiwԸ����t�����-w�þ�4}�}h�Ax���s��z�����C��LH34 �[��fI M��w��o/r$�"G2�ɸ����9���{�ڕ{O?u/��C+��0�ե˫O>�'��W�q�~�/�g��x�����e����/޷��i��}K�-� ����-��������ë?��3t��rI%Or�m4��S +�9�����0Īꮮz��k��b�"yUp�E'ڵY���:�* �� �@: Q��ӀJ r��Қi��*�G* B���B[�OxN�;+u X�ɾWz��G +=&��{�b�M�IR}�u8KՎ�2߱�wT ��<�<��!�PMA��`�� +�mUk[�[P5�4U}%�*К ����c1� �AEP� ���dPջ2���ЌuP��C/b*��9Κb*�|f�b*0ؾe!U�1U-C�*�T,� +:� +FPTT�zU U��j�3�9���L��d<͙�$��VL��o4"@�lL� �P$<�����"���Q#��n|���p�icD[u:��?9�Z9��|�صU�����1���.�W�':Q�^�h�CVh�)VN���q�(��*E��)�R��wR���J�"X���T֗Oe��+}�#)�"RhA�Цf�r: ���)Z�X�N�^T�b!XS������}�v�3� ��f��ݍ(�6��� +:�U��jPFb ��N�1kj��B���T9��HrUV����\��sAo+b2�tP�}FFe��DX�@�!(3�22c ��s�+�WX��Z�~���g�k��q��7p?#���a���6[�̥�K�f+㕆����옥�1��# ^�h�� Nm�`�/��PL������;`~�\��X�D�b����/�!F�sG��wֵH�n�q�H�nP���#Tzv^���#Xvdxd�cp���,� QڭqAe�]D +�"(u[�C�u��|��$�>�fgY� ���CT������Z ��Z�[p�����f!]��ҭoc!�$��ս�!jP�t a�cH�6#C:D��Aҡʐ��2�C� ��‹���ʐ��ʐ�� +頯ɐ�2�P�t�kUHG��l;�B:� �-u?�b�3���ϸ�������}�!S-m8����G�x�V +�+ ��!���!��# ^�h�� Nm��n�!]/�f�g���q[�s!�8sZ�����a�u��X'���ꘟ+�f#d<�t���B���J�u�4\�F����ȼ ��х,�p�^aUzm�A`IBj�UL��GXɮmI����sU�!��E0��5h�]h�f�v�`ofs���_07 ����Q�id0G9�����`�2�Ps�����7���7�9��"��]�Vs�gT0}Ms���*��T� �aB#p�-�UsBA<�[�~���g�k��q��7p?#���9�Z8�pl�3��.��W*N/�9K� ���mG�t�X����M��2�k�K�Vd��t�&�����AR�s�]�Y;�:W>?T�IO�z�әk� �&5;�R��P��B�� fݶ��n `�m�F�j�.�ֈT���d<`QC����_�Dx�5��=&�0���?C��MKƦ!#ȗj���0��ڦVF +�"(u�4���4��B��Ȝ�� +#�%��i#8Q]�v�AU�v�˜�|QG�,k;";��Q�.o��t¿>@�Q�Ѻy�A�7�u�nh���[�6 ���T3P���挹L�7�g Rޜ���oΘ��`�E �AZӔ��a��a_�E��4z&�Z�1���d�� פ�X����������v?�2�3n�~F&�݅o\�p��؂���K�f+�s�3���Ԝ`���H��.k���G�Օ +�&��eB�Dφj�]M���T���oz�t�4�QsC�M��,���z����)�H4t�jC�p>,�1� +F�H*�P��� +CT-�յ�� e�LY����P�������eU�&����]�ؑΔE�F�ZO�@�ZM_C!y��v噾5��:6�X�7F��6����6���5�D٬h��f�1��5�֏����b3��֥�h�ͦ ���αY�*��vSlV����k�F!��x!~�7jz(w_�ج�9s �� ӱv��p����n +���� ���,�2A\��n�,4k;�0�U����\�}�~����������;�2�3n�wF&v���:��ἵM�8s���F�x�����L�8���r� =#����.c���G�"0�u�mh|��C��Mpu�w���q�<�ipŴ8[!��ɶ��MOiT�ߴ��L���)�T"�2���D*���;#��`��ՋDj�4*��'��)T�����BEPEݞ%P�����i3P�4�zM����?D�H�����o��(U™s��mZ �w��m���_��W��fPQԠJ�y� *��l� �H�l� ���P3 +��ɶި�6]YE�H�u�(�}M&�:�,��J�u�0�&�N�F�^�F��x�m������~�e�g����L�;L���X���g.]�5[)�4˦J�XjN��l�v��K�5x��M�5:������Jz�X9y��f�9r�z7Ti�)|��������*6����7(�Ru0��*EESl�ASD�P3>2Sr[E��kMNlkMND�XxUSۆQ�_{���mM��,k;�;��Q�.V�m� �P��3��o:#!�݊�ַ���nl���Z�H@ �q� LK��zF"墸����(c��6f$ X�t�‹�.�3+b��g$`_�1]0f$ �b��g$0��A�Hh��� �b���g\�~ƿ�����q�32��.��ŕg7[�̥�K�f+���d\�֜�`*�-G�t�X���>�1][�ᚦ�b*twu +�ꔎkC�3M�mWu�I��\�OB^���뮍�T��b�jBh��n^� �o�[�`�f lW|qf�<��|�~b<�o�<��f�<�^���Vڮ �#>2��tD��f9�F�)#�Fs]�8��E 1]C �,�5��A�*v̵zj���=u�铧x� +qvðA<�ڳNnf!]�&8�FMp@=���1&80�tM�C��7B�FOp@;T!]cLp@� �jk����e�2�Y��}��̝��z�s��b��JMp� +�!�R'4.vB�_� �˜и���w��|�æ# n��t���l�`|.s��R2��l�tێ7x�/8}�)B�b{�P5U�֪m�w.�ҧخ�+t'�9\.2�pkZ˷h�涧u�۾%-���#��tܫU�(�^����j��7�lF�L�b����5#X��C��Y(�2 �.����,�u����h����*�Y�k��U�!��E�5��:h�W��K���!�$� B�؀ҝ���J��ڤ��z �P�A�MHC� i(�! �>�AoҀv�J��ؤ���:�4�}�Ib:�Þ#C:�q"�C��T!]_lI�[���z��wb%W� ^r]���Nh�k;�q�7pB#��K�L�p���g.c�5[)�47iPJ�Rs����� ^�h�� Ns���ؤ�i��� ������Mt���u\﷧�|[G3_ږ潴 �{i��d$���6j�f����s^@�J���V3�e�ub��3ViF�캝���vz�fD�����3�[gmvr�K:�d�hu�,�5��A�*v�uż�c���x +g�q\�� ��V����qNMn�oK�uzr+C����m�fT��2 ���No��vƶ �A�3�eh�r[Ċ ���2`_�A\clˀ� +��-C8OK�n�o{Ĺ5�[��q�����g\�~� ����� ��魛�-�[:��k�R0^inˠ� ���[Aܶ# ^�h�� Nm� �ؖ��ybI��8���Y�Ar$��TTC���5h~$�_�_��`�`�����D�L�͊tA�")�|As"��q"�_>��.#2����R�A�*v�TI��B@dq���-]q�̞C���z%U�:,�+Y����n��.R�S��6���6�FT�4S�J����i�F�4� hQ�t�� ��SoLmpC9���t:� �wd�t0�6 ��p����&�AOmp��� �K�K�ɸ؝�mw2.s'��ddr!Z��Sϧ6l:V��KG�x�V +�+ͩ J�XjN�U:�v��K�����G��-4]����C R�m�� -���cІy7,���)NUM�� G5:��]���׶�����aH��Q�q������|ܦA�&����3E����w�e���Y� ��#n&�g�1�(���4�  ~F~����P̌�`�-�Y3?�3�k���j��^?�D�e8� ��|�R>�<4�������*^a�f��o�}Ͱzwb�l}[C�>۠�&*j/k���iY1�pƐ��~� B ����7ߌ9x��8�tk5A�t?#�� BK��$��'1w��= ����*܏��i�+����<����'�G���ܽ��(p�0[�jz�|L]b�X���$�|�Y��Jr|V(�-1rpD�����fJq�K�A(�Ly��c���V� +q[P�D\˷P#{1�n�J�\Z*����S�[���m�m��@��r�\Ur���'X����`�k��H:|x���:D�XY]a$C�� �c�0p���� ���� �z\/�7*H��B�Q?�99�Uct����7~N��X���MZ�pz��щ� �tӷ! +Х�`,�p!�>�� ��B�`�J�𹅺��K�{�|t��,����uj^`�]�w�N'�]8n�v̴�O�j�� �AL�E���#7��d��8b����K��I�� �1�����i�������nձ�OX�v��pTa��:�����U@'iR�t`���v]3u��U�4[f��`\��@�K&6H�u���� c^�a�ߔ0~��zp��(��̶ ���H���R�D[&ģy� A`�ӣLM��ȵ�|���$F�0r'�n[;\�-��g`q+�&d�b�&t����'_QO�F�ۅ���?�B�������̝���� �5 +<���Ƅ0O�@ I��&M��T �m��+/}U�ฎ9� ^�9f.#o�= 3Aζ�@�M?�j�$�# �Xq����0?�ǡǯ��'c�����O>���0�KaE����������T�+��.…5�Ÿ'�uup�da��5�6>2{�]*��0��; 9 �$%�%�­�Ji]�_�+b[|$���e��x�����٢�_�o�~L���x[��a������0q����G�0��M�J[ynZ�M��<�-��J4 �"gJ4A[f��8p��q)F�Ȃ�b<�z<��zb+�?Y��;hfh��c]=G�:-�u��5��N�������R��o37`/r�VT����a�3J�i<��_��J�p��Qg��+qG��~�V#��@fP�H{�MH{��$�v5L ��-y���n�!��'���G����]�f����{�+��)���C��uWǥ�q}�8g�q�)�w�u��VT @5�`�j���o�����rOP�|�9m�[e���jA"��Z��*�u8֩*A?�*T%��6� ���%i�:�ޑ�wU��]���\k��5X��ݒ*?�eT�OopU~&��Z띪��b���OpƘ6U���9�U��uRi�XT�q?]�v���H��U~�*?���e��5X��Y���u��(�WF��R��|�Y�̫�4E�26��Ҏ�?�]��ԇ�����b��^�꿕�ii���*(��^O�[)�3T��ӕ���w�=��l0��jB��` �<8�Z���2�� e��s:��9��/$s�t�Å2��p�#Ҁ9֪4�6��`%:Ȳ�sNf9ZS������<_�r���g e8����r�!�;�pd!��D���F�?)�S���k�aLF�k0��s#��{��`�$�Җ���?����� 0T'��/�5U�t-���r�&`�f�H�ZE@��V���� ,��>qA �e ��W�d��^[�86Wb�� �WVI�8H� ��B"P�򜟅�� c�-��K�$��|�<�����;� X����dpR%���3���b8�ʳ7�sT�1��13`�����R�™!������Bn+#o�YU~f~�͔0�9m�d4w %���Y�…� ꬠ��\��  �% @:F��09��mH�!`8 � ��W�p�Lt�l�#���9�O�-9 ���������-��->pR�E�<@L�l�p^�`�\bnKO��q�px�?`b�e}��剦_�i��<71I������M (J>s +S�z^��]ؑ_�e�s�6�Nc줡��jU�xaF�:�¦������M����+��%?`R �TA�\�Vx�� �0�za�d�=��]1�}��6�" ���Jr� ���/R�U۠�p��0��R@�?g#膨||�A5�/bh��a���Da�*,d���2���y.a(� +ޕ%��Lj.(�6����_��!�jUK�|�,&0�� �b'9��AJ\�v&� �J|WD���L����!�u�����K����*�A��� +0��,�$\�מd��-Ȍ��S%��?���0�m���0R��,W��+�.Ģ ���ElY�P`�����W���d���&��[�BI(�F⃋ک�⇻ J�/�Wj`�"�C�]�̋�-um�P){=����j�K � +x�j�@}~�>H�A_X�G8J��NI\�J$G�/�#�-S#�҉�P����*-�}��17�*S"8މ�89�a%D�f�uF2dp:�ӝ.d�j����F��yjD(�FTF$ ��0|� ��%~RV��N}0˘��!,��QzWf�,�QWNg>84�ذj;l>�����[��\�h ���Ś��t-� �� �Y�M�Y�{d���H6��M@��`�%��w,�d�����l܊P� 80���pl.�`� �#����H� $���ZbP3������� �.Gy����u��\�g��qP��V0 +,�iF�� F�� F�m � F�z}��� ��Q@[[ ���7�KF�@�� ����k ��Q��!��,~��~�7$��o��2���&��C0 �M/�S[� ae��m_����B� �����X��ʢ��EQ�G��p�����z(�ϱ��QK;`�R�����]�O7��EԸÞ*EЫ p�u�6�:!���A^^"pH�?ʋ wM�� ���g����|_w6# ]����9�5���A��#!p ��5 ����@�� r�&pf!���|f�DC ��[����`�AA�z�\��آ@c���d#���A��u�(BCX�� �0Β����`.('EJM����������?̕NQZEd�^�*C�^�[����.",X毪�-���z�&�֜��<þ`m�s *��C��>�̸ԭ+S.�O��0��X ��c�����3�u��u¥�au��I�[R�]�[8D �2Y��閘���͙���[X;<9�Pʶ0tNd��lG�X�5�L,��t2�B��e5K�+2-d4��3� e/MF�3��*r, ��]�����3=㿾g�������:�A���w��2�Cnפ:l���hd�쀈�H���N +����Y-̔�R���< �Hhݒ� ��&��+�̇�[� ��A@����%�k����XQ���v%���� �D6�� w)l��dA�@��b!z�b�\���dgB��,0��P�)%��(I� �{5�'�J6�%?kK>�� 9!BB�<ҵ����6���'i��JZ�S� ���C��[.�DO��MP�� 1D��.���}P/H'��/�g��^�myG����3#��[mԀc�SC�#� ���X�+�[2�� Pl-7L��C��]��v�K ���#�e�tՖN/��FJRYt���њ���C�K����A;�Wu��HR"mKW" P +�t'����hn�p���%ζ\���ˡm��U+��~�sm����NW찹]�,bP, ^����4������4�����Ƴ@mD \٥��aR cZ`�jl�/�FS�`Cfa��e%چ����]�z���t�$:��dU�Sw=.yE�w� +��KA��\,���8��<��k�|A��:�(:��������3�d*��AXa�� ���s�"�:W7r�p��Fᬯe����Y~5���2t��B+�e��������]��=����bȋ�K� +� � +�.B�����К��ؠ�=�/��N��f_ �@�/av�An��\�|��W Kd�l����|ɾ�d_����l���d_P��`m�/�J�/��� BX�� �0Β����`.���&�`~pb�sb�x���) J��,�+^ehV��t�Ofh`�_DJ �WU�Z�K = xMk�E{��_gU��U�\CY���sBc�u�f��\W����)r]�-6�b���H��*�Er��-��8\�< 89��aK�2��� Vr׽S� �`%w���d(K�:'<� RV$ B$w��D~��H�f�ɝy++��́�&�����e({i2Z���"àYޥ�� �=��3��{�n9�?��1Ǭ�B����f�����59�5�OF_k ����`�w` 0O����� S�(��B5�[q08���ܣ�@��18������`(��ٵ��A���~~$N �����`d0�Hd�����`0�˜�ɒ�����^��`��%s +%�y?�6P���pWr02½�ܓ�@������� +��P2�t��`P;���#q��`6dYd���3Hd���l9���{�lYr0P�%#���"9(�tB��1�e�L3ZR�C0rF�F�|ѷ�`�Ht+��/��z\21�d<��uZ ���ʵ�������<( ��G���[h��e���|�;Vf�.���g��3��E�u�q��y�,4F� �xy�����B�&�� ++M]�� +C��B +�0p��%�k'{�ߣ�w��h���`��W�I��.V�?y�Z384�?W@� 6�W�c%��`�5�̮81��3k�Y"q0�d����_p0,9�h.�[p0,9ԩHݏ���`x�9��zy�������9��K�I6�����8�]d�u +Q��*"���W��2�¥�v��0Uo�e��ҳ�7Ѵ�`�s ����٠�,36�| G�T>���4p�"[����r_d�RyL�$ B�u��Df{�Ȑ��i�f�:Ìfz@��\ G饙Ѳ������8�����) J��,�+�?�f�L���vV�E��0Uo�e��г�7Ѵ�]t�� Vu<���b(�o1t�ӸV�i\c�ڡ��4��9�d���24���E~���uv�I�f��� �Xو�LVu0�2 .(�2�Y�`deX;<��PV�!tNr��LH�ǐ�DN{�H�f݉Ӳ�%�Y2�� � ]���&�� ]�� �fy��. ?�C������]t� ��� f�!]�� 䲌w��5y�5�G���] "y�H���w�i�.5xd�%SV��]�u+�G�� �{���]h�.\o�.0�R� %����.�λȏ�y�^��� f��,�.��`� �R�5Y�.-y�Ki�z��w�hɻ�ޏ���] �x�e%���䞼-y�� ��-y�B�.$��#]�x�ns���yr02�,2�`�$��}H��w���{n�Z�.�& �E +� D�.�� ��"�e�L�[���C0rF�����oɻ�cp?�~K� :�e���^Aܒ���bk�aZŐ…��շ �y ����2R�jK��[n#%�,��Y\�hMRL�!��KQ�&��zU���$%Ҷt%��Lw���Ee�|u���3PEFZA�p��R;�E��1r�;�N�]첹]�.�jU�.x�J�;�.��/�o�.�7���w�)y���3/�>G!\@'���b�r�Y9�Va�:]a!�U�2�+gΥ�|�\�ȍ��Y��Yd� nZT��q�׺��[]S!�U�2�+g���Gyq����?��~���~��@�&"]4��p�jJ'�f�/6hr�� �J!�J�/|���0�� �kg2B�&,�%2�E6Y�u�q��_X�/b�� \÷�_X�/�S1����_t��_�:Ly�!p�t��sAD�(4�G�۟�; p�NQZEd�^�*C�^�[���.�A�/ �W��Z�K = xMk�E�џo�Z���lCY���sJc:k�e�kh�l�P�.�T���:_�{#���p�]\�H��x)35�u��A,��P&���һ�0���0h�!е<�K��L'CYz��9�_��"Y"��e&2�ؑDz7�N���,�P�d�h�$��w�^����w�+�1 ��]�����3=��3v���� ,��Cf"]�, 0�e,�ܮ��ج�}�0��Y�( ��Aށ�0�< � �LY��ba`�P�0�� �#�Mȼs�@��������ba(�ٵ��A�� +~$N ��B���`�!��2Y�� ��`.�qP�% P���T���%�K�)Y��q��X�jF4 ##ܫ�=y0X,���X�a�XJ摮�, j��\~$n���., ��A"�݇d�Y���psԒ���,Y1D�, 0��@�0��,��/�g�YВba��C0�}0�狾 ��������;��5�� +��$.X[� �(��.d����]0�c8 � ���V[: ��r)We�0��:Dk��`��/u \��B��׫:�t$)���+(�`�ķw(��Q���À��#�F��^���[��vrsݛ����Z찹]�1|�*���%ϝ��:q����c}#���1p�������d�I5���A��d��)Q�!�0�Fف�mC����?e���EƐ��J�1ċ���d�"�����Ց�U5�y�ͩ]���e�ҖE�JI���E���h8�:ZhY�%Ժ�B��e���� �ֹؑg�����JK[u����7���Ы pP���������+ �B�y ��I߃��(�]�1�&�-/�H��i2#����q�K'�f�16hrd ���Il�^�1��+2CȮ dv����@��� ���A&K̇�����`A�H@�1Z��5����:�]P���d��h2!��A^�'p&c��g2sA9�Rj���'�G'&�w�h�Bp����r��U�f�L��v���0Uo�e��г�7Ѵ&c ;�����AZ&p8J��N� | ��i1a��7�V��M[�:q��L۴�SiD�� :�2ˋ'Y^/e�&�"a� ��e(K�����j�*Uà9�@��,/��� eY^B��G~AJ�dA�$ Ɍ�WbG� ҝ8-�Y��N�0���!,5�Qzif�,-�6�N�ph��a����C�8�����S2F�4�����c�c������C�mNƠv-2�f �6&��H."����q1�:K.�%�Y2Gɒ��hܒ�!��K0�;Ԯ�b Xr1���b�@Kr1$K��Z�b�vX���Q�;aWr1��Ld3e�{ �bp�B���ɂ��h��HNJs1С�\ DK.w~�u��D5#t���^�%�;���bhp1Bcq1B]p1���Z�Šv8#?�bp�F���bp0q1Hd��A�e\ ��Sk��5Yp1R���h �����b('ĸ�/�g��ؒ�bb�C,r�X��|K.F����;�b��.�5�� +��$ι�� �-��.d���>]�R�a`��p)i�����-��RU&� �C�&i���R¥(���zU���$�Ӷt%��lw���b4�_U�9"x^#s�bx���N�c.{�{�\�6�.|J� +.�_�sg.�;q����c}#��q1P%�IJ.Ƭ�ŀ���b��K.�є�ސY�F��@ZIaC���᮸��񒋡$���dZ�Sw=.�E6Ƭ�E���ϔ��qȉ^�u5D h3�~N���]-j,-~�� +K����͠�+ aE� �")�s�"�:7r�n��F��ղn���n�_M����t�����f�u3g������p�$y�ߟ�wF����|}캯�t� �.B����,��ZI�ؤ�=�/�(u�5�|�9M� ��u�]8�/��3��,��/��2N �%���|;�&_຾���|A���uI�h�J�/��+�CX�� �0Β����`.���&��}pb�sb�x���J��(�b�\�x��Y/�->��]��~)5�_U�[j/5�,�M4���<½Ϊ)�3(�Z ei-��陮��peZ�uFZ�5EZ ��q�N̸����b�:-���:)�v$S2�UJ�C�Z�P&�f0�1-�(�1�ɂ�HưvxJ����C���/H �,���2�X�9"��u'N�j�h]$_�h�$��q�^����q��H�0h�wi���C�8�����[�E�O`[�_.kV��.��f�h� j�d[l��>���t @�E� ���`��P�nA��Q2e�j�X��[p$� �G� ��ݢs�C+E�P�[�k݂��t��H�nA A��`�[��2݂� F�`.� P�%�P�n�TA��u�K�N�(���q�1��*�zYI� �{5�'�K��%�?gK�E���t %�H�*�k��\~$n�̆L � 8�z�,w�-�[�x�ýQK�j��[�A�-�@$�E��N��-�̞i�[@K�nqF����ȟ/�Vt �'�E�#� ���X�+�[2���[l-7L��C��]��v���06\FJSm�4�b�m��E�8���I���>�ԁp)*��v"\��Tӑ�ږ�D���N�ޡh�E{�ES�m� <8/��]����)r){X�¯�es��Wt~���D%ϝ��ĥ������Y�_��� +\��WL�a� +�PK~j��W�M� 3 �h�(+)lH��<��h��ݙS� +� �Q��B����qɯ(�j�_ Z�+�`/\ ����_��U�wqmܲ�'7�Y"�Y"�;VJ�[]J!���2�Kd�5�|�\�ȍ�ܤ,� �,���,��W`�œP�� !�D�A^"#pH�?ʋ wMz� ���g<��W��< ,���=���=�놕�pu��ܡI�� ��f��m��@�C�5�"T�mA�� r�&p���g~�#c[d�e��K��%�"vͶ��{ ��%ۂ��r��l��i�!��d�wgI��gm0GDl�B�|0?����2q���F��UD���24+�e��K-�" ���lY��E�T�.���#�O�]�`�.4h��hc)څ�R��]�h�/��G��Y7$��� f��,���`� �S�5Y�.5h�M� \H��]ए�v��C�����]�]d��5�+ ��7J�E�,�~R(څ��y�k5���6���'i� �S� ���C�� ��}�'jI�@M���#h���]�h� q�����3ʹ hI�.��!�>��ߊv�c�D��}b�d������$.h[� �5$� �Bv ���/5f� ���U[: ��r)Ke�.��:Dk�q`��/u \��3��׫:�t$)���+(�`�ķw(�v��1��]Ƈ*Q��N�C����1�J7�ױ���as��_���� U���O �P'���& Ɖ���G��}qJ.�S�0&qī �n�0ʦD݆��0e �V�%)C������� C>Ht+E�/��z\�0�<��Bp%������n"A�jB��΢WQ�'i|��h�iE��aZ��X���UXB�Bx�4�3���z.oP㬺�*_�V\݊� +�mQW�W`�j*�TM�!TS!�UT8 ���µ����Q��"a�&� /I��=&�:A�^�$��|Ҧ$ ֠A�ج���0�r��H�� �!d�2�f�DI��ϴf�D� �%ƃÑ^�0,H�(�Å{5 ���O�0X��`[�0\�(��I�`�6�݆�Y���Y��K�I6�\�]�8�]|�u +��*"���Q��Y/�->��]��~)5�_U�[j/5�,�M4-��]�yF���A�Y&n8Ji�N |��qMS&mС)��v��AH�k\ݨt "E�]n��q���NՠA�D �C���%j8��!X�]\P�h�S�HѰvXn����a���iOΐ�x^%v!��!݉Ӳ�%�� 3�� a)���&�e��x����$o����凞q���=c�, �V'�0毘5;~L# �b�V#԰��ج�=�0��$ ��@D�0�{ �g��@�da0[�(ٲB �[�0���ܥ�% �����~% #Y��!�X��� ���*��H� �@� ے�A��C`"�� +�O ���:DM, DKFrS���.�da Z�0���3X�*�Y�� ��5�+oK�% ?l ~S(���y�k ���m.?7OfC&��L=�D��ɖ�0�x���P F�d��H1�ba������ca�̞iba`K��q�F����?_�-Yq �'�o��A���X,�[2�8gal/7L��C��]��x�D��06\FJXm�4�b�m�4���8��� ��>�ԁp)J +E�D�^թ�#I��-]�0@)ӝ ��C�,���Rk��� ;�VvMū®�+^���J��*�Ȋ& ��t�f��f���%�Q���_������RI~-����V/ ����j$ ��ѲE��\S��V�� ��H~��М�Oѵk6�"^S�;y�|���Bj������p�7"��6�/&�NBX��]��a3���;�����?S� �GA�J����[����HM�(��+EWǭC��Q X�(�?ql�w��t��8�!��T��! ��\�C���i�B�l(>8��8.~(’�<��L�:�B�x��[ȶJ��*� +�R,"�^!�r�R�x��U�2����p�Z>�_�?�(eO8:%�d�k�I�,w�^����]��q4 U'2'V�w�%隸hh/�"o���Țt����^���fǞ[̼�ceL8ʤUYK�vU�P(��oyv-˕�vX����'a�z��� ϒ��x�#v �!!�Ӳ�%Z, ��f~��Z���[kQЮ�Sy�I�A��K�_P�ơo�ƹ|�HBDϿ'��;��Y ��(/.\;�{���3bD��o�Ĉ)m T���.01#rk1b�&O Fq���1�Ҥ'�yՒ��%#av�An�� (���EȲؒ��� >KFX. Z/���KFX.A���ԝ8�����j�BX� �Β����`.���(4��SڣS�"^��u"��) J��,�+^ehV��t �Z�E��KF毪�-���z�&�.���Gs��Ԙ��P6?���$���y&��s|0��������a❞a�1! W�.&���ń4��ܒ�sK�&�1��j��,�å�d�C���OH�v��,�� i�Γ4� �L�,1!-�L�)Î$&�e݉Ӳ�%��H�h�$�OHc({i2Z���*=�C��K�_gzơg������I���9a��ä�f�Řk�q��P�“06y��|���}�N/�Z�uw�؛���Bd�%�T�^�U-���� �.�3��X"xk! ��BJ A�k�B�_d ?_��@ޭ:c!� �Hdy����B�G��P��B� AD�S,��l� A����B̝1��>�� �N/��䮹3��Xbh�� ◂\BB�<ҵz!j��\~$n���3��`�$��}H�|!҃詵�j�\"��z!0�j!��B�_f�4/-�� ��!��>����j!��� r�y�e���Aܒ���B[� (��.d���>F�R�a`B�p) �����-���O��,�C�&�@0݇��:.E���v"\��Tӑ�ٖ�D���N����CѴ���fQ�l}����B#*�U���ߘ���{�Y�6� ���&� L����Ű)W"���J�od��+qj�v�u`ʅ&Q� �4v�3��ʦDy��l�ҫ�za�d���2eƈx���|��Vja�b��%��̖7M[a���a����A̵���!�P�4}��)c��,p�A�ځB�NBa� ��s�!�:W!r���Q�rA�:W��q��u�ou�V�� /p8 $��Ņ;����?��l{�>O�����7բ L�����w�po j��[c�&��We�J�$�F�$av�An�Μ�|��+ Kd,�l�����, K�D��%�:�%`ɒ�N�@�~��%���%A�0���Y���Y�K��$�NlNL�n�F�S@�VY�W��Ь���.���p�, C��U%����RC��D�K�=Ǹ�o�*0�N#m�P��b蜛�N�t�H[u����"m�J�8�/�yZ�yZWyZ)e���N�0��i�d�vV�i�*� 9�B��<-��S� eyZB��E~AJpdA�K:�~�,:�� +:t'E���jrO :����-:~R(:���y�k5����6���'i� ����g��r�!�r:��>@ :j��S�A�)�@$�E��N��)�̞i�S@K�NqF����ȟ/�Vt +�':E�#� ;LԘ�+�[2���Sl-7̠�C��]��v����06\F�Wm�4�b�m�,�I�8���I&��>�ԁp)*.�v"\��Tӑ�Lږ�D���N�ޡh:�?���'9��5�����L��U��ǘ� �^�v�b���b_����"R�Ht+E�/��z\/�|�ս�����H�o8��_�7������7������� ������EGw�W�#�m�7��q�<ӱ?{�����C�s�j\Z���^�1���]&^����|�=\�H?�:d���.u���� ` �Qa�����1>��L�<������w�-����{��`W����ǜ +4Y;p�}�Z��q��%��%v�Wxwx�*��<� q#u\a�2 t����y�}3�|��$�Ƅ���~5I���@jؿ�:�`��oV��Vz�9`e�8z&D'8U>��x"��F�H^����Z���Q �#͠F��q�Ԫv�v���X3�!!dV׈����P� �|����c���k�h�O9��B��vuX���Հ���=.u�G�_�j��}�gb��V�-�� +�!o���� Bc]�e3- ��\Zn� =��M�j���\']\.��`Y��� �쪑����GHj�����\|t�ދ�M#l��m��t�Ȃ�6�Ș͇�c6���ȹBb�s�)|;��'����9�/�E�h�P%� ~ � �p܉$j��d���ic��o>"��I�=��2��{t�B�=�^���~����B��m*�o���j���Vk6�i���fr�^C��d?�dz�|��:I��jؿv����� �r��y�m�M7��������(M���f��vU��>�8n`(*p ���Vn�ց� Vn��-Z��z�q�!Xn�}d�փ�� {\�!(7�2pc�Z�p����M��n ]θ��i�3.s9�.g�2�]�FJ���$p��/�J�p��\|�^n��6T��� +^�hd� N�����y����7��CQ�9T���8��u�5�?����TZ��CC��NǓz�@��B���QyhdTZ#*���ND�a0��0�x�:��U*�p�T)�R���H<0�x���@q�$i;b;�a�j�A��J� 1zr]y�Ǐ��"�x[#b[�}ElQ�,b �N��ve�F�8El��T"EĆ�����d�#Ն��آU�-�F� �"b��##�ШT��"bCPFl�Ue��&�F�ڂө6�"�-t9�r�3��]θ�匧��1�|w)~o8������h+��s��6�^,#l�ڶW��E# ^p�آ#�bM~�覠zx�������m����<��Ť��^�n�#31*�c�;��w�`�����'%ÁT2��}�){�3�Η*�8[K+أ6X�z��V��{��"[WZ�qI?0� ��Z놩5���g��2s�R'I�q�A �W�.��� {2.b��]E +M,���Y��5�ՙ$�&b;�a�j�A��q�������8�;��l���Z�ڛ�-bCi� ��jWFl��h��)bCC�"EĆ�����d�� +�#6��-:y� ޗ�EĆ�GFl��dĆ=����vU�1��F�,�'hˈ���Gl�\θ��i�3.s9�.g�2�aĖ�z���# ��|,���R-^h(����`� #�市�.Y��S�����Y[�6��¯��m����nN����~���Y�5=R��C��b�+�޺2B��-�[7R��uj�oq"�V�z ���S�u�)�Z�C�)����U:�C�R�Bq�gVh:`��80�wȬ�I�v�vP��հ��m*�f�����y��� #�x[�Ͷ����آ4Y�6��Q��ve�F��"64�!RDlʈ �NFlN���:b�V]DluoDluoDl�&����VEl��ʈ @��\W�¤��,�Ʃ�M��El ]θ��i�3.s9�.g�2�]�FJ���$p��/�J�x��\|t/#6S�*Fx�q/]4����-:bs��n���ƅd��ti���l�{̭a�f��U33�&�b�P�7/8FW�U�]I�^\�R�����V��dź� �"�UP�THS2�����q�#�U&A֕#��,y;�;��O���tH-UA��z0N�Ȫ�,�K76ºn���.��vȽU�]Ե ���E�N�]4�E��"*�h�2���3�+DT�x��u��Ø��"ʋ�K�y�Y �S�^D .�y a����-�D6�I��Xo�o����?�7��}Ӹ�oI ������`�A���-�!�hKe�Y�ϯf4�*��9��,CR�z��9}X��`���I��cO�Ws��B����@��t���L��#\ޑ4���rU�����M��H��\��n@�����}�=*5-�zm�LK�^�7�R^�-VQ����oq��ZxD�hZH'+/�x������"0 3No����I��ݫ���(�{}Y�^�*����?BZ�D�+��� �PB��yc�v�RV�~o�^)�p�U�G  +��}4 +�Z��"�wN�{���lS��l ����Rc�Wl�A��t�!���� ���78]��{�Z�0��wi��vմ�E[�uc�r>>�����l���*c�tqg�!Z���лV�;S��2d�!�Y؝��9�6�-�P�Vj���P�b5n�F҄��s �H�p��x�'o3"���x���y| �uD,�G��|ķ����S���JG~�N�U\�d}\}� ��S"�i7>΍�'I4 �&'R�)�o]yJ���P��t�I� �uG2�H����5*���/�F��]$}�1r��)_@u� �����FT�u�r���Wfi��� +���i����`��/N��Ɖk�㍭�����/7d����Q�*X$�� �s�u�+�*s����`���o#.r�uS�������(G�� � P�s��Q��� �-�����A����J�T�H.vR�VNj�qR�b'5n�FR�.���j� �$���#Vg];��1�:F��#�|Dʐ��V���$v���Fo��A��W���� ���T�:ҬN� ZgD�����:�#&�diz�u��_0��g��.Ʀ�s:p'(�om�葆�a�ol��o���1���F�'vD]�1S;8�Ơ'wD�����Q�����"`�_�`�F��h0b�Rc��4��)ˀQ0b�V#������FO�����r'5n���'5.vR�&Nj$U�0`$e���c��ͨ��R��ZsB�V;"��#n� 9��^8F�5��R:`<��l���B�`#�ݵ��[0k���)c� �U qS����Je7��,�n��]��]�|�i�|�i༕�BT��y�a����<�,p�,��&RT��*�=h�{q뼙%F0DF<)~��>�A����A�� �!��p�(��?~&�_y*��^49�ޅ��Jh��ǿU9�G?������)ef��ۈc醮�6�t�S}�L^�����z=f�R�W���e�)�����a�7w�C���Z]�`u��X�?�}w7��Z�|X��w�����]������ݤo���ɾ��$��n��WwW��y�&�����&�~DZ+�?؟�Η��3�q�v���%�a�����)�G3��ӿo���;�q��wT[���Hj�1��;�똙"K~�Ȫ�)���Ã�`����bl�A�#�ǣ�~������b����Y53E�f�5��ϣ;���6��)>�>^ +R� A��� ��H��S\9Sl��b���$��+O�z܋&�n�a��Jd����~�yBգ�|F�c~���3E��0��,�����v�"�tS}}�t�H�m�׆~�4�p=�5��L���v�&����}6��_�Q� ��0����C^Nj��pRݯ��پ#���%�U�d���]Z��������%|����m��b�K��y�3D�{�/��{��i�(�X�L����a�P����-m�"�I����p�v��*��!�f~8d�WI�f!Uu����~~8��T5��v��f;?�=C�j燽�5%�����y�/���p~�|��x)D}������C��#!�CLq��P��<�D�/��L�ǽh�zl���5;+���/r���G?������e�n�����OcÐS\j�����E,R����=+~>�:Ǥ��0���0��Er5��R�!�a�)95%G�R�V��SFu� �+��&�P���o�krn�|�\񞜔�/Y��2�a�?5Iu���?���z��=9ǧ?�/~�/�2��E8�K��e +����DR�OI�))�_�������_J�))E�LI)�eJu`7�# ����3�K��e +2?�c���x���H؋��eJ��/S��p��|��x)�|��������#A�CL��������������+O�z܋&��ƿL1fg%2|��_��x�ԣ�|��1'�Xm���!�����Y�)�T +�d�*M�S�%��� +N�*M+3�Ak#�{)� ��w�K����J��Y�˞������񾾨�z�U�hkf�s�n�W5��Au^f ʀDqX�\�Ts����~�����[�C�q >m�Gd�O�X���p��벉���gkcV^�2�Y�OZ��lM��6�[do�e#�ns::������?�MTN��mA�֕ӵ�'�5��,7U��h�?��h*��|X�2`]�z ��²P�N,�?j�����Y���aJ~��Ɵ�e]����p1%��Ң�����RW� q�^�Џ5:����<�σUimAk +Pi����`�;Di� +nGT�6��.q��uqU��b�?s٩��v���9}�c�Wz�vF6ޞ!�Ҭc^3 �2=��<�Śr�܆�E�T�5u��5�2���P]��_�kuw����W�~+������.�* �T9߽/Q�z<�����=L�ar5L~{���ǵL�.��V\��~t`��Ns����n>\v���j�w���y䒽j����S}�sSY*uA~X�m�l�Ǻ�I�M�C�}/KN���]���T�d<U�`���K�Ee�Nu�R��\3*DTA���hn����=�j�����7v`Z)�����oܮ��P��"���9������u�1���¬N���G�uJ����������9Uu!�//f8-N^EadMs�H��(���-LX=���`di]B�ҟ*ؓ� ���j\��۫�Ey��8İ�z��i8�yݩ4\���=ou<�3zބ�.����n����߾��ŏqe[��>�lƅ���E!���^2׹]QX��ߤ e:��շ��s��U�������ٺ�}X�b��ʍ�d��K�\ƽ�i�*�I4�-�V^<��<��1���I�~�ϰ!,��K8wq>���8���g�sw�hx����lvrW���><��x��Z�-K�0���y�`�������J�w + �ܭ��[�Ok��삅�<ͪ,���2��)ʠuWQ�� +�^��rH�(�d�p\����{�V8���nťse�ere���&*��@��F��î>������q�A�����zV����“��_�����x�������z�š��P���EE'uC=���z�O�!� P�oԃ�7�����9-��"��a� H'�z���D=P��#*�P�n�6�q$>��,���;��QN�}aR�X�ccV^�2�Y�OZ��lM��6I���|��|tdu�?dw;�t���D���K�h�b �=��3�2E 4����r^��Y��~rN6�C��s?�}�'�}އ�d}h�d�>(A�JT�6~{����q����l� �h�BYIԖ=i�(9����~S��M��YQ}�Y\���wā����cP�Ń1}�d��i�q����{����&��=�r�{l��C�b?���ޣ���6�6�#g$;~���=XҼF�=x3s�{�����FU�Д����4�q�D��ٙ�W��kރ���{�1�����N����G�uJ׼lj��$Lԁ�������3���g��0��^ $|tJ��V�{� '�5 :�!E�O�Ik���6_ �˚{5�(o����_26�6�<���i֥3���[����ZL����ʮ���4�k�2�_�`��V�ߤY���Q�A� ��(]}P����j�>x롏���� �PЇq��A��h�R]����amА���-,Ӂwe���c��N�^e�Ɨe�\(�qh�����|���3�`�����*3s��.3���ˠ$uP�*��V������̴(s����y��̴�q��Ei��J̜��Ġ$�P����7�wvu����Y�*�c����o�iX~tL���3�4���6��_h�9�����di���EE'ue������W���f����9{�h�:�1�}@{�c�0�@��b���\�UC�?���u�vi�G��޲�#�����͈��I16f�%+󁑝��������$[k��oY�'l�GGV��Cv7���m1vb��+u���s$@���[*���$~攃�c���iu�>3�jP�|f~o�N��c�)��>�C=�{��L���6ك�${@�n���\�g���AiKB����v ����x@ݓ&r�-�"}� �7���Q�����Z��V�M��+ �:��m�CJ��C&����������0���=Lނy�sw�yl��#ޢXj��_���!-��ǣ; ��m�� �`Ic�����<�W=���x�Rg�y�Sk�M�� ��g���1�`���@i+���Z���@. pq���;�]����H"4E�����Ỹc��)|x�p�����(��q|G��(<�w|G醀�a(� HKq|GI���Q�u�;���wH|��[�w���"������0�g��Iy��|`dg�?ii����$[k��o�ȯۜ�������ng�n�3���}�8YP!����7�2� �����{J?�Z��\-dl��t��z86�b��O/����ey@�t���g,c�..��g�XLK;�7�Ţ�lI�Eɩ���̎�&e�¬�XQ}�Y\��5� +�_!H��AUn<r9<2�����hZ�{����|G��r�w쫟#ТX��|���7�6���۠��,����;02��+�w��z�<U�`�.��`��|(DTA��|Ga���e���}��(mu��X�w@;�%g �{��;D�貝��� |F�(�%����;jpr|�l=����;0������[ ��,����w,]�w�)�;����v����i��vI�w�O�&b�Yĝ�.k|��-�`|���;ؐ��X'��`��|+���a���a M�ܚ�;��=9;���p�w�Y��6F>`�\�Ӊ0�G]�t�w��>N�D�zԅ�����PD8���5��j ��UJּV�w�'�5 6�!E�O�I g���6_ �˚x{5�(oT���O��s�'����9K���%C�� ��Lm�F�������׵v�AK�o��Z��f�������;�s|�qo�;�0|/R<߱���|�2|G��|�%��8@�ޣ�K�u�aݝ#}V<���&,��we��郃�ө��[�\K��]�FR �<�3N�/�G��S��/ +�X��/�� ��1%%[�A J��b�Խ�!�o��v Xu�ǠtVSu�)����-*1� +��w���T`@�� �[�@#�y���t�m�?�WQ ��bʃ_�x6p|L�(�>Ay@c��@�o�<����X�d)��&��@I�TprTW��؁�I�<�{����m@yp��S<<��/2���%� ��~f2>%�6�T�DŜcJA�����zP�3r,�z�̡� +%%Q[�ݢ�WZ_��q�7��履R�͊�5��V��گ$���*�  y���J[��0����=L�a��c��c[A��2���`=�Ő�x����K��W��\�֬D`=h����! *x�R{�z�Sk� "��:x�c���vˎ�`6�J[�=ֲ��rI���cOD�8"�t��D`t�" �lI�z���<���[��ǜ�b�Q�,���U��`�XD �g= + K�z��փ���@i'�걖��v/j��$���k"֟E�!(�FJI�"�!v����zփ �Y�:9p���a=H��� +C�z�����fX�{&r�DN�D��<ܰ�ka=�1�����N�����+i�E� Ɨ���6Ut�!{�]��3���u�]E|,� ���b���5��#�㰁�K�^��G5 <���G�KD|����.����:���\���XG���&<�u�`��+{�O"ܮN%����u?SY�?M#��`}�(�֐@�.���)cef���,cU�N�*�^E��+�{�C���!��"C_ +hi���#���[Tbqu�2�: HP{ko��}#�p�aW��ok�Qָ����f�z�+�2���1%q*� �C�X�Z|�!���<;փ&�� �\TtrP7�C�h�������T,4�������z���X���f�X�e��� D�(���ٲa=P��#*�P�n�6�q$>��, �;��aN�}aF�X�ccV^�2�Y�OZ��lM��6I����������Z��v����;1{䅺/_�9J���i3P���<���<y�>��"��|Z���ϒF��Y��3>�}�g� ��fr=�6׃ԧD�n� ϳ �fyP�sr,dy�̞� +�$Q[ΤݢdVZ_`~G�M�}yTanG����,���euā���IcP�Ń1i\&��i�q����{����&��<���!n�X&��3�Gk1�<m�m��MQ$Xʃ%My`dʃW>��`_��x0���J�1O���CUP�ʃ�{Oy��ʞ�ີ�<@�)�z��<��<�%!��D{"B�ib�<����A(�$STK:ʃUOy���(^�zʃUGy`��#��R[5�! +�21�'Oy,�P�Pʃ���@i��z��<�t�vI�"�7�"�C����[�<�8�xZGy�!�N,����)V ��P���&�<�5My�3�{&rv&�U����'�Pm�|�x�0�.`8�u��5�q��8�u 'j�.d��� '�� ©�(��I�W ��5�Qg‰jM� aHQ��A{� 6����W��&�^ /�u7�!��׃�In��I�!��B�"`,�S[��c/��3}ƹ��Z���&6|G���o�q:~���;�#�㰁��K.��o�q|�j�;x����Ɣ�;����#.�����r�=ڹ�_W=���s<�4ϡ��� �o�]�s~���s�Pj��f�C�u�>��58�����d~�� (g^°GPPɪC��U5��3b1�|�c@����Xru+p`{�J1}�Ͼ�BQ5�B ]Y�u�U�rATWaH�lFiR�A�0J޺ [���='�o�|�\�P�9@ +E�R��D����K���y�ͷ1 h�@H],B7X Di��(��+y�!����@7]Z� RS@��<8�:PB��@�% Bp �*�U���BH� �$Z"��r3�4$�@&hH`p�(����DC-\7�r&g��J/���Z�������"�n��Z��֍~� � "70<�vj�6<35���*�%� ��2䔔�%Y�M��iS�T�!��ȎK�R"�،��mJ����jH�)%��%�(U�3 %Ғ�()MRJ(cVsY���2�lH{�C��l6Y%K. �==wڲ8�)�L�.�D�:�0�v�_l^`�l�H�Xr��A&I���ߐG��,�FR�f�hx�"�t�{ =7��P8W(����#K"�=��@���x�o�P�2ț��*C���PT��.�<�R�ף(��J��r�4J�t�����:gO��:H +�g ����JQ�F'l�[,�� P��CSSw<{p�8T:E�@V�:>��PY�#T�Z�#*Uv�� +�(C@Ur��J�ǚSI�=QU�=�BjX��V�G��U@j^S�� +6�ܱ]��]Q�ϛ�����#�'cL��4������V�q��M6,�R�F�+UJ�d����)���a�h�ڦ�W���=��j~�է�o�Oz�[d}࠺2��j�&�F���\Nve�E�Y�KQw�N��j>+�85�Ŝ-K�zԩ'��Κ� ���G7�`����?x!�N�Ԋ�B����a$���"���K�xT?8�l.�m-�z.�s��LO�?@U���g2%�5����:�g��\��U, /��YF���e�wp4�v���Ao�a�$���d���>�D�f@b�4�31d�1�b��t��,�x���-�3oS^���!Pcޠ`s%k ��9{�O8�vX5��LQ���b\ߌ4��f��I�Ұ��(��ZDOqJ��Ŕ�5(���E(�aAZdU���t����+Q�DzDĥ��#}1(?��*����<�Cv�'Ԡ�2�Q�{ +Z��T���-��,t.C�\f�'/~pP�?x9�O��p�G�|.F\��s�LO�|�ˠ�2�>�( 5��ppi�Q����9��2I��>I��()�/��������S���S�aR\d�;�� 7E�Ŧ���R%r�J�Kc*+ 2&�E�O�[H��щ�֍:��#P%�Ŷ�� F..�ծ4L�� ]>��q�z�4j� �!r����=�����`�������d�0K;�$��3��R47�F�f�F�P44BE�%M�`����bE��P4��J����(�tCр1DT�E��_Tx��睷=E�~m)�v�f=�Q4��re�n�����Dm��`cL0�E�(�j_OѰQ4�����P4KQ4"Q�����S4�-E�$U]UE�%�h�R45�`)���1��GS��4�8�ve��U=,����q4҃��Hg+�FL��޹8�hȼGS���!ϱ I��Q�Kq4�F��� 9j�r4�,��\7��� ��𯛀�����+3T�j�~u��@�4纲���άD�Y?8���ɬ(���Ww���둧� �=[�.�iN�ݤ�G��?x! +���$��D����q4����#���K�T?8�l��m�}>�H�m)�2!h@�����7�[P��<�5��m^�����CkZ�}�L�xs�֬g�К�&އ��w�!��xw������G���>@&���KY��k��܉?}q�%r����Ċ�uC�O�;�z~�w�4w�NdcXY�Z��ȭ*�\�U��~��\�O�+W���k�U��V��F�DԮ+����j�sg+���*��v�:��R|� +4�T��*� ����jgb�%�o }! ]F���=�kh�TJ�xP��j��4�5���F�F��t M�]C3G׀��/��}�w�F�F��qi�hh*�5�{�tM(�����ݞ����]cU���}Z��'w2t J8�DVC �fiH &� �gp5��#���Z�2wa�Β1�n!1�:F�ʥu��G�N�7��/6O�rs�q.�R�T�d��qL����&�Pk6�C�pqq�{0݃���t]��☮��d��K;�d��3t���57�>�������R]Ú�k | ]Ck���!����j%�Wky�t y��kD��T�����`t �r�5 X��F���=]#�)��]��k��f�5M�FzP�!H�@�A����5\.�tM�c���%x@װ�� �(C@U����dž�I�=Q�w��,AK����%A@����5�5���;�SٮLy����MU3Q���Q&��t �F�S�+��5l^O׬SGװ���%K����t��ɰŴ�n��5�,��\8��� C����6�>p`]���VS������9Օ5�uf� ������UMrEQ�f颸���^�<5/Ş-a�5��nҠ$a ���T�Z.�F"ew��0m�����U�%aL��E%�dtۦ��$�4҅� +5( ����hǛF.��}�b.n�2��&a�]�*��%��3<]��=�k��x#]S�����_y�f5�5��b�� ��W�7�aU����J���>E��S�Aid,M���z��V�+���0�Aq�>Tir��]iRnW��U���s)Ԡ4 2�&Qn=%-����?�x��J����l��P�E���cJ����~�Z@�<���`0�4CN�h�oa���EV��@C�6'�h��f�L3p���4u�x�f�w�{�f������V�v�ț L�,����B�I(��� w<�J�P N���Y2�g�U��c#��6?9��X��@ݾ��8� t����`'�n��W&��2�ZIDy>�1χ�ዷɩ!wQ��Cx������b\Z��6-�U� +��‡!E�pv9���ʇMH��p�U/�)J�ך�IE��#r8�¡1�� �p�[BG�V?�1*.ݨR��� +��/6O0��RO�\r��a*e��q� +��t�������=���t���u��<��̶;fX� -���gZ�<�p��cg� kѿ��cgX3� `gx��3�;>�d�i-���a?7� HA�����3 z���;�{v��ڲ3����z�cg�1�0�ʐ�U KQ105�!#Ѓ�,�� �`S�}=;�r������^q� ˞���2�S%O���Xe��T�U��1`g؆;3�9bg�Ic�Ԛ���;�)�lW��WT�������m�H�(��FvL��)o���6�gg� �cg�1 ;Òegt�Bvf�d�bڀ� �iؙ{�s�q.��|�e�ag�y�LK8��LH�k�����Q�ٙs]Y�FQg�Sԝ��몚ӊ�NM�Eqg�ֽy� �س��Bv�\��MjP$�A�����XC��H��n�F�-��z<Ҿj�$�I��3Q��ݮ���ɀ+|f��7�ϐ��� >���^�� �o�πW+Y�Zˣ�g�� >�Qu �|f�Tx|f�-�=>�~m��v\b=��3�rrem�����Dm��`�K0�>��j_�ϰ�35�y|���>ò�g0D"'U���3�->�$UPUE��3��3��� =k>Z�g�����>ӮL�3��ò��N/j�g����F|L��)o���6��g�)��g�s >Ò�gt�B|f�d�bڄ� �i�{�s�r.��|����g�y�LK8��LM�������Q��s]Y�GQg�dSԝ��+��݊�N��Eqg�۽y� �سe�b|�T��MV$�A�����X��H��n�F�-��z<Ҿ��$�I��3Q�f���'��C�i�T�H�)�s��B 4 RP��<�h.n�2��~�F�j��e�����z���9n�} �H�����RҬR M��f���4Ak�&��s�/�;S^��QP#_��})k$q ޝ;�nc���n�b7Ͷװ�,L��wX� �k��E*`��+��c�X����@�Eɑ��P���*S�a�ZdU��Uy���+QE�y�ʊ%ۢ$��|QRnW��٦5���E�EI��(���S�w������m��d��@��f�1H3�I9Q���h��z��4�4���>�� ��-��hZmA���AF�GyCH��F���"H#.�T M�#���MH�%i���HC3���1���W�N�ɝ H�"+"�F4ICB>I0��gwD�JQ N���y�d _�M�dž�7>r֭ �9��}��r�z���:�����G�LU9{�k�SW��Ș�CyO��M�<��MaʏBy��+K��+�g�J��2EYq^������(+ήgsScN.7���DV�ӴDYq^ڬj-G"�cVS)a���&��v��B�u�Ί�n�Ymz:+�l��(�`��P�\�JAì8�����9��?��� "G��{0݃�L���@���A�m1vȳ�#K!�=�H�!H�p�oi +3���i��o@��HC��4��(�Wk99��=݀4 A U��4��ƒ4o'�A�k Ҡ������ƐȐ+C|CT50E��$j�G�f�!A8���}�����8�4�=B��K�@�D���i8�F$UZUE�9iƜ#�f�]��Ƃ4�5��@hL�]��&*>,��*��6MzPp5�l҈iԨ�=�����4u��A� Ґ�@�H�~��4\4��ڴ �=˹g9��r��B��4�C'i������T���I����9ו5ufM6E�Y?8���٭(��\\w���둧� �=[�.i��ݤ�F��?x! +�����D����q4�2���#���K�T?8�lv�m"�8�b��y@�`"��?{)p�i��:�����.n�2�f���iZ��}������Y��4�M��� �@^-E M5�4����0�1y�$����o΄�>���(o`4��pS�c���?�=o��fs�"�fe6��xߥ��:OڑK��$���Gmr-�~������*ȿ���iP�䪕q�J���5|�F������K�{��Z���Z�m��^�� ��Qu�6^�C��R�ح-���8��;�CrB� 1 Qո���Dm��`�A0������j^��/5�y�����²^0B� �T�~�%�kҿu�H�@U�W���^Hinf�gO��?j,����7��x���!��V��V�geSq��>|��(��F�L���xa�z�e�q8��=�/,�M\�?x�>���6^�6 �rOr�I΅��/� (cY�`�}��� �w��qe�)\J�t���Kq?���ɚ:�w)�ͪ�XV�t���Kq��q�ǝz�(�l��w9}t���#�����:ր*.)��/��hK�����.�#R��LL��B���OVTZ%��=jr���ɣݓ�F��͕&�����m���g��� +b�ʞ�jY������,�������a��wA,��U�P��B����ĒJ��RК�X�j[%�>�!���d����U��OD7 +j@4�*�KYッX��܉?}Tp���u�>�N��>Q�U��O݌?�N<�e$а�(�� ��JH҈��ڕ� +"-��/��ؙ�ק� *�r�Z�\ሂ�+���_�U���S�R�L���T�m��d�ˠ����e�gMV~t��q4~z��"��6��7Y1O$�T�XR�;^R�bA }Yd�� ���4$���@,࢈��Tѿ�%�%z�Ku|���ęF�����;^`L�*�ծ�w��:�Q, �PY ��!�!1�'�X��qNpG��ᴠ�Q��N���Y2�g�U��c#��6?9��X��@ݾ��8B=A� +���N@ݾ��`Z�J}�{Rt ��9�-��:�XJ��ߤq@Rti�ߤ%Z�ۜR�Ŕ�)��DYl~���梁��&;��&u���j��Y�b7�Y��y$�ZIWYliLe�A�,�ȒAjw ��1:�ݺQe��TYl���b�-7��+�+Mլ@�.�,6Ϥl��f?D� +�`��=��L�q/)�˶�:�Oڑ���Oq/�fȽ<��1���޸��Ʊ����šys �xs /��7��; x���K���7����$� MՁ� @�D�dI���Y�O-ȂZ��d��d�+S�DS�@��ET�7�� Eؾda9Yj\ +@�] Y�1Y � RɃY(��7���☨ػMU����7��" Y� h�o��d�ƔC�+S�+*zzS� B�6|�e�Ig+�EL��)�E�,d^��S�����%���d�>���!��m�垵ܳ� g-_}bo����{xsKK8�.M8E���Aԍ�M���ʚ)�:�~ug���J�欢�S�nQ�ٲq�G��f�bϖ�Q�S�G7iP�0�^�B�c ��"����r��<���H���0&������ ��� ��b(}V��ԟ�3�@ 7 CQ��>r֭ �9��}��r�z���:�����7�LS�M��>,� _�,�z�2���s�� �s���P$��GI�)w.�4��䜦��<7�� �=q ����l�ig�mB �PY���Gy��`�L����������A��D��춻���Qyn�F��qz*�-��_l�`���J�\r���7���] >��P^��(��l���ъ�L�`����M��.F]֥���B�qe�~zjK��b����;��.mT7,��Űf� ���,�b�u,>stream +H��ώ�6 ��~ +��hEQԟk7mOAQ��X��a�E��Jʖ<+E��F�E2 ��G�G�>��g���٨��=���fD��u��������s{z�Ũ�O�h�ğV��W�� ���o~��}T� �A��y����v�ژ�䭎�ݼ��K��6����4���3�����{��8�!�RutAI ����P'o��_�V[��l��u�nF���ā܍6�E�_����ϓ� ��� +Nq�<���ȡ��o����{��7A������cV$U1g������e� y����F����=��~�p6P$� v�N��@S����7�q�u@l��Zh�Bn�U�H�y��S�B�UK�� +��B�(�l{�0�l�����P(��B(=DA�~j�i 4U  +uR�$F�H}'��5*L�h4+�1,������7�jt���Khu�G]�kuqou��.�o�I�K����uF�<#X�g�l��/�Mn�ѐuJ O�}p�{�5%L�h4&@��9�ˇ�=ȹ�F����9��9A�'�,g��֌0Y�ь`����[d�-�BX�̕����q:��jH�w��K�#��|',q��1��յpr��2�h߃��-ry%nǽ��5�=�g�H�!�H"��͛�9g�U7�!�Eu\���_���T2�T�I�Ͻ�+�\z��H�ڋO���=�vq�����U�p_�K�nĔM���-)8�==_*��d�ؕ��,�x�``|I) �>ܙ�1LY��)?y��,c��X<:qp�Gxh��q��{F>��܇ŞŞ��iǍZ��cO�7�c>)��A@��!��+�q#�q�ۀ�E�E�y�q���Q[�L���� �><��~0@������%�� �u��~~��FCAW��C#O&,�������l�������F�C��@�şş����Z�N��Ȕ)U��ɓ�)��5a�� +��s|�9��p�g�g�h����'�D���){��I����%������%��<�w�c]X�Y��ȟ���S�i"�Ȕ�`>Y��_���'�ş+� #� ��؈�?�?��FcG�����32� +�˾�d�!���b\��Ÿ���s������3�?q4vD���`"�Ȕ#��L���l��ş+��#ω�� �����D��Ǝ�Z䖟ȟ�)�Ô���d3\zbX蹂�4���� &X�Y虇�4�8v�ȿ2=i�ljN�w2��yٰDZZ�=W�3���Y��.Z�Y�ǞѴ�R�i"{���aɠ�OCB9l��A�M���*����o����G�� �����e\��� ��֗�����PǾ��m�c�ulK�Q�6ԉS���C��v�8k��Z43N[�RZ3>�r����b�5p=�'u�O�5�\cP�6T�tv�RZ��}&Rډ�V#@W�fRZs>���B�;�h����v-�(-]9}�N���8� B B��_��qVc誑k{� FgA�Ý�������� +endstream endobj 4829 0 obj <> endobj 304 0 obj <>stream +8;VGQ0l,f7'SKc2:8')/E5*NpUrJQ:lRI+8S*X-V-r!qO!a[H,(bVVpT9-_g$Ql:t +Ij1.-V4GABo606J5);Jn^j$^@2t-!8I1'nYp8M@WB_\Bu1dRL_=dJ52<2*isbT,`E +>Rc<.5SRH+`V?UO+etY$6Vp-T'^/h=+^$@3%H^J[(-n%C&5GQb +cN9IQKlU)nP/Tj(!QEksZCo"!'%cc]UdS4(BV'`raC.JnE69?7!n<`m1;HH]d@nLG +_]T.i[`j=F_Dpp]gU-/_T*7PnOj1gu;K6DAKP>ZT5)Z%",i30B?gU5Z[p?lb)5W_q +/95tZF+YJF&4eK-ML-J,/,9ibspQ[C8^7>[FI-'8,"b[:N`5j&h/n>NM!SjHXl\3kh9*\2G4f>:O,2_dD +@Pa87`=\5dADu7Q]qL1g^7B$pD4*h]L-$Tb,>*d5Ng+EM>WW`1A(T#D?AOLA,2n$b +pt]lR@4tq,OW+p9lA)sN.oZt7,XY1oILs'\6qg/r-Qbar"g/i-D,3PQ!@e)q,VjC. +A4JC(3:g,7L^>cAjjV +1@@qu>V3K&gl\V#HSJ-[VVDQ'[G8HgKQ6`QY*LS_iNr=3OWu'f,9h"qNep0E7/dVq +K8d?r~> +endstream endobj 306 0 obj [/Indexed/DeviceRGB 255 307 0 R] endobj 307 0 obj <>stream +8;X]O>EqN@%''O_@%e@?J;%+8(9e>X=MR6S?i^YgA3=].HDXF.R$lIL@"pJ+EP(%0 +b]6ajmNZn*!='OQZeQ^Y*,=]?C.B+\Ulg9dhD*"iC[;*=3`oP1[!S^)?1)IZ4dup` +E1r!/,*0[*9.aFIR2&b-C#soRZ7Dl%MLY\.?d>Mn +6%Q2oYfNRF$$+ON<+]RUJmC0InDZ4OTs0S!saG>GGKUlQ*Q?45:CI&4J'_2j$XKrcYp0n+Xl_nU*O( +l[$6Nn+Z_Nq0]s7hs]`XX1nZ8&94a\~> +endstream endobj 4838 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +17.5 180 m +9.491 180 3 173.604 3 165.713 c +3 164.814 3.094 163.938 3.256 163.085 c +3.621 161.153 4.374 159.355 5.443 157.78 c +5.572 157.599 l +17.458 141 l +29.482 157.672 l +29.536 157.746 l +30.684 159.426 31.463 161.366 31.801 163.452 c +31.92 164.19 32 164.942 32 165.713 c +32 173.604 25.508 180 17.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 17.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4839 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 17.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4840 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +89.5 180 m +81.491 180 75 173.604 75 165.713 c +75 164.814 75.094 163.938 75.256 163.085 c +75.621 161.153 76.374 159.355 77.443 157.78 c +77.572 157.599 l +89.458 141 l +101.482 157.672 l +101.536 157.746 l +102.684 159.426 103.463 161.366 103.801 163.452 c +103.92 164.19 104 164.942 104 165.713 c +104 173.604 97.508 180 89.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 89.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4841 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +399 28.668 m +406.25 42 l +420.75 42 l +428 28.668 l +413.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 413.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4842 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 420.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4843 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +531.167 134 m +511.833 134 l +509.698 134 507.967 132.254 507.967 130.1 c +507.967 111.575 l +507.967 109.421 509.698 107.675 511.833 107.675 c +516.667 107.675 l +521.483 95 l +526.333 107.675 l +531.167 107.675 l +533.302 107.675 535.033 109.421 535.033 111.575 c +535.033 130.1 l +535.033 132.254 533.302 134 531.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 521.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4844 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 531.167 134 cm +0 0 m +-19.334 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.334 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.834 -26.325 l +0 -26.325 l +2.135 -26.325 3.866 -24.579 3.866 -22.425 c +3.866 -3.9 l +3.866 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.834 -25.338 l +-5.514 -25.338 l +-5.756 -25.972 l +-9.681 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.334 -25.338 l +-20.921 -25.338 -22.213 -24.031 -22.213 -22.425 c +-22.213 -3.9 l +-22.213 -2.294 -20.921 -0.987 -19.334 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4845 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +535.474 74.656 m +532.279 77.878 l +532.279 82.435 l +532.279 83.436 531.475 84.247 530.483 84.247 c +525.965 84.247 l +522.771 87.469 l +522.068 88.177 520.932 88.177 520.229 87.469 c +517.035 84.247 l +512.517 84.247 l +511.525 84.247 510.722 83.436 510.722 82.435 c +510.722 77.878 l +507.526 74.656 l +506.824 73.949 506.824 72.801 507.526 72.094 c +510.722 68.872 l +510.722 64.315 l +510.722 63.314 511.525 62.502 512.517 62.502 c +517.035 62.502 l +521.461 49 l +525.965 62.502 l +530.483 62.502 l +531.475 62.502 532.279 63.314 532.279 64.315 c +532.279 68.872 l +535.474 72.094 l +536.176 72.801 536.176 73.949 535.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 521.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4846 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 521.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.778 -4.564 -10.778 -5.565 c +-10.778 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.778 -19.128 l +-10.778 -23.685 l +-10.778 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.465 -25.498 l +8.983 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.676 -15.199 14.676 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.983 -3.753 c +4.465 -3.753 l +1.271 -0.531 l +0.92 -0.177 0.46 0 0 0 c +0 -0.987 m +0.215 -0.987 0.417 -1.072 0.569 -1.226 c +3.764 -4.448 l +4.054 -4.74 l +4.465 -4.74 l +8.983 -4.74 l +9.43 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.594 -14.362 13.594 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.43 -24.51 8.983 -24.51 c +4.465 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.855 l +-3.526 -25.19 l +-3.749 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.791 -24.14 -9.791 -23.685 c +-9.791 -19.128 l +-9.791 -18.722 l +-10.077 -18.433 l +-13.272 -15.211 l +-13.594 -14.888 -13.594 -14.362 -13.272 -14.039 c +-10.077 -10.817 l +-9.791 -10.529 l +-9.791 -10.122 l +-9.791 -5.565 l +-9.791 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.054 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4847 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +507 28.668 m +514.25 42 l +528.75 42 l +536 28.668 l +521.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 521.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4848 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 528.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.603 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.897 -1.013 l +h +f +Q + +endstream endobj 4849 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +495.167 134 m +475.833 134 l +473.698 134 471.967 132.254 471.967 130.1 c +471.967 111.575 l +471.967 109.421 473.698 107.675 475.833 107.675 c +480.667 107.675 l +485.483 95 l +490.333 107.675 l +495.167 107.675 l +497.302 107.675 499.033 109.421 499.033 111.575 c +499.033 130.1 l +499.033 132.254 497.302 134 495.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 485.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4850 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 495.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4851 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 89.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4852 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +499.474 74.656 m +496.279 77.878 l +496.279 82.435 l +496.279 83.436 495.475 84.247 494.482 84.247 c +489.964 84.247 l +486.77 87.469 l +486.069 88.177 484.931 88.177 484.229 87.469 c +481.035 84.247 l +476.517 84.247 l +475.525 84.247 474.721 83.436 474.721 82.435 c +474.721 77.878 l +471.526 74.656 l +470.824 73.949 470.824 72.801 471.526 72.094 c +474.721 68.872 l +474.721 64.315 l +474.721 63.314 475.525 62.502 476.517 62.502 c +481.035 62.502 l +485.461 49 l +489.964 62.502 l +494.482 62.502 l +495.475 62.502 496.279 63.314 496.279 64.315 c +496.279 68.872 l +499.474 72.094 l +500.175 72.801 500.175 73.949 499.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 485.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4853 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 485.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4854 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +471 28.668 m +478.25 42 l +492.75 42 l +500 28.668 l +485.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 485.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4855 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 492.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4856 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +459.167 134 m +439.833 134 l +437.698 134 435.967 132.254 435.967 130.1 c +435.967 111.575 l +435.967 109.421 437.698 107.675 439.833 107.675 c +444.667 107.675 l +449.483 95 l +454.333 107.675 l +459.167 107.675 l +461.302 107.675 463.033 109.421 463.033 111.575 c +463.033 130.1 l +463.033 132.254 461.302 134 459.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 449.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4857 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 459.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4858 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +463.474 74.656 m +460.279 77.878 l +460.279 82.435 l +460.279 83.436 459.475 84.247 458.482 84.247 c +453.964 84.247 l +450.77 87.469 l +450.069 88.177 448.931 88.177 448.229 87.469 c +445.035 84.247 l +440.517 84.247 l +439.525 84.247 438.721 83.436 438.721 82.435 c +438.721 77.878 l +435.526 74.656 l +434.824 73.949 434.824 72.801 435.526 72.094 c +438.721 68.872 l +438.721 64.315 l +438.721 63.314 439.525 62.502 440.517 62.502 c +445.035 62.502 l +449.461 49 l +453.964 62.502 l +458.482 62.502 l +459.475 62.502 460.279 63.314 460.279 64.315 c +460.279 68.872 l +463.474 72.094 l +464.175 72.801 464.175 73.949 463.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 449.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4859 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 449.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4860 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +435 28.668 m +442.25 42 l +456.75 42 l +464 28.668 l +449.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 449.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4861 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 456.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4862 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +233.5 180 m +225.491 180 219 173.604 219 165.713 c +219 164.814 219.094 163.938 219.256 163.085 c +219.621 161.153 220.374 159.355 221.443 157.78 c +221.572 157.599 l +233.458 141 l +245.482 157.672 l +245.536 157.746 l +246.684 159.426 247.463 161.366 247.801 163.452 c +247.92 164.19 248 164.942 248 165.713 c +248 173.604 241.508 180 233.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 233.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4863 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 233.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4864 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +521.5 180 m +513.491 180 507 173.604 507 165.713 c +507 164.814 507.095 163.938 507.257 163.085 c +507.621 161.153 508.374 159.355 509.443 157.78 c +509.573 157.599 l +521.459 141 l +533.483 157.672 l +533.536 157.746 l +534.684 159.426 535.464 161.366 535.802 163.452 c +535.921 164.19 536 164.942 536 165.713 c +536 173.604 529.509 180 521.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 521.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4865 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 521.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.405 -16.062 -14.243 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.927 -22.401 l +-0.041 -39 l +11.983 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.964 -18.634 14.302 -16.548 c +14.421 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.009 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.929 13.452 -15.617 13.327 -16.391 c +13.014 -18.324 12.305 -20.11 11.233 -21.68 c +11.183 -21.75 l +-0.038 -37.308 l +-11.124 -21.826 l +-11.24 -21.665 l +-12.253 -20.173 -12.938 -18.513 -13.273 -16.73 c +-13.435 -15.883 -13.513 -15.083 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4866 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +269.5 180 m +261.491 180 255 173.604 255 165.713 c +255 164.814 255.094 163.938 255.256 163.085 c +255.621 161.153 256.374 159.355 257.443 157.78 c +257.572 157.599 l +269.458 141 l +281.482 157.672 l +281.536 157.746 l +282.684 159.426 283.463 161.366 283.801 163.452 c +283.92 164.19 284 164.942 284 165.713 c +284 173.604 277.508 180 269.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 269.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4867 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 269.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4868 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +305.5 180 m +297.491 180 291 173.604 291 165.713 c +291 164.814 291.094 163.938 291.256 163.085 c +291.621 161.153 292.374 159.355 293.443 157.78 c +293.572 157.599 l +305.458 141 l +317.482 157.672 l +317.536 157.746 l +318.684 159.426 319.463 161.366 319.801 163.452 c +319.92 164.19 320 164.942 320 165.713 c +320 173.604 313.508 180 305.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 305.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4869 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 305.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4870 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +53.5 180 m +45.491 180 39 173.604 39 165.713 c +39 164.814 39.094 163.938 39.256 163.085 c +39.621 161.153 40.374 159.355 41.443 157.78 c +41.572 157.599 l +53.458 141 l +65.482 157.672 l +65.536 157.746 l +66.684 159.426 67.463 161.366 67.801 163.452 c +67.92 164.19 68 164.942 68 165.713 c +68 173.604 61.508 180 53.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 53.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4871 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +449.5 180 m +441.491 180 435 173.604 435 165.713 c +435 164.814 435.094 163.938 435.256 163.085 c +435.621 161.153 436.374 159.355 437.443 157.78 c +437.572 157.599 l +449.458 141 l +461.482 157.672 l +461.536 157.746 l +462.684 159.426 463.463 161.366 463.801 163.452 c +463.92 164.19 464 164.942 464 165.713 c +464 173.604 457.508 180 449.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 449.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4872 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 449.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.925 13.452 -15.613 13.326 -16.391 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4873 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +413.5 180 m +405.491 180 399 173.604 399 165.713 c +399 164.814 399.094 163.938 399.256 163.085 c +399.621 161.153 400.374 159.355 401.443 157.78 c +401.572 157.599 l +413.458 141 l +425.482 157.672 l +425.536 157.746 l +426.684 159.426 427.463 161.366 427.801 163.452 c +427.92 164.19 428 164.942 428 165.713 c +428 173.604 421.508 180 413.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 413.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4874 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 413.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.925 13.452 -15.613 13.326 -16.391 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4875 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +377.5 180 m +369.491 180 363 173.604 363 165.713 c +363 164.814 363.094 163.938 363.256 163.085 c +363.621 161.153 364.374 159.355 365.443 157.78 c +365.572 157.599 l +377.458 141 l +389.482 157.672 l +389.536 157.746 l +390.684 159.426 391.463 161.366 391.801 163.452 c +391.92 164.19 392 164.942 392 165.713 c +392 173.604 385.508 180 377.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 377.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4876 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 377.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4877 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +341.5 180 m +333.491 180 327 173.604 327 165.713 c +327 164.814 327.094 163.938 327.256 163.085 c +327.621 161.153 328.374 159.355 329.443 157.78 c +329.572 157.599 l +341.458 141 l +353.482 157.672 l +353.536 157.746 l +354.684 159.426 355.463 161.366 355.801 163.452 c +355.92 164.19 356 164.942 356 165.713 c +356 173.604 349.508 180 341.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 341.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4878 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 341.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4879 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +485.5 180 m +477.491 180 471 173.604 471 165.713 c +471 164.814 471.094 163.938 471.256 163.085 c +471.621 161.153 472.374 159.355 473.443 157.78 c +473.572 157.599 l +485.458 141 l +497.482 157.672 l +497.536 157.746 l +498.684 159.426 499.463 161.366 499.801 163.452 c +499.92 164.19 500 164.942 500 165.713 c +500 173.604 493.508 180 485.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 485.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4880 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 1 1 1 scn +/GS0 gs +q 1 0 0 1 485.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.925 13.452 -15.613 13.326 -16.391 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4881 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 53.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4882 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +27.167 134 m +7.833 134 l +5.698 134 3.967 132.254 3.967 130.1 c +3.967 111.575 l +3.967 109.421 5.698 107.675 7.833 107.675 c +12.667 107.675 l +17.483 95 l +22.333 107.675 l +27.167 107.675 l +29.302 107.675 31.033 109.421 31.033 111.575 c +31.033 130.1 l +31.033 132.254 29.302 134 27.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 17.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4883 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 27.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4884 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +31.474 74.656 m +28.279 77.878 l +28.279 82.435 l +28.279 83.436 27.475 84.247 26.482 84.247 c +21.964 84.247 l +18.77 87.469 l +18.069 88.177 16.931 88.177 16.229 87.469 c +13.035 84.247 l +8.517 84.247 l +7.525 84.247 6.721 83.436 6.721 82.435 c +6.721 77.878 l +3.526 74.656 l +2.824 73.949 2.824 72.801 3.526 72.094 c +6.721 68.872 l +6.721 64.315 l +6.721 63.314 7.525 62.502 8.517 62.502 c +13.035 62.502 l +17.461 49 l +21.964 62.502 l +26.482 62.502 l +27.475 62.502 28.279 63.314 28.279 64.315 c +28.279 68.872 l +31.474 72.094 l +32.175 72.801 32.175 73.949 31.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 17.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4885 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 17.5 88 cm +0 0 m +-0.46 0 -0.919 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4886 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +3 28.668 m +10.25 42 l +24.75 42 l +32 28.668 l +17.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 17.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4887 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 24.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4888 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +63.167 134 m +43.833 134 l +41.698 134 39.967 132.254 39.967 130.1 c +39.967 111.575 l +39.967 109.421 41.698 107.675 43.833 107.675 c +48.667 107.675 l +53.483 95 l +58.333 107.675 l +63.167 107.675 l +65.302 107.675 67.033 109.421 67.033 111.575 c +67.033 130.1 l +67.033 132.254 65.302 134 63.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 53.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4889 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 63.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4890 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +67.474 74.656 m +64.279 77.878 l +64.279 82.435 l +64.279 83.436 63.475 84.247 62.482 84.247 c +57.964 84.247 l +54.77 87.469 l +54.069 88.177 52.931 88.177 52.229 87.469 c +49.035 84.247 l +44.517 84.247 l +43.525 84.247 42.721 83.436 42.721 82.435 c +42.721 77.878 l +39.526 74.656 l +38.824 73.949 38.824 72.801 39.526 72.094 c +42.721 68.872 l +42.721 64.315 l +42.721 63.314 43.525 62.502 44.517 62.502 c +49.035 62.502 l +53.461 49 l +57.964 62.502 l +62.482 62.502 l +63.475 62.502 64.279 63.314 64.279 64.315 c +64.279 68.872 l +67.474 72.094 l +68.175 72.801 68.175 73.949 67.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 53.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4891 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 53.5 88 cm +0 0 m +-0.46 0 -0.919 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4892 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +197.5 180 m +189.491 180 183 173.604 183 165.713 c +183 164.814 183.094 163.938 183.256 163.085 c +183.621 161.153 184.374 159.355 185.443 157.78 c +185.572 157.599 l +197.458 141 l +209.482 157.672 l +209.536 157.746 l +210.684 159.426 211.463 161.366 211.801 163.452 c +211.92 164.19 212 164.942 212 165.713 c +212 173.604 205.508 180 197.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 197.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4893 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +39 28.668 m +46.25 42 l +60.75 42 l +68 28.668 l +53.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 53.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4894 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 60.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4895 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +99.167 134 m +79.833 134 l +77.698 134 75.967 132.254 75.967 130.1 c +75.967 111.575 l +75.967 109.421 77.698 107.675 79.833 107.675 c +84.667 107.675 l +89.483 95 l +94.333 107.675 l +99.167 107.675 l +101.302 107.675 103.033 109.421 103.033 111.575 c +103.033 130.1 l +103.033 132.254 101.302 134 99.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 89.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4896 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 99.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4897 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +103.474 74.656 m +100.279 77.878 l +100.279 82.435 l +100.279 83.436 99.475 84.247 98.482 84.247 c +93.964 84.247 l +90.77 87.469 l +90.069 88.177 88.931 88.177 88.229 87.469 c +85.035 84.247 l +80.517 84.247 l +79.525 84.247 78.721 83.436 78.721 82.435 c +78.721 77.878 l +75.526 74.656 l +74.824 73.949 74.824 72.801 75.526 72.094 c +78.721 68.872 l +78.721 64.315 l +78.721 63.314 79.525 62.502 80.517 62.502 c +85.035 62.502 l +89.461 49 l +93.964 62.502 l +98.482 62.502 l +99.475 62.502 100.279 63.314 100.279 64.315 c +100.279 68.872 l +103.474 72.094 l +104.175 72.801 104.175 73.949 103.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 89.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4898 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 89.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4899 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +75 28.668 m +82.25 42 l +96.75 42 l +104 28.668 l +89.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 89.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4900 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 96.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4901 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +135.167 134 m +115.833 134 l +113.698 134 111.967 132.254 111.967 130.1 c +111.967 111.575 l +111.967 109.421 113.698 107.675 115.833 107.675 c +120.667 107.675 l +125.483 95 l +130.333 107.675 l +135.167 107.675 l +137.302 107.675 139.033 109.421 139.033 111.575 c +139.033 130.1 l +139.033 132.254 137.302 134 135.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 125.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4902 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 135.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4903 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 197.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4904 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +139.474 74.656 m +136.279 77.878 l +136.279 82.435 l +136.279 83.436 135.475 84.247 134.482 84.247 c +129.964 84.247 l +126.77 87.469 l +126.069 88.177 124.931 88.177 124.229 87.469 c +121.035 84.247 l +116.517 84.247 l +115.525 84.247 114.721 83.436 114.721 82.435 c +114.721 77.878 l +111.526 74.656 l +110.824 73.949 110.824 72.801 111.526 72.094 c +114.721 68.872 l +114.721 64.315 l +114.721 63.314 115.525 62.502 116.517 62.502 c +121.035 62.502 l +125.461 49 l +129.964 62.502 l +134.482 62.502 l +135.475 62.502 136.279 63.314 136.279 64.315 c +136.279 68.872 l +139.474 72.094 l +140.175 72.801 140.175 73.949 139.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 125.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4905 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 125.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4906 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +111 28.668 m +118.25 42 l +132.75 42 l +140 28.668 l +125.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 125.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4907 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 132.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4908 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +171.167 134 m +151.833 134 l +149.698 134 147.967 132.254 147.967 130.1 c +147.967 111.575 l +147.967 109.421 149.698 107.675 151.833 107.675 c +156.667 107.675 l +161.483 95 l +166.333 107.675 l +171.167 107.675 l +173.302 107.675 175.033 109.421 175.033 111.575 c +175.033 130.1 l +175.033 132.254 173.302 134 171.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 161.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4909 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 171.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4910 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +175.474 74.656 m +172.279 77.878 l +172.279 82.435 l +172.279 83.436 171.475 84.247 170.482 84.247 c +165.964 84.247 l +162.77 87.469 l +162.069 88.177 160.931 88.177 160.229 87.469 c +157.035 84.247 l +152.517 84.247 l +151.525 84.247 150.721 83.436 150.721 82.435 c +150.721 77.878 l +147.526 74.656 l +146.824 73.949 146.824 72.801 147.526 72.094 c +150.721 68.872 l +150.721 64.315 l +150.721 63.314 151.525 62.502 152.517 62.502 c +157.035 62.502 l +161.461 49 l +165.964 62.502 l +170.482 62.502 l +171.475 62.502 172.279 63.314 172.279 64.315 c +172.279 68.872 l +175.474 72.094 l +176.175 72.801 176.175 73.949 175.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 161.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4911 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 161.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4912 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +147 28.668 m +154.25 42 l +168.75 42 l +176 28.668 l +161.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 161.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4913 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 168.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4914 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +161.5 180 m +153.491 180 147 173.604 147 165.713 c +147 164.814 147.094 163.938 147.256 163.085 c +147.621 161.153 148.374 159.355 149.443 157.78 c +149.572 157.599 l +161.458 141 l +173.482 157.672 l +173.536 157.746 l +174.684 159.426 175.463 161.366 175.801 163.452 c +175.92 164.19 176 164.942 176 165.713 c +176 173.604 169.508 180 161.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 161.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4915 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +207.167 134 m +187.833 134 l +185.698 134 183.967 132.254 183.967 130.1 c +183.967 111.575 l +183.967 109.421 185.698 107.675 187.833 107.675 c +192.667 107.675 l +197.483 95 l +202.333 107.675 l +207.167 107.675 l +209.302 107.675 211.033 109.421 211.033 111.575 c +211.033 130.1 l +211.033 132.254 209.302 134 207.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 197.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4916 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 207.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4917 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +211.474 74.656 m +208.279 77.878 l +208.279 82.435 l +208.279 83.436 207.475 84.247 206.482 84.247 c +201.964 84.247 l +198.77 87.469 l +198.069 88.177 196.931 88.177 196.229 87.469 c +193.035 84.247 l +188.517 84.247 l +187.525 84.247 186.721 83.436 186.721 82.435 c +186.721 77.878 l +183.526 74.656 l +182.824 73.949 182.824 72.801 183.526 72.094 c +186.721 68.872 l +186.721 64.315 l +186.721 63.314 187.525 62.502 188.517 62.502 c +193.035 62.502 l +197.461 49 l +201.964 62.502 l +206.482 62.502 l +207.475 62.502 208.279 63.314 208.279 64.315 c +208.279 68.872 l +211.474 72.094 l +212.175 72.801 212.175 73.949 211.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 197.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4918 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 197.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4919 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +183 28.668 m +190.25 42 l +204.75 42 l +212 28.668 l +197.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 197.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4920 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 204.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4921 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +243.167 134 m +223.833 134 l +221.698 134 219.967 132.254 219.967 130.1 c +219.967 111.575 l +219.967 109.421 221.698 107.675 223.833 107.675 c +228.667 107.675 l +233.483 95 l +238.333 107.675 l +243.167 107.675 l +245.302 107.675 247.033 109.421 247.033 111.575 c +247.033 130.1 l +247.033 132.254 245.302 134 243.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 233.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4922 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 243.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4923 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +247.474 74.656 m +244.279 77.878 l +244.279 82.435 l +244.279 83.436 243.475 84.247 242.482 84.247 c +237.964 84.247 l +234.77 87.469 l +234.069 88.177 232.931 88.177 232.229 87.469 c +229.035 84.247 l +224.517 84.247 l +223.525 84.247 222.721 83.436 222.721 82.435 c +222.721 77.878 l +219.526 74.656 l +218.824 73.949 218.824 72.801 219.526 72.094 c +222.721 68.872 l +222.721 64.315 l +222.721 63.314 223.525 62.502 224.517 62.502 c +229.035 62.502 l +233.461 49 l +237.964 62.502 l +242.482 62.502 l +243.475 62.502 244.279 63.314 244.279 64.315 c +244.279 68.872 l +247.474 72.094 l +248.175 72.801 248.175 73.949 247.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 233.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4924 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 233.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4925 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 161.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4926 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +219 28.668 m +226.25 42 l +240.75 42 l +248 28.668 l +233.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 233.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4927 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 240.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4928 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +279.167 134 m +259.833 134 l +257.698 134 255.967 132.254 255.967 130.1 c +255.967 111.575 l +255.967 109.421 257.698 107.675 259.833 107.675 c +264.667 107.675 l +269.483 95 l +274.333 107.675 l +279.167 107.675 l +281.302 107.675 283.033 109.421 283.033 111.575 c +283.033 130.1 l +283.033 132.254 281.302 134 279.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 269.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4929 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 279.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4930 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +283.474 74.656 m +280.279 77.878 l +280.279 82.435 l +280.279 83.436 279.475 84.247 278.482 84.247 c +273.964 84.247 l +270.77 87.469 l +270.069 88.177 268.931 88.177 268.229 87.469 c +265.035 84.247 l +260.517 84.247 l +259.525 84.247 258.721 83.436 258.721 82.435 c +258.721 77.878 l +255.526 74.656 l +254.824 73.949 254.824 72.801 255.526 72.094 c +258.721 68.872 l +258.721 64.315 l +258.721 63.314 259.525 62.502 260.517 62.502 c +265.035 62.502 l +269.461 49 l +273.964 62.502 l +278.482 62.502 l +279.475 62.502 280.279 63.314 280.279 64.315 c +280.279 68.872 l +283.474 72.094 l +284.175 72.801 284.175 73.949 283.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 269.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4931 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 269.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4932 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +255 28.668 m +262.25 42 l +276.75 42 l +284 28.668 l +269.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 269.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4933 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 276.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4934 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +315.167 134 m +295.833 134 l +293.698 134 291.967 132.254 291.967 130.1 c +291.967 111.575 l +291.967 109.421 293.698 107.675 295.833 107.675 c +300.667 107.675 l +305.483 95 l +310.333 107.675 l +315.167 107.675 l +317.302 107.675 319.033 109.421 319.033 111.575 c +319.033 130.1 l +319.033 132.254 317.302 134 315.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 305.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4935 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 315.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4936 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +125.5 180 m +117.491 180 111 173.604 111 165.713 c +111 164.814 111.094 163.938 111.256 163.085 c +111.621 161.153 112.374 159.355 113.443 157.78 c +113.572 157.599 l +125.458 141 l +137.482 157.672 l +137.536 157.746 l +138.684 159.426 139.463 161.366 139.801 163.452 c +139.92 164.19 140 164.942 140 165.713 c +140 173.604 133.508 180 125.5 180 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 125.5 180 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4937 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +319.474 74.656 m +316.279 77.878 l +316.279 82.435 l +316.279 83.436 315.475 84.247 314.482 84.247 c +309.964 84.247 l +306.77 87.469 l +306.069 88.177 304.931 88.177 304.229 87.469 c +301.035 84.247 l +296.517 84.247 l +295.525 84.247 294.721 83.436 294.721 82.435 c +294.721 77.878 l +291.526 74.656 l +290.824 73.949 290.824 72.801 291.526 72.094 c +294.721 68.872 l +294.721 64.315 l +294.721 63.314 295.525 62.502 296.517 62.502 c +301.035 62.502 l +305.461 49 l +309.964 62.502 l +314.482 62.502 l +315.475 62.502 316.279 63.314 316.279 64.315 c +316.279 68.872 l +319.474 72.094 l +320.175 72.801 320.175 73.949 319.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 305.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4938 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 305.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4939 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +291 28.668 m +298.25 42 l +312.75 42 l +320 28.668 l +305.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 305.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4940 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 312.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4941 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +351.167 134 m +331.833 134 l +329.698 134 327.967 132.254 327.967 130.1 c +327.967 111.575 l +327.967 109.421 329.698 107.675 331.833 107.675 c +336.667 107.675 l +341.483 95 l +346.333 107.675 l +351.167 107.675 l +353.302 107.675 355.033 109.421 355.033 111.575 c +355.033 130.1 l +355.033 132.254 353.302 134 351.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 341.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4942 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 351.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4943 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +355.474 74.656 m +352.279 77.878 l +352.279 82.435 l +352.279 83.436 351.475 84.247 350.482 84.247 c +345.964 84.247 l +342.77 87.469 l +342.069 88.177 340.931 88.177 340.229 87.469 c +337.035 84.247 l +332.517 84.247 l +331.525 84.247 330.721 83.436 330.721 82.435 c +330.721 77.878 l +327.526 74.656 l +326.824 73.949 326.824 72.801 327.526 72.094 c +330.721 68.872 l +330.721 64.315 l +330.721 63.314 331.525 62.502 332.517 62.502 c +337.035 62.502 l +341.461 49 l +345.964 62.502 l +350.482 62.502 l +351.475 62.502 352.279 63.314 352.279 64.315 c +352.279 68.872 l +355.474 72.094 l +356.175 72.801 356.175 73.949 355.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 341.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4944 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 341.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4945 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +327 28.668 m +334.25 42 l +348.75 42 l +356 28.668 l +341.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 341.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4946 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 348.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4947 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 125.5 180 cm +0 0 m +-8.009 0 -14.5 -6.396 -14.5 -14.287 c +-14.5 -15.186 -14.406 -16.062 -14.244 -16.915 c +-13.879 -18.847 -13.126 -20.645 -12.057 -22.22 c +-11.928 -22.401 l +-0.042 -39 l +11.982 -22.328 l +12.036 -22.254 l +13.184 -20.574 13.963 -18.634 14.301 -16.548 c +14.42 -15.81 14.5 -15.058 14.5 -14.287 c +14.5 -6.396 8.008 0 0 0 c +0 -0.987 m +7.451 -0.987 13.513 -6.954 13.513 -14.287 c +13.513 -14.923 13.452 -15.612 13.327 -16.39 c +13.013 -18.326 12.304 -20.111 11.235 -21.676 c +11.182 -21.75 l +-0.039 -37.308 l +-11.124 -21.827 l +-11.24 -21.665 l +-12.253 -20.174 -12.937 -18.514 -13.274 -16.73 c +-13.435 -15.884 -13.513 -15.084 -13.513 -14.287 c +-13.513 -6.954 -7.451 -0.987 0 -0.987 c +f +Q + +endstream endobj 4948 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +387.167 134 m +367.833 134 l +365.698 134 363.967 132.254 363.967 130.1 c +363.967 111.575 l +363.967 109.421 365.698 107.675 367.833 107.675 c +372.667 107.675 l +377.483 95 l +382.333 107.675 l +387.167 107.675 l +389.302 107.675 391.033 109.421 391.033 111.575 c +391.033 130.1 l +391.033 132.254 389.302 134 387.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 377.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4949 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 387.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4950 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +391.474 74.656 m +388.279 77.878 l +388.279 82.435 l +388.279 83.436 387.475 84.247 386.482 84.247 c +381.964 84.247 l +378.77 87.469 l +378.069 88.177 376.931 88.177 376.229 87.469 c +373.035 84.247 l +368.517 84.247 l +367.525 84.247 366.721 83.436 366.721 82.435 c +366.721 77.878 l +363.526 74.656 l +362.824 73.949 362.824 72.801 363.526 72.094 c +366.721 68.872 l +366.721 64.315 l +366.721 63.314 367.525 62.502 368.517 62.502 c +373.035 62.502 l +377.461 49 l +381.964 62.502 l +386.482 62.502 l +387.475 62.502 388.279 63.314 388.279 64.315 c +388.279 68.872 l +391.474 72.094 l +392.175 72.801 392.175 73.949 391.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 377.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4951 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 377.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 4952 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +363 28.668 m +370.25 42 l +384.75 42 l +392 28.668 l +377.5 3 l +h +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 377.5 42 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4953 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 384.75 42 cm +0 0 m +-14.5 0 l +-21.75 -13.332 l +-7.25 -39 l +7.25 -13.332 l +h +-0.602 -1.013 m +6.092 -13.323 l +-7.25 -36.94 l +-20.592 -13.323 l +-13.898 -1.013 l +h +f +Q + +endstream endobj 4954 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +423.167 134 m +403.833 134 l +401.698 134 399.967 132.254 399.967 130.1 c +399.967 111.575 l +399.967 109.421 401.698 107.675 403.833 107.675 c +408.667 107.675 l +413.483 95 l +418.333 107.675 l +423.167 107.675 l +425.302 107.675 427.033 109.421 427.033 111.575 c +427.033 130.1 l +427.033 132.254 425.302 134 423.167 134 c +W n +q +0 g +/GS0 gs +-0.0000017 -39 -39 0.0000017 413.5 134 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4955 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 423.1665 134 cm +0 0 m +-19.333 0 l +-21.469 0 -23.2 -1.746 -23.2 -3.9 c +-23.2 -22.425 l +-23.2 -24.579 -21.469 -26.325 -19.333 -26.325 c +-14.5 -26.325 l +-9.684 -39 l +-4.833 -26.325 l +0 -26.325 l +2.135 -26.325 3.867 -24.579 3.867 -22.425 c +3.867 -3.9 l +3.867 -1.746 2.135 0 0 0 c +0 -0.987 m +1.587 -0.987 2.879 -2.294 2.879 -3.9 c +2.879 -22.425 l +2.879 -24.031 1.587 -25.338 0 -25.338 c +-4.833 -25.338 l +-5.513 -25.338 l +-5.756 -25.972 l +-9.68 -36.229 l +-13.577 -25.975 l +-13.819 -25.338 l +-14.5 -25.338 l +-19.333 -25.338 l +-20.92 -25.338 -22.212 -24.031 -22.212 -22.425 c +-22.212 -3.9 l +-22.212 -2.294 -20.92 -0.987 -19.333 -0.987 c +0 -0.987 l +f +Q + +endstream endobj 4956 0 obj <>/ExtGState<>/Shading<>>>/Subtype/Form>>stream +q +427.474 74.656 m +424.279 77.878 l +424.279 82.435 l +424.279 83.436 423.475 84.247 422.482 84.247 c +417.964 84.247 l +414.77 87.469 l +414.069 88.177 412.931 88.177 412.229 87.469 c +409.035 84.247 l +404.517 84.247 l +403.525 84.247 402.721 83.436 402.721 82.435 c +402.721 77.878 l +399.526 74.656 l +398.824 73.949 398.824 72.801 399.526 72.094 c +402.721 68.872 l +402.721 64.315 l +402.721 63.314 403.525 62.502 404.517 62.502 c +409.035 62.502 l +413.461 49 l +417.964 62.502 l +422.482 62.502 l +423.475 62.502 424.279 63.314 424.279 64.315 c +424.279 68.872 l +427.474 72.094 l +428.175 72.801 428.175 73.949 427.474 74.656 c +W n +q +0 g +/GS0 gs +-0.0000017 -38.9995117 -38.9995117 0.0000017 413.5 87.9995117 cm +BX /Sh0 sh EX Q +Q + +endstream endobj 4957 0 obj <>/ExtGState<>>>/Subtype/Form>>stream +/CS0 cs 0.137 0.122 0.125 scn +/GS0 gs +q 1 0 0 1 413.5 88 cm +0 0 m +-0.46 0 -0.92 -0.177 -1.271 -0.531 c +-4.465 -3.753 l +-8.983 -3.753 l +-9.975 -3.753 -10.779 -4.564 -10.779 -5.565 c +-10.779 -10.122 l +-13.974 -13.344 l +-14.676 -14.051 -14.676 -15.199 -13.974 -15.906 c +-10.779 -19.128 l +-10.779 -23.685 l +-10.779 -24.686 -9.975 -25.498 -8.983 -25.498 c +-4.465 -25.498 l +-0.039 -39 l +4.464 -25.498 l +8.982 -25.498 l +9.975 -25.498 10.779 -24.686 10.779 -23.685 c +10.779 -19.128 l +13.974 -15.906 l +14.675 -15.199 14.675 -14.051 13.974 -13.344 c +10.779 -10.122 l +10.779 -5.565 l +10.779 -4.564 9.975 -3.753 8.982 -3.753 c +4.464 -3.753 l +1.27 -0.531 l +0.919 -0.177 0.46 0 0 0 c +0 -0.987 m +0.214 -0.987 0.417 -1.072 0.569 -1.226 c +3.763 -4.448 l +4.053 -4.74 l +4.464 -4.74 l +8.982 -4.74 l +9.429 -4.74 9.792 -5.11 9.792 -5.565 c +9.792 -10.122 l +9.792 -10.529 l +10.078 -10.817 l +13.272 -14.039 l +13.593 -14.362 13.593 -14.888 13.272 -15.211 c +10.078 -18.433 l +9.792 -18.722 l +9.792 -19.128 l +9.792 -23.685 l +9.792 -24.14 9.429 -24.51 8.982 -24.51 c +4.464 -24.51 l +3.753 -24.51 l +3.528 -25.185 l +-0.031 -35.854 l +-3.526 -25.19 l +-3.75 -24.51 l +-4.465 -24.51 l +-8.983 -24.51 l +-9.429 -24.51 -9.792 -24.14 -9.792 -23.685 c +-9.792 -19.128 l +-9.792 -18.722 l +-10.078 -18.433 l +-13.273 -15.211 l +-13.593 -14.888 -13.593 -14.362 -13.272 -14.039 c +-10.078 -10.817 l +-9.792 -10.529 l +-9.792 -10.122 l +-9.792 -5.565 l +-9.792 -5.11 -9.429 -4.74 -8.983 -4.74 c +-4.465 -4.74 l +-4.053 -4.74 l +-3.764 -4.448 l +-0.569 -1.226 l +-0.417 -1.072 -0.215 -0.987 0 -0.987 c +f +Q + +endstream endobj 5336 0 obj <> endobj 5335 0 obj <> endobj 5334 0 obj <> endobj 5333 0 obj <> endobj 5332 0 obj <> endobj 5331 0 obj <> endobj 5330 0 obj <> endobj 5329 0 obj <> endobj 5328 0 obj <> endobj 5327 0 obj <> endobj 5326 0 obj <> endobj 5325 0 obj <> endobj 5324 0 obj <> endobj 5323 0 obj <> endobj 5322 0 obj <> endobj 5321 0 obj <> endobj 5320 0 obj <> endobj 5319 0 obj <> endobj 5318 0 obj <> endobj 5317 0 obj <> endobj 5316 0 obj <> endobj 5315 0 obj <> endobj 5314 0 obj <> endobj 5313 0 obj <> endobj 5312 0 obj <> endobj 5311 0 obj <> endobj 5310 0 obj <> endobj 5309 0 obj <> endobj 5308 0 obj <> endobj 5307 0 obj <> endobj 5306 0 obj <> endobj 5305 0 obj <> endobj 5304 0 obj <> endobj 5303 0 obj <> endobj 5302 0 obj <> endobj 5301 0 obj <> endobj 5300 0 obj <> endobj 5299 0 obj <> endobj 5298 0 obj <> endobj 5297 0 obj <> endobj 5296 0 obj <> endobj 5295 0 obj <> endobj 5294 0 obj <> endobj 5293 0 obj <> endobj 5292 0 obj <> endobj 5291 0 obj <> endobj 5290 0 obj <> endobj 5289 0 obj <> endobj 5288 0 obj <> endobj 5287 0 obj <> endobj 5286 0 obj <> endobj 5285 0 obj <> endobj 5284 0 obj <> endobj 5283 0 obj <> endobj 5282 0 obj <> endobj 5281 0 obj <> endobj 5280 0 obj <> endobj 5279 0 obj <> endobj 5278 0 obj <> endobj 5277 0 obj <> endobj 5276 0 obj <> endobj 5275 0 obj <> endobj 5274 0 obj <> endobj 5273 0 obj <> endobj 5272 0 obj <> endobj 5271 0 obj <> endobj 5270 0 obj <> endobj 5269 0 obj <> endobj 5268 0 obj <> endobj 5267 0 obj <> endobj 5266 0 obj <> endobj 5265 0 obj <> endobj 5264 0 obj <> endobj 5263 0 obj <> endobj 5262 0 obj <> endobj 5261 0 obj <> endobj 5260 0 obj <> endobj 5259 0 obj <> endobj 5258 0 obj <> endobj 5257 0 obj <> endobj 5256 0 obj <> endobj 5255 0 obj <> endobj 5254 0 obj <> endobj 5253 0 obj <> endobj 5252 0 obj <> endobj 5251 0 obj <> endobj 5250 0 obj <> endobj 5249 0 obj <> endobj 5248 0 obj <> endobj 5247 0 obj <> endobj 5246 0 obj <> endobj 5245 0 obj <> endobj 5244 0 obj <> endobj 5243 0 obj <> endobj 5242 0 obj <> endobj 5241 0 obj <> endobj 5240 0 obj <> endobj 5239 0 obj <> endobj 5238 0 obj <> endobj 5237 0 obj <> endobj 5236 0 obj <> endobj 5235 0 obj <> endobj 5234 0 obj <> endobj 5233 0 obj <> endobj 5232 0 obj <> endobj 5231 0 obj <> endobj 5230 0 obj <> endobj 5229 0 obj <> endobj 5228 0 obj <> endobj 5227 0 obj <> endobj 5226 0 obj <> endobj 5225 0 obj <> endobj 5224 0 obj <> endobj 5223 0 obj <> endobj 5222 0 obj <> endobj 5221 0 obj <> endobj 5220 0 obj <> endobj 5219 0 obj <> endobj 5218 0 obj <> endobj 5217 0 obj <> endobj 5216 0 obj [/ICCBased 5203 0 R] endobj 5 0 obj <> endobj 6 0 obj <> endobj 37 0 obj <> endobj 38 0 obj <> endobj 39 0 obj <> endobj 40 0 obj <> endobj 41 0 obj <> endobj 75 0 obj <> endobj 76 0 obj <> endobj 77 0 obj <> endobj 78 0 obj <> endobj 79 0 obj <> endobj 107 0 obj <> endobj 108 0 obj <> endobj 109 0 obj <> endobj 110 0 obj <> endobj 111 0 obj <> endobj 139 0 obj <> endobj 140 0 obj <> endobj 141 0 obj <> endobj 142 0 obj <> endobj 143 0 obj <> endobj 173 0 obj <> endobj 174 0 obj <> endobj 175 0 obj <> endobj 176 0 obj <> endobj 177 0 obj <> endobj 816 0 obj <> endobj 817 0 obj <> endobj 1100 0 obj <> endobj 1101 0 obj <> endobj 1638 0 obj <> endobj 1639 0 obj <> endobj 2172 0 obj <> endobj 2173 0 obj <> endobj 2706 0 obj <> endobj 2707 0 obj <> endobj 3222 0 obj <> endobj 3223 0 obj <> endobj 3738 0 obj <> endobj 4010 0 obj <> endobj 4282 0 obj <> endobj 4554 0 obj <> endobj 4689 0 obj [/View/Design] endobj 4690 0 obj <>>> endobj 4417 0 obj [/View/Design] endobj 4418 0 obj <>>> endobj 4145 0 obj [/View/Design] endobj 4146 0 obj <>>> endobj 3873 0 obj [/View/Design] endobj 3874 0 obj <>>> endobj 3608 0 obj [/View/Design] endobj 3609 0 obj <>>> endobj 3606 0 obj [/View/Design] endobj 3607 0 obj <>>> endobj 3092 0 obj [/View/Design] endobj 3093 0 obj <>>> endobj 3090 0 obj [/View/Design] endobj 3091 0 obj <>>> endobj 2480 0 obj [/View/Design] endobj 2481 0 obj <>>> endobj 2478 0 obj [/View/Design] endobj 2479 0 obj <>>> endobj 1946 0 obj [/View/Design] endobj 1947 0 obj <>>> endobj 1944 0 obj [/View/Design] endobj 1945 0 obj <>>> endobj 1412 0 obj [/View/Design] endobj 1413 0 obj <>>> endobj 1410 0 obj [/View/Design] endobj 1411 0 obj <>>> endobj 999 0 obj [/View/Design] endobj 1000 0 obj <>>> endobj 997 0 obj [/View/Design] endobj 998 0 obj <>>> endobj 377 0 obj [/View/Design] endobj 378 0 obj <>>> endobj 375 0 obj [/View/Design] endobj 376 0 obj <>>> endobj 373 0 obj [/View/Design] endobj 374 0 obj <>>> endobj 371 0 obj [/View/Design] endobj 372 0 obj <>>> endobj 369 0 obj [/View/Design] endobj 370 0 obj <>>> endobj 162 0 obj [/View/Design] endobj 163 0 obj <>>> endobj 160 0 obj [/View/Design] endobj 161 0 obj <>>> endobj 158 0 obj [/View/Design] endobj 159 0 obj <>>> endobj 156 0 obj [/View/Design] endobj 157 0 obj <>>> endobj 154 0 obj [/View/Design] endobj 155 0 obj <>>> endobj 128 0 obj [/View/Design] endobj 129 0 obj <>>> endobj 126 0 obj [/View/Design] endobj 127 0 obj <>>> endobj 124 0 obj [/View/Design] endobj 125 0 obj <>>> endobj 122 0 obj [/View/Design] endobj 123 0 obj <>>> endobj 120 0 obj [/View/Design] endobj 121 0 obj <>>> endobj 96 0 obj [/View/Design] endobj 97 0 obj <>>> endobj 94 0 obj [/View/Design] endobj 95 0 obj <>>> endobj 92 0 obj [/View/Design] endobj 93 0 obj <>>> endobj 90 0 obj [/View/Design] endobj 91 0 obj <>>> endobj 88 0 obj [/View/Design] endobj 89 0 obj <>>> endobj 58 0 obj [/View/Design] endobj 59 0 obj <>>> endobj 56 0 obj [/View/Design] endobj 57 0 obj <>>> endobj 54 0 obj [/View/Design] endobj 55 0 obj <>>> endobj 52 0 obj [/View/Design] endobj 53 0 obj <>>> endobj 50 0 obj [/View/Design] endobj 51 0 obj <>>> endobj 20 0 obj [/View/Design] endobj 21 0 obj <>>> endobj 18 0 obj [/View/Design] endobj 19 0 obj <>>> endobj 4827 0 obj [4826 0 R] endobj 5337 0 obj <> endobj xref +0 5338 +0000000004 65535 f +0000000016 00000 n +0000000846 00000 n +0000029245 00000 n +0000000007 00000 f +0000393803 00000 n +0000393872 00000 n +0000000009 00000 f +0000029304 00000 n +0000000010 00000 f +0000000011 00000 f +0000000012 00000 f +0000000013 00000 f +0000000014 00000 f +0000000015 00000 f +0000000016 00000 f +0000000017 00000 f +0000000022 00000 f +0000401951 00000 n +0000401982 00000 n +0000401835 00000 n +0000401866 00000 n +0000000023 00000 f +0000000024 00000 f +0000000025 00000 f +0000000026 00000 f +0000000027 00000 f +0000000028 00000 f +0000000029 00000 f +0000000030 00000 f +0000000031 00000 f +0000000032 00000 f +0000000033 00000 f +0000000034 00000 f +0000000035 00000 f +0000000036 00000 f +0000000042 00000 f +0000393942 00000 n +0000394012 00000 n +0000394083 00000 n +0000394154 00000 n +0000394225 00000 n +0000000043 00000 f +0000000044 00000 f +0000000045 00000 f +0000000046 00000 f +0000000047 00000 f +0000000048 00000 f +0000000049 00000 f +0000000060 00000 f +0000401719 00000 n +0000401750 00000 n +0000401603 00000 n +0000401634 00000 n +0000401487 00000 n +0000401518 00000 n +0000401371 00000 n +0000401402 00000 n +0000401255 00000 n +0000401286 00000 n +0000000061 00000 f +0000000062 00000 f +0000000063 00000 f +0000000064 00000 f +0000000065 00000 f +0000000066 00000 f +0000000067 00000 f +0000000068 00000 f +0000000069 00000 f +0000000070 00000 f +0000000071 00000 f +0000000072 00000 f +0000000073 00000 f +0000000074 00000 f +0000000080 00000 f +0000394298 00000 n +0000394368 00000 n +0000394439 00000 n +0000394510 00000 n +0000394581 00000 n +0000000081 00000 f +0000000082 00000 f +0000000083 00000 f +0000000084 00000 f +0000000085 00000 f +0000000086 00000 f +0000000087 00000 f +0000000098 00000 f +0000401139 00000 n +0000401170 00000 n +0000401023 00000 n +0000401054 00000 n +0000400907 00000 n +0000400938 00000 n +0000400791 00000 n +0000400822 00000 n +0000400675 00000 n +0000400706 00000 n +0000000099 00000 f +0000000100 00000 f +0000000101 00000 f +0000000102 00000 f +0000000103 00000 f +0000000104 00000 f +0000000105 00000 f +0000000106 00000 f +0000000112 00000 f +0000394654 00000 n +0000394727 00000 n +0000394801 00000 n +0000394875 00000 n +0000394949 00000 n +0000000113 00000 f +0000000114 00000 f +0000000115 00000 f +0000000116 00000 f +0000000117 00000 f +0000000118 00000 f +0000000119 00000 f +0000000130 00000 f +0000400557 00000 n +0000400589 00000 n +0000400439 00000 n +0000400471 00000 n +0000400321 00000 n +0000400353 00000 n +0000400203 00000 n +0000400235 00000 n +0000400085 00000 n +0000400117 00000 n +0000000131 00000 f +0000000132 00000 f +0000000133 00000 f +0000000134 00000 f +0000000135 00000 f +0000000136 00000 f +0000000137 00000 f +0000000138 00000 f +0000000144 00000 f +0000395025 00000 n +0000395098 00000 n +0000395172 00000 n +0000395246 00000 n +0000395320 00000 n +0000000145 00000 f +0000000146 00000 f +0000000147 00000 f +0000000148 00000 f +0000000149 00000 f +0000000150 00000 f +0000000151 00000 f +0000000152 00000 f +0000000153 00000 f +0000000164 00000 f +0000399967 00000 n +0000399999 00000 n +0000399849 00000 n +0000399881 00000 n +0000399731 00000 n +0000399763 00000 n +0000399613 00000 n +0000399645 00000 n +0000399495 00000 n +0000399527 00000 n +0000000165 00000 f +0000000166 00000 f +0000000167 00000 f +0000000168 00000 f +0000000169 00000 f +0000000170 00000 f +0000000171 00000 f +0000000172 00000 f +0000000178 00000 f +0000395396 00000 n +0000395469 00000 n +0000395543 00000 n +0000395617 00000 n +0000395691 00000 n +0000000179 00000 f +0000000180 00000 f +0000000181 00000 f +0000000182 00000 f +0000000183 00000 f +0000000184 00000 f +0000000185 00000 f +0000000186 00000 f +0000000187 00000 f +0000000188 00000 f +0000000189 00000 f +0000000190 00000 f +0000000191 00000 f +0000000192 00000 f +0000000193 00000 f +0000000194 00000 f +0000000195 00000 f +0000000196 00000 f +0000000197 00000 f +0000000198 00000 f +0000000199 00000 f +0000000200 00000 f +0000000201 00000 f +0000000202 00000 f +0000000203 00000 f +0000000204 00000 f +0000000205 00000 f +0000000206 00000 f +0000000207 00000 f +0000000208 00000 f +0000000209 00000 f +0000000210 00000 f +0000000211 00000 f +0000000212 00000 f +0000000213 00000 f +0000000214 00000 f +0000000215 00000 f +0000000216 00000 f +0000000217 00000 f +0000000218 00000 f +0000000219 00000 f +0000000220 00000 f +0000000221 00000 f +0000000222 00000 f +0000000223 00000 f +0000000224 00000 f +0000000225 00000 f +0000000226 00000 f +0000000227 00000 f +0000000228 00000 f +0000000229 00000 f +0000000230 00000 f +0000000231 00000 f +0000000232 00000 f +0000000233 00000 f +0000000234 00000 f +0000000235 00000 f +0000000236 00000 f +0000000237 00000 f +0000000238 00000 f +0000000239 00000 f +0000000240 00000 f +0000000241 00000 f +0000000242 00000 f +0000000243 00000 f +0000000244 00000 f +0000000245 00000 f +0000000246 00000 f +0000000247 00000 f +0000000248 00000 f +0000000249 00000 f +0000000250 00000 f +0000000251 00000 f +0000000252 00000 f +0000000253 00000 f +0000000254 00000 f +0000000255 00000 f +0000000256 00000 f +0000000257 00000 f +0000000258 00000 f +0000000259 00000 f +0000000260 00000 f +0000000261 00000 f +0000000262 00000 f +0000000263 00000 f +0000000264 00000 f +0000000265 00000 f +0000000266 00000 f +0000000267 00000 f +0000000268 00000 f +0000000269 00000 f +0000000270 00000 f +0000000271 00000 f +0000000272 00000 f +0000000273 00000 f +0000000274 00000 f +0000000275 00000 f +0000000276 00000 f +0000000277 00000 f +0000000278 00000 f +0000000279 00000 f +0000000280 00000 f +0000000281 00000 f +0000000282 00000 f +0000000283 00000 f +0000000284 00000 f +0000000285 00000 f +0000000286 00000 f +0000000287 00000 f +0000000288 00000 f +0000000289 00000 f +0000000290 00000 f +0000000291 00000 f +0000000292 00000 f +0000000293 00000 f +0000000294 00000 f +0000000295 00000 f +0000000296 00000 f +0000000297 00000 f +0000000298 00000 f +0000000299 00000 f +0000000300 00000 f +0000000301 00000 f +0000000302 00000 f +0000000303 00000 f +0000000305 00000 f +0000284829 00000 n +0000000308 00000 f +0000285970 00000 n +0000286020 00000 n +0000000309 00000 f +0000000310 00000 f +0000000311 00000 f +0000000312 00000 f +0000000313 00000 f +0000000314 00000 f +0000000315 00000 f +0000000316 00000 f +0000000317 00000 f +0000000318 00000 f +0000000319 00000 f +0000000320 00000 f +0000000321 00000 f +0000000322 00000 f +0000000323 00000 f +0000000324 00000 f +0000000325 00000 f +0000000326 00000 f +0000000327 00000 f +0000000328 00000 f +0000000329 00000 f +0000000330 00000 f +0000000331 00000 f +0000000332 00000 f +0000000333 00000 f +0000000334 00000 f +0000000335 00000 f +0000000336 00000 f +0000000337 00000 f +0000000338 00000 f +0000000339 00000 f +0000000340 00000 f +0000000341 00000 f +0000000342 00000 f +0000000343 00000 f +0000000344 00000 f +0000000345 00000 f +0000000346 00000 f +0000000347 00000 f +0000000348 00000 f +0000000349 00000 f +0000000350 00000 f +0000000351 00000 f +0000000352 00000 f +0000000353 00000 f +0000000354 00000 f +0000000355 00000 f +0000000356 00000 f +0000000357 00000 f +0000000358 00000 f +0000000359 00000 f +0000000360 00000 f +0000000361 00000 f +0000000362 00000 f +0000000363 00000 f +0000000364 00000 f +0000000365 00000 f +0000000366 00000 f +0000000367 00000 f +0000000368 00000 f +0000000379 00000 f +0000399377 00000 n +0000399409 00000 n +0000399259 00000 n +0000399291 00000 n +0000399141 00000 n +0000399173 00000 n +0000399023 00000 n +0000399055 00000 n +0000398905 00000 n +0000398937 00000 n +0000000380 00000 f +0000000381 00000 f +0000000382 00000 f +0000000383 00000 f +0000000384 00000 f +0000000385 00000 f +0000000386 00000 f +0000000387 00000 f +0000000388 00000 f +0000000389 00000 f +0000000390 00000 f +0000000391 00000 f +0000000392 00000 f +0000000393 00000 f +0000000394 00000 f +0000000395 00000 f +0000000396 00000 f +0000000397 00000 f +0000000398 00000 f +0000000399 00000 f +0000000400 00000 f +0000000401 00000 f +0000000402 00000 f +0000000403 00000 f +0000000404 00000 f +0000000405 00000 f +0000000406 00000 f +0000000407 00000 f +0000000408 00000 f +0000000409 00000 f +0000000410 00000 f +0000000411 00000 f +0000000412 00000 f +0000000413 00000 f +0000000414 00000 f +0000000415 00000 f +0000000416 00000 f +0000000417 00000 f +0000000418 00000 f +0000000419 00000 f +0000000420 00000 f +0000000421 00000 f +0000000422 00000 f +0000000423 00000 f +0000000424 00000 f +0000000425 00000 f +0000000426 00000 f +0000000427 00000 f +0000000428 00000 f +0000000429 00000 f +0000000430 00000 f +0000000431 00000 f +0000000432 00000 f +0000000433 00000 f +0000000434 00000 f +0000000435 00000 f +0000000436 00000 f +0000000437 00000 f +0000000438 00000 f +0000000439 00000 f +0000000440 00000 f +0000000441 00000 f +0000000442 00000 f +0000000443 00000 f +0000000444 00000 f +0000000445 00000 f +0000000446 00000 f +0000000447 00000 f +0000000448 00000 f +0000000449 00000 f +0000000450 00000 f +0000000451 00000 f +0000000452 00000 f +0000000453 00000 f +0000000454 00000 f +0000000455 00000 f +0000000456 00000 f +0000000457 00000 f +0000000458 00000 f +0000000459 00000 f +0000000460 00000 f +0000000461 00000 f +0000000462 00000 f +0000000463 00000 f +0000000464 00000 f +0000000465 00000 f +0000000466 00000 f +0000000467 00000 f +0000000468 00000 f +0000000469 00000 f +0000000470 00000 f +0000000471 00000 f +0000000472 00000 f +0000000473 00000 f +0000000474 00000 f +0000000475 00000 f +0000000476 00000 f +0000000477 00000 f +0000000478 00000 f +0000000479 00000 f +0000000480 00000 f +0000000481 00000 f +0000000482 00000 f +0000000483 00000 f +0000000484 00000 f +0000000485 00000 f +0000000486 00000 f +0000000487 00000 f +0000000488 00000 f +0000000489 00000 f +0000000490 00000 f +0000000491 00000 f +0000000492 00000 f +0000000493 00000 f +0000000494 00000 f +0000000495 00000 f +0000000496 00000 f +0000000497 00000 f +0000000498 00000 f +0000000499 00000 f +0000000500 00000 f +0000000501 00000 f +0000000502 00000 f +0000000503 00000 f +0000000504 00000 f +0000000505 00000 f +0000000506 00000 f +0000000507 00000 f +0000000508 00000 f +0000000509 00000 f +0000000510 00000 f +0000000511 00000 f +0000000512 00000 f +0000000513 00000 f +0000000514 00000 f +0000000515 00000 f +0000000516 00000 f +0000000517 00000 f +0000000518 00000 f +0000000519 00000 f +0000000520 00000 f +0000000521 00000 f +0000000522 00000 f +0000000523 00000 f +0000000524 00000 f +0000000525 00000 f +0000000526 00000 f +0000000527 00000 f +0000000528 00000 f +0000000529 00000 f +0000000530 00000 f +0000000531 00000 f +0000000532 00000 f +0000000533 00000 f +0000000534 00000 f +0000000535 00000 f +0000000536 00000 f +0000000537 00000 f +0000000538 00000 f +0000000539 00000 f +0000000540 00000 f +0000000541 00000 f +0000000542 00000 f +0000000543 00000 f +0000000544 00000 f +0000000545 00000 f +0000000546 00000 f +0000000547 00000 f +0000000548 00000 f +0000000549 00000 f +0000000550 00000 f +0000000551 00000 f +0000000552 00000 f +0000000553 00000 f +0000000554 00000 f +0000000555 00000 f +0000000556 00000 f +0000000557 00000 f +0000000558 00000 f +0000000559 00000 f +0000000560 00000 f +0000000561 00000 f +0000000562 00000 f +0000000563 00000 f +0000000564 00000 f +0000000565 00000 f +0000000566 00000 f +0000000567 00000 f +0000000568 00000 f +0000000569 00000 f +0000000570 00000 f +0000000571 00000 f +0000000572 00000 f +0000000573 00000 f +0000000574 00000 f +0000000575 00000 f +0000000576 00000 f +0000000577 00000 f +0000000578 00000 f +0000000579 00000 f +0000000580 00000 f +0000000581 00000 f +0000000582 00000 f +0000000583 00000 f +0000000584 00000 f +0000000585 00000 f +0000000586 00000 f +0000000587 00000 f +0000000588 00000 f +0000000589 00000 f +0000000590 00000 f +0000000591 00000 f +0000000592 00000 f +0000000593 00000 f +0000000594 00000 f +0000000595 00000 f +0000000596 00000 f +0000000597 00000 f +0000000598 00000 f +0000000599 00000 f +0000000600 00000 f +0000000601 00000 f +0000000602 00000 f +0000000603 00000 f +0000000604 00000 f +0000000605 00000 f +0000000606 00000 f +0000000607 00000 f +0000000608 00000 f +0000000609 00000 f +0000000610 00000 f +0000000611 00000 f +0000000612 00000 f +0000000613 00000 f +0000000614 00000 f +0000000615 00000 f +0000000616 00000 f +0000000617 00000 f +0000000618 00000 f +0000000619 00000 f +0000000620 00000 f +0000000621 00000 f +0000000622 00000 f +0000000623 00000 f +0000000624 00000 f +0000000625 00000 f +0000000626 00000 f +0000000627 00000 f +0000000628 00000 f +0000000629 00000 f +0000000630 00000 f +0000000631 00000 f +0000000632 00000 f +0000000633 00000 f +0000000634 00000 f +0000000635 00000 f +0000000636 00000 f +0000000637 00000 f +0000000638 00000 f +0000000639 00000 f +0000000640 00000 f +0000000641 00000 f +0000000642 00000 f +0000000643 00000 f +0000000644 00000 f +0000000645 00000 f +0000000646 00000 f +0000000647 00000 f +0000000648 00000 f +0000000649 00000 f +0000000650 00000 f +0000000651 00000 f +0000000652 00000 f +0000000653 00000 f +0000000654 00000 f +0000000655 00000 f +0000000656 00000 f +0000000657 00000 f +0000000658 00000 f +0000000659 00000 f +0000000660 00000 f +0000000661 00000 f +0000000662 00000 f +0000000663 00000 f +0000000664 00000 f +0000000665 00000 f +0000000666 00000 f +0000000667 00000 f +0000000668 00000 f +0000000669 00000 f +0000000670 00000 f +0000000671 00000 f +0000000672 00000 f +0000000673 00000 f +0000000674 00000 f +0000000675 00000 f +0000000676 00000 f +0000000677 00000 f +0000000678 00000 f +0000000679 00000 f +0000000680 00000 f +0000000681 00000 f +0000000682 00000 f +0000000683 00000 f +0000000684 00000 f +0000000685 00000 f +0000000686 00000 f +0000000687 00000 f +0000000688 00000 f +0000000689 00000 f +0000000690 00000 f +0000000691 00000 f +0000000692 00000 f +0000000693 00000 f +0000000694 00000 f +0000000695 00000 f +0000000696 00000 f +0000000697 00000 f +0000000698 00000 f +0000000699 00000 f +0000000700 00000 f +0000000701 00000 f +0000000702 00000 f +0000000703 00000 f +0000000704 00000 f +0000000705 00000 f +0000000706 00000 f +0000000707 00000 f +0000000708 00000 f +0000000709 00000 f +0000000710 00000 f +0000000711 00000 f +0000000712 00000 f +0000000713 00000 f +0000000714 00000 f +0000000715 00000 f +0000000716 00000 f +0000000717 00000 f +0000000718 00000 f +0000000719 00000 f +0000000720 00000 f +0000000721 00000 f +0000000722 00000 f +0000000723 00000 f +0000000724 00000 f +0000000725 00000 f +0000000726 00000 f +0000000727 00000 f +0000000728 00000 f +0000000729 00000 f +0000000730 00000 f +0000000731 00000 f +0000000732 00000 f +0000000733 00000 f +0000000734 00000 f +0000000735 00000 f +0000000736 00000 f +0000000737 00000 f +0000000738 00000 f +0000000739 00000 f +0000000740 00000 f +0000000741 00000 f +0000000742 00000 f +0000000743 00000 f +0000000744 00000 f +0000000745 00000 f +0000000746 00000 f +0000000747 00000 f +0000000748 00000 f +0000000749 00000 f +0000000750 00000 f +0000000751 00000 f +0000000752 00000 f +0000000753 00000 f +0000000754 00000 f +0000000755 00000 f +0000000756 00000 f +0000000757 00000 f +0000000758 00000 f +0000000759 00000 f +0000000760 00000 f +0000000761 00000 f +0000000762 00000 f +0000000763 00000 f +0000000764 00000 f +0000000765 00000 f +0000000766 00000 f +0000000767 00000 f +0000000768 00000 f +0000000769 00000 f +0000000770 00000 f +0000000771 00000 f +0000000772 00000 f +0000000773 00000 f +0000000774 00000 f +0000000775 00000 f +0000000776 00000 f +0000000777 00000 f +0000000778 00000 f +0000000779 00000 f +0000000780 00000 f +0000000781 00000 f +0000000782 00000 f +0000000783 00000 f +0000000784 00000 f +0000000785 00000 f +0000000786 00000 f +0000000787 00000 f +0000000788 00000 f +0000000789 00000 f +0000000790 00000 f +0000000791 00000 f +0000000792 00000 f +0000000793 00000 f +0000000794 00000 f +0000000795 00000 f +0000000796 00000 f +0000000797 00000 f +0000000798 00000 f +0000000799 00000 f +0000000800 00000 f +0000000801 00000 f +0000000802 00000 f +0000000803 00000 f +0000000804 00000 f +0000000805 00000 f +0000000806 00000 f +0000000807 00000 f +0000000808 00000 f +0000000809 00000 f +0000000810 00000 f +0000000811 00000 f +0000000812 00000 f +0000000813 00000 f +0000000814 00000 f +0000000815 00000 f +0000000818 00000 f +0000395767 00000 n +0000395840 00000 n +0000000820 00000 f +0000031448 00000 n +0000000821 00000 f +0000000822 00000 f +0000000823 00000 f +0000000824 00000 f +0000000825 00000 f +0000000826 00000 f +0000000827 00000 f +0000000828 00000 f +0000000829 00000 f +0000000830 00000 f +0000000831 00000 f +0000000832 00000 f +0000000833 00000 f +0000000834 00000 f +0000000835 00000 f +0000000836 00000 f +0000000837 00000 f +0000000838 00000 f +0000000839 00000 f +0000000840 00000 f +0000000841 00000 f +0000000842 00000 f +0000000843 00000 f +0000000844 00000 f +0000000845 00000 f +0000000846 00000 f +0000000847 00000 f +0000000848 00000 f +0000000849 00000 f +0000000850 00000 f +0000000851 00000 f +0000000852 00000 f +0000000853 00000 f +0000000854 00000 f +0000000855 00000 f +0000000856 00000 f +0000000857 00000 f +0000000858 00000 f +0000000859 00000 f +0000000860 00000 f +0000000861 00000 f +0000000862 00000 f +0000000863 00000 f +0000000864 00000 f +0000000865 00000 f +0000000866 00000 f +0000000867 00000 f +0000000868 00000 f +0000000869 00000 f +0000000870 00000 f +0000000871 00000 f +0000000872 00000 f +0000000873 00000 f +0000000874 00000 f +0000000875 00000 f +0000000876 00000 f +0000000877 00000 f +0000000878 00000 f +0000000879 00000 f +0000000880 00000 f +0000000881 00000 f +0000000882 00000 f +0000000883 00000 f +0000000884 00000 f +0000000885 00000 f +0000000886 00000 f +0000000887 00000 f +0000000888 00000 f +0000000889 00000 f +0000000890 00000 f +0000000891 00000 f +0000000892 00000 f +0000000893 00000 f +0000000894 00000 f +0000000895 00000 f +0000000896 00000 f +0000000897 00000 f +0000000898 00000 f +0000000899 00000 f +0000000900 00000 f +0000000901 00000 f +0000000902 00000 f +0000000903 00000 f +0000000904 00000 f +0000000905 00000 f +0000000906 00000 f +0000000907 00000 f +0000000908 00000 f +0000000909 00000 f +0000000910 00000 f +0000000911 00000 f +0000000912 00000 f +0000000913 00000 f +0000000914 00000 f +0000000915 00000 f +0000000916 00000 f +0000000917 00000 f +0000000918 00000 f +0000000919 00000 f +0000000920 00000 f +0000000921 00000 f +0000000922 00000 f +0000000923 00000 f +0000000924 00000 f +0000000925 00000 f +0000000926 00000 f +0000000927 00000 f +0000000928 00000 f +0000000929 00000 f +0000000930 00000 f +0000000931 00000 f +0000000932 00000 f +0000000933 00000 f +0000000934 00000 f +0000000935 00000 f +0000000936 00000 f +0000000937 00000 f +0000000938 00000 f +0000000939 00000 f +0000000940 00000 f +0000000941 00000 f +0000000942 00000 f +0000000943 00000 f +0000000944 00000 f +0000000945 00000 f +0000000946 00000 f +0000000947 00000 f +0000000948 00000 f +0000000949 00000 f +0000000950 00000 f +0000000951 00000 f +0000000952 00000 f +0000000953 00000 f +0000000954 00000 f +0000000955 00000 f +0000000956 00000 f +0000000957 00000 f +0000000958 00000 f +0000000959 00000 f +0000000960 00000 f +0000000961 00000 f +0000000962 00000 f +0000000963 00000 f +0000000964 00000 f +0000000965 00000 f +0000000966 00000 f +0000000967 00000 f +0000000968 00000 f +0000000969 00000 f +0000000970 00000 f +0000000971 00000 f +0000000972 00000 f +0000000973 00000 f +0000000974 00000 f +0000000975 00000 f +0000000976 00000 f +0000000977 00000 f +0000000978 00000 f +0000000979 00000 f +0000000980 00000 f +0000000981 00000 f +0000000982 00000 f +0000000983 00000 f +0000000984 00000 f +0000000985 00000 f +0000000986 00000 f +0000000987 00000 f +0000000988 00000 f +0000000989 00000 f +0000000990 00000 f +0000000991 00000 f +0000000992 00000 f +0000000993 00000 f +0000000994 00000 f +0000000995 00000 f +0000000996 00000 f +0000001001 00000 f +0000398787 00000 n +0000398819 00000 n +0000398668 00000 n +0000398700 00000 n +0000001002 00000 f +0000001003 00000 f +0000001004 00000 f +0000001005 00000 f +0000001006 00000 f +0000001007 00000 f +0000001008 00000 f +0000001009 00000 f +0000001010 00000 f +0000001011 00000 f +0000001012 00000 f +0000001013 00000 f +0000001014 00000 f +0000001015 00000 f +0000001016 00000 f +0000001017 00000 f +0000001018 00000 f +0000001019 00000 f +0000001020 00000 f +0000001021 00000 f +0000001022 00000 f +0000001023 00000 f +0000001024 00000 f +0000001025 00000 f +0000001026 00000 f +0000001027 00000 f +0000001028 00000 f +0000001029 00000 f +0000001030 00000 f +0000001031 00000 f +0000001032 00000 f +0000001033 00000 f +0000001034 00000 f +0000001035 00000 f +0000001036 00000 f +0000001037 00000 f +0000001038 00000 f +0000001039 00000 f +0000001040 00000 f +0000001041 00000 f +0000001042 00000 f +0000001043 00000 f +0000001044 00000 f +0000001045 00000 f +0000001046 00000 f +0000001047 00000 f +0000001048 00000 f +0000001049 00000 f +0000001050 00000 f +0000001051 00000 f +0000001052 00000 f +0000001053 00000 f +0000001054 00000 f +0000001055 00000 f +0000001056 00000 f +0000001057 00000 f +0000001058 00000 f +0000001059 00000 f +0000001060 00000 f +0000001061 00000 f +0000001062 00000 f +0000001063 00000 f +0000001064 00000 f +0000001065 00000 f +0000001066 00000 f +0000001067 00000 f +0000001068 00000 f +0000001069 00000 f +0000001070 00000 f +0000001071 00000 f +0000001072 00000 f +0000001073 00000 f +0000001074 00000 f +0000001075 00000 f +0000001076 00000 f +0000001077 00000 f +0000001078 00000 f +0000001079 00000 f +0000001080 00000 f +0000001081 00000 f +0000001082 00000 f +0000001083 00000 f +0000001084 00000 f +0000001085 00000 f +0000001086 00000 f +0000001087 00000 f +0000001088 00000 f +0000001089 00000 f +0000001090 00000 f +0000001091 00000 f +0000001092 00000 f +0000001093 00000 f +0000001094 00000 f +0000001095 00000 f +0000001096 00000 f +0000001097 00000 f +0000001098 00000 f +0000001099 00000 f +0000001102 00000 f +0000395915 00000 n +0000395991 00000 n +0000001103 00000 f +0000001104 00000 f +0000001105 00000 f +0000001106 00000 f +0000001107 00000 f +0000001108 00000 f +0000001109 00000 f +0000001110 00000 f +0000001111 00000 f +0000001112 00000 f +0000001113 00000 f +0000001114 00000 f +0000001115 00000 f +0000001116 00000 f +0000001117 00000 f +0000001118 00000 f +0000001119 00000 f +0000001120 00000 f +0000001121 00000 f +0000001122 00000 f +0000001123 00000 f +0000001124 00000 f +0000001125 00000 f +0000001126 00000 f +0000001127 00000 f +0000001128 00000 f +0000001129 00000 f +0000001130 00000 f +0000001131 00000 f +0000001132 00000 f +0000001133 00000 f +0000001134 00000 f +0000001135 00000 f +0000001136 00000 f +0000001137 00000 f +0000001138 00000 f +0000001139 00000 f +0000001140 00000 f +0000001141 00000 f +0000001142 00000 f +0000001143 00000 f +0000001144 00000 f +0000001145 00000 f +0000001146 00000 f +0000001147 00000 f +0000001148 00000 f +0000001149 00000 f +0000001150 00000 f +0000001151 00000 f +0000001152 00000 f +0000001153 00000 f +0000001154 00000 f +0000001155 00000 f +0000001156 00000 f +0000001157 00000 f +0000001158 00000 f +0000001159 00000 f +0000001160 00000 f +0000001161 00000 f +0000001162 00000 f +0000001163 00000 f +0000001164 00000 f +0000001165 00000 f +0000001166 00000 f +0000001167 00000 f +0000001168 00000 f +0000001169 00000 f +0000001170 00000 f +0000001171 00000 f +0000001172 00000 f +0000001173 00000 f +0000001174 00000 f +0000001175 00000 f +0000001176 00000 f +0000001177 00000 f +0000001178 00000 f +0000001179 00000 f +0000001180 00000 f +0000001181 00000 f +0000001182 00000 f +0000001183 00000 f +0000001184 00000 f +0000001185 00000 f +0000001186 00000 f +0000001187 00000 f +0000001188 00000 f +0000001189 00000 f +0000001190 00000 f +0000001191 00000 f +0000001192 00000 f +0000001193 00000 f +0000001194 00000 f +0000001195 00000 f +0000001196 00000 f +0000001197 00000 f +0000001198 00000 f +0000001199 00000 f +0000001200 00000 f +0000001201 00000 f +0000001202 00000 f +0000001203 00000 f +0000001204 00000 f +0000001205 00000 f +0000001206 00000 f +0000001207 00000 f +0000001208 00000 f +0000001209 00000 f +0000001210 00000 f +0000001211 00000 f +0000001212 00000 f +0000001213 00000 f +0000001214 00000 f +0000001215 00000 f +0000001216 00000 f +0000001217 00000 f +0000001218 00000 f +0000001219 00000 f +0000001220 00000 f +0000001221 00000 f +0000001222 00000 f +0000001223 00000 f +0000001224 00000 f +0000001225 00000 f +0000001226 00000 f +0000001227 00000 f +0000001228 00000 f +0000001229 00000 f +0000001230 00000 f +0000001231 00000 f +0000001232 00000 f +0000001233 00000 f +0000001234 00000 f +0000001235 00000 f +0000001236 00000 f +0000001237 00000 f +0000001238 00000 f +0000001239 00000 f +0000001240 00000 f +0000001241 00000 f +0000001242 00000 f +0000001243 00000 f +0000001244 00000 f +0000001245 00000 f +0000001246 00000 f +0000001247 00000 f +0000001248 00000 f +0000001249 00000 f +0000001250 00000 f +0000001251 00000 f +0000001252 00000 f +0000001253 00000 f +0000001254 00000 f +0000001255 00000 f +0000001256 00000 f +0000001257 00000 f +0000001258 00000 f +0000001259 00000 f +0000001260 00000 f +0000001261 00000 f +0000001262 00000 f +0000001263 00000 f +0000001264 00000 f +0000001265 00000 f +0000001266 00000 f +0000001267 00000 f +0000001268 00000 f +0000001269 00000 f +0000001270 00000 f +0000001271 00000 f +0000001272 00000 f +0000001273 00000 f +0000001274 00000 f +0000001275 00000 f +0000001276 00000 f +0000001277 00000 f +0000001278 00000 f +0000001279 00000 f +0000001280 00000 f +0000001281 00000 f +0000001282 00000 f +0000001283 00000 f +0000001284 00000 f +0000001285 00000 f +0000001286 00000 f +0000001287 00000 f +0000001288 00000 f +0000001289 00000 f +0000001290 00000 f +0000001291 00000 f +0000001292 00000 f +0000001293 00000 f +0000001294 00000 f +0000001295 00000 f +0000001296 00000 f +0000001297 00000 f +0000001298 00000 f +0000001299 00000 f +0000001300 00000 f +0000001301 00000 f +0000001302 00000 f +0000001303 00000 f +0000001304 00000 f +0000001305 00000 f +0000001306 00000 f +0000001307 00000 f +0000001308 00000 f +0000001309 00000 f +0000001310 00000 f +0000001311 00000 f +0000001312 00000 f +0000001313 00000 f +0000001314 00000 f +0000001315 00000 f +0000001316 00000 f +0000001317 00000 f +0000001318 00000 f +0000001319 00000 f +0000001320 00000 f +0000001321 00000 f +0000001322 00000 f +0000001323 00000 f +0000001324 00000 f +0000001325 00000 f +0000001326 00000 f +0000001327 00000 f +0000001328 00000 f +0000001329 00000 f +0000001330 00000 f +0000001331 00000 f +0000001332 00000 f +0000001333 00000 f +0000001334 00000 f +0000001335 00000 f +0000001336 00000 f +0000001337 00000 f +0000001338 00000 f +0000001339 00000 f +0000001340 00000 f +0000001341 00000 f +0000001342 00000 f +0000001343 00000 f +0000001344 00000 f +0000001345 00000 f +0000001346 00000 f +0000001347 00000 f +0000001348 00000 f +0000001349 00000 f +0000001350 00000 f +0000001351 00000 f +0000001352 00000 f +0000001353 00000 f +0000001354 00000 f +0000001355 00000 f +0000001356 00000 f +0000001357 00000 f +0000001358 00000 f +0000001359 00000 f +0000001360 00000 f +0000001361 00000 f +0000001362 00000 f +0000001363 00000 f +0000001364 00000 f +0000001365 00000 f +0000001366 00000 f +0000001367 00000 f +0000001368 00000 f +0000001369 00000 f +0000001370 00000 f +0000001371 00000 f +0000001372 00000 f +0000001373 00000 f +0000001374 00000 f +0000001375 00000 f +0000001376 00000 f +0000001377 00000 f +0000001378 00000 f +0000001379 00000 f +0000001380 00000 f +0000001381 00000 f +0000001382 00000 f +0000001383 00000 f +0000001384 00000 f +0000001385 00000 f +0000001386 00000 f +0000001387 00000 f +0000001388 00000 f +0000001389 00000 f +0000001390 00000 f +0000001391 00000 f +0000001392 00000 f +0000001393 00000 f +0000001394 00000 f +0000001395 00000 f +0000001396 00000 f +0000001397 00000 f +0000001398 00000 f +0000001399 00000 f +0000001400 00000 f +0000001401 00000 f +0000001402 00000 f +0000001403 00000 f +0000001404 00000 f +0000001405 00000 f +0000001406 00000 f +0000001407 00000 f +0000001408 00000 f +0000001409 00000 f +0000001414 00000 f +0000398548 00000 n +0000398581 00000 n +0000398428 00000 n +0000398461 00000 n +0000001415 00000 f +0000001416 00000 f +0000001417 00000 f +0000001418 00000 f +0000001419 00000 f +0000001420 00000 f +0000001421 00000 f +0000001422 00000 f +0000001423 00000 f +0000001424 00000 f +0000001425 00000 f +0000001426 00000 f +0000001427 00000 f +0000001428 00000 f +0000001429 00000 f +0000001430 00000 f +0000001431 00000 f +0000001432 00000 f +0000001433 00000 f +0000001434 00000 f +0000001435 00000 f +0000001436 00000 f +0000001437 00000 f +0000001438 00000 f +0000001439 00000 f +0000001440 00000 f +0000001441 00000 f +0000001442 00000 f +0000001443 00000 f +0000001444 00000 f +0000001445 00000 f +0000001446 00000 f +0000001447 00000 f +0000001448 00000 f +0000001449 00000 f +0000001450 00000 f +0000001451 00000 f +0000001452 00000 f +0000001453 00000 f +0000001454 00000 f +0000001455 00000 f +0000001456 00000 f +0000001457 00000 f +0000001458 00000 f +0000001459 00000 f +0000001460 00000 f +0000001461 00000 f +0000001462 00000 f +0000001463 00000 f +0000001464 00000 f +0000001465 00000 f +0000001466 00000 f +0000001467 00000 f +0000001468 00000 f +0000001469 00000 f +0000001470 00000 f +0000001471 00000 f +0000001472 00000 f +0000001473 00000 f +0000001474 00000 f +0000001475 00000 f +0000001476 00000 f +0000001477 00000 f +0000001478 00000 f +0000001479 00000 f +0000001480 00000 f +0000001481 00000 f +0000001482 00000 f +0000001483 00000 f +0000001484 00000 f +0000001485 00000 f +0000001486 00000 f +0000001487 00000 f +0000001488 00000 f +0000001489 00000 f +0000001490 00000 f +0000001491 00000 f +0000001492 00000 f +0000001493 00000 f +0000001494 00000 f +0000001495 00000 f +0000001496 00000 f +0000001497 00000 f +0000001498 00000 f +0000001499 00000 f +0000001500 00000 f +0000001501 00000 f +0000001502 00000 f +0000001503 00000 f +0000001504 00000 f +0000001505 00000 f +0000001506 00000 f +0000001507 00000 f +0000001508 00000 f +0000001509 00000 f +0000001510 00000 f +0000001511 00000 f +0000001512 00000 f +0000001513 00000 f +0000001514 00000 f +0000001515 00000 f +0000001516 00000 f +0000001517 00000 f +0000001518 00000 f +0000001519 00000 f +0000001520 00000 f +0000001521 00000 f +0000001522 00000 f +0000001523 00000 f +0000001524 00000 f +0000001525 00000 f +0000001526 00000 f +0000001527 00000 f +0000001528 00000 f +0000001529 00000 f +0000001530 00000 f +0000001531 00000 f +0000001532 00000 f +0000001533 00000 f +0000001534 00000 f +0000001535 00000 f +0000001536 00000 f +0000001537 00000 f +0000001538 00000 f +0000001539 00000 f +0000001540 00000 f +0000001541 00000 f +0000001542 00000 f +0000001543 00000 f +0000001544 00000 f +0000001545 00000 f +0000001546 00000 f +0000001547 00000 f +0000001548 00000 f +0000001549 00000 f +0000001550 00000 f +0000001551 00000 f +0000001552 00000 f +0000001553 00000 f +0000001554 00000 f +0000001555 00000 f +0000001556 00000 f +0000001557 00000 f +0000001558 00000 f +0000001559 00000 f +0000001560 00000 f +0000001561 00000 f +0000001562 00000 f +0000001563 00000 f +0000001564 00000 f +0000001565 00000 f +0000001566 00000 f +0000001567 00000 f +0000001568 00000 f +0000001569 00000 f +0000001570 00000 f +0000001571 00000 f +0000001572 00000 f +0000001573 00000 f +0000001574 00000 f +0000001575 00000 f +0000001576 00000 f +0000001577 00000 f +0000001578 00000 f +0000001579 00000 f +0000001580 00000 f +0000001581 00000 f +0000001582 00000 f +0000001583 00000 f +0000001584 00000 f +0000001585 00000 f +0000001586 00000 f +0000001587 00000 f +0000001588 00000 f +0000001589 00000 f +0000001590 00000 f +0000001591 00000 f +0000001592 00000 f +0000001593 00000 f +0000001594 00000 f +0000001595 00000 f +0000001596 00000 f +0000001597 00000 f +0000001598 00000 f +0000001599 00000 f +0000001600 00000 f +0000001601 00000 f +0000001602 00000 f +0000001603 00000 f +0000001604 00000 f +0000001605 00000 f +0000001606 00000 f +0000001607 00000 f +0000001608 00000 f +0000001609 00000 f +0000001610 00000 f +0000001611 00000 f +0000001612 00000 f +0000001613 00000 f +0000001614 00000 f +0000001615 00000 f +0000001616 00000 f +0000001617 00000 f +0000001618 00000 f +0000001619 00000 f +0000001620 00000 f +0000001621 00000 f +0000001622 00000 f +0000001623 00000 f +0000001624 00000 f +0000001625 00000 f +0000001626 00000 f +0000001627 00000 f +0000001628 00000 f +0000001629 00000 f +0000001630 00000 f +0000001631 00000 f +0000001632 00000 f +0000001633 00000 f +0000001634 00000 f +0000001635 00000 f +0000001636 00000 f +0000001637 00000 f +0000001640 00000 f +0000396068 00000 n +0000396144 00000 n +0000001641 00000 f +0000001642 00000 f +0000001643 00000 f +0000001644 00000 f +0000001645 00000 f +0000001646 00000 f +0000001647 00000 f +0000001648 00000 f +0000001649 00000 f +0000001650 00000 f +0000001651 00000 f +0000001652 00000 f +0000001653 00000 f +0000001654 00000 f +0000001655 00000 f +0000001656 00000 f +0000001657 00000 f +0000001658 00000 f +0000001659 00000 f +0000001660 00000 f +0000001661 00000 f +0000001662 00000 f +0000001663 00000 f +0000001664 00000 f +0000001665 00000 f +0000001666 00000 f +0000001667 00000 f +0000001668 00000 f +0000001669 00000 f +0000001670 00000 f +0000001671 00000 f +0000001672 00000 f +0000001673 00000 f +0000001674 00000 f +0000001675 00000 f +0000001676 00000 f +0000001677 00000 f +0000001678 00000 f +0000001679 00000 f +0000001680 00000 f +0000001681 00000 f +0000001682 00000 f +0000001683 00000 f +0000001684 00000 f +0000001685 00000 f +0000001686 00000 f +0000001687 00000 f +0000001688 00000 f +0000001689 00000 f +0000001690 00000 f +0000001691 00000 f +0000001692 00000 f +0000001693 00000 f +0000001694 00000 f +0000001695 00000 f +0000001696 00000 f +0000001697 00000 f +0000001698 00000 f +0000001699 00000 f +0000001700 00000 f +0000001701 00000 f +0000001702 00000 f +0000001703 00000 f +0000001704 00000 f +0000001705 00000 f +0000001706 00000 f +0000001707 00000 f +0000001708 00000 f +0000001709 00000 f +0000001710 00000 f +0000001711 00000 f +0000001712 00000 f +0000001713 00000 f +0000001714 00000 f +0000001715 00000 f +0000001716 00000 f +0000001717 00000 f +0000001718 00000 f +0000001719 00000 f +0000001720 00000 f +0000001721 00000 f +0000001722 00000 f +0000001723 00000 f +0000001724 00000 f +0000001725 00000 f +0000001726 00000 f +0000001727 00000 f +0000001728 00000 f +0000001729 00000 f +0000001730 00000 f +0000001731 00000 f +0000001732 00000 f +0000001733 00000 f +0000001734 00000 f +0000001735 00000 f +0000001736 00000 f +0000001737 00000 f +0000001738 00000 f +0000001739 00000 f +0000001740 00000 f +0000001741 00000 f +0000001742 00000 f +0000001743 00000 f +0000001744 00000 f +0000001745 00000 f +0000001746 00000 f +0000001747 00000 f +0000001748 00000 f +0000001749 00000 f +0000001750 00000 f +0000001751 00000 f +0000001752 00000 f +0000001753 00000 f +0000001754 00000 f +0000001755 00000 f +0000001756 00000 f +0000001757 00000 f +0000001758 00000 f +0000001759 00000 f +0000001760 00000 f +0000001761 00000 f +0000001762 00000 f +0000001763 00000 f +0000001764 00000 f +0000001765 00000 f +0000001766 00000 f +0000001767 00000 f +0000001768 00000 f +0000001769 00000 f +0000001770 00000 f +0000001771 00000 f +0000001772 00000 f +0000001773 00000 f +0000001774 00000 f +0000001775 00000 f +0000001776 00000 f +0000001777 00000 f +0000001778 00000 f +0000001779 00000 f +0000001780 00000 f +0000001781 00000 f +0000001782 00000 f +0000001783 00000 f +0000001784 00000 f +0000001785 00000 f +0000001786 00000 f +0000001787 00000 f +0000001788 00000 f +0000001789 00000 f +0000001790 00000 f +0000001791 00000 f +0000001792 00000 f +0000001793 00000 f +0000001794 00000 f +0000001795 00000 f +0000001796 00000 f +0000001797 00000 f +0000001798 00000 f +0000001799 00000 f +0000001800 00000 f +0000001801 00000 f +0000001802 00000 f +0000001803 00000 f +0000001804 00000 f +0000001805 00000 f +0000001806 00000 f +0000001807 00000 f +0000001808 00000 f +0000001809 00000 f +0000001810 00000 f +0000001811 00000 f +0000001812 00000 f +0000001813 00000 f +0000001814 00000 f +0000001815 00000 f +0000001816 00000 f +0000001817 00000 f +0000001818 00000 f +0000001819 00000 f +0000001820 00000 f +0000001821 00000 f +0000001822 00000 f +0000001823 00000 f +0000001824 00000 f +0000001825 00000 f +0000001826 00000 f +0000001827 00000 f +0000001828 00000 f +0000001829 00000 f +0000001830 00000 f +0000001831 00000 f +0000001832 00000 f +0000001833 00000 f +0000001834 00000 f +0000001835 00000 f +0000001836 00000 f +0000001837 00000 f +0000001838 00000 f +0000001839 00000 f +0000001840 00000 f +0000001841 00000 f +0000001842 00000 f +0000001843 00000 f +0000001844 00000 f +0000001845 00000 f +0000001846 00000 f +0000001847 00000 f +0000001848 00000 f +0000001849 00000 f +0000001850 00000 f +0000001851 00000 f +0000001852 00000 f +0000001853 00000 f +0000001854 00000 f +0000001855 00000 f +0000001856 00000 f +0000001857 00000 f +0000001858 00000 f +0000001859 00000 f +0000001860 00000 f +0000001861 00000 f +0000001862 00000 f +0000001863 00000 f +0000001864 00000 f +0000001865 00000 f +0000001866 00000 f +0000001867 00000 f +0000001868 00000 f +0000001869 00000 f +0000001870 00000 f +0000001871 00000 f +0000001872 00000 f +0000001873 00000 f +0000001874 00000 f +0000001875 00000 f +0000001876 00000 f +0000001877 00000 f +0000001878 00000 f +0000001879 00000 f +0000001880 00000 f +0000001881 00000 f +0000001882 00000 f +0000001883 00000 f +0000001884 00000 f +0000001885 00000 f +0000001886 00000 f +0000001887 00000 f +0000001888 00000 f +0000001889 00000 f +0000001890 00000 f +0000001891 00000 f +0000001892 00000 f +0000001893 00000 f +0000001894 00000 f +0000001895 00000 f +0000001896 00000 f +0000001897 00000 f +0000001898 00000 f +0000001899 00000 f +0000001900 00000 f +0000001901 00000 f +0000001902 00000 f +0000001903 00000 f +0000001904 00000 f +0000001905 00000 f +0000001906 00000 f +0000001907 00000 f +0000001908 00000 f +0000001909 00000 f +0000001910 00000 f +0000001911 00000 f +0000001912 00000 f +0000001913 00000 f +0000001914 00000 f +0000001915 00000 f +0000001916 00000 f +0000001917 00000 f +0000001918 00000 f +0000001919 00000 f +0000001920 00000 f +0000001921 00000 f +0000001922 00000 f +0000001923 00000 f +0000001924 00000 f +0000001925 00000 f +0000001926 00000 f +0000001927 00000 f +0000001928 00000 f +0000001929 00000 f +0000001930 00000 f +0000001931 00000 f +0000001932 00000 f +0000001933 00000 f +0000001934 00000 f +0000001935 00000 f +0000001936 00000 f +0000001937 00000 f +0000001938 00000 f +0000001939 00000 f +0000001940 00000 f +0000001941 00000 f +0000001942 00000 f +0000001943 00000 f +0000001948 00000 f +0000398308 00000 n +0000398341 00000 n +0000398188 00000 n +0000398221 00000 n +0000001949 00000 f +0000001950 00000 f +0000001951 00000 f +0000001952 00000 f +0000001953 00000 f +0000001954 00000 f +0000001955 00000 f +0000001956 00000 f +0000001957 00000 f +0000001958 00000 f +0000001959 00000 f +0000001960 00000 f +0000001961 00000 f +0000001962 00000 f +0000001963 00000 f +0000001964 00000 f +0000001965 00000 f +0000001966 00000 f +0000001967 00000 f +0000001968 00000 f +0000001969 00000 f +0000001970 00000 f +0000001971 00000 f +0000001972 00000 f +0000001973 00000 f +0000001974 00000 f +0000001975 00000 f +0000001976 00000 f +0000001977 00000 f +0000001978 00000 f +0000001979 00000 f +0000001980 00000 f +0000001981 00000 f +0000001982 00000 f +0000001983 00000 f +0000001984 00000 f +0000001985 00000 f +0000001986 00000 f +0000001987 00000 f +0000001988 00000 f +0000001989 00000 f +0000001990 00000 f +0000001991 00000 f +0000001992 00000 f +0000001993 00000 f +0000001994 00000 f +0000001995 00000 f +0000001996 00000 f +0000001997 00000 f +0000001998 00000 f +0000001999 00000 f +0000002000 00000 f +0000002001 00000 f +0000002002 00000 f +0000002003 00000 f +0000002004 00000 f +0000002005 00000 f +0000002006 00000 f +0000002007 00000 f +0000002008 00000 f +0000002009 00000 f +0000002010 00000 f +0000002011 00000 f +0000002012 00000 f +0000002013 00000 f +0000002014 00000 f +0000002015 00000 f +0000002016 00000 f +0000002017 00000 f +0000002018 00000 f +0000002019 00000 f +0000002020 00000 f +0000002021 00000 f +0000002022 00000 f +0000002023 00000 f +0000002024 00000 f +0000002025 00000 f +0000002026 00000 f +0000002027 00000 f +0000002028 00000 f +0000002029 00000 f +0000002030 00000 f +0000002031 00000 f +0000002032 00000 f +0000002033 00000 f +0000002034 00000 f +0000002035 00000 f +0000002036 00000 f +0000002037 00000 f +0000002038 00000 f +0000002039 00000 f +0000002040 00000 f +0000002041 00000 f +0000002042 00000 f +0000002043 00000 f +0000002044 00000 f +0000002045 00000 f +0000002046 00000 f +0000002047 00000 f +0000002048 00000 f +0000002049 00000 f +0000002050 00000 f +0000002051 00000 f +0000002052 00000 f +0000002053 00000 f +0000002054 00000 f +0000002055 00000 f +0000002056 00000 f +0000002057 00000 f +0000002058 00000 f +0000002059 00000 f +0000002060 00000 f +0000002061 00000 f +0000002062 00000 f +0000002063 00000 f +0000002064 00000 f +0000002065 00000 f +0000002066 00000 f +0000002067 00000 f +0000002068 00000 f +0000002069 00000 f +0000002070 00000 f +0000002071 00000 f +0000002072 00000 f +0000002073 00000 f +0000002074 00000 f +0000002075 00000 f +0000002076 00000 f +0000002077 00000 f +0000002078 00000 f +0000002079 00000 f +0000002080 00000 f +0000002081 00000 f +0000002082 00000 f +0000002083 00000 f +0000002084 00000 f +0000002085 00000 f +0000002086 00000 f +0000002087 00000 f +0000002088 00000 f +0000002089 00000 f +0000002090 00000 f +0000002091 00000 f +0000002092 00000 f +0000002093 00000 f +0000002094 00000 f +0000002095 00000 f +0000002096 00000 f +0000002097 00000 f +0000002098 00000 f +0000002099 00000 f +0000002100 00000 f +0000002101 00000 f +0000002102 00000 f +0000002103 00000 f +0000002104 00000 f +0000002105 00000 f +0000002106 00000 f +0000002107 00000 f +0000002108 00000 f +0000002109 00000 f +0000002110 00000 f +0000002111 00000 f +0000002112 00000 f +0000002113 00000 f +0000002114 00000 f +0000002115 00000 f +0000002116 00000 f +0000002117 00000 f +0000002118 00000 f +0000002119 00000 f +0000002120 00000 f +0000002121 00000 f +0000002122 00000 f +0000002123 00000 f +0000002124 00000 f +0000002125 00000 f +0000002126 00000 f +0000002127 00000 f +0000002128 00000 f +0000002129 00000 f +0000002130 00000 f +0000002131 00000 f +0000002132 00000 f +0000002133 00000 f +0000002134 00000 f +0000002135 00000 f +0000002136 00000 f +0000002137 00000 f +0000002138 00000 f +0000002139 00000 f +0000002140 00000 f +0000002141 00000 f +0000002142 00000 f +0000002143 00000 f +0000002144 00000 f +0000002145 00000 f +0000002146 00000 f +0000002147 00000 f +0000002148 00000 f +0000002149 00000 f +0000002150 00000 f +0000002151 00000 f +0000002152 00000 f +0000002153 00000 f +0000002154 00000 f +0000002155 00000 f +0000002156 00000 f +0000002157 00000 f +0000002158 00000 f +0000002159 00000 f +0000002160 00000 f +0000002161 00000 f +0000002162 00000 f +0000002163 00000 f +0000002164 00000 f +0000002165 00000 f +0000002166 00000 f +0000002167 00000 f +0000002168 00000 f +0000002169 00000 f +0000002170 00000 f +0000002171 00000 f +0000002174 00000 f +0000396221 00000 n +0000396297 00000 n +0000002175 00000 f +0000002176 00000 f +0000002177 00000 f +0000002178 00000 f +0000002179 00000 f +0000002180 00000 f +0000002181 00000 f +0000002182 00000 f +0000002183 00000 f +0000002184 00000 f +0000002185 00000 f +0000002186 00000 f +0000002187 00000 f +0000002188 00000 f +0000002189 00000 f +0000002190 00000 f +0000002191 00000 f +0000002192 00000 f +0000002193 00000 f +0000002194 00000 f +0000002195 00000 f +0000002196 00000 f +0000002197 00000 f +0000002198 00000 f +0000002199 00000 f +0000002200 00000 f +0000002201 00000 f +0000002202 00000 f +0000002203 00000 f +0000002204 00000 f +0000002205 00000 f +0000002206 00000 f +0000002207 00000 f +0000002208 00000 f +0000002209 00000 f +0000002210 00000 f +0000002211 00000 f +0000002212 00000 f +0000002213 00000 f +0000002214 00000 f +0000002215 00000 f +0000002216 00000 f +0000002217 00000 f +0000002218 00000 f +0000002219 00000 f +0000002220 00000 f +0000002221 00000 f +0000002222 00000 f +0000002223 00000 f +0000002224 00000 f +0000002225 00000 f +0000002226 00000 f +0000002227 00000 f +0000002228 00000 f +0000002229 00000 f +0000002230 00000 f +0000002231 00000 f +0000002232 00000 f +0000002233 00000 f +0000002234 00000 f +0000002235 00000 f +0000002236 00000 f +0000002237 00000 f +0000002238 00000 f +0000002239 00000 f +0000002240 00000 f +0000002241 00000 f +0000002242 00000 f +0000002243 00000 f +0000002244 00000 f +0000002245 00000 f +0000002246 00000 f +0000002247 00000 f +0000002248 00000 f +0000002249 00000 f +0000002250 00000 f +0000002251 00000 f +0000002252 00000 f +0000002253 00000 f +0000002254 00000 f +0000002255 00000 f +0000002256 00000 f +0000002257 00000 f +0000002258 00000 f +0000002259 00000 f +0000002260 00000 f +0000002261 00000 f +0000002262 00000 f +0000002263 00000 f +0000002264 00000 f +0000002265 00000 f +0000002266 00000 f +0000002267 00000 f +0000002268 00000 f +0000002269 00000 f +0000002270 00000 f +0000002271 00000 f +0000002272 00000 f +0000002273 00000 f +0000002274 00000 f +0000002275 00000 f +0000002276 00000 f +0000002277 00000 f +0000002278 00000 f +0000002279 00000 f +0000002280 00000 f +0000002281 00000 f +0000002282 00000 f +0000002283 00000 f +0000002284 00000 f +0000002285 00000 f +0000002286 00000 f +0000002287 00000 f +0000002288 00000 f +0000002289 00000 f +0000002290 00000 f +0000002291 00000 f +0000002292 00000 f +0000002293 00000 f +0000002294 00000 f +0000002295 00000 f +0000002296 00000 f +0000002297 00000 f +0000002298 00000 f +0000002299 00000 f +0000002300 00000 f +0000002301 00000 f +0000002302 00000 f +0000002303 00000 f +0000002304 00000 f +0000002305 00000 f +0000002306 00000 f +0000002307 00000 f +0000002308 00000 f +0000002309 00000 f +0000002310 00000 f +0000002311 00000 f +0000002312 00000 f +0000002313 00000 f +0000002314 00000 f +0000002315 00000 f +0000002316 00000 f +0000002317 00000 f +0000002318 00000 f +0000002319 00000 f +0000002320 00000 f +0000002321 00000 f +0000002322 00000 f +0000002323 00000 f +0000002324 00000 f +0000002325 00000 f +0000002326 00000 f +0000002327 00000 f +0000002328 00000 f +0000002329 00000 f +0000002330 00000 f +0000002331 00000 f +0000002332 00000 f +0000002333 00000 f +0000002334 00000 f +0000002335 00000 f +0000002336 00000 f +0000002337 00000 f +0000002338 00000 f +0000002339 00000 f +0000002340 00000 f +0000002341 00000 f +0000002342 00000 f +0000002343 00000 f +0000002344 00000 f +0000002345 00000 f +0000002346 00000 f +0000002347 00000 f +0000002348 00000 f +0000002349 00000 f +0000002350 00000 f +0000002351 00000 f +0000002352 00000 f +0000002353 00000 f +0000002354 00000 f +0000002355 00000 f +0000002356 00000 f +0000002357 00000 f +0000002358 00000 f +0000002359 00000 f +0000002360 00000 f +0000002361 00000 f +0000002362 00000 f +0000002363 00000 f +0000002364 00000 f +0000002365 00000 f +0000002366 00000 f +0000002367 00000 f +0000002368 00000 f +0000002369 00000 f +0000002370 00000 f +0000002371 00000 f +0000002372 00000 f +0000002373 00000 f +0000002374 00000 f +0000002375 00000 f +0000002376 00000 f +0000002377 00000 f +0000002378 00000 f +0000002379 00000 f +0000002380 00000 f +0000002381 00000 f +0000002382 00000 f +0000002383 00000 f +0000002384 00000 f +0000002385 00000 f +0000002386 00000 f +0000002387 00000 f +0000002388 00000 f +0000002389 00000 f +0000002390 00000 f +0000002391 00000 f +0000002392 00000 f +0000002393 00000 f +0000002394 00000 f +0000002395 00000 f +0000002396 00000 f +0000002397 00000 f +0000002398 00000 f +0000002399 00000 f +0000002400 00000 f +0000002401 00000 f +0000002402 00000 f +0000002403 00000 f +0000002404 00000 f +0000002405 00000 f +0000002406 00000 f +0000002407 00000 f +0000002408 00000 f +0000002409 00000 f +0000002410 00000 f +0000002411 00000 f +0000002412 00000 f +0000002413 00000 f +0000002414 00000 f +0000002415 00000 f +0000002416 00000 f +0000002417 00000 f +0000002418 00000 f +0000002419 00000 f +0000002420 00000 f +0000002421 00000 f +0000002422 00000 f +0000002423 00000 f +0000002424 00000 f +0000002425 00000 f +0000002426 00000 f +0000002427 00000 f +0000002428 00000 f +0000002429 00000 f +0000002430 00000 f +0000002431 00000 f +0000002432 00000 f +0000002433 00000 f +0000002434 00000 f +0000002435 00000 f +0000002436 00000 f +0000002437 00000 f +0000002438 00000 f +0000002439 00000 f +0000002440 00000 f +0000002441 00000 f +0000002442 00000 f +0000002443 00000 f +0000002444 00000 f +0000002445 00000 f +0000002446 00000 f +0000002447 00000 f +0000002448 00000 f +0000002449 00000 f +0000002450 00000 f +0000002451 00000 f +0000002452 00000 f +0000002453 00000 f +0000002454 00000 f +0000002455 00000 f +0000002456 00000 f +0000002457 00000 f +0000002458 00000 f +0000002459 00000 f +0000002460 00000 f +0000002461 00000 f +0000002462 00000 f +0000002463 00000 f +0000002464 00000 f +0000002465 00000 f +0000002466 00000 f +0000002467 00000 f +0000002468 00000 f +0000002469 00000 f +0000002470 00000 f +0000002471 00000 f +0000002472 00000 f +0000002473 00000 f +0000002474 00000 f +0000002475 00000 f +0000002476 00000 f +0000002477 00000 f +0000002482 00000 f +0000398068 00000 n +0000398101 00000 n +0000397948 00000 n +0000397981 00000 n +0000002483 00000 f +0000002484 00000 f +0000002485 00000 f +0000002486 00000 f +0000002487 00000 f +0000002488 00000 f +0000002489 00000 f +0000002490 00000 f +0000002491 00000 f +0000002492 00000 f +0000002493 00000 f +0000002494 00000 f +0000002495 00000 f +0000002496 00000 f +0000002497 00000 f +0000002498 00000 f +0000002499 00000 f +0000002500 00000 f +0000002501 00000 f +0000002502 00000 f +0000002503 00000 f +0000002504 00000 f +0000002505 00000 f +0000002506 00000 f +0000002507 00000 f +0000002508 00000 f +0000002509 00000 f +0000002510 00000 f +0000002511 00000 f +0000002512 00000 f +0000002513 00000 f +0000002514 00000 f +0000002515 00000 f +0000002516 00000 f +0000002517 00000 f +0000002518 00000 f +0000002519 00000 f +0000002520 00000 f +0000002521 00000 f +0000002522 00000 f +0000002523 00000 f +0000002524 00000 f +0000002525 00000 f +0000002526 00000 f +0000002527 00000 f +0000002528 00000 f +0000002529 00000 f +0000002530 00000 f +0000002531 00000 f +0000002532 00000 f +0000002533 00000 f +0000002534 00000 f +0000002535 00000 f +0000002536 00000 f +0000002537 00000 f +0000002538 00000 f +0000002539 00000 f +0000002540 00000 f +0000002541 00000 f +0000002542 00000 f +0000002543 00000 f +0000002544 00000 f +0000002545 00000 f +0000002546 00000 f +0000002547 00000 f +0000002548 00000 f +0000002549 00000 f +0000002550 00000 f +0000002551 00000 f +0000002552 00000 f +0000002553 00000 f +0000002554 00000 f +0000002555 00000 f +0000002556 00000 f +0000002557 00000 f +0000002558 00000 f +0000002559 00000 f +0000002560 00000 f +0000002561 00000 f +0000002562 00000 f +0000002563 00000 f +0000002564 00000 f +0000002565 00000 f +0000002566 00000 f +0000002567 00000 f +0000002568 00000 f +0000002569 00000 f +0000002570 00000 f +0000002571 00000 f +0000002572 00000 f +0000002573 00000 f +0000002574 00000 f +0000002575 00000 f +0000002576 00000 f +0000002577 00000 f +0000002578 00000 f +0000002579 00000 f +0000002580 00000 f +0000002581 00000 f +0000002582 00000 f +0000002583 00000 f +0000002584 00000 f +0000002585 00000 f +0000002586 00000 f +0000002587 00000 f +0000002588 00000 f +0000002589 00000 f +0000002590 00000 f +0000002591 00000 f +0000002592 00000 f +0000002593 00000 f +0000002594 00000 f +0000002595 00000 f +0000002596 00000 f +0000002597 00000 f +0000002598 00000 f +0000002599 00000 f +0000002600 00000 f +0000002601 00000 f +0000002602 00000 f +0000002603 00000 f +0000002604 00000 f +0000002605 00000 f +0000002606 00000 f +0000002607 00000 f +0000002608 00000 f +0000002609 00000 f +0000002610 00000 f +0000002611 00000 f +0000002612 00000 f +0000002613 00000 f +0000002614 00000 f +0000002615 00000 f +0000002616 00000 f +0000002617 00000 f +0000002618 00000 f +0000002619 00000 f +0000002620 00000 f +0000002621 00000 f +0000002622 00000 f +0000002623 00000 f +0000002624 00000 f +0000002625 00000 f +0000002626 00000 f +0000002627 00000 f +0000002628 00000 f +0000002629 00000 f +0000002630 00000 f +0000002631 00000 f +0000002632 00000 f +0000002633 00000 f +0000002634 00000 f +0000002635 00000 f +0000002636 00000 f +0000002637 00000 f +0000002638 00000 f +0000002639 00000 f +0000002640 00000 f +0000002641 00000 f +0000002642 00000 f +0000002643 00000 f +0000002644 00000 f +0000002645 00000 f +0000002646 00000 f +0000002647 00000 f +0000002648 00000 f +0000002649 00000 f +0000002650 00000 f +0000002651 00000 f +0000002652 00000 f +0000002653 00000 f +0000002654 00000 f +0000002655 00000 f +0000002656 00000 f +0000002657 00000 f +0000002658 00000 f +0000002659 00000 f +0000002660 00000 f +0000002661 00000 f +0000002662 00000 f +0000002663 00000 f +0000002664 00000 f +0000002665 00000 f +0000002666 00000 f +0000002667 00000 f +0000002668 00000 f +0000002669 00000 f +0000002670 00000 f +0000002671 00000 f +0000002672 00000 f +0000002673 00000 f +0000002674 00000 f +0000002675 00000 f +0000002676 00000 f +0000002677 00000 f +0000002678 00000 f +0000002679 00000 f +0000002680 00000 f +0000002681 00000 f +0000002682 00000 f +0000002683 00000 f +0000002684 00000 f +0000002685 00000 f +0000002686 00000 f +0000002687 00000 f +0000002688 00000 f +0000002689 00000 f +0000002690 00000 f +0000002691 00000 f +0000002692 00000 f +0000002693 00000 f +0000002694 00000 f +0000002695 00000 f +0000002696 00000 f +0000002697 00000 f +0000002698 00000 f +0000002699 00000 f +0000002700 00000 f +0000002701 00000 f +0000002702 00000 f +0000002703 00000 f +0000002704 00000 f +0000002705 00000 f +0000002708 00000 f +0000396374 00000 n +0000396450 00000 n +0000002709 00000 f +0000002710 00000 f +0000002711 00000 f +0000002712 00000 f +0000002713 00000 f +0000002714 00000 f +0000002715 00000 f +0000002716 00000 f +0000002717 00000 f +0000002718 00000 f +0000002719 00000 f +0000002720 00000 f +0000002721 00000 f +0000002722 00000 f +0000002723 00000 f +0000002724 00000 f +0000002725 00000 f +0000002726 00000 f +0000002727 00000 f +0000002728 00000 f +0000002729 00000 f +0000002730 00000 f +0000002731 00000 f +0000002732 00000 f +0000002733 00000 f +0000002734 00000 f +0000002735 00000 f +0000002736 00000 f +0000002737 00000 f +0000002738 00000 f +0000002739 00000 f +0000002740 00000 f +0000002741 00000 f +0000002742 00000 f +0000002743 00000 f +0000002744 00000 f +0000002745 00000 f +0000002746 00000 f +0000002747 00000 f +0000002748 00000 f +0000002749 00000 f +0000002750 00000 f +0000002751 00000 f +0000002752 00000 f +0000002753 00000 f +0000002754 00000 f +0000002755 00000 f +0000002756 00000 f +0000002757 00000 f +0000002758 00000 f +0000002759 00000 f +0000002760 00000 f +0000002761 00000 f +0000002762 00000 f +0000002763 00000 f +0000002764 00000 f +0000002765 00000 f +0000002766 00000 f +0000002767 00000 f +0000002768 00000 f +0000002769 00000 f +0000002770 00000 f +0000002771 00000 f +0000002772 00000 f +0000002773 00000 f +0000002774 00000 f +0000002775 00000 f +0000002776 00000 f +0000002777 00000 f +0000002778 00000 f +0000002779 00000 f +0000002780 00000 f +0000002781 00000 f +0000002782 00000 f +0000002783 00000 f +0000002784 00000 f +0000002785 00000 f +0000002786 00000 f +0000002787 00000 f +0000002788 00000 f +0000002789 00000 f +0000002790 00000 f +0000002791 00000 f +0000002792 00000 f +0000002793 00000 f +0000002794 00000 f +0000002795 00000 f +0000002796 00000 f +0000002797 00000 f +0000002798 00000 f +0000002799 00000 f +0000002800 00000 f +0000002801 00000 f +0000002802 00000 f +0000002803 00000 f +0000002804 00000 f +0000002805 00000 f +0000002806 00000 f +0000002807 00000 f +0000002808 00000 f +0000002809 00000 f +0000002810 00000 f +0000002811 00000 f +0000002812 00000 f +0000002813 00000 f +0000002814 00000 f +0000002815 00000 f +0000002816 00000 f +0000002817 00000 f +0000002818 00000 f +0000002819 00000 f +0000002820 00000 f +0000002821 00000 f +0000002822 00000 f +0000002823 00000 f +0000002824 00000 f +0000002825 00000 f +0000002826 00000 f +0000002827 00000 f +0000002828 00000 f +0000002829 00000 f +0000002830 00000 f +0000002831 00000 f +0000002832 00000 f +0000002833 00000 f +0000002834 00000 f +0000002835 00000 f +0000002836 00000 f +0000002837 00000 f +0000002838 00000 f +0000002839 00000 f +0000002840 00000 f +0000002841 00000 f +0000002842 00000 f +0000002843 00000 f +0000002844 00000 f +0000002845 00000 f +0000002846 00000 f +0000002847 00000 f +0000002848 00000 f +0000002849 00000 f +0000002850 00000 f +0000002851 00000 f +0000002852 00000 f +0000002853 00000 f +0000002854 00000 f +0000002855 00000 f +0000002856 00000 f +0000002857 00000 f +0000002858 00000 f +0000002859 00000 f +0000002860 00000 f +0000002861 00000 f +0000002862 00000 f +0000002863 00000 f +0000002864 00000 f +0000002865 00000 f +0000002866 00000 f +0000002867 00000 f +0000002868 00000 f +0000002869 00000 f +0000002870 00000 f +0000002871 00000 f +0000002872 00000 f +0000002873 00000 f +0000002874 00000 f +0000002875 00000 f +0000002876 00000 f +0000002877 00000 f +0000002878 00000 f +0000002879 00000 f +0000002880 00000 f +0000002881 00000 f +0000002882 00000 f +0000002883 00000 f +0000002884 00000 f +0000002885 00000 f +0000002886 00000 f +0000002887 00000 f +0000002888 00000 f +0000002889 00000 f +0000002890 00000 f +0000002891 00000 f +0000002892 00000 f +0000002893 00000 f +0000002894 00000 f +0000002895 00000 f +0000002896 00000 f +0000002897 00000 f +0000002898 00000 f +0000002899 00000 f +0000002900 00000 f +0000002901 00000 f +0000002902 00000 f +0000002903 00000 f +0000002904 00000 f +0000002905 00000 f +0000002906 00000 f +0000002907 00000 f +0000002908 00000 f +0000002909 00000 f +0000002910 00000 f +0000002911 00000 f +0000002912 00000 f +0000002913 00000 f +0000002914 00000 f +0000002915 00000 f +0000002916 00000 f +0000002917 00000 f +0000002918 00000 f +0000002919 00000 f +0000002920 00000 f +0000002921 00000 f +0000002922 00000 f +0000002923 00000 f +0000002924 00000 f +0000002925 00000 f +0000002926 00000 f +0000002927 00000 f +0000002928 00000 f +0000002929 00000 f +0000002930 00000 f +0000002931 00000 f +0000002932 00000 f +0000002933 00000 f +0000002934 00000 f +0000002935 00000 f +0000002936 00000 f +0000002937 00000 f +0000002938 00000 f +0000002939 00000 f +0000002940 00000 f +0000002941 00000 f +0000002942 00000 f +0000002943 00000 f +0000002944 00000 f +0000002945 00000 f +0000002946 00000 f +0000002947 00000 f +0000002948 00000 f +0000002949 00000 f +0000002950 00000 f +0000002951 00000 f +0000002952 00000 f +0000002953 00000 f +0000002954 00000 f +0000002955 00000 f +0000002956 00000 f +0000002957 00000 f +0000002958 00000 f +0000002959 00000 f +0000002960 00000 f +0000002961 00000 f +0000002962 00000 f +0000002963 00000 f +0000002964 00000 f +0000002965 00000 f +0000002966 00000 f +0000002967 00000 f +0000002968 00000 f +0000002969 00000 f +0000002970 00000 f +0000002971 00000 f +0000002972 00000 f +0000002973 00000 f +0000002974 00000 f +0000002975 00000 f +0000002976 00000 f +0000002977 00000 f +0000002978 00000 f +0000002979 00000 f +0000002980 00000 f +0000002981 00000 f +0000002982 00000 f +0000002983 00000 f +0000002984 00000 f +0000002985 00000 f +0000002986 00000 f +0000002987 00000 f +0000002988 00000 f +0000002989 00000 f +0000002990 00000 f +0000002991 00000 f +0000002992 00000 f +0000002993 00000 f +0000002994 00000 f +0000002995 00000 f +0000002996 00000 f +0000002997 00000 f +0000002998 00000 f +0000002999 00000 f +0000003000 00000 f +0000003001 00000 f +0000003002 00000 f +0000003003 00000 f +0000003004 00000 f +0000003005 00000 f +0000003006 00000 f +0000003007 00000 f +0000003008 00000 f +0000003009 00000 f +0000003010 00000 f +0000003011 00000 f +0000003012 00000 f +0000003013 00000 f +0000003014 00000 f +0000003015 00000 f +0000003016 00000 f +0000003017 00000 f +0000003018 00000 f +0000003019 00000 f +0000003020 00000 f +0000003021 00000 f +0000003022 00000 f +0000003023 00000 f +0000003024 00000 f +0000003025 00000 f +0000003026 00000 f +0000003027 00000 f +0000003028 00000 f +0000003029 00000 f +0000003030 00000 f +0000003031 00000 f +0000003032 00000 f +0000003033 00000 f +0000003034 00000 f +0000003035 00000 f +0000003036 00000 f +0000003037 00000 f +0000003038 00000 f +0000003039 00000 f +0000003040 00000 f +0000003041 00000 f +0000003042 00000 f +0000003043 00000 f +0000003044 00000 f +0000003045 00000 f +0000003046 00000 f +0000003047 00000 f +0000003048 00000 f +0000003049 00000 f +0000003050 00000 f +0000003051 00000 f +0000003052 00000 f +0000003053 00000 f +0000003054 00000 f +0000003055 00000 f +0000003056 00000 f +0000003057 00000 f +0000003058 00000 f +0000003059 00000 f +0000003060 00000 f +0000003061 00000 f +0000003062 00000 f +0000003063 00000 f +0000003064 00000 f +0000003065 00000 f +0000003066 00000 f +0000003067 00000 f +0000003068 00000 f +0000003069 00000 f +0000003070 00000 f +0000003071 00000 f +0000003072 00000 f +0000003073 00000 f +0000003074 00000 f +0000003075 00000 f +0000003076 00000 f +0000003077 00000 f +0000003078 00000 f +0000003079 00000 f +0000003080 00000 f +0000003081 00000 f +0000003082 00000 f +0000003083 00000 f +0000003084 00000 f +0000003085 00000 f +0000003086 00000 f +0000003087 00000 f +0000003088 00000 f +0000003089 00000 f +0000003094 00000 f +0000397828 00000 n +0000397861 00000 n +0000397708 00000 n +0000397741 00000 n +0000003095 00000 f +0000003096 00000 f +0000003097 00000 f +0000003098 00000 f +0000003099 00000 f +0000003100 00000 f +0000003101 00000 f +0000003102 00000 f +0000003103 00000 f +0000003104 00000 f +0000003105 00000 f +0000003106 00000 f +0000003107 00000 f +0000003108 00000 f +0000003109 00000 f +0000003110 00000 f +0000003111 00000 f +0000003112 00000 f +0000003113 00000 f +0000003114 00000 f +0000003115 00000 f +0000003116 00000 f +0000003117 00000 f +0000003118 00000 f +0000003119 00000 f +0000003120 00000 f +0000003121 00000 f +0000003122 00000 f +0000003123 00000 f +0000003124 00000 f +0000003125 00000 f +0000003126 00000 f +0000003127 00000 f +0000003128 00000 f +0000003129 00000 f +0000003130 00000 f +0000003131 00000 f +0000003132 00000 f +0000003133 00000 f +0000003134 00000 f +0000003135 00000 f +0000003136 00000 f +0000003137 00000 f +0000003138 00000 f +0000003139 00000 f +0000003140 00000 f +0000003141 00000 f +0000003142 00000 f +0000003143 00000 f +0000003144 00000 f +0000003145 00000 f +0000003146 00000 f +0000003147 00000 f +0000003148 00000 f +0000003149 00000 f +0000003150 00000 f +0000003151 00000 f +0000003152 00000 f +0000003153 00000 f +0000003154 00000 f +0000003155 00000 f +0000003156 00000 f +0000003157 00000 f +0000003158 00000 f +0000003159 00000 f +0000003160 00000 f +0000003161 00000 f +0000003162 00000 f +0000003163 00000 f +0000003164 00000 f +0000003165 00000 f +0000003166 00000 f +0000003167 00000 f +0000003168 00000 f +0000003169 00000 f +0000003170 00000 f +0000003171 00000 f +0000003172 00000 f +0000003173 00000 f +0000003174 00000 f +0000003175 00000 f +0000003176 00000 f +0000003177 00000 f +0000003178 00000 f +0000003179 00000 f +0000003180 00000 f +0000003181 00000 f +0000003182 00000 f +0000003183 00000 f +0000003184 00000 f +0000003185 00000 f +0000003186 00000 f +0000003187 00000 f +0000003188 00000 f +0000003189 00000 f +0000003190 00000 f +0000003191 00000 f +0000003192 00000 f +0000003193 00000 f +0000003194 00000 f +0000003195 00000 f +0000003196 00000 f +0000003197 00000 f +0000003198 00000 f +0000003199 00000 f +0000003200 00000 f +0000003201 00000 f +0000003202 00000 f +0000003203 00000 f +0000003204 00000 f +0000003205 00000 f +0000003206 00000 f +0000003207 00000 f +0000003208 00000 f +0000003209 00000 f +0000003210 00000 f +0000003211 00000 f +0000003212 00000 f +0000003213 00000 f +0000003214 00000 f +0000003215 00000 f +0000003216 00000 f +0000003217 00000 f +0000003218 00000 f +0000003219 00000 f +0000003220 00000 f +0000003221 00000 f +0000003224 00000 f +0000396527 00000 n +0000396603 00000 n +0000003225 00000 f +0000003226 00000 f +0000003227 00000 f +0000003228 00000 f +0000003229 00000 f +0000003230 00000 f +0000003231 00000 f +0000003232 00000 f +0000003233 00000 f +0000003234 00000 f +0000003235 00000 f +0000003236 00000 f +0000003237 00000 f +0000003238 00000 f +0000003239 00000 f +0000003240 00000 f +0000003241 00000 f +0000003242 00000 f +0000003243 00000 f +0000003244 00000 f +0000003245 00000 f +0000003246 00000 f +0000003247 00000 f +0000003248 00000 f +0000003249 00000 f +0000003250 00000 f +0000003251 00000 f +0000003252 00000 f +0000003253 00000 f +0000003254 00000 f +0000003255 00000 f +0000003256 00000 f +0000003257 00000 f +0000003258 00000 f +0000003259 00000 f +0000003260 00000 f +0000003261 00000 f +0000003262 00000 f +0000003263 00000 f +0000003264 00000 f +0000003265 00000 f +0000003266 00000 f +0000003267 00000 f +0000003268 00000 f +0000003269 00000 f +0000003270 00000 f +0000003271 00000 f +0000003272 00000 f +0000003273 00000 f +0000003274 00000 f +0000003275 00000 f +0000003276 00000 f +0000003277 00000 f +0000003278 00000 f +0000003279 00000 f +0000003280 00000 f +0000003281 00000 f +0000003282 00000 f +0000003283 00000 f +0000003284 00000 f +0000003285 00000 f +0000003286 00000 f +0000003287 00000 f +0000003288 00000 f +0000003289 00000 f +0000003290 00000 f +0000003291 00000 f +0000003292 00000 f +0000003293 00000 f +0000003294 00000 f +0000003295 00000 f +0000003296 00000 f +0000003297 00000 f +0000003298 00000 f +0000003299 00000 f +0000003300 00000 f +0000003301 00000 f +0000003302 00000 f +0000003303 00000 f +0000003304 00000 f +0000003305 00000 f +0000003306 00000 f +0000003307 00000 f +0000003308 00000 f +0000003309 00000 f +0000003310 00000 f +0000003311 00000 f +0000003312 00000 f +0000003313 00000 f +0000003314 00000 f +0000003315 00000 f +0000003316 00000 f +0000003317 00000 f +0000003318 00000 f +0000003319 00000 f +0000003320 00000 f +0000003321 00000 f +0000003322 00000 f +0000003323 00000 f +0000003324 00000 f +0000003325 00000 f +0000003326 00000 f +0000003327 00000 f +0000003328 00000 f +0000003329 00000 f +0000003330 00000 f +0000003331 00000 f +0000003332 00000 f +0000003333 00000 f +0000003334 00000 f +0000003335 00000 f +0000003336 00000 f +0000003337 00000 f +0000003338 00000 f +0000003339 00000 f +0000003340 00000 f +0000003341 00000 f +0000003342 00000 f +0000003343 00000 f +0000003344 00000 f +0000003345 00000 f +0000003346 00000 f +0000003347 00000 f +0000003348 00000 f +0000003349 00000 f +0000003350 00000 f +0000003351 00000 f +0000003352 00000 f +0000003353 00000 f +0000003354 00000 f +0000003355 00000 f +0000003356 00000 f +0000003357 00000 f +0000003358 00000 f +0000003359 00000 f +0000003360 00000 f +0000003361 00000 f +0000003362 00000 f +0000003363 00000 f +0000003364 00000 f +0000003365 00000 f +0000003366 00000 f +0000003367 00000 f +0000003368 00000 f +0000003369 00000 f +0000003370 00000 f +0000003371 00000 f +0000003372 00000 f +0000003373 00000 f +0000003374 00000 f +0000003375 00000 f +0000003376 00000 f +0000003377 00000 f +0000003378 00000 f +0000003379 00000 f +0000003380 00000 f +0000003381 00000 f +0000003382 00000 f +0000003383 00000 f +0000003384 00000 f +0000003385 00000 f +0000003386 00000 f +0000003387 00000 f +0000003388 00000 f +0000003389 00000 f +0000003390 00000 f +0000003391 00000 f +0000003392 00000 f +0000003393 00000 f +0000003394 00000 f +0000003395 00000 f +0000003396 00000 f +0000003397 00000 f +0000003398 00000 f +0000003399 00000 f +0000003400 00000 f +0000003401 00000 f +0000003402 00000 f +0000003403 00000 f +0000003404 00000 f +0000003405 00000 f +0000003406 00000 f +0000003407 00000 f +0000003408 00000 f +0000003409 00000 f +0000003410 00000 f +0000003411 00000 f +0000003412 00000 f +0000003413 00000 f +0000003414 00000 f +0000003415 00000 f +0000003416 00000 f +0000003417 00000 f +0000003418 00000 f +0000003419 00000 f +0000003420 00000 f +0000003421 00000 f +0000003422 00000 f +0000003423 00000 f +0000003424 00000 f +0000003425 00000 f +0000003426 00000 f +0000003427 00000 f +0000003428 00000 f +0000003429 00000 f +0000003430 00000 f +0000003431 00000 f +0000003432 00000 f +0000003433 00000 f +0000003434 00000 f +0000003435 00000 f +0000003436 00000 f +0000003437 00000 f +0000003438 00000 f +0000003439 00000 f +0000003440 00000 f +0000003441 00000 f +0000003442 00000 f +0000003443 00000 f +0000003444 00000 f +0000003445 00000 f +0000003446 00000 f +0000003447 00000 f +0000003448 00000 f +0000003449 00000 f +0000003450 00000 f +0000003451 00000 f +0000003452 00000 f +0000003453 00000 f +0000003454 00000 f +0000003455 00000 f +0000003456 00000 f +0000003457 00000 f +0000003458 00000 f +0000003459 00000 f +0000003460 00000 f +0000003461 00000 f +0000003462 00000 f +0000003463 00000 f +0000003464 00000 f +0000003465 00000 f +0000003466 00000 f +0000003467 00000 f +0000003468 00000 f +0000003469 00000 f +0000003470 00000 f +0000003471 00000 f +0000003472 00000 f +0000003473 00000 f +0000003474 00000 f +0000003475 00000 f +0000003476 00000 f +0000003477 00000 f +0000003478 00000 f +0000003479 00000 f +0000003480 00000 f +0000003481 00000 f +0000003482 00000 f +0000003483 00000 f +0000003484 00000 f +0000003485 00000 f +0000003486 00000 f +0000003487 00000 f +0000003488 00000 f +0000003489 00000 f +0000003490 00000 f +0000003491 00000 f +0000003492 00000 f +0000003493 00000 f +0000003494 00000 f +0000003495 00000 f +0000003496 00000 f +0000003497 00000 f +0000003498 00000 f +0000003499 00000 f +0000003500 00000 f +0000003501 00000 f +0000003502 00000 f +0000003503 00000 f +0000003504 00000 f +0000003505 00000 f +0000003506 00000 f +0000003507 00000 f +0000003508 00000 f +0000003509 00000 f +0000003510 00000 f +0000003511 00000 f +0000003512 00000 f +0000003513 00000 f +0000003514 00000 f +0000003515 00000 f +0000003516 00000 f +0000003517 00000 f +0000003518 00000 f +0000003519 00000 f +0000003520 00000 f +0000003521 00000 f +0000003522 00000 f +0000003523 00000 f +0000003524 00000 f +0000003525 00000 f +0000003526 00000 f +0000003527 00000 f +0000003528 00000 f +0000003529 00000 f +0000003530 00000 f +0000003531 00000 f +0000003532 00000 f +0000003533 00000 f +0000003534 00000 f +0000003535 00000 f +0000003536 00000 f +0000003537 00000 f +0000003538 00000 f +0000003539 00000 f +0000003540 00000 f +0000003541 00000 f +0000003542 00000 f +0000003543 00000 f +0000003544 00000 f +0000003545 00000 f +0000003546 00000 f +0000003547 00000 f +0000003548 00000 f +0000003549 00000 f +0000003550 00000 f +0000003551 00000 f +0000003552 00000 f +0000003553 00000 f +0000003554 00000 f +0000003555 00000 f +0000003556 00000 f +0000003557 00000 f +0000003558 00000 f +0000003559 00000 f +0000003560 00000 f +0000003561 00000 f +0000003562 00000 f +0000003563 00000 f +0000003564 00000 f +0000003565 00000 f +0000003566 00000 f +0000003567 00000 f +0000003568 00000 f +0000003569 00000 f +0000003570 00000 f +0000003571 00000 f +0000003572 00000 f +0000003573 00000 f +0000003574 00000 f +0000003575 00000 f +0000003576 00000 f +0000003577 00000 f +0000003578 00000 f +0000003579 00000 f +0000003580 00000 f +0000003581 00000 f +0000003582 00000 f +0000003583 00000 f +0000003584 00000 f +0000003585 00000 f +0000003586 00000 f +0000003587 00000 f +0000003588 00000 f +0000003589 00000 f +0000003590 00000 f +0000003591 00000 f +0000003592 00000 f +0000003593 00000 f +0000003594 00000 f +0000003595 00000 f +0000003596 00000 f +0000003597 00000 f +0000003598 00000 f +0000003599 00000 f +0000003600 00000 f +0000003601 00000 f +0000003602 00000 f +0000003603 00000 f +0000003604 00000 f +0000003605 00000 f +0000003610 00000 f +0000397588 00000 n +0000397621 00000 n +0000397468 00000 n +0000397501 00000 n +0000003611 00000 f +0000003612 00000 f +0000003613 00000 f +0000003614 00000 f +0000003615 00000 f +0000003616 00000 f +0000003617 00000 f +0000003618 00000 f +0000003619 00000 f +0000003620 00000 f +0000003621 00000 f +0000003622 00000 f +0000003623 00000 f +0000003624 00000 f +0000003625 00000 f +0000003626 00000 f +0000003627 00000 f +0000003628 00000 f +0000003629 00000 f +0000003630 00000 f +0000003631 00000 f +0000003632 00000 f +0000003633 00000 f +0000003634 00000 f +0000003635 00000 f +0000003636 00000 f +0000003637 00000 f +0000003638 00000 f +0000003639 00000 f +0000003640 00000 f +0000003641 00000 f +0000003642 00000 f +0000003643 00000 f +0000003644 00000 f +0000003645 00000 f +0000003646 00000 f +0000003647 00000 f +0000003648 00000 f +0000003649 00000 f +0000003650 00000 f +0000003651 00000 f +0000003652 00000 f +0000003653 00000 f +0000003654 00000 f +0000003655 00000 f +0000003656 00000 f +0000003657 00000 f +0000003658 00000 f +0000003659 00000 f +0000003660 00000 f +0000003661 00000 f +0000003662 00000 f +0000003663 00000 f +0000003664 00000 f +0000003665 00000 f +0000003666 00000 f +0000003667 00000 f +0000003668 00000 f +0000003669 00000 f +0000003670 00000 f +0000003671 00000 f +0000003672 00000 f +0000003673 00000 f +0000003674 00000 f +0000003675 00000 f +0000003676 00000 f +0000003677 00000 f +0000003678 00000 f +0000003679 00000 f +0000003680 00000 f +0000003681 00000 f +0000003682 00000 f +0000003683 00000 f +0000003684 00000 f +0000003685 00000 f +0000003686 00000 f +0000003687 00000 f +0000003688 00000 f +0000003689 00000 f +0000003690 00000 f +0000003691 00000 f +0000003692 00000 f +0000003693 00000 f +0000003694 00000 f +0000003695 00000 f +0000003696 00000 f +0000003697 00000 f +0000003698 00000 f +0000003699 00000 f +0000003700 00000 f +0000003701 00000 f +0000003702 00000 f +0000003703 00000 f +0000003704 00000 f +0000003705 00000 f +0000003706 00000 f +0000003707 00000 f +0000003708 00000 f +0000003709 00000 f +0000003710 00000 f +0000003711 00000 f +0000003712 00000 f +0000003713 00000 f +0000003714 00000 f +0000003715 00000 f +0000003716 00000 f +0000003717 00000 f +0000003718 00000 f +0000003719 00000 f +0000003720 00000 f +0000003721 00000 f +0000003722 00000 f +0000003723 00000 f +0000003724 00000 f +0000003725 00000 f +0000003726 00000 f +0000003727 00000 f +0000003728 00000 f +0000003729 00000 f +0000003730 00000 f +0000003731 00000 f +0000003732 00000 f +0000003733 00000 f +0000003734 00000 f +0000003735 00000 f +0000003736 00000 f +0000003737 00000 f +0000003739 00000 f +0000396680 00000 n +0000003740 00000 f +0000003741 00000 f +0000003742 00000 f +0000003743 00000 f +0000003744 00000 f +0000003745 00000 f +0000003746 00000 f +0000003747 00000 f +0000003748 00000 f +0000003749 00000 f +0000003750 00000 f +0000003751 00000 f +0000003752 00000 f +0000003753 00000 f +0000003754 00000 f +0000003755 00000 f +0000003756 00000 f +0000003757 00000 f +0000003758 00000 f +0000003759 00000 f +0000003760 00000 f +0000003761 00000 f +0000003762 00000 f +0000003763 00000 f +0000003764 00000 f +0000003765 00000 f +0000003766 00000 f +0000003767 00000 f +0000003768 00000 f +0000003769 00000 f +0000003770 00000 f +0000003771 00000 f +0000003772 00000 f +0000003773 00000 f +0000003774 00000 f +0000003775 00000 f +0000003776 00000 f +0000003777 00000 f +0000003778 00000 f +0000003779 00000 f +0000003780 00000 f +0000003781 00000 f +0000003782 00000 f +0000003783 00000 f +0000003784 00000 f +0000003785 00000 f +0000003786 00000 f +0000003787 00000 f +0000003788 00000 f +0000003789 00000 f +0000003790 00000 f +0000003791 00000 f +0000003792 00000 f +0000003793 00000 f +0000003794 00000 f +0000003795 00000 f +0000003796 00000 f +0000003797 00000 f +0000003798 00000 f +0000003799 00000 f +0000003800 00000 f +0000003801 00000 f +0000003802 00000 f +0000003803 00000 f +0000003804 00000 f +0000003805 00000 f +0000003806 00000 f +0000003807 00000 f +0000003808 00000 f +0000003809 00000 f +0000003810 00000 f +0000003811 00000 f +0000003812 00000 f +0000003813 00000 f +0000003814 00000 f +0000003815 00000 f +0000003816 00000 f +0000003817 00000 f +0000003818 00000 f +0000003819 00000 f +0000003820 00000 f +0000003821 00000 f +0000003822 00000 f +0000003823 00000 f +0000003824 00000 f +0000003825 00000 f +0000003826 00000 f +0000003827 00000 f +0000003828 00000 f +0000003829 00000 f +0000003830 00000 f +0000003831 00000 f +0000003832 00000 f +0000003833 00000 f +0000003834 00000 f +0000003835 00000 f +0000003836 00000 f +0000003837 00000 f +0000003838 00000 f +0000003839 00000 f +0000003840 00000 f +0000003841 00000 f +0000003842 00000 f +0000003843 00000 f +0000003844 00000 f +0000003845 00000 f +0000003846 00000 f +0000003847 00000 f +0000003848 00000 f +0000003849 00000 f +0000003850 00000 f +0000003851 00000 f +0000003852 00000 f +0000003853 00000 f +0000003854 00000 f +0000003855 00000 f +0000003856 00000 f +0000003857 00000 f +0000003858 00000 f +0000003859 00000 f +0000003860 00000 f +0000003861 00000 f +0000003862 00000 f +0000003863 00000 f +0000003864 00000 f +0000003865 00000 f +0000003866 00000 f +0000003867 00000 f +0000003868 00000 f +0000003869 00000 f +0000003870 00000 f +0000003871 00000 f +0000003872 00000 f +0000003875 00000 f +0000397348 00000 n +0000397381 00000 n +0000003876 00000 f +0000003877 00000 f +0000003878 00000 f +0000003879 00000 f +0000003880 00000 f +0000003881 00000 f +0000003882 00000 f +0000003883 00000 f +0000003884 00000 f +0000003885 00000 f +0000003886 00000 f +0000003887 00000 f +0000003888 00000 f +0000003889 00000 f +0000003890 00000 f +0000003891 00000 f +0000003892 00000 f +0000003893 00000 f +0000003894 00000 f +0000003895 00000 f +0000003896 00000 f +0000003897 00000 f +0000003898 00000 f +0000003899 00000 f +0000003900 00000 f +0000003901 00000 f +0000003902 00000 f +0000003903 00000 f +0000003904 00000 f +0000003905 00000 f +0000003906 00000 f +0000003907 00000 f +0000003908 00000 f +0000003909 00000 f +0000003910 00000 f +0000003911 00000 f +0000003912 00000 f +0000003913 00000 f +0000003914 00000 f +0000003915 00000 f +0000003916 00000 f +0000003917 00000 f +0000003918 00000 f +0000003919 00000 f +0000003920 00000 f +0000003921 00000 f +0000003922 00000 f +0000003923 00000 f +0000003924 00000 f +0000003925 00000 f +0000003926 00000 f +0000003927 00000 f +0000003928 00000 f +0000003929 00000 f +0000003930 00000 f +0000003931 00000 f +0000003932 00000 f +0000003933 00000 f +0000003934 00000 f +0000003935 00000 f +0000003936 00000 f +0000003937 00000 f +0000003938 00000 f +0000003939 00000 f +0000003940 00000 f +0000003941 00000 f +0000003942 00000 f +0000003943 00000 f +0000003944 00000 f +0000003945 00000 f +0000003946 00000 f +0000003947 00000 f +0000003948 00000 f +0000003949 00000 f +0000003950 00000 f +0000003951 00000 f +0000003952 00000 f +0000003953 00000 f +0000003954 00000 f +0000003955 00000 f +0000003956 00000 f +0000003957 00000 f +0000003958 00000 f +0000003959 00000 f +0000003960 00000 f +0000003961 00000 f +0000003962 00000 f +0000003963 00000 f +0000003964 00000 f +0000003965 00000 f +0000003966 00000 f +0000003967 00000 f +0000003968 00000 f +0000003969 00000 f +0000003970 00000 f +0000003971 00000 f +0000003972 00000 f +0000003973 00000 f +0000003974 00000 f +0000003975 00000 f +0000003976 00000 f +0000003977 00000 f +0000003978 00000 f +0000003979 00000 f +0000003980 00000 f +0000003981 00000 f +0000003982 00000 f +0000003983 00000 f +0000003984 00000 f +0000003985 00000 f +0000003986 00000 f +0000003987 00000 f +0000003988 00000 f +0000003989 00000 f +0000003990 00000 f +0000003991 00000 f +0000003992 00000 f +0000003993 00000 f +0000003994 00000 f +0000003995 00000 f +0000003996 00000 f +0000003997 00000 f +0000003998 00000 f +0000003999 00000 f +0000004000 00000 f +0000004001 00000 f +0000004002 00000 f +0000004003 00000 f +0000004004 00000 f +0000004005 00000 f +0000004006 00000 f +0000004007 00000 f +0000004008 00000 f +0000004009 00000 f +0000004011 00000 f +0000396757 00000 n +0000004012 00000 f +0000004013 00000 f +0000004014 00000 f +0000004015 00000 f +0000004016 00000 f +0000004017 00000 f +0000004018 00000 f +0000004019 00000 f +0000004020 00000 f +0000004021 00000 f +0000004022 00000 f +0000004023 00000 f +0000004024 00000 f +0000004025 00000 f +0000004026 00000 f +0000004027 00000 f +0000004028 00000 f +0000004029 00000 f +0000004030 00000 f +0000004031 00000 f +0000004032 00000 f +0000004033 00000 f +0000004034 00000 f +0000004035 00000 f +0000004036 00000 f +0000004037 00000 f +0000004038 00000 f +0000004039 00000 f +0000004040 00000 f +0000004041 00000 f +0000004042 00000 f +0000004043 00000 f +0000004044 00000 f +0000004045 00000 f +0000004046 00000 f +0000004047 00000 f +0000004048 00000 f +0000004049 00000 f +0000004050 00000 f +0000004051 00000 f +0000004052 00000 f +0000004053 00000 f +0000004054 00000 f +0000004055 00000 f +0000004056 00000 f +0000004057 00000 f +0000004058 00000 f +0000004059 00000 f +0000004060 00000 f +0000004061 00000 f +0000004062 00000 f +0000004063 00000 f +0000004064 00000 f +0000004065 00000 f +0000004066 00000 f +0000004067 00000 f +0000004068 00000 f +0000004069 00000 f +0000004070 00000 f +0000004071 00000 f +0000004072 00000 f +0000004073 00000 f +0000004074 00000 f +0000004075 00000 f +0000004076 00000 f +0000004077 00000 f +0000004078 00000 f +0000004079 00000 f +0000004080 00000 f +0000004081 00000 f +0000004082 00000 f +0000004083 00000 f +0000004084 00000 f +0000004085 00000 f +0000004086 00000 f +0000004087 00000 f +0000004088 00000 f +0000004089 00000 f +0000004090 00000 f +0000004091 00000 f +0000004092 00000 f +0000004093 00000 f +0000004094 00000 f +0000004095 00000 f +0000004096 00000 f +0000004097 00000 f +0000004098 00000 f +0000004099 00000 f +0000004100 00000 f +0000004101 00000 f +0000004102 00000 f +0000004103 00000 f +0000004104 00000 f +0000004105 00000 f +0000004106 00000 f +0000004107 00000 f +0000004108 00000 f +0000004109 00000 f +0000004110 00000 f +0000004111 00000 f +0000004112 00000 f +0000004113 00000 f +0000004114 00000 f +0000004115 00000 f +0000004116 00000 f +0000004117 00000 f +0000004118 00000 f +0000004119 00000 f +0000004120 00000 f +0000004121 00000 f +0000004122 00000 f +0000004123 00000 f +0000004124 00000 f +0000004125 00000 f +0000004126 00000 f +0000004127 00000 f +0000004128 00000 f +0000004129 00000 f +0000004130 00000 f +0000004131 00000 f +0000004132 00000 f +0000004133 00000 f +0000004134 00000 f +0000004135 00000 f +0000004136 00000 f +0000004137 00000 f +0000004138 00000 f +0000004139 00000 f +0000004140 00000 f +0000004141 00000 f +0000004142 00000 f +0000004143 00000 f +0000004144 00000 f +0000004147 00000 f +0000397228 00000 n +0000397261 00000 n +0000004148 00000 f +0000004149 00000 f +0000004150 00000 f +0000004151 00000 f +0000004152 00000 f +0000004153 00000 f +0000004154 00000 f +0000004155 00000 f +0000004156 00000 f +0000004157 00000 f +0000004158 00000 f +0000004159 00000 f +0000004160 00000 f +0000004161 00000 f +0000004162 00000 f +0000004163 00000 f +0000004164 00000 f +0000004165 00000 f +0000004166 00000 f +0000004167 00000 f +0000004168 00000 f +0000004169 00000 f +0000004170 00000 f +0000004171 00000 f +0000004172 00000 f +0000004173 00000 f +0000004174 00000 f +0000004175 00000 f +0000004176 00000 f +0000004177 00000 f +0000004178 00000 f +0000004179 00000 f +0000004180 00000 f +0000004181 00000 f +0000004182 00000 f +0000004183 00000 f +0000004184 00000 f +0000004185 00000 f +0000004186 00000 f +0000004187 00000 f +0000004188 00000 f +0000004189 00000 f +0000004190 00000 f +0000004191 00000 f +0000004192 00000 f +0000004193 00000 f +0000004194 00000 f +0000004195 00000 f +0000004196 00000 f +0000004197 00000 f +0000004198 00000 f +0000004199 00000 f +0000004200 00000 f +0000004201 00000 f +0000004202 00000 f +0000004203 00000 f +0000004204 00000 f +0000004205 00000 f +0000004206 00000 f +0000004207 00000 f +0000004208 00000 f +0000004209 00000 f +0000004210 00000 f +0000004211 00000 f +0000004212 00000 f +0000004213 00000 f +0000004214 00000 f +0000004215 00000 f +0000004216 00000 f +0000004217 00000 f +0000004218 00000 f +0000004219 00000 f +0000004220 00000 f +0000004221 00000 f +0000004222 00000 f +0000004223 00000 f +0000004224 00000 f +0000004225 00000 f +0000004226 00000 f +0000004227 00000 f +0000004228 00000 f +0000004229 00000 f +0000004230 00000 f +0000004231 00000 f +0000004232 00000 f +0000004233 00000 f +0000004234 00000 f +0000004235 00000 f +0000004236 00000 f +0000004237 00000 f +0000004238 00000 f +0000004239 00000 f +0000004240 00000 f +0000004241 00000 f +0000004242 00000 f +0000004243 00000 f +0000004244 00000 f +0000004245 00000 f +0000004246 00000 f +0000004247 00000 f +0000004248 00000 f +0000004249 00000 f +0000004250 00000 f +0000004251 00000 f +0000004252 00000 f +0000004253 00000 f +0000004254 00000 f +0000004255 00000 f +0000004256 00000 f +0000004257 00000 f +0000004258 00000 f +0000004259 00000 f +0000004260 00000 f +0000004261 00000 f +0000004262 00000 f +0000004263 00000 f +0000004264 00000 f +0000004265 00000 f +0000004266 00000 f +0000004267 00000 f +0000004268 00000 f +0000004269 00000 f +0000004270 00000 f +0000004271 00000 f +0000004272 00000 f +0000004273 00000 f +0000004274 00000 f +0000004275 00000 f +0000004276 00000 f +0000004277 00000 f +0000004278 00000 f +0000004279 00000 f +0000004280 00000 f +0000004281 00000 f +0000004283 00000 f +0000396834 00000 n +0000004284 00000 f +0000004285 00000 f +0000004286 00000 f +0000004287 00000 f +0000004288 00000 f +0000004289 00000 f +0000004290 00000 f +0000004291 00000 f +0000004292 00000 f +0000004293 00000 f +0000004294 00000 f +0000004295 00000 f +0000004296 00000 f +0000004297 00000 f +0000004298 00000 f +0000004299 00000 f +0000004300 00000 f +0000004301 00000 f +0000004302 00000 f +0000004303 00000 f +0000004304 00000 f +0000004305 00000 f +0000004306 00000 f +0000004307 00000 f +0000004308 00000 f +0000004309 00000 f +0000004310 00000 f +0000004311 00000 f +0000004312 00000 f +0000004313 00000 f +0000004314 00000 f +0000004315 00000 f +0000004316 00000 f +0000004317 00000 f +0000004318 00000 f +0000004319 00000 f +0000004320 00000 f +0000004321 00000 f +0000004322 00000 f +0000004323 00000 f +0000004324 00000 f +0000004325 00000 f +0000004326 00000 f +0000004327 00000 f +0000004328 00000 f +0000004329 00000 f +0000004330 00000 f +0000004331 00000 f +0000004332 00000 f +0000004333 00000 f +0000004334 00000 f +0000004335 00000 f +0000004336 00000 f +0000004337 00000 f +0000004338 00000 f +0000004339 00000 f +0000004340 00000 f +0000004341 00000 f +0000004342 00000 f +0000004343 00000 f +0000004344 00000 f +0000004345 00000 f +0000004346 00000 f +0000004347 00000 f +0000004348 00000 f +0000004349 00000 f +0000004350 00000 f +0000004351 00000 f +0000004352 00000 f +0000004353 00000 f +0000004354 00000 f +0000004355 00000 f +0000004356 00000 f +0000004357 00000 f +0000004358 00000 f +0000004359 00000 f +0000004360 00000 f +0000004361 00000 f +0000004362 00000 f +0000004363 00000 f +0000004364 00000 f +0000004365 00000 f +0000004366 00000 f +0000004367 00000 f +0000004368 00000 f +0000004369 00000 f +0000004370 00000 f +0000004371 00000 f +0000004372 00000 f +0000004373 00000 f +0000004374 00000 f +0000004375 00000 f +0000004376 00000 f +0000004377 00000 f +0000004378 00000 f +0000004379 00000 f +0000004380 00000 f +0000004381 00000 f +0000004382 00000 f +0000004383 00000 f +0000004384 00000 f +0000004385 00000 f +0000004386 00000 f +0000004387 00000 f +0000004388 00000 f +0000004389 00000 f +0000004390 00000 f +0000004391 00000 f +0000004392 00000 f +0000004393 00000 f +0000004394 00000 f +0000004395 00000 f +0000004396 00000 f +0000004397 00000 f +0000004398 00000 f +0000004399 00000 f +0000004400 00000 f +0000004401 00000 f +0000004402 00000 f +0000004403 00000 f +0000004404 00000 f +0000004405 00000 f +0000004406 00000 f +0000004407 00000 f +0000004408 00000 f +0000004409 00000 f +0000004410 00000 f +0000004411 00000 f +0000004412 00000 f +0000004413 00000 f +0000004414 00000 f +0000004415 00000 f +0000004416 00000 f +0000004419 00000 f +0000397108 00000 n +0000397141 00000 n +0000004420 00000 f +0000004421 00000 f +0000004422 00000 f +0000004423 00000 f +0000004424 00000 f +0000004425 00000 f +0000004426 00000 f +0000004427 00000 f +0000004428 00000 f +0000004429 00000 f +0000004430 00000 f +0000004431 00000 f +0000004432 00000 f +0000004433 00000 f +0000004434 00000 f +0000004435 00000 f +0000004436 00000 f +0000004437 00000 f +0000004438 00000 f +0000004439 00000 f +0000004440 00000 f +0000004441 00000 f +0000004442 00000 f +0000004443 00000 f +0000004444 00000 f +0000004445 00000 f +0000004446 00000 f +0000004447 00000 f +0000004448 00000 f +0000004449 00000 f +0000004450 00000 f +0000004451 00000 f +0000004452 00000 f +0000004453 00000 f +0000004454 00000 f +0000004455 00000 f +0000004456 00000 f +0000004457 00000 f +0000004458 00000 f +0000004459 00000 f +0000004460 00000 f +0000004461 00000 f +0000004462 00000 f +0000004463 00000 f +0000004464 00000 f +0000004465 00000 f +0000004466 00000 f +0000004467 00000 f +0000004468 00000 f +0000004469 00000 f +0000004470 00000 f +0000004471 00000 f +0000004472 00000 f +0000004473 00000 f +0000004474 00000 f +0000004475 00000 f +0000004476 00000 f +0000004477 00000 f +0000004478 00000 f +0000004479 00000 f +0000004480 00000 f +0000004481 00000 f +0000004482 00000 f +0000004483 00000 f +0000004484 00000 f +0000004485 00000 f +0000004486 00000 f +0000004487 00000 f +0000004488 00000 f +0000004489 00000 f +0000004490 00000 f +0000004491 00000 f +0000004492 00000 f +0000004493 00000 f +0000004494 00000 f +0000004495 00000 f +0000004496 00000 f +0000004497 00000 f +0000004498 00000 f +0000004499 00000 f +0000004500 00000 f +0000004501 00000 f +0000004502 00000 f +0000004503 00000 f +0000004504 00000 f +0000004505 00000 f +0000004506 00000 f +0000004507 00000 f +0000004508 00000 f +0000004509 00000 f +0000004510 00000 f +0000004511 00000 f +0000004512 00000 f +0000004513 00000 f +0000004514 00000 f +0000004515 00000 f +0000004516 00000 f +0000004517 00000 f +0000004518 00000 f +0000004519 00000 f +0000004520 00000 f +0000004521 00000 f +0000004522 00000 f +0000004523 00000 f +0000004524 00000 f +0000004525 00000 f +0000004526 00000 f +0000004527 00000 f +0000004528 00000 f +0000004529 00000 f +0000004530 00000 f +0000004531 00000 f +0000004532 00000 f +0000004533 00000 f +0000004534 00000 f +0000004535 00000 f +0000004536 00000 f +0000004537 00000 f +0000004538 00000 f +0000004539 00000 f +0000004540 00000 f +0000004541 00000 f +0000004542 00000 f +0000004543 00000 f +0000004544 00000 f +0000004545 00000 f +0000004546 00000 f +0000004547 00000 f +0000004548 00000 f +0000004549 00000 f +0000004550 00000 f +0000004551 00000 f +0000004552 00000 f +0000004553 00000 f +0000000000 00000 f +0000396911 00000 n +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000396988 00000 n +0000397021 00000 n +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000146919 00000 n +0000402067 00000 n +0000282960 00000 n +0000284763 00000 n +0000147755 00000 n +0000135653 00000 n +0000135538 00000 n +0000147116 00000 n +0000147244 00000 n +0000147372 00000 n +0000147499 00000 n +0000147626 00000 n +0000286535 00000 n +0000287154 00000 n +0000288103 00000 n +0000288743 00000 n +0000289118 00000 n +0000289539 00000 n +0000290174 00000 n +0000291084 00000 n +0000292036 00000 n +0000293789 00000 n +0000294164 00000 n +0000294585 00000 n +0000295220 00000 n +0000296116 00000 n +0000297067 00000 n +0000298018 00000 n +0000299760 00000 n +0000300135 00000 n +0000300544 00000 n +0000301179 00000 n +0000302087 00000 n +0000303038 00000 n +0000304792 00000 n +0000305167 00000 n +0000305588 00000 n +0000306244 00000 n +0000307197 00000 n +0000307854 00000 n +0000308807 00000 n +0000309463 00000 n +0000310416 00000 n +0000311072 00000 n +0000312025 00000 n +0000312655 00000 n +0000313311 00000 n +0000314265 00000 n +0000314921 00000 n +0000315875 00000 n +0000316531 00000 n +0000317484 00000 n +0000318140 00000 n +0000319093 00000 n +0000319749 00000 n +0000320691 00000 n +0000321641 00000 n +0000322246 00000 n +0000323152 00000 n +0000324047 00000 n +0000325798 00000 n +0000326163 00000 n +0000326580 00000 n +0000327194 00000 n +0000328101 00000 n +0000329011 00000 n +0000330763 00000 n +0000331419 00000 n +0000331786 00000 n +0000332204 00000 n +0000332824 00000 n +0000333731 00000 n +0000334653 00000 n +0000336405 00000 n +0000336774 00000 n +0000337193 00000 n +0000337828 00000 n +0000338736 00000 n +0000339689 00000 n +0000340640 00000 n +0000342394 00000 n +0000342769 00000 n +0000343190 00000 n +0000343825 00000 n +0000344733 00000 n +0000345684 00000 n +0000347438 00000 n +0000347813 00000 n +0000348234 00000 n +0000348890 00000 n +0000349525 00000 n +0000350433 00000 n +0000351384 00000 n +0000353138 00000 n +0000353513 00000 n +0000353934 00000 n +0000354569 00000 n +0000355477 00000 n +0000356428 00000 n +0000358182 00000 n +0000359135 00000 n +0000359510 00000 n +0000359931 00000 n +0000360566 00000 n +0000361474 00000 n +0000362425 00000 n +0000364179 00000 n +0000364554 00000 n +0000364975 00000 n +0000365610 00000 n +0000366518 00000 n +0000367174 00000 n +0000368125 00000 n +0000369879 00000 n +0000370254 00000 n +0000370675 00000 n +0000371310 00000 n +0000372218 00000 n +0000373169 00000 n +0000374923 00000 n +0000375298 00000 n +0000375719 00000 n +0000376672 00000 n +0000377307 00000 n +0000378215 00000 n +0000379166 00000 n +0000380920 00000 n +0000381295 00000 n +0000381716 00000 n +0000382351 00000 n +0000383259 00000 n +0000384210 00000 n +0000033584 00000 n +0000035436 00000 n +0000035502 00000 n +0000036117 00000 n +0000037058 00000 n +0000037707 00000 n +0000038092 00000 n +0000038511 00000 n +0000039159 00000 n +0000040059 00000 n +0000041057 00000 n +0000042847 00000 n +0000043240 00000 n +0000043662 00000 n +0000044289 00000 n +0000045179 00000 n +0000046124 00000 n +0000047084 00000 n +0000048860 00000 n +0000049247 00000 n +0000049655 00000 n +0000050282 00000 n +0000051184 00000 n +0000052141 00000 n +0000053928 00000 n +0000054313 00000 n +0000054732 00000 n +0000055381 00000 n +0000056326 00000 n +0000057003 00000 n +0000057953 00000 n +0000058602 00000 n +0000059547 00000 n +0000060196 00000 n +0000061141 00000 n +0000061779 00000 n +0000062428 00000 n +0000063373 00000 n +0000064022 00000 n +0000064967 00000 n +0000065616 00000 n +0000066561 00000 n +0000067210 00000 n +0000068155 00000 n +0000068808 00000 n +0000069742 00000 n +0000070686 00000 n +0000071288 00000 n +0000072189 00000 n +0000073100 00000 n +0000074884 00000 n +0000075259 00000 n +0000075674 00000 n +0000076292 00000 n +0000077194 00000 n +0000078134 00000 n +0000079921 00000 n +0000080570 00000 n +0000080952 00000 n +0000081370 00000 n +0000081997 00000 n +0000082899 00000 n +0000083856 00000 n +0000085644 00000 n +0000086029 00000 n +0000086448 00000 n +0000087075 00000 n +0000087977 00000 n +0000088922 00000 n +0000089879 00000 n +0000091667 00000 n +0000092052 00000 n +0000092471 00000 n +0000093098 00000 n +0000094000 00000 n +0000094957 00000 n +0000096745 00000 n +0000097130 00000 n +0000097549 00000 n +0000098198 00000 n +0000098825 00000 n +0000099727 00000 n +0000100684 00000 n +0000102472 00000 n +0000102857 00000 n +0000103276 00000 n +0000103903 00000 n +0000104805 00000 n +0000105762 00000 n +0000107549 00000 n +0000108494 00000 n +0000108879 00000 n +0000109298 00000 n +0000109925 00000 n +0000110827 00000 n +0000111784 00000 n +0000113571 00000 n +0000113956 00000 n +0000114375 00000 n +0000115002 00000 n +0000115904 00000 n +0000116553 00000 n +0000117510 00000 n +0000119297 00000 n +0000119682 00000 n +0000120101 00000 n +0000120728 00000 n +0000121630 00000 n +0000122587 00000 n +0000124374 00000 n +0000124759 00000 n +0000125178 00000 n +0000126123 00000 n +0000126750 00000 n +0000127652 00000 n +0000128609 00000 n +0000130396 00000 n +0000130781 00000 n +0000131200 00000 n +0000131827 00000 n +0000132729 00000 n +0000133686 00000 n +0000282921 00000 n +0000146854 00000 n +0000138408 00000 n +0000146789 00000 n +0000146724 00000 n +0000146659 00000 n +0000146594 00000 n +0000146529 00000 n +0000143880 00000 n +0000146464 00000 n +0000146399 00000 n +0000146334 00000 n +0000146269 00000 n +0000146204 00000 n +0000146139 00000 n +0000146074 00000 n +0000146009 00000 n +0000145944 00000 n +0000145879 00000 n +0000145814 00000 n +0000145749 00000 n +0000145684 00000 n +0000145619 00000 n +0000145554 00000 n +0000145489 00000 n +0000145424 00000 n +0000145359 00000 n +0000145294 00000 n +0000145229 00000 n +0000145164 00000 n +0000145099 00000 n +0000145034 00000 n +0000144969 00000 n +0000144904 00000 n +0000144839 00000 n +0000144774 00000 n +0000144709 00000 n +0000144644 00000 n +0000144579 00000 n +0000144514 00000 n +0000144449 00000 n +0000144384 00000 n +0000144319 00000 n +0000144254 00000 n +0000143815 00000 n +0000143750 00000 n +0000143685 00000 n +0000143620 00000 n +0000143555 00000 n +0000143490 00000 n +0000143425 00000 n +0000143360 00000 n +0000143295 00000 n +0000143230 00000 n +0000143165 00000 n +0000143100 00000 n +0000143035 00000 n +0000142970 00000 n +0000142905 00000 n +0000142840 00000 n +0000142775 00000 n +0000142710 00000 n +0000142645 00000 n +0000142580 00000 n +0000142515 00000 n +0000142450 00000 n +0000142385 00000 n +0000142320 00000 n +0000142255 00000 n +0000142190 00000 n +0000142125 00000 n +0000142060 00000 n +0000141995 00000 n +0000141930 00000 n +0000141865 00000 n +0000141800 00000 n +0000141735 00000 n +0000141670 00000 n +0000141605 00000 n +0000141540 00000 n +0000141475 00000 n +0000141410 00000 n +0000141345 00000 n +0000141280 00000 n +0000141215 00000 n +0000141150 00000 n +0000141085 00000 n +0000141020 00000 n +0000140955 00000 n +0000140890 00000 n +0000140825 00000 n +0000140760 00000 n +0000140695 00000 n +0000140630 00000 n +0000140565 00000 n +0000140500 00000 n +0000140435 00000 n +0000140370 00000 n +0000140305 00000 n +0000140240 00000 n +0000140175 00000 n +0000140110 00000 n +0000140045 00000 n +0000139980 00000 n +0000139915 00000 n +0000139850 00000 n +0000139785 00000 n +0000139720 00000 n +0000139655 00000 n +0000139590 00000 n +0000139525 00000 n +0000139460 00000 n +0000139395 00000 n +0000139330 00000 n +0000139265 00000 n +0000139200 00000 n +0000139135 00000 n +0000139070 00000 n +0000139005 00000 n +0000138940 00000 n +0000138875 00000 n +0000138343 00000 n +0000135473 00000 n +0000135692 00000 n +0000138557 00000 n +0000138676 00000 n +0000138768 00000 n +0000144029 00000 n +0000144148 00000 n +0000146996 00000 n +0000147029 00000 n +0000147833 00000 n +0000148039 00000 n +0000149052 00000 n +0000156568 00000 n +0000222159 00000 n +0000393764 00000 n +0000393699 00000 n +0000393634 00000 n +0000393569 00000 n +0000393504 00000 n +0000393439 00000 n +0000393374 00000 n +0000393309 00000 n +0000393244 00000 n +0000393179 00000 n +0000393114 00000 n +0000393049 00000 n +0000392984 00000 n +0000392919 00000 n +0000392854 00000 n +0000392789 00000 n +0000392724 00000 n +0000392659 00000 n +0000392594 00000 n +0000392529 00000 n +0000392464 00000 n +0000392399 00000 n +0000392334 00000 n +0000392269 00000 n +0000392204 00000 n +0000392139 00000 n +0000392074 00000 n +0000392009 00000 n +0000391944 00000 n +0000391879 00000 n +0000391814 00000 n +0000391749 00000 n +0000391684 00000 n +0000391619 00000 n +0000391554 00000 n +0000391489 00000 n +0000391424 00000 n +0000391359 00000 n +0000391294 00000 n +0000391229 00000 n +0000391164 00000 n +0000391099 00000 n +0000391034 00000 n +0000390969 00000 n +0000390904 00000 n +0000390839 00000 n +0000390774 00000 n +0000390709 00000 n +0000390644 00000 n +0000390579 00000 n +0000390514 00000 n +0000390449 00000 n +0000390384 00000 n +0000390319 00000 n +0000390254 00000 n +0000390189 00000 n +0000390124 00000 n +0000390059 00000 n +0000389994 00000 n +0000389929 00000 n +0000389864 00000 n +0000389799 00000 n +0000389734 00000 n +0000389669 00000 n +0000389604 00000 n +0000389539 00000 n +0000389474 00000 n +0000389409 00000 n +0000389344 00000 n +0000389279 00000 n +0000389214 00000 n +0000389149 00000 n +0000389084 00000 n +0000389019 00000 n +0000388954 00000 n +0000388889 00000 n +0000388824 00000 n +0000388759 00000 n +0000388694 00000 n +0000388629 00000 n +0000388564 00000 n +0000388499 00000 n +0000388434 00000 n +0000388369 00000 n +0000388304 00000 n +0000388239 00000 n +0000388174 00000 n +0000388109 00000 n +0000388044 00000 n +0000387979 00000 n +0000387914 00000 n +0000387849 00000 n +0000387784 00000 n +0000387719 00000 n +0000387654 00000 n +0000387589 00000 n +0000387524 00000 n +0000387459 00000 n +0000387394 00000 n +0000387329 00000 n +0000387264 00000 n +0000387199 00000 n +0000387134 00000 n +0000387069 00000 n +0000387004 00000 n +0000386939 00000 n +0000386874 00000 n +0000386809 00000 n +0000386744 00000 n +0000386679 00000 n +0000386614 00000 n +0000386549 00000 n +0000386484 00000 n +0000386419 00000 n +0000386354 00000 n +0000386289 00000 n +0000386224 00000 n +0000386159 00000 n +0000386094 00000 n +0000386029 00000 n +0000385964 00000 n +0000402096 00000 n +trailer +<<9D2F8A0751F45B4BB98F652DD22FAAA7>]>> +startxref +402286 +%%EOF diff --git a/bower_components/Leaflet.MakiMarkers/.bower.json b/bower_components/Leaflet.MakiMarkers/.bower.json new file mode 100644 index 00000000..c11439ce --- /dev/null +++ b/bower_components/Leaflet.MakiMarkers/.bower.json @@ -0,0 +1,33 @@ +{ + "name": "Leaflet.MakiMarkers", + "main": "Leaflet.MakiMarkers.js", + "version": "1.0.1", + "homepage": "https://github.com/jseppi/Leaflet.MakiMarkers", + "authors": [ + "James Seppi " + ], + "description": "Leaflet plugin to create map icons using Maki Icons from MapBox", + "keywords": [ + "leaflet", + "maki", + "markers", + "mapbox" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "_release": "1.0.1", + "_resolution": { + "type": "version", + "tag": "1.0.1", + "commit": "48d958176a706cd9be0d7ac8611c24e4d7b3bd25" + }, + "_source": "git://github.com/jseppi/Leaflet.MakiMarkers.git", + "_target": "*", + "_originalSource": "Leaflet.MakiMarkers" +} \ No newline at end of file diff --git a/bower_components/Leaflet.MakiMarkers/LICENSE b/bower_components/Leaflet.MakiMarkers/LICENSE new file mode 100644 index 00000000..77a86782 --- /dev/null +++ b/bower_components/Leaflet.MakiMarkers/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 James Seppi + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/bower_components/Leaflet.MakiMarkers/Leaflet.MakiMarkers.js b/bower_components/Leaflet.MakiMarkers/Leaflet.MakiMarkers.js new file mode 100644 index 00000000..a3a496cf --- /dev/null +++ b/bower_components/Leaflet.MakiMarkers/Leaflet.MakiMarkers.js @@ -0,0 +1,108 @@ +/* + * Leaflet plugin to create map icons using Maki Icons from MapBox. + * + * References: + * Maki Icons: https://www.mapbox.com/maki/ + * MapBox Marker API: https://www.mapbox.com/developers/api/static/#markers + * + * Usage: + * var icon = L.MakiMarkers.icon({icon: "rocket", color: "#b0b", size: "m"}); + * + * License: + * MIT: http://jseppi.mit-license.org/ + */ + /*global L:false */ +(function () { + "use strict"; + L.MakiMarkers = { + // Available Maki Icons + icons: ["airfield","airport","alcohol-shop","america-football","art-gallery","bakery","bank","bar", + "baseball","basketball","beer","bicycle","building","bus","cafe","camera","campsite","car", + "cemetery","chemist","cinema","circle-stroked","circle","city","clothing-store","college", + "commercial","cricket","cross","dam","danger","disability","dog-park","embassy", + "emergency-telephone","entrance","farm","fast-food","ferry","fire-station","fuel","garden", + "golf","grocery","hairdresser","harbor","heart","heliport","hospital","industrial", + "land-use","laundry","library","lighthouse","lodging","logging","london-underground", + "marker-stroked","marker","minefield","mobilephone","monument","museum","music","oil-well", + "park2","park","parking-garage","parking","pharmacy","pitch","place-of-worship", + "playground","police","polling-place","post","prison","rail-above","rail-light", + "rail-metro","rail-underground","rail","religious-christian","religious-jewish", + "religious-muslim","restaurant","roadblock","rocket","school","scooter","shop","skiing", + "slaughterhouse","soccer","square-stroked","square","star-stroked","star","suitcase", + "swimming","telephone","tennis","theatre","toilets","town-hall","town","triangle-stroked", + "triangle","village","warehouse","waste-basket","water","wetland","zoo" + ], + defaultColor: "#0a0", + defaultIcon: "circle-stroked", + defaultSize: "m", + apiUrl: "https://api.tiles.mapbox.com/v3/marker/", + smallOptions: { + iconSize: [20, 50], + popupAnchor: [0,-20] + }, + mediumOptions: { + iconSize: [30,70], + popupAnchor: [0,-30] + }, + largeOptions: { + iconSize: [36,90], + popupAnchor: [0,-40] + } + }; + + L.MakiMarkers.Icon = L.Icon.extend({ + options: { + //Maki icon: any from https://www.mapbox.com/maki/ (ref: L.MakiMarkers.icons) + icon: L.MakiMarkers.defaultIcon, + //Marker color: short or long form hex color code + color: L.MakiMarkers.defaultColor, + //Marker size: "s" (small), "m" (medium), or "l" (large) + size: L.MakiMarkers.defaultSize, + shadowAnchor: null, + shadowSize: null, + shadowUrl: null, + className: "maki-marker" + }, + + initialize: function(options) { + var pin; + + options = L.setOptions(this, options); + + switch (options.size) { + case "s": + L.extend(options, L.MakiMarkers.smallOptions); + break; + case "l": + L.extend(options, L.MakiMarkers.largeOptions); + break; + default: + options.size = "m"; + L.extend(options, L.MakiMarkers.mediumOptions); + break; + } + + + pin = "pin-" + options.size; + + if (options.icon !== null) { + pin += "-" + options.icon; + } + + if (options.color !== null) { + if (options.color.charAt(0) === "#") { + options.color = options.color.substr(1); + } + + pin += "+" + options.color; + } + + options.iconUrl = "" + L.MakiMarkers.apiUrl + pin + ".png"; + options.iconRetinaUrl = L.MakiMarkers.apiUrl + pin + "@2x.png"; + } + }); + + L.MakiMarkers.icon = function(options) { + return new L.MakiMarkers.Icon(options); + }; +})(); diff --git a/bower_components/Leaflet.MakiMarkers/README.md b/bower_components/Leaflet.MakiMarkers/README.md new file mode 100644 index 00000000..8f95d731 --- /dev/null +++ b/bower_components/Leaflet.MakiMarkers/README.md @@ -0,0 +1,32 @@ +# Leaflet.MakiMarkers + +[Leaflet](http://www.leafletjs.com) plugin to create map icons using [Maki Icons](https://www.mapbox.com/maki/) from MapBox. Markers are retrieved from MapBox's [Static Marker API](https://www.mapbox.com/developers/api/static/#markers). + +[![Screenshot](https://raw.github.com/jseppi/Leaflet.MakiMarkers/master/images/screenshot.png "Screenshot of MakiMarkers")](http://jsfiddle.net/Zhzvp/) + +## Usage + +Simply include `Leaflet.MakiMarkers.js` in your page after you include `Leaflet.js`: `` + +```js +// Specify a Maki icon name, hex color, and size (s, m, or l). +// An array of icon names can be found in L.MakiMarkers.icons or at https://www.mapbox.com/maki/ +// Lowercase letters a-z and digits 0-9 can also be used. A value of null will result in no icon. +// Color may also be set to null, which will result in a gray marker. +var icon = L.MakiMarkers.icon({icon: "rocket", color: "#b0b", size: "m"}); +L.marker([30.287, -97.72], {icon: icon}).addTo(map); +``` + +[JSFiddle Demo](http://jsfiddle.net/Zhzvp/26/) + +## Requirements + +[Leaflet](http://www.leafletjs.com) 0.5+ + +## Thanks + +Thanks to [MapBox](http://www.mapbox.com) for making their Marker API available and for the Maki icon set. + + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/jseppi/leaflet.makimarkers/trend.png)](https://bitdeli.com/free "Bitdeli Badge") + diff --git a/bower_components/Leaflet.MakiMarkers/bower.json b/bower_components/Leaflet.MakiMarkers/bower.json new file mode 100644 index 00000000..c0579917 --- /dev/null +++ b/bower_components/Leaflet.MakiMarkers/bower.json @@ -0,0 +1,24 @@ +{ + "name": "Leaflet.MakiMarkers", + "main": "Leaflet.MakiMarkers.js", + "version": "1.0.1", + "homepage": "https://github.com/jseppi/Leaflet.MakiMarkers", + "authors": [ + "James Seppi " + ], + "description": "Leaflet plugin to create map icons using Maki Icons from MapBox", + "keywords": [ + "leaflet", + "maki", + "markers", + "mapbox" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} diff --git a/bower_components/Leaflet.MakiMarkers/images/screenshot.png b/bower_components/Leaflet.MakiMarkers/images/screenshot.png new file mode 100644 index 00000000..616d8e52 Binary files /dev/null and b/bower_components/Leaflet.MakiMarkers/images/screenshot.png differ diff --git a/bower_components/Leaflet.MakiMarkers/index.html b/bower_components/Leaflet.MakiMarkers/index.html new file mode 100644 index 00000000..40a40471 --- /dev/null +++ b/bower_components/Leaflet.MakiMarkers/index.html @@ -0,0 +1,76 @@ + + + + + Leaflet.MakiMarkers Example + + + + + + + + + +
+ + + + diff --git a/bower_components/Leaflet.PolylineDecorator/.bower.json b/bower_components/Leaflet.PolylineDecorator/.bower.json new file mode 100644 index 00000000..36383576 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/.bower.json @@ -0,0 +1,35 @@ +{ + "name": "leaflet-polylinedecorator", + "main": "leaflet.polylineDecorator.js", + "version": "1.0.0", + "authors": [ + "Benjamin Becquet" + ], + "description": "A plug-in for the JS map library Leaflet, allowing to define patterns (like dashes, arrows, icons, etc.) on Polylines.", + "keywords": [ + "Leaflet", + "Leaflet PolylineDecorator" + ], + "repository": { + "type": "git", + "url": "git@github.com:bbecquet/Leaflet.PolylineDecorator.git" + }, + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "homepage": "https://github.com/bbecquet/Leaflet.PolylineDecorator", + "_release": "1.0.0", + "_resolution": { + "type": "version", + "tag": "v1.0.0", + "commit": "14551665f39e565a99a661ea6b665fa4305a4aae" + }, + "_source": "git://github.com/bbecquet/Leaflet.PolylineDecorator.git", + "_target": "*", + "_originalSource": "bbecquet/Leaflet.PolylineDecorator" +} \ No newline at end of file diff --git a/bower_components/Leaflet.PolylineDecorator/LICENSE b/bower_components/Leaflet.PolylineDecorator/LICENSE new file mode 100644 index 00000000..37851f10 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2013 Benjamin Becquet + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/bower_components/Leaflet.PolylineDecorator/README.md b/bower_components/Leaflet.PolylineDecorator/README.md new file mode 100644 index 00000000..6ee3c9d2 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/README.md @@ -0,0 +1,66 @@ +# Leaflet PolylineDecorator + +A Leaflet plug-in to define and draw patterns on existing Polylines or along coordinate paths. + +## Compatibility with Leaflet versions + +The development version of the plugin (on the `master` branch) is targeted at the 1.x version of Leaflet. + +For a version of the plugin compatible with the 0.7.x Leaflet release, use the `leaflet-0.7.2` branch. + +## Features + +* Dashed or dotted lines, arrow heads, markers following line +* Works on Polygons too! (easy, as Polygon extends Polyline) +* Multiple patterns can be applied to the same line +* New behaviors can be obtained by defining new symbols + +## Screenshot + +![screenshot](https://raw.github.com/bbecquet/Leaflet.PolylineDecorator/master/screenshot.png "Screenshot showing different applications of the library") + +## Usage + +To create a decorator and add it to the map: `L.polylineDecorator(latlngs, options).addTo(map);` + +### `latlngs` + +Can be one of the following types: + + * `L.Polyline` + * `L.Polygon` + * an array of `L.LatLng`, or with Leaflet's simplified syntax, an array of 2-cells arrays of coordinates + * an array of any of these previous types, to apply the same patterns to multiple lines + +Passing coordinate arrays instead of polyline/polygon objects is useful if you just want to draw patterns following coordinates, but not the line itself. + +### `options` + +Has a single property `patterns`, which is an array of pattern definitions, each defined by the following properties: + +Property | Type | Required | Description +--- | --- | --- | --- +`offset`| *see below* | No | Offset of the first pattern symbol, from the start point of the line. Default: 0. +`endOffset`| *see below* | No | Minimum offset of the last pattern symbol, from the end point of the line. Default: 0. +`repeat`| *see below* | Yes | Repetition interval of the pattern symbols. Defines the distance between each consecutive symbol's anchor point. +`symbol`| Symbol factory | Yes | Instance of a symbol factory class. + +`offset`, `endOffset` and `repeat` can be each defined as a number, in pixels, or in percentage of the line's length, as a string (ex: `'10%'`); + +## Example + +```javascript +var polyline = L.polyline([...]).addTo(map); +var decorator = L.polylineDecorator(polyline, { + patterns: [ + // define a pattern of 10px-wide dashes, repeated every 20px on the line + {offset: 0, repeat: 20, symbol: L.Symbol.dash({pixelSize: 10})} + ] +}).addTo(map); +``` + +## Performance note + +Please note that this library is in an early stage, and many operations could still be optimized. +Moreover, as it requires a lot of (re-)computations, and each pattern symbol is an actual `L.ILayer` object, it can have an impact on the responsiveness of your map, especially if used on many objects. +In cases where it's applicable (dash patterns), you should probably use instead the `dashArray` property of `L.Path`, as it's natively drawn by the browser. diff --git a/bower_components/Leaflet.PolylineDecorator/bower.json b/bower_components/Leaflet.PolylineDecorator/bower.json new file mode 100644 index 00000000..1c861c80 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/bower.json @@ -0,0 +1,25 @@ +{ + "name": "leaflet-polylinedecorator", + "main": "leaflet.polylineDecorator.js", + "version": "0.7.2", + "authors": [ + "Benjamin Becquet" + ], + "description": "A plug-in for the JS map library Leaflet, allowing to define patterns (like dashes, arrows, icons, etc.) on Polylines.", + "keywords": [ + "Leaflet", + "Leaflet PolylineDecorator" + ], + "repository": { + "type": "git", + "url": "git@github.com:bbecquet/Leaflet.PolylineDecorator.git" + }, + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} diff --git a/bower_components/Leaflet.PolylineDecorator/example/example.html b/bower_components/Leaflet.PolylineDecorator/example/example.html new file mode 100644 index 00000000..ef859a91 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/example/example.html @@ -0,0 +1,25 @@ + + + + + + + Leaflet Polyline Decorator example + + + + + + + + + + + +
+ + diff --git a/bower_components/Leaflet.PolylineDecorator/example/example.js b/bower_components/Leaflet.PolylineDecorator/example/example.js new file mode 100644 index 00000000..0ba0a604 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/example/example.js @@ -0,0 +1,87 @@ + +function init() { + var map = new L.Map('map', { + center: [52.0, -11.0], + zoom: 5, + layers: [ + new L.TileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', { + attribution: 'Tiles Courtesy of MapQuest — Map data © OpenStreetMap contributors', + maxZoom: 18, + subdomains: '1234' + }) + ] + }); + + // --- Arrow, with animation to demonstrate the use of setPatterns --- + var arrow = L.polyline([[57, -19], [60, -12]], {}).addTo(map); + var arrowHead = L.polylineDecorator(arrow).addTo(map); + + var arrowOffset = 0; + var anim = window.setInterval(function() { + arrowHead.setPatterns([ + {offset: arrowOffset+'%', repeat: 0, symbol: L.Symbol.arrowHead({pixelSize: 15, polygon: false, pathOptions: {stroke: true}})} + ]) + if(++arrowOffset > 100) + arrowOffset = 0; + }, 100); + + // --- Polygon, with an inner ring --- + var polygon = L.polygon([[[54, -6], [55, -7], [56, -2], [55, 1], [53, 0]], [[54, -3], [54, -2], [55, -1], [55, -5]]], {color: "#ff7800", weight: 1}).addTo(map); + var pd = L.polylineDecorator(polygon, { + patterns: [ + {offset: 0, repeat: 10, symbol: L.Symbol.dash({pixelSize: 0})} + ] + }).addTo(map); + + // --- Multi-pattern without Polyline --- + var pathPattern = L.polylineDecorator( + [ [ 49.543519, -12.469833 ], [ 49.808981, -12.895285 ], [ 50.056511, -13.555761 ], [ 50.217431, -14.758789 ], [ 50.476537, -15.226512 ], [ 50.377111, -15.706069 ], [ 50.200275, -16.000263 ], [ 49.860606, -15.414253 ], [ 49.672607, -15.710152 ], [ 49.863344, -16.451037 ], [ 49.774564, -16.875042 ], [ 49.498612, -17.106036 ], [ 49.435619, -17.953064 ], [ 49.041792, -19.118781 ], [ 48.548541, -20.496888 ], [ 47.930749, -22.391501 ], [ 47.547723, -23.781959 ], [ 47.095761, -24.941630 ], [ 46.282478, -25.178463 ], [ 45.409508, -25.601434 ], [ 44.833574, -25.346101 ], [ 44.039720, -24.988345 ] ], + { + patterns: [ + { offset: 12, repeat: 25, symbol: L.Symbol.dash({pixelSize: 10, pathOptions: {color: '#f00', weight: 2}}) }, + { offset: 0, repeat: 25, symbol: L.Symbol.dash({pixelSize: 0}) } + ] + } + ).addTo(map); + + // --- Markers proportionnaly located --- + var markerLine = L.polyline([[58.44773, -28.65234], [52.9354, -23.33496], [53.01478, -14.32617], [58.1707, -10.37109], [59.68993, -0.65918]], {}).addTo(map); + var markerPatterns = L.polylineDecorator(markerLine, { + patterns: [ + { offset: '5%', repeat: '10%', symbol: L.Symbol.marker()} + ] + }).addTo(map); + + // --- Example with a rotated marker --- + var pathPattern = L.polylineDecorator( + [ [ 42.9, -15 ], [ 44.18, -11.4 ], [ 45.77, -8.0 ], [ 47.61, -6.4 ], [ 49.41, -6.1 ], [ 51.01, -7.2 ] ], + { + patterns: [ + { offset: 0, repeat: 10, symbol: L.Symbol.dash({pixelSize: 5, pathOptions: {color: '#000', weight: 1, opacity: 0.2}}) }, + { offset: '16%', repeat: '33%', symbol: L.Symbol.marker({rotate: true, markerOptions: { + icon: L.icon({ + iconUrl: 'icon_plane.png', + iconAnchor: [16, 16] + }) + }})} + ] + } + ).addTo(map); + + // --- Example with an array of Polylines --- + var multiCoords1 = [ + [[47.5468, -0.7910], [48.8068, -0.1318], [49.1242, 1.6699], [49.4966, 3.2958], [51.4266, 2.8564], [51.7542, 2.1093]], + [[48.0193, -2.8125], [46.3165, -2.8564], [44.9336, -1.0107], [44.5278, 1.5820], [44.8714, 3.7353], [45.8287, 5.1855], [48.1953, 5.1416]], + [[45.9205, 0.4394], [46.7699, 0.9228], [47.6061, 2.5488], [47.7540, 3.3837]] + ]; + var plArray = []; + for(var i=0; i 0 ? this.getPointPathPixelLength(pts) * endOffsetRatio : 0; + + positions.push(previous); + if(repeatRatio > 0) { + // 3. consider only the rest of the path, starting at the previous point + var remainingPath = pts; + remainingPath = remainingPath.slice(previous.predecessor); + + remainingPath[0] = previous.pt; + var remainingLength = this.getPointPathPixelLength(remainingPath); + + // 4. project as a ratio of the remaining length, + // and repeat while there is room for another point of the pattern + + while(repeatIntervalLength <= remainingLength-endOffsetPixels) { + previous = this.interpolateOnPointPath(remainingPath, repeatIntervalLength/remainingLength); + positions.push(previous); + remainingPath = remainingPath.slice(previous.predecessor); + remainingPath[0] = previous.pt; + remainingLength = this.getPointPathPixelLength(remainingPath); + } + } + return positions; + }, + + /** + * pts: array of L.Point + * ratio: the ratio of the total length where the point should be computed + * Returns null if ll has less than 2 LatLng, or an object with the following properties: + * latLng: the LatLng of the interpolated point + * predecessor: the index of the previous vertex on the path + * heading: the heading of the path at this point, in degrees + */ + interpolateOnPointPath: function (pts, ratio) { + var nbVertices = pts.length; + + if (nbVertices < 2) { + return null; + } + // easy limit cases: ratio negative/zero => first vertex + if (ratio <= 0) { + return { + pt: pts[0], + predecessor: 0, + heading: this.computeAngle(pts[0], pts[1]) + }; + } + // ratio >=1 => last vertex + if (ratio >= 1) { + return { + pt: pts[nbVertices - 1], + predecessor: nbVertices - 1, + heading: this.computeAngle(pts[nbVertices - 2], pts[nbVertices - 1]) + }; + } + // 1-segment-only path => direct linear interpolation + if (nbVertices == 2) { + return { + pt: this.interpolateBetweenPoints(pts[0], pts[1], ratio), + predecessor: 0, + heading: this.computeAngle(pts[0], pts[1]) + }; + } + + var pathLength = this.getPointPathPixelLength(pts); + var a = pts[0], b = a, + ratioA = 0, ratioB = 0, + distB = 0; + // follow the path segments until we find the one + // on which the point must lie => [ab] + var i = 1; + for (; i < nbVertices && ratioB < ratio; i++) { + a = b; + ratioA = ratioB; + b = pts[i]; + distB += a.distanceTo(b); + ratioB = distB / pathLength; + } + + // compute the ratio relative to the segment [ab] + var segmentRatio = (ratio - ratioA) / (ratioB - ratioA); + + return { + pt: this.interpolateBetweenPoints(a, b, segmentRatio), + predecessor: i-2, + heading: this.computeAngle(a, b) + }; + }, + + /** + * Finds the point which lies on the segment defined by points A and B, + * at the given ratio of the distance from A to B, by linear interpolation. + */ + interpolateBetweenPoints: function (ptA, ptB, ratio) { + if(ptB.x != ptA.x) { + return new L.Point( + (ptA.x * (1 - ratio)) + (ratio * ptB.x), + (ptA.y * (1 - ratio)) + (ratio * ptB.y) + ); + } + // special case where points lie on the same vertical axis + return new L.Point(ptA.x, ptA.y + (ptB.y - ptA.y) * ratio); + } +}; + +L.PolylineDecorator = L.LayerGroup.extend({ + options: { + patterns: [] + }, + + initialize: function(paths, options) { + L.LayerGroup.prototype.initialize.call(this); + L.Util.setOptions(this, options); + this._map = null; + this._initPaths(paths); + this._initPatterns(); + }, + + /** + * Deals with all the different cases. p can be one of these types: + * array of LatLng, array of 2-number arrays, Polyline, Polygon, + * array of one of the previous. + */ + _initPaths: function(p) { + this._paths = []; + var isPolygon = false; + if(p instanceof L.Polyline) { + this._initPath(p.getLatLngs(), (p instanceof L.Polygon)); + } else if(L.Util.isArray(p) && p.length > 0) { + if(p[0] instanceof L.Polyline) { + for(var i=0; i 0 && ( + ll[0] instanceof L.LatLng || + (L.Util.isArray(ll[0]) && ll[0].length == 2 && typeof ll[0][0] === 'number') + )); + }, + + _initPath: function(path, isPolygon) { + var latLngs; + // It may still be an array of array of coordinates + // (ex: polygon with rings) + if(this._isCoordArray(path)) { + latLngs = [path]; + } else { + latLngs = path; + } + for(var i=0; i= v0.6, last polygon vertex (=first) isn't repeated. + // Our algorithm needs it, so we add it back explicitly. + if(isPolygon) { + latLngs[i].push(latLngs[i][0]); + } + this._paths.push(latLngs[i]); + } + }, + + _initPatterns: function() { + this._isZoomDependant = false; + this._patterns = []; + var pattern; + // parse pattern definitions and precompute some values + for(var i=0;i 0); + } + + if(typeof patternDef.endOffset === 'string' && patternDef.endOffset.indexOf('%') != -1) { + pattern.endOffset = parseFloat(patternDef.endOffset) / 100; + } else { + pattern.endOffset = patternDef.endOffset ? parseFloat(patternDef.endOffset) : 0; + pattern.isEndOffsetInPixels = (pattern.endOffset > 0); + } + + if(typeof patternDef.repeat === 'string' && patternDef.repeat.indexOf('%') != -1) { + pattern.repeat = parseFloat(patternDef.repeat) / 100; + } else { + pattern.repeat = parseFloat(patternDef.repeat); + pattern.isRepeatInPixels = (pattern.repeat > 0); + } + + // TODO: 0 => not pixel dependant => 0% + + return(pattern); + }, + + onAdd: function (map) { + this._map = map; + this._draw(); + // listen to zoom changes to redraw pixel-spaced patterns + if(this._isZoomDependant) { + this._map.on('zoomend', this._softRedraw, this); + } + }, + + onRemove: function (map) { + // remove optional map zoom listener + this._map.off('zoomend', this._softRedraw, this); + this._map = null; + L.LayerGroup.prototype.onRemove.call(this, map); + }, + + /** + * Returns an array of ILayers object + */ + _buildSymbols: function(latLngs, symbolFactory, directionPoints) { + var symbols = []; + for(var i=0, l=directionPoints.length; i 0 ? this.getPointPathPixelLength(pts) * endOffsetRatio : 0; + + positions.push(previous); + if(repeatRatio > 0) { + // 3. consider only the rest of the path, starting at the previous point + var remainingPath = pts; + remainingPath = remainingPath.slice(previous.predecessor); + + remainingPath[0] = previous.pt; + var remainingLength = this.getPointPathPixelLength(remainingPath); + + // 4. project as a ratio of the remaining length, + // and repeat while there is room for another point of the pattern + + while(repeatIntervalLength <= remainingLength-endOffsetPixels) { + previous = this.interpolateOnPointPath(remainingPath, repeatIntervalLength/remainingLength); + positions.push(previous); + remainingPath = remainingPath.slice(previous.predecessor); + remainingPath[0] = previous.pt; + remainingLength = this.getPointPathPixelLength(remainingPath); + } + } + return positions; + }, + + /** + * pts: array of L.Point + * ratio: the ratio of the total length where the point should be computed + * Returns null if ll has less than 2 LatLng, or an object with the following properties: + * latLng: the LatLng of the interpolated point + * predecessor: the index of the previous vertex on the path + * heading: the heading of the path at this point, in degrees + */ + interpolateOnPointPath: function (pts, ratio) { + var nbVertices = pts.length; + + if (nbVertices < 2) { + return null; + } + // easy limit cases: ratio negative/zero => first vertex + if (ratio <= 0) { + return { + pt: pts[0], + predecessor: 0, + heading: this.computeAngle(pts[0], pts[1]) + }; + } + // ratio >=1 => last vertex + if (ratio >= 1) { + return { + pt: pts[nbVertices - 1], + predecessor: nbVertices - 1, + heading: this.computeAngle(pts[nbVertices - 2], pts[nbVertices - 1]) + }; + } + // 1-segment-only path => direct linear interpolation + if (nbVertices == 2) { + return { + pt: this.interpolateBetweenPoints(pts[0], pts[1], ratio), + predecessor: 0, + heading: this.computeAngle(pts[0], pts[1]) + }; + } + + var pathLength = this.getPointPathPixelLength(pts); + var a = pts[0], b = a, + ratioA = 0, ratioB = 0, + distB = 0; + // follow the path segments until we find the one + // on which the point must lie => [ab] + var i = 1; + for (; i < nbVertices && ratioB < ratio; i++) { + a = b; + ratioA = ratioB; + b = pts[i]; + distB += a.distanceTo(b); + ratioB = distB / pathLength; + } + + // compute the ratio relative to the segment [ab] + var segmentRatio = (ratio - ratioA) / (ratioB - ratioA); + + return { + pt: this.interpolateBetweenPoints(a, b, segmentRatio), + predecessor: i-2, + heading: this.computeAngle(a, b) + }; + }, + + /** + * Finds the point which lies on the segment defined by points A and B, + * at the given ratio of the distance from A to B, by linear interpolation. + */ + interpolateBetweenPoints: function (ptA, ptB, ratio) { + if(ptB.x != ptA.x) { + return new L.Point( + (ptA.x * (1 - ratio)) + (ratio * ptB.x), + (ptA.y * (1 - ratio)) + (ratio * ptB.y) + ); + } + // special case where points lie on the same vertical axis + return new L.Point(ptA.x, ptA.y + (ptB.y - ptA.y) * ratio); + } +}; \ No newline at end of file diff --git a/bower_components/Leaflet.PolylineDecorator/src/L.PolylineDecorator.js b/bower_components/Leaflet.PolylineDecorator/src/L.PolylineDecorator.js new file mode 100644 index 00000000..12baf803 --- /dev/null +++ b/bower_components/Leaflet.PolylineDecorator/src/L.PolylineDecorator.js @@ -0,0 +1,265 @@ + +L.PolylineDecorator = L.LayerGroup.extend({ + options: { + patterns: [] + }, + + initialize: function(paths, options) { + L.LayerGroup.prototype.initialize.call(this); + L.Util.setOptions(this, options); + this._map = null; + this._initPaths(paths); + this._initPatterns(); + }, + + /** + * Deals with all the different cases. p can be one of these types: + * array of LatLng, array of 2-number arrays, Polyline, Polygon, + * array of one of the previous. + */ + _initPaths: function(p) { + this._paths = []; + var isPolygon = false; + if(p instanceof L.Polyline) { + this._initPath(p.getLatLngs(), (p instanceof L.Polygon)); + } else if(L.Util.isArray(p) && p.length > 0) { + if(p[0] instanceof L.Polyline) { + for(var i=0; i 0 && ( + ll[0] instanceof L.LatLng || + (L.Util.isArray(ll[0]) && ll[0].length == 2 && typeof ll[0][0] === 'number') + )); + }, + + _initPath: function(path, isPolygon) { + var latLngs; + // It may still be an array of array of coordinates + // (ex: polygon with rings) + if(this._isCoordArray(path)) { + latLngs = [path]; + } else { + latLngs = path; + } + for(var i=0; i= v0.6, last polygon vertex (=first) isn't repeated. + // Our algorithm needs it, so we add it back explicitly. + if(isPolygon) { + latLngs[i].push(latLngs[i][0]); + } + this._paths.push(latLngs[i]); + } + }, + + _initPatterns: function() { + this._isZoomDependant = false; + this._patterns = []; + var pattern; + // parse pattern definitions and precompute some values + for(var i=0;i 0); + } + + if(typeof patternDef.endOffset === 'string' && patternDef.endOffset.indexOf('%') != -1) { + pattern.endOffset = parseFloat(patternDef.endOffset) / 100; + } else { + pattern.endOffset = patternDef.endOffset ? parseFloat(patternDef.endOffset) : 0; + pattern.isEndOffsetInPixels = (pattern.endOffset > 0); + } + + if(typeof patternDef.repeat === 'string' && patternDef.repeat.indexOf('%') != -1) { + pattern.repeat = parseFloat(patternDef.repeat) / 100; + } else { + pattern.repeat = parseFloat(patternDef.repeat); + pattern.isRepeatInPixels = (pattern.repeat > 0); + } + + return(pattern); + }, + + onAdd: function (map) { + this._map = map; + this._draw(); + // listen to zoom changes to redraw pixel-spaced patterns + if(this._isZoomDependant) { + this._map.on('zoomend', this._softRedraw, this); + } + }, + + onRemove: function (map) { + // remove optional map zoom listener + this._map.off('zoomend', this._softRedraw, this); + this._map = null; + L.LayerGroup.prototype.onRemove.call(this, map); + }, + + /** + * Returns an array of ILayers object + */ + _buildSymbols: function(latLngs, symbolFactory, directionPoints) { + var symbols = []; + for(var i=0, l=directionPoints.length; i" + ], + "description": "Colorful iconic & retina-proof markers for Leaflet, based on the Glyphicons / Font-Awesome icons", + "main": [ + "dist/leaflet.awesome-markers.css", + "dist/leaflet.awesome-markers.js" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "_release": "2.0.2", + "_resolution": { + "type": "version", + "tag": "v2.0.2", + "commit": "bfac1eb6f7896072d690bde57c1fb5002961a99a" + }, + "_source": "git://github.com/lvoogdt/Leaflet.awesome-markers.git", + "_target": "*", + "_originalSource": "Leaflet.awesome-markers" +} \ No newline at end of file diff --git a/bower_components/Leaflet.awesome-markers/LICENSE b/bower_components/Leaflet.awesome-markers/LICENSE new file mode 100644 index 00000000..a8654fe7 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/LICENSE @@ -0,0 +1,7 @@ +Copyright (C) 2013 L. Voogdt + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/bower_components/Leaflet.awesome-markers/README.md b/bower_components/Leaflet.awesome-markers/README.md new file mode 100644 index 00000000..deb6f9c7 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/README.md @@ -0,0 +1,88 @@ +# Leaflet.awesome-markers plugin v2.0 +Colorful iconic & retina-proof markers for Leaflet, based on the Glyphicons / Font-Awesome icons + +Version 2.0 of Leaflet.awesome-markers is tested with: +- Bootstrap 3 +- Font Awesome 4.0 +- Leaflet 0.5-Latest + +For bootstrap 2.x & Fontawesome 3.x use Leaflet.awesome-markers v1.0 + +## Screenshots +![AwesomeMarkers screenshot](https://raw.github.com/lvoogdt/Leaflet.awesome-markers/master/screenshots/screenshot-soft.png "Screenshot of AwesomeMarkers") + +JSfiddle demo + +### Twitter Bootstrap/Font-Awesome icons +This plugin depends on either Bootstrap or Font-Awesome for the rendering of the icons. See these urls for more information: + +For Font-Awesome +- http://fortawesome.github.com/Font-Awesome/ +- http://fortawesome.github.com/Font-Awesome/#integration + +For Twitter bootstrap: +- http://twitter.github.com/bootstrap/ + +## Using the plugin +- 1) First, follow the steps for including Font-Awesome or Twitter bootstrap into your application. + +For Font-Awesome, steps are located here: + +http://fortawesome.github.io/Font-Awesome/get-started/ + +For Twitter bootstrap, steps are here: + +http://getbootstrap.com/getting-started/ + + +- 2) Next, copy the dist/images directory, awesome-markers.css, and awesome-markers.js to your project and include them: +````xml + +```` +````xml + +```` + +- 3) Now use the plugin to create a marker like this: +````js + // Creates a red marker with the coffee icon + var redMarker = L.AwesomeMarkers.icon({ + icon: 'coffee', + markerColor: 'red' + }); + + L.marker([51.941196,4.512291], {icon: redMarker}).addTo(map); +```` + +### Properties + +| Property | Description | Default Value | Possible values | +| --------------- | ---------------------- | ------------- | ---------------------------------------------------- | +| icon | Name of the icon | 'home' | See glyphicons or font-awesome | +| prefix | Select de icon library | 'glyphicon' | 'fa' for font-awesome or 'glyphicon' for bootstrap 3 | +| markerColor | Color of the marker | 'blue' | 'red', 'darkred', 'orange', 'green', 'darkgreen', 'blue', 'purple', 'darkpuple', 'cadetblue' | +| iconColor | Color of the icon | 'white' | 'white', 'black' or css code (hex, rgba etc) | +| spin | Make the icon spin | false | true or false. Font-awesome required | +| extraClasses | Additional classes in the created tag | '' | 'fa-rotate90 myclass' eller other custom configuration | + + +### Supported icons +The 'icon' property supports these strings: +- 'home' +- 'glass' +- 'flag' +- 'star' +- 'bookmark' +- .... and many more, see: http://fortawesome.github.io/Font-Awesome/icons/ +- Or: http://getbootstrap.com/components/#glyphicons + +## License +- Leaflet.AwesomeMarkers and colored markers are licensed under the MIT License - http://opensource.org/licenses/mit-license.html. +- Font Awesome: http://fortawesome.github.io/Font-Awesome/license/ +- Twitter Bootstrap: http://getbootstrap.com/ + +## Contact +- Email: lvoogdt@gmail.com +- Website: http://lennardvoogdt.nl + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/lvoogdt/leaflet.awesome-markers/trend.png)](https://bitdeli.com/free "Bitdeli Badge") diff --git a/bower_components/Leaflet.awesome-markers/bower.json b/bower_components/Leaflet.awesome-markers/bower.json new file mode 100644 index 00000000..4589cc32 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/bower.json @@ -0,0 +1,21 @@ +{ + "name": "Leaflet.awesome-markers", + "version": "2.0.2", + "homepage": "https://github.com/lvoogdt/Leaflet.awesome-markers", + "authors": [ + "Lennard Voogdt " + ], + "description": "Colorful iconic & retina-proof markers for Leaflet, based on the Glyphicons / Font-Awesome icons", + "main": [ + "dist/leaflet.awesome-markers.css", + "dist/leaflet.awesome-markers.js" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} diff --git a/examples/plugins/awesome-markers/images/markers-matte.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-matte.png similarity index 100% rename from examples/plugins/awesome-markers/images/markers-matte.png rename to bower_components/Leaflet.awesome-markers/dist/images/markers-matte.png diff --git a/examples/plugins/awesome-markers/images/markers-matte@2x.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-matte@2x.png similarity index 100% rename from examples/plugins/awesome-markers/images/markers-matte@2x.png rename to bower_components/Leaflet.awesome-markers/dist/images/markers-matte@2x.png diff --git a/examples/plugins/awesome-markers/images/markers-plain.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-plain.png similarity index 100% rename from examples/plugins/awesome-markers/images/markers-plain.png rename to bower_components/Leaflet.awesome-markers/dist/images/markers-plain.png diff --git a/bower_components/Leaflet.awesome-markers/dist/images/markers-shadow.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-shadow.png new file mode 100644 index 00000000..33cf9550 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/dist/images/markers-shadow.png differ diff --git a/bower_components/Leaflet.awesome-markers/dist/images/markers-shadow@2x.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-shadow@2x.png new file mode 100644 index 00000000..1116503f Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/dist/images/markers-shadow@2x.png differ diff --git a/bower_components/Leaflet.awesome-markers/dist/images/markers-soft.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-soft.png new file mode 100644 index 00000000..9ee4c348 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/dist/images/markers-soft.png differ diff --git a/bower_components/Leaflet.awesome-markers/dist/images/markers-soft@2x.png b/bower_components/Leaflet.awesome-markers/dist/images/markers-soft@2x.png new file mode 100644 index 00000000..540ce637 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/dist/images/markers-soft@2x.png differ diff --git a/examples/plugins/awesome-markers/leaflet.awesome-markers.css b/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.css similarity index 71% rename from examples/plugins/awesome-markers/leaflet.awesome-markers.css rename to bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.css index e7f81957..588a99c8 100644 --- a/examples/plugins/awesome-markers/leaflet.awesome-markers.css +++ b/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.css @@ -1,4 +1,4 @@ -/* +/* Author: L. Voogdt License: MIT Version: 1.0 @@ -27,7 +27,7 @@ Version: 1.0 (-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) { .awesome-marker { background-image: url('images/markers-soft@2x.png'); - background-size: 360px 46px; + background-size: 720px 46px; } .awesome-marker-shadow { background-image: url('images/markers-shadow@2x.png'); @@ -55,10 +55,18 @@ Version: 1.0 background-position: -180px 0; } +.awesome-marker-icon-lightred { + background-position: -360px 0; +} + .awesome-marker-icon-orange { background-position: -36px 0; } +.awesome-marker-icon-beige { + background-position: -396px 0; +} + .awesome-marker-icon-green { background-position: -72px 0; } @@ -67,6 +75,10 @@ Version: 1.0 background-position: -252px 0; } +.awesome-marker-icon-lightgreen { + background-position: -432px 0; +} + .awesome-marker-icon-blue { background-position: -108px 0; } @@ -75,6 +87,10 @@ Version: 1.0 background-position: -216px 0; } +.awesome-marker-icon-lightblue { + background-position: -468px 0; +} + .awesome-marker-icon-purple { background-position: -144px 0; } @@ -83,6 +99,26 @@ Version: 1.0 background-position: -288px 0; } +.awesome-marker-icon-pink { + background-position: -504px 0; +} + .awesome-marker-icon-cadetblue { background-position: -324px 0; -} \ No newline at end of file +} + +.awesome-marker-icon-white { + background-position: -574px 0; +} + +.awesome-marker-icon-gray { + background-position: -648px 0; +} + +.awesome-marker-icon-lightgray { + background-position: -612px 0; +} + +.awesome-marker-icon-black { + background-position: -682px 0; +} diff --git a/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.js b/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.js new file mode 100644 index 00000000..7505b6f2 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.js @@ -0,0 +1,125 @@ +/* + Leaflet.AwesomeMarkers, a plugin that adds colorful iconic markers for Leaflet, based on the Font Awesome icons + (c) 2012-2013, Lennard Voogdt + + http://leafletjs.com + https://github.com/lvoogdt +*/ + +/*global L*/ + +(function (window, document, undefined) { + "use strict"; + /* + * Leaflet.AwesomeMarkers assumes that you have already included the Leaflet library. + */ + + L.AwesomeMarkers = {}; + + L.AwesomeMarkers.version = '2.0.1'; + + L.AwesomeMarkers.Icon = L.Icon.extend({ + options: { + iconSize: [35, 45], + iconAnchor: [17, 42], + popupAnchor: [1, -32], + shadowAnchor: [10, 12], + shadowSize: [36, 16], + className: 'awesome-marker', + prefix: 'glyphicon', + spinClass: 'fa-spin', + extraClasses: '', + icon: 'home', + markerColor: 'blue', + iconColor: 'white' + }, + + initialize: function (options) { + options = L.Util.setOptions(this, options); + }, + + createIcon: function () { + var div = document.createElement('div'), + options = this.options; + + if (options.icon) { + div.innerHTML = this._createInner(); + } + + if (options.bgPos) { + div.style.backgroundPosition = + (-options.bgPos.x) + 'px ' + (-options.bgPos.y) + 'px'; + } + + this._setIconStyles(div, 'icon-' + options.markerColor); + return div; + }, + + _createInner: function() { + var iconClass, iconSpinClass = "", iconColorClass = "", iconColorStyle = "", options = this.options; + + if(options.icon.slice(0,options.prefix.length+1) === options.prefix + "-") { + iconClass = options.icon; + } else { + iconClass = options.prefix + "-" + options.icon; + } + + if(options.spin && typeof options.spinClass === "string") { + iconSpinClass = options.spinClass; + } + + if(options.iconColor) { + if(options.iconColor === 'white' || options.iconColor === 'black') { + iconColorClass = "icon-" + options.iconColor; + } else { + iconColorStyle = "style='color: " + options.iconColor + "' "; + } + } + + return ""; + }, + + _setIconStyles: function (img, name) { + var options = this.options, + size = L.point(options[name === 'shadow' ? 'shadowSize' : 'iconSize']), + anchor; + + if (name === 'shadow') { + anchor = L.point(options.shadowAnchor || options.iconAnchor); + } else { + anchor = L.point(options.iconAnchor); + } + + if (!anchor && size) { + anchor = size.divideBy(2, true); + } + + img.className = 'awesome-marker-' + name + ' ' + options.className; + + if (anchor) { + img.style.marginLeft = (-anchor.x) + 'px'; + img.style.marginTop = (-anchor.y) + 'px'; + } + + if (size) { + img.style.width = size.x + 'px'; + img.style.height = size.y + 'px'; + } + }, + + createShadow: function () { + var div = document.createElement('div'); + + this._setIconStyles(div, 'shadow'); + return div; + } + }); + + L.AwesomeMarkers.icon = function (options) { + return new L.AwesomeMarkers.Icon(options); + }; + +}(this, document)); + + + diff --git a/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.min.js b/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.min.js new file mode 100644 index 00000000..376e57e6 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.min.js @@ -0,0 +1,7 @@ +/* + Leaflet.AwesomeMarkers, a plugin that adds colorful iconic markers for Leaflet, based on the Font Awesome icons + (c) 2012-2013, Lennard Voogdt + + http://leafletjs.com + https://github.com/lvoogdt +*//*global L*/(function(e,t,n){"use strict";L.AwesomeMarkers={};L.AwesomeMarkers.version="2.0.1";L.AwesomeMarkers.Icon=L.Icon.extend({options:{iconSize:[35,45],iconAnchor:[17,42],popupAnchor:[1,-32],shadowAnchor:[10,12],shadowSize:[36,16],className:"awesome-marker",prefix:"glyphicon",spinClass:"fa-spin",icon:"home",markerColor:"blue",iconColor:"white"},initialize:function(e){e=L.Util.setOptions(this,e)},createIcon:function(){var e=t.createElement("div"),n=this.options;n.icon&&(e.innerHTML=this._createInner());n.bgPos&&(e.style.backgroundPosition=-n.bgPos.x+"px "+ -n.bgPos.y+"px");this._setIconStyles(e,"icon-"+n.markerColor);return e},_createInner:function(){var e,t="",n="",r="",i=this.options;i.icon.slice(0,i.prefix.length+1)===i.prefix+"-"?e=i.icon:e=i.prefix+"-"+i.icon;i.spin&&typeof i.spinClass=="string"&&(t=i.spinClass);i.iconColor&&(i.iconColor==="white"||i.iconColor==="black"?n="icon-"+i.iconColor:r="style='color: "+i.iconColor+"' ");return""},_setIconStyles:function(e,t){var n=this.options,r=L.point(n[t==="shadow"?"shadowSize":"iconSize"]),i;t==="shadow"?i=L.point(n.shadowAnchor||n.iconAnchor):i=L.point(n.iconAnchor);!i&&r&&(i=r.divideBy(2,!0));e.className="awesome-marker-"+t+" "+n.className;if(i){e.style.marginLeft=-i.x+"px";e.style.marginTop=-i.y+"px"}if(r){e.style.width=r.x+"px";e.style.height=r.y+"px"}},createShadow:function(){var e=t.createElement("div");this._setIconStyles(e,"shadow");return e}});L.AwesomeMarkers.icon=function(e){return new L.AwesomeMarkers.Icon(e)}})(this,document); diff --git a/bower_components/Leaflet.awesome-markers/examples/basic-example.html b/bower_components/Leaflet.awesome-markers/examples/basic-example.html new file mode 100644 index 00000000..f031b610 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/examples/basic-example.html @@ -0,0 +1,45 @@ + + + + Awesome Markers Example: Basic + + + + + + + + + + +
+ + + + + + diff --git a/bower_components/Leaflet.awesome-markers/examples/css/font-awesome-ie7.min.css b/bower_components/Leaflet.awesome-markers/examples/css/font-awesome-ie7.min.css new file mode 100755 index 00000000..ae301609 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/examples/css/font-awesome-ie7.min.css @@ -0,0 +1,22 @@ +/*! + * Font Awesome 3.0.2 + * the iconic font designed for use with Twitter Bootstrap + * ------------------------------------------------------- + * The full suite of pictographic icons, examples, and documentation + * can be found at: http://fortawesome.github.com/Font-Awesome/ + * + * License + * ------------------------------------------------------- + * - The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL + * - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License - + * http://opensource.org/licenses/mit-license.html + * - The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/ + * - Attribution is no longer required in Font Awesome 3.0, but much appreciated: + * "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome" + + * Contact + * ------------------------------------------------------- + * Email: dave@davegandy.com + * Twitter: http://twitter.com/fortaweso_me + * Work: Lead Product Designer @ http://kyruus.com + */.icon-large{font-size:1.3333333333333333em;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;vertical-align:middle}.nav [class^="icon-"],.nav [class*=" icon-"]{vertical-align:inherit;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px}.nav [class^="icon-"].icon-large,.nav [class*=" icon-"].icon-large{vertical-align:-25%}.nav-pills [class^="icon-"].icon-large,.nav-tabs [class^="icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large{line-height:.75em;margin-top:-7px;padding-top:5px;margin-bottom:-5px;padding-bottom:4px}.btn [class^="icon-"].pull-left,.btn [class*=" icon-"].pull-left,.btn [class^="icon-"].pull-right,.btn [class*=" icon-"].pull-right{vertical-align:inherit}.btn [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large{margin-top:-0.5em}a [class^="icon-"],a [class*=" icon-"]{cursor:pointer}ul.icons{text-indent:-1.5em;margin-left:3em}.icon-glass{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-music{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-search{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-envelope{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-heart{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-star{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-star-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-user{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-film{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-th-large{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-th{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-th-list{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ok{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-remove{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-zoom-in{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-zoom-out{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-off{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-signal{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cog{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-trash{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-home{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-file{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-time{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-road{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-download-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-download{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-upload{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-inbox{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-play-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-repeat{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-refresh{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-lock{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-flag{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-headphones{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-volume-off{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-volume-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-volume-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-qrcode{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-barcode{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tag{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tags{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-book{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bookmark{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-print{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-camera{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-font{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bold{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-italic{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-text-height{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-text-width{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-center{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-justify{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-indent-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-indent-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-facetime-video{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-picture{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pencil{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-map-marker{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-adjust{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tint{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-edit{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-share{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-check{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-move{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-step-backward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fast-backward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-backward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-play{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pause{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-stop{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-forward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fast-forward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-step-forward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-eject{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plus-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-minus-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-remove-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ok-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-question-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-info-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-screenshot{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-remove-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ok-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ban-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-share-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-full{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-small{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plus{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-minus{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-asterisk{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-exclamation-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-gift{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-leaf{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fire{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-eye-open{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-eye-close{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-warning-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plane{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-calendar{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-random{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comment{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-magnet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-retweet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-shopping-cart{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-close{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-open{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-vertical{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-horizontal{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bar-chart{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-twitter-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-facebook-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-camera-retro{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-key{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cogs{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comments{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-thumbs-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-thumbs-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-star-half{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-heart-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-signout{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-linkedin-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pushpin{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-external-link{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-signin{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-trophy{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-github-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-upload-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-lemon{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-phone{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-check-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bookmark-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-phone-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-twitter{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-facebook{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-github{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-unlock{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-credit-card{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-rss{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hdd{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bullhorn{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bell{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-certificate{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-globe{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-wrench{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tasks{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-filter{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-briefcase{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fullscreen{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-group{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-link{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cloud{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-beaker{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cut{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-copy{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-paper-clip{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-save{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sign-blank{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-reorder{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list-ul{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list-ol{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-strikethrough{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-underline{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-table{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-magic{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-truck{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pinterest{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pinterest-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-google-plus-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-google-plus{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-money{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-columns{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sort{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sort-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sort-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-envelope-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-linkedin{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-undo{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-legal{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-dashboard{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comment-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comments-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bolt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sitemap{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-umbrella{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-paste{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-lightbulb{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-exchange{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cloud-download{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cloud-upload{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-user-md{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-stethoscope{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-suitcase{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bell-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-coffee{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-food{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-file-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-building{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hospital{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ambulance{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-medkit{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fighter-jet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-beer{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-h-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plus-sign-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-desktop{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-laptop{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tablet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-mobile-phone{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-blank{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-quote-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-quote-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-spinner{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-reply{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-github-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-close-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-open-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')} \ No newline at end of file diff --git a/bower_components/Leaflet.awesome-markers/examples/css/font-awesome.min.css b/bower_components/Leaflet.awesome-markers/examples/css/font-awesome.min.css new file mode 100755 index 00000000..d4e45b3c --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/examples/css/font-awesome.min.css @@ -0,0 +1,33 @@ +/*! + * Font Awesome 3.0.2 + * the iconic font designed for use with Twitter Bootstrap + * ------------------------------------------------------- + * The full suite of pictographic icons, examples, and documentation + * can be found at: http://fortawesome.github.com/Font-Awesome/ + * + * License + * ------------------------------------------------------- + * - The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL + * - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License - + * http://opensource.org/licenses/mit-license.html + * - The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/ + * - Attribution is no longer required in Font Awesome 3.0, but much appreciated: + * "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome" + + * Contact + * ------------------------------------------------------- + * Email: dave@davegandy.com + * Twitter: http://twitter.com/fortaweso_me + * Work: Lead Product Designer @ http://kyruus.com + */ + +@font-face{ + font-family:'FontAwesome'; + src:url('../font/fontawesome-webfont.eot?v=3.0.1'); + src:url('../font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'), + url('../font/fontawesome-webfont.woff?v=3.0.1') format('woff'), + url('../font/fontawesome-webfont.ttf?v=3.0.1') format('truetype'); + font-weight:normal; + font-style:normal } + +[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0 0;background-repeat:repeat;margin-top:0}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"]{background-image:none}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}a [class^="icon-"],a [class*=" icon-"]{display:inline-block}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}.btn [class^="icon-"],.nav [class^="icon-"],.btn [class*=" icon-"],.nav [class*=" icon-"]{display:inline}.btn [class^="icon-"].icon-large,.nav [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large,.nav [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].icon-spin,.nav [class^="icon-"].icon-spin,.btn [class*=" icon-"].icon-spin,.nav [class*=" icon-"].icon-spin{display:inline-block}.nav-tabs [class^="icon-"],.nav-pills [class^="icon-"],.nav-tabs [class*=" icon-"],.nav-pills [class*=" icon-"],.nav-tabs [class^="icon-"].icon-large,.nav-pills [class^="icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large{line-height:.9em}li [class^="icon-"],.nav li [class^="icon-"],li [class*=" icon-"],.nav li [class*=" icon-"]{display:inline-block;width:1.25em;text-align:center}li [class^="icon-"].icon-large,.nav li [class^="icon-"].icon-large,li [class*=" icon-"].icon-large,.nav li [class*=" icon-"].icon-large{width:1.5625em}ul.icons{list-style-type:none;text-indent:-0.75em}ul.icons li [class^="icon-"],ul.icons li [class*=" icon-"]{width:.75em}.icon-muted{color:#eee}.icon-border{border:solid 1px #eee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.pull-right{float:right}.pull-left{float:left}[class^="icon-"].pull-left,[class*=" icon-"].pull-left{margin-right:.3em}[class^="icon-"].pull-right,[class*=" icon-"].pull-right{margin-left:.3em}.btn [class^="icon-"].pull-left.icon-2x,.btn [class*=" icon-"].pull-left.icon-2x,.btn [class^="icon-"].pull-right.icon-2x,.btn [class*=" icon-"].pull-right.icon-2x{margin-top:.18em}.btn [class^="icon-"].icon-spin.icon-large,.btn [class*=" icon-"].icon-spin.icon-large{line-height:.8em}.btn.btn-small [class^="icon-"].pull-left.icon-2x,.btn.btn-small [class*=" icon-"].pull-left.icon-2x,.btn.btn-small [class^="icon-"].pull-right.icon-2x,.btn.btn-small [class*=" icon-"].pull-right.icon-2x{margin-top:.25em}.btn.btn-large [class^="icon-"],.btn.btn-large [class*=" icon-"]{margin-top:0}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x,.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-top:.05em}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x{margin-right:.2em}.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-left:.2em}.icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-moz-document url-prefix(){.icon-spin{height:.9em}.btn .icon-spin{height:auto}.icon-spin.icon-large{height:1.25em}.btn .icon-spin.icon-large{height:.75em}}.icon-glass:before{content:"\f000"}.icon-music:before{content:"\f001"}.icon-search:before{content:"\f002"}.icon-envelope:before{content:"\f003"}.icon-heart:before{content:"\f004"}.icon-star:before{content:"\f005"}.icon-star-empty:before{content:"\f006"}.icon-user:before{content:"\f007"}.icon-film:before{content:"\f008"}.icon-th-large:before{content:"\f009"}.icon-th:before{content:"\f00a"}.icon-th-list:before{content:"\f00b"}.icon-ok:before{content:"\f00c"}.icon-remove:before{content:"\f00d"}.icon-zoom-in:before{content:"\f00e"}.icon-zoom-out:before{content:"\f010"}.icon-off:before{content:"\f011"}.icon-signal:before{content:"\f012"}.icon-cog:before{content:"\f013"}.icon-trash:before{content:"\f014"}.icon-home:before{content:"\f015"}.icon-file:before{content:"\f016"}.icon-time:before{content:"\f017"}.icon-road:before{content:"\f018"}.icon-download-alt:before{content:"\f019"}.icon-download:before{content:"\f01a"}.icon-upload:before{content:"\f01b"}.icon-inbox:before{content:"\f01c"}.icon-play-circle:before{content:"\f01d"}.icon-repeat:before{content:"\f01e"}.icon-refresh:before{content:"\f021"}.icon-list-alt:before{content:"\f022"}.icon-lock:before{content:"\f023"}.icon-flag:before{content:"\f024"}.icon-headphones:before{content:"\f025"}.icon-volume-off:before{content:"\f026"}.icon-volume-down:before{content:"\f027"}.icon-volume-up:before{content:"\f028"}.icon-qrcode:before{content:"\f029"}.icon-barcode:before{content:"\f02a"}.icon-tag:before{content:"\f02b"}.icon-tags:before{content:"\f02c"}.icon-book:before{content:"\f02d"}.icon-bookmark:before{content:"\f02e"}.icon-print:before{content:"\f02f"}.icon-camera:before{content:"\f030"}.icon-font:before{content:"\f031"}.icon-bold:before{content:"\f032"}.icon-italic:before{content:"\f033"}.icon-text-height:before{content:"\f034"}.icon-text-width:before{content:"\f035"}.icon-align-left:before{content:"\f036"}.icon-align-center:before{content:"\f037"}.icon-align-right:before{content:"\f038"}.icon-align-justify:before{content:"\f039"}.icon-list:before{content:"\f03a"}.icon-indent-left:before{content:"\f03b"}.icon-indent-right:before{content:"\f03c"}.icon-facetime-video:before{content:"\f03d"}.icon-picture:before{content:"\f03e"}.icon-pencil:before{content:"\f040"}.icon-map-marker:before{content:"\f041"}.icon-adjust:before{content:"\f042"}.icon-tint:before{content:"\f043"}.icon-edit:before{content:"\f044"}.icon-share:before{content:"\f045"}.icon-check:before{content:"\f046"}.icon-move:before{content:"\f047"}.icon-step-backward:before{content:"\f048"}.icon-fast-backward:before{content:"\f049"}.icon-backward:before{content:"\f04a"}.icon-play:before{content:"\f04b"}.icon-pause:before{content:"\f04c"}.icon-stop:before{content:"\f04d"}.icon-forward:before{content:"\f04e"}.icon-fast-forward:before{content:"\f050"}.icon-step-forward:before{content:"\f051"}.icon-eject:before{content:"\f052"}.icon-chevron-left:before{content:"\f053"}.icon-chevron-right:before{content:"\f054"}.icon-plus-sign:before{content:"\f055"}.icon-minus-sign:before{content:"\f056"}.icon-remove-sign:before{content:"\f057"}.icon-ok-sign:before{content:"\f058"}.icon-question-sign:before{content:"\f059"}.icon-info-sign:before{content:"\f05a"}.icon-screenshot:before{content:"\f05b"}.icon-remove-circle:before{content:"\f05c"}.icon-ok-circle:before{content:"\f05d"}.icon-ban-circle:before{content:"\f05e"}.icon-arrow-left:before{content:"\f060"}.icon-arrow-right:before{content:"\f061"}.icon-arrow-up:before{content:"\f062"}.icon-arrow-down:before{content:"\f063"}.icon-share-alt:before{content:"\f064"}.icon-resize-full:before{content:"\f065"}.icon-resize-small:before{content:"\f066"}.icon-plus:before{content:"\f067"}.icon-minus:before{content:"\f068"}.icon-asterisk:before{content:"\f069"}.icon-exclamation-sign:before{content:"\f06a"}.icon-gift:before{content:"\f06b"}.icon-leaf:before{content:"\f06c"}.icon-fire:before{content:"\f06d"}.icon-eye-open:before{content:"\f06e"}.icon-eye-close:before{content:"\f070"}.icon-warning-sign:before{content:"\f071"}.icon-plane:before{content:"\f072"}.icon-calendar:before{content:"\f073"}.icon-random:before{content:"\f074"}.icon-comment:before{content:"\f075"}.icon-magnet:before{content:"\f076"}.icon-chevron-up:before{content:"\f077"}.icon-chevron-down:before{content:"\f078"}.icon-retweet:before{content:"\f079"}.icon-shopping-cart:before{content:"\f07a"}.icon-folder-close:before{content:"\f07b"}.icon-folder-open:before{content:"\f07c"}.icon-resize-vertical:before{content:"\f07d"}.icon-resize-horizontal:before{content:"\f07e"}.icon-bar-chart:before{content:"\f080"}.icon-twitter-sign:before{content:"\f081"}.icon-facebook-sign:before{content:"\f082"}.icon-camera-retro:before{content:"\f083"}.icon-key:before{content:"\f084"}.icon-cogs:before{content:"\f085"}.icon-comments:before{content:"\f086"}.icon-thumbs-up:before{content:"\f087"}.icon-thumbs-down:before{content:"\f088"}.icon-star-half:before{content:"\f089"}.icon-heart-empty:before{content:"\f08a"}.icon-signout:before{content:"\f08b"}.icon-linkedin-sign:before{content:"\f08c"}.icon-pushpin:before{content:"\f08d"}.icon-external-link:before{content:"\f08e"}.icon-signin:before{content:"\f090"}.icon-trophy:before{content:"\f091"}.icon-github-sign:before{content:"\f092"}.icon-upload-alt:before{content:"\f093"}.icon-lemon:before{content:"\f094"}.icon-phone:before{content:"\f095"}.icon-check-empty:before{content:"\f096"}.icon-bookmark-empty:before{content:"\f097"}.icon-phone-sign:before{content:"\f098"}.icon-twitter:before{content:"\f099"}.icon-facebook:before{content:"\f09a"}.icon-github:before{content:"\f09b"}.icon-unlock:before{content:"\f09c"}.icon-credit-card:before{content:"\f09d"}.icon-rss:before{content:"\f09e"}.icon-hdd:before{content:"\f0a0"}.icon-bullhorn:before{content:"\f0a1"}.icon-bell:before{content:"\f0a2"}.icon-certificate:before{content:"\f0a3"}.icon-hand-right:before{content:"\f0a4"}.icon-hand-left:before{content:"\f0a5"}.icon-hand-up:before{content:"\f0a6"}.icon-hand-down:before{content:"\f0a7"}.icon-circle-arrow-left:before{content:"\f0a8"}.icon-circle-arrow-right:before{content:"\f0a9"}.icon-circle-arrow-up:before{content:"\f0aa"}.icon-circle-arrow-down:before{content:"\f0ab"}.icon-globe:before{content:"\f0ac"}.icon-wrench:before{content:"\f0ad"}.icon-tasks:before{content:"\f0ae"}.icon-filter:before{content:"\f0b0"}.icon-briefcase:before{content:"\f0b1"}.icon-fullscreen:before{content:"\f0b2"}.icon-group:before{content:"\f0c0"}.icon-link:before{content:"\f0c1"}.icon-cloud:before{content:"\f0c2"}.icon-beaker:before{content:"\f0c3"}.icon-cut:before{content:"\f0c4"}.icon-copy:before{content:"\f0c5"}.icon-paper-clip:before{content:"\f0c6"}.icon-save:before{content:"\f0c7"}.icon-sign-blank:before{content:"\f0c8"}.icon-reorder:before{content:"\f0c9"}.icon-list-ul:before{content:"\f0ca"}.icon-list-ol:before{content:"\f0cb"}.icon-strikethrough:before{content:"\f0cc"}.icon-underline:before{content:"\f0cd"}.icon-table:before{content:"\f0ce"}.icon-magic:before{content:"\f0d0"}.icon-truck:before{content:"\f0d1"}.icon-pinterest:before{content:"\f0d2"}.icon-pinterest-sign:before{content:"\f0d3"}.icon-google-plus-sign:before{content:"\f0d4"}.icon-google-plus:before{content:"\f0d5"}.icon-money:before{content:"\f0d6"}.icon-caret-down:before{content:"\f0d7"}.icon-caret-up:before{content:"\f0d8"}.icon-caret-left:before{content:"\f0d9"}.icon-caret-right:before{content:"\f0da"}.icon-columns:before{content:"\f0db"}.icon-sort:before{content:"\f0dc"}.icon-sort-down:before{content:"\f0dd"}.icon-sort-up:before{content:"\f0de"}.icon-envelope-alt:before{content:"\f0e0"}.icon-linkedin:before{content:"\f0e1"}.icon-undo:before{content:"\f0e2"}.icon-legal:before{content:"\f0e3"}.icon-dashboard:before{content:"\f0e4"}.icon-comment-alt:before{content:"\f0e5"}.icon-comments-alt:before{content:"\f0e6"}.icon-bolt:before{content:"\f0e7"}.icon-sitemap:before{content:"\f0e8"}.icon-umbrella:before{content:"\f0e9"}.icon-paste:before{content:"\f0ea"}.icon-lightbulb:before{content:"\f0eb"}.icon-exchange:before{content:"\f0ec"}.icon-cloud-download:before{content:"\f0ed"}.icon-cloud-upload:before{content:"\f0ee"}.icon-user-md:before{content:"\f0f0"}.icon-stethoscope:before{content:"\f0f1"}.icon-suitcase:before{content:"\f0f2"}.icon-bell-alt:before{content:"\f0f3"}.icon-coffee:before{content:"\f0f4"}.icon-food:before{content:"\f0f5"}.icon-file-alt:before{content:"\f0f6"}.icon-building:before{content:"\f0f7"}.icon-hospital:before{content:"\f0f8"}.icon-ambulance:before{content:"\f0f9"}.icon-medkit:before{content:"\f0fa"}.icon-fighter-jet:before{content:"\f0fb"}.icon-beer:before{content:"\f0fc"}.icon-h-sign:before{content:"\f0fd"}.icon-plus-sign-alt:before{content:"\f0fe"}.icon-double-angle-left:before{content:"\f100"}.icon-double-angle-right:before{content:"\f101"}.icon-double-angle-up:before{content:"\f102"}.icon-double-angle-down:before{content:"\f103"}.icon-angle-left:before{content:"\f104"}.icon-angle-right:before{content:"\f105"}.icon-angle-up:before{content:"\f106"}.icon-angle-down:before{content:"\f107"}.icon-desktop:before{content:"\f108"}.icon-laptop:before{content:"\f109"}.icon-tablet:before{content:"\f10a"}.icon-mobile-phone:before{content:"\f10b"}.icon-circle-blank:before{content:"\f10c"}.icon-quote-left:before{content:"\f10d"}.icon-quote-right:before{content:"\f10e"}.icon-spinner:before{content:"\f110"}.icon-circle:before{content:"\f111"}.icon-reply:before{content:"\f112"}.icon-github-alt:before{content:"\f113"}.icon-folder-close-alt:before{content:"\f114"}.icon-folder-open-alt:before{content:"\f115"} \ No newline at end of file diff --git a/bower_components/Leaflet.awesome-markers/examples/font/FontAwesome.otf b/bower_components/Leaflet.awesome-markers/examples/font/FontAwesome.otf new file mode 100755 index 00000000..64049bf2 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/examples/font/FontAwesome.otf differ diff --git a/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.eot b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.eot new file mode 100755 index 00000000..7d81019e Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.eot differ diff --git a/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.svg b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.svg new file mode 100755 index 00000000..ba0afe5e --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.svg @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.ttf b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.ttf new file mode 100755 index 00000000..d4617247 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.ttf differ diff --git a/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.woff b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.woff new file mode 100755 index 00000000..3c89ae09 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/examples/font/fontawesome-webfont.woff differ diff --git a/bower_components/Leaflet.awesome-markers/examples/random-markers.html b/bower_components/Leaflet.awesome-markers/examples/random-markers.html new file mode 100644 index 00000000..11c5c062 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/examples/random-markers.html @@ -0,0 +1,50 @@ + + + + Awesome Markers Example: Random Markers + + + + + + + + + + + + + +
+ + + + + + diff --git a/bower_components/Leaflet.awesome-markers/examples/with-bootstrap.html b/bower_components/Leaflet.awesome-markers/examples/with-bootstrap.html new file mode 100644 index 00000000..fa645649 --- /dev/null +++ b/bower_components/Leaflet.awesome-markers/examples/with-bootstrap.html @@ -0,0 +1,50 @@ + + + + Awesome Markers Example: With Bootstrap + + + + + + + + + + + + + + + +
+ + + + + + + diff --git a/bower_components/Leaflet.awesome-markers/screenshots/screenshot-matte.png b/bower_components/Leaflet.awesome-markers/screenshots/screenshot-matte.png new file mode 100644 index 00000000..178a4fb5 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/screenshots/screenshot-matte.png differ diff --git a/bower_components/Leaflet.awesome-markers/screenshots/screenshot-soft.png b/bower_components/Leaflet.awesome-markers/screenshots/screenshot-soft.png new file mode 100644 index 00000000..60da65e8 Binary files /dev/null and b/bower_components/Leaflet.awesome-markers/screenshots/screenshot-soft.png differ diff --git a/bower_components/Leaflet.fullscreen/.bower.json b/bower_components/Leaflet.fullscreen/.bower.json new file mode 100644 index 00000000..b19bb9ea --- /dev/null +++ b/bower_components/Leaflet.fullscreen/.bower.json @@ -0,0 +1,12 @@ +{ + "name": "Leaflet.fullscreen", + "_cacheHeaders": { + "ETag": "\"0380d613059eba1180cd1bebda2e7a21f4c2aec8\"", + "Content-Type": "application/x-gzip", + "Content-Disposition": "attachment; filename=Leaflet.fullscreen-0.0.4.tar.gz" + }, + "_release": "e-tag:0380d6130", + "_source": "http://github.com/Leaflet/Leaflet.fullscreen/archive/v0.0.4.tar.gz", + "_target": "*", + "_originalSource": "http://github.com/Leaflet/Leaflet.fullscreen/archive/v0.0.4.tar.gz" +} \ No newline at end of file diff --git a/bower_components/Leaflet.fullscreen/.gitignore b/bower_components/Leaflet.fullscreen/.gitignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/bower_components/Leaflet.fullscreen/CHANGELOG.md b/bower_components/Leaflet.fullscreen/CHANGELOG.md new file mode 100644 index 00000000..39789bbd --- /dev/null +++ b/bower_components/Leaflet.fullscreen/CHANGELOG.md @@ -0,0 +1,17 @@ +## 0.0.3 + +* Added IE11 native fullscreen support (#27) + +## 0.0.2 + +* Set appropriate title when fullscreen (#17) +* Replace on('load') with whenReady (#19) + +## 0.0.1 + +* Project restructuring +* New icons, including retina icons + +## 0.0.0 + +* Initial release diff --git a/bower_components/Leaflet.fullscreen/LICENSE b/bower_components/Leaflet.fullscreen/LICENSE new file mode 100644 index 00000000..62ad9437 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2013, MapBox +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list + of conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/bower_components/Leaflet.fullscreen/Makefile b/bower_components/Leaflet.fullscreen/Makefile new file mode 100644 index 00000000..5e595e2a --- /dev/null +++ b/bower_components/Leaflet.fullscreen/Makefile @@ -0,0 +1,27 @@ +# See the README for installation instructions. +UGLIFY = node_modules/.bin/uglifyjs + +all: \ + $(shell npm install && mkdir -p dist) \ + dist/leaflet.fullscreen.css \ + dist/Leaflet.fullscreen.js \ + dist/Leaflet.fullscreen.min.js \ + dist/fullscreen.png + +clean: + rm -f dist/* + +dist/fullscreen.png: src/fullscreen.png + cp src/fullscreen.png dist/fullscreen.png + cp src/fullscreen@2x.png dist/fullscreen@2x.png + +dist/leaflet.fullscreen.css: src/leaflet.fullscreen.css + cp src/leaflet.fullscreen.css dist/leaflet.fullscreen.css + +dist/Leaflet.fullscreen.js: src/Leaflet.fullscreen.js + cp src/Leaflet.fullscreen.js dist/Leaflet.fullscreen.js + +dist/Leaflet.fullscreen.min.js: dist/Leaflet.fullscreen.js + $(UGLIFY) dist/Leaflet.fullscreen.js > dist/Leaflet.fullscreen.min.js + +.PHONY: clean diff --git a/bower_components/Leaflet.fullscreen/README.md b/bower_components/Leaflet.fullscreen/README.md new file mode 100644 index 00000000..b2984116 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/README.md @@ -0,0 +1,44 @@ +## Leaflet.fullscreen +A HTML5 fullscreen plugin for Leaflet. + +### Usage + +``` js +var map = new L.Map('map', { + fullscreenControl: true +}); +``` + +### API + +``` js +map.isFullscreen() // Is the map fullscreen? +map.toggleFullscreen() // Either go fullscreen, or cancel the existing fullscreen. + +// `fullscreenchange` Event that's fired when entering or exiting fullscreen. +map.on('fullscreenchange', function () { + if (map.isFullscreen()) { + console.log('entered fullscreen'); + } else { + console.log('exited fullscreen'); + } +}); + +L.Control.Fullscreen // A fullscreen button. Or use the `{fullscreenControl: true}` option when creating L.Map. +``` + +### Including via CDN + +Leaflet.fullscreen is [available through the Mapbox Plugin CDN](https://www.mapbox.com/mapbox.js/plugins/#leaflet-fullscreen) - just copy this include: + +```html + + +``` + +### Building + + npm install && make + +__ProTip__ You may want to install `watch` so you can run `watch make` +without needing to execute make on every change. diff --git a/bower_components/Leaflet.fullscreen/component.json b/bower_components/Leaflet.fullscreen/component.json new file mode 100644 index 00000000..fd3af332 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/component.json @@ -0,0 +1,16 @@ +{ + "name": "Leaflet.fullscreen", + "repo": "mapbox/Leaflet.fullscreen", + "description": "a fullscreen control for Leaflet", + "version": "0.0.0", + "keywords": [], + "dependencies": {}, + "development": {}, + "license": "MIT", + "scripts": [ + "src/Leaflet.fullscreen.js" + ], + "styles": [ + "dist/leaflet.fullscreen.css" + ] +} diff --git a/bower_components/Leaflet.fullscreen/dist/Leaflet.fullscreen.js b/bower_components/Leaflet.fullscreen/dist/Leaflet.fullscreen.js new file mode 100644 index 00000000..025eb9ab --- /dev/null +++ b/bower_components/Leaflet.fullscreen/dist/Leaflet.fullscreen.js @@ -0,0 +1,140 @@ +L.Control.Fullscreen = L.Control.extend({ + options: { + position: 'topleft', + title: { + 'false': 'View Fullscreen', + 'true': 'Exit Fullscreen' + } + }, + + onAdd: function (map) { + var container = L.DomUtil.create('div', 'leaflet-control-fullscreen leaflet-bar leaflet-control'); + + this.link = L.DomUtil.create('a', 'leaflet-control-fullscreen-button leaflet-bar-part', container); + this.link.href = '#'; + + this._map = map; + this._map.on('fullscreenchange', this._toggleTitle, this); + this._toggleTitle(); + + L.DomEvent.on(this.link, 'click', this._click, this); + + return container; + }, + + _click: function (e) { + L.DomEvent.stopPropagation(e); + L.DomEvent.preventDefault(e); + this._map.toggleFullscreen(); + }, + + _toggleTitle: function() { + this.link.title = this.options.title[this._map.isFullscreen()]; + } +}); + +L.Map.include({ + isFullscreen: function () { + return this._isFullscreen || false; + }, + + toggleFullscreen: function () { + var container = this.getContainer(); + if (this.isFullscreen()) { + if (document.exitFullscreen) { + document.exitFullscreen(); + } else if (document.mozCancelFullScreen) { + document.mozCancelFullScreen(); + } else if (document.webkitCancelFullScreen) { + document.webkitCancelFullScreen(); + } else if (document.msExitFullscreen) { + document.msExitFullscreen(); + } else { + L.DomUtil.removeClass(container, 'leaflet-pseudo-fullscreen'); + this._setFullscreen(false); + this.invalidateSize(); + this.fire('fullscreenchange'); + } + } else { + if (container.requestFullscreen) { + container.requestFullscreen(); + } else if (container.mozRequestFullScreen) { + container.mozRequestFullScreen(); + } else if (container.webkitRequestFullscreen) { + container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); + } else if (container.msRequestFullscreen) { + container.msRequestFullscreen(); + } else { + L.DomUtil.addClass(container, 'leaflet-pseudo-fullscreen'); + this._setFullscreen(true); + this.invalidateSize(); + this.fire('fullscreenchange'); + } + } + }, + + _setFullscreen: function(fullscreen) { + this._isFullscreen = fullscreen; + var container = this.getContainer(); + if (fullscreen) { + L.DomUtil.addClass(container, 'leaflet-fullscreen-on'); + } else { + L.DomUtil.removeClass(container, 'leaflet-fullscreen-on'); + } + }, + + _onFullscreenChange: function (e) { + var fullscreenElement = + document.fullscreenElement || + document.mozFullScreenElement || + document.webkitFullscreenElement || + document.msFullscreenElement; + + if (fullscreenElement === this.getContainer() && !this._isFullscreen) { + this._setFullscreen(true); + this.fire('fullscreenchange'); + } else if (fullscreenElement !== this.getContainer() && this._isFullscreen) { + this._setFullscreen(false); + this.fire('fullscreenchange'); + } + } +}); + +L.Map.mergeOptions({ + fullscreenControl: false +}); + +L.Map.addInitHook(function () { + if (this.options.fullscreenControl) { + this.fullscreenControl = new L.Control.Fullscreen(); + this.addControl(this.fullscreenControl); + } + + var fullscreenchange; + + if ('onfullscreenchange' in document) { + fullscreenchange = 'fullscreenchange'; + } else if ('onmozfullscreenchange' in document) { + fullscreenchange = 'mozfullscreenchange'; + } else if ('onwebkitfullscreenchange' in document) { + fullscreenchange = 'webkitfullscreenchange'; + } else if ('onmsfullscreenchange' in document) { + fullscreenchange = 'MSFullscreenChange'; + } + + if (fullscreenchange) { + var onFullscreenChange = L.bind(this._onFullscreenChange, this); + + this.whenReady(function () { + L.DomEvent.on(document, fullscreenchange, onFullscreenChange); + }); + + this.on('unload', function () { + L.DomEvent.off(document, fullscreenchange, onFullscreenChange); + }); + } +}); + +L.control.fullscreen = function (options) { + return new L.Control.Fullscreen(options); +}; diff --git a/bower_components/Leaflet.fullscreen/dist/Leaflet.fullscreen.min.js b/bower_components/Leaflet.fullscreen/dist/Leaflet.fullscreen.min.js new file mode 100644 index 00000000..263712b3 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/dist/Leaflet.fullscreen.min.js @@ -0,0 +1 @@ +L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{"false":"View Fullscreen","true":"Exit Fullscreen"}},onAdd:function(map){var container=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",container);this.link.href="#";this._map=map;this._map.on("fullscreenchange",this._toggleTitle,this);this._toggleTitle();L.DomEvent.on(this.link,"click",this._click,this);return container},_click:function(e){L.DomEvent.stopPropagation(e);L.DomEvent.preventDefault(e);this._map.toggleFullscreen()},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}});L.Map.include({isFullscreen:function(){return this._isFullscreen||false},toggleFullscreen:function(){var container=this.getContainer();if(this.isFullscreen()){if(document.exitFullscreen){document.exitFullscreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}else if(document.msExitFullscreen){document.msExitFullscreen()}else{L.DomUtil.removeClass(container,"leaflet-pseudo-fullscreen");this._setFullscreen(false);this.invalidateSize();this.fire("fullscreenchange")}}else{if(container.requestFullscreen){container.requestFullscreen()}else if(container.mozRequestFullScreen){container.mozRequestFullScreen()}else if(container.webkitRequestFullscreen){container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}else if(container.msRequestFullscreen){container.msRequestFullscreen()}else{L.DomUtil.addClass(container,"leaflet-pseudo-fullscreen");this._setFullscreen(true);this.invalidateSize();this.fire("fullscreenchange")}}},_setFullscreen:function(fullscreen){this._isFullscreen=fullscreen;var container=this.getContainer();if(fullscreen){L.DomUtil.addClass(container,"leaflet-fullscreen-on")}else{L.DomUtil.removeClass(container,"leaflet-fullscreen-on")}},_onFullscreenChange:function(e){var fullscreenElement=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;if(fullscreenElement===this.getContainer()&&!this._isFullscreen){this._setFullscreen(true);this.fire("fullscreenchange")}else if(fullscreenElement!==this.getContainer()&&this._isFullscreen){this._setFullscreen(false);this.fire("fullscreenchange")}}});L.Map.mergeOptions({fullscreenControl:false});L.Map.addInitHook(function(){if(this.options.fullscreenControl){this.fullscreenControl=new L.Control.Fullscreen;this.addControl(this.fullscreenControl)}var fullscreenchange;if("onfullscreenchange"in document){fullscreenchange="fullscreenchange"}else if("onmozfullscreenchange"in document){fullscreenchange="mozfullscreenchange"}else if("onwebkitfullscreenchange"in document){fullscreenchange="webkitfullscreenchange"}else if("onmsfullscreenchange"in document){fullscreenchange="MSFullscreenChange"}if(fullscreenchange){var onFullscreenChange=L.bind(this._onFullscreenChange,this);this.whenReady(function(){L.DomEvent.on(document,fullscreenchange,onFullscreenChange)});this.on("unload",function(){L.DomEvent.off(document,fullscreenchange,onFullscreenChange)})}});L.control.fullscreen=function(options){return new L.Control.Fullscreen(options)}; \ No newline at end of file diff --git a/bower_components/Leaflet.fullscreen/dist/fullscreen.png b/bower_components/Leaflet.fullscreen/dist/fullscreen.png new file mode 100644 index 00000000..fdd3a8ee Binary files /dev/null and b/bower_components/Leaflet.fullscreen/dist/fullscreen.png differ diff --git a/bower_components/Leaflet.fullscreen/dist/fullscreen@2x.png b/bower_components/Leaflet.fullscreen/dist/fullscreen@2x.png new file mode 100644 index 00000000..f41a81b8 Binary files /dev/null and b/bower_components/Leaflet.fullscreen/dist/fullscreen@2x.png differ diff --git a/bower_components/Leaflet.fullscreen/dist/leaflet.fullscreen.css b/bower_components/Leaflet.fullscreen/dist/leaflet.fullscreen.css new file mode 100644 index 00000000..e29cd063 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/dist/leaflet.fullscreen.css @@ -0,0 +1,34 @@ +.leaflet-control-fullscreen a { + background:#fff url(fullscreen.png) no-repeat 0 0; + background-size:26px 52px; + } + .leaflet-fullscreen-on .leaflet-control-fullscreen a { + background-position:0 -26px; + } + +/* Do not combine these two rules; IE will break. */ +.leaflet-container:-webkit-full-screen { + width:100%!important; + height:100%!important; + } +.leaflet-container.leaflet-fullscreen-on { + width:100%!important; + height:100%!important; + } + +.leaflet-pseudo-fullscreen { + position:fixed!important; + width:100%!important; + height:100%!important; + top:0!important; + left:0!important; + z-index:99999; + } + +@media + (-webkit-min-device-pixel-ratio:2), + (min-resolution:192dpi) { + .leaflet-control-fullscreen a { + background-image:url(fullscreen@2x.png); + } + } diff --git a/bower_components/Leaflet.fullscreen/index.html b/bower_components/Leaflet.fullscreen/index.html new file mode 100644 index 00000000..8e0390b7 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/index.html @@ -0,0 +1,36 @@ + + + + + + Leaflet.fullscreen + + + + + + + + + +
+
+

Leaflet.fullscreen

+

A HTML5 fullscreen plugin for Leaflet.

+
+
+
+

For usage, check out the project on GitHub.

+
+
+ + + diff --git a/bower_components/Leaflet.fullscreen/package.json b/bower_components/Leaflet.fullscreen/package.json new file mode 100644 index 00000000..efce8f18 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/package.json @@ -0,0 +1,30 @@ +{ + "name": "leaflet-fullscreen", + "version": "0.0.4", + "description": "A fullscreen control for Leaflet", + "main": "src/Leaflet.fullscreen.js", + "directories": { + "example": "examples" + }, + "scripts": { + "test": "jshint index.js" + }, + "repository": { + "type": "git", + "url": "git://github.com/mapbox/Leaflet.fullscreen.git" + }, + "keywords": [ + "leaflet", + "maps", + "fullscreen", + "client" + ], + "devDependencies": { + "uglify-js": "2.4.3", + "jshint": "2.3.0" + }, + "author": "John Firebaugh", + "license": "BSD", + "gitHead": "440a832850e205f4ab30ef185c905d153eaec14e", + "readmeFilename": "README.md" +} diff --git a/bower_components/Leaflet.fullscreen/src/Leaflet.fullscreen.js b/bower_components/Leaflet.fullscreen/src/Leaflet.fullscreen.js new file mode 100644 index 00000000..025eb9ab --- /dev/null +++ b/bower_components/Leaflet.fullscreen/src/Leaflet.fullscreen.js @@ -0,0 +1,140 @@ +L.Control.Fullscreen = L.Control.extend({ + options: { + position: 'topleft', + title: { + 'false': 'View Fullscreen', + 'true': 'Exit Fullscreen' + } + }, + + onAdd: function (map) { + var container = L.DomUtil.create('div', 'leaflet-control-fullscreen leaflet-bar leaflet-control'); + + this.link = L.DomUtil.create('a', 'leaflet-control-fullscreen-button leaflet-bar-part', container); + this.link.href = '#'; + + this._map = map; + this._map.on('fullscreenchange', this._toggleTitle, this); + this._toggleTitle(); + + L.DomEvent.on(this.link, 'click', this._click, this); + + return container; + }, + + _click: function (e) { + L.DomEvent.stopPropagation(e); + L.DomEvent.preventDefault(e); + this._map.toggleFullscreen(); + }, + + _toggleTitle: function() { + this.link.title = this.options.title[this._map.isFullscreen()]; + } +}); + +L.Map.include({ + isFullscreen: function () { + return this._isFullscreen || false; + }, + + toggleFullscreen: function () { + var container = this.getContainer(); + if (this.isFullscreen()) { + if (document.exitFullscreen) { + document.exitFullscreen(); + } else if (document.mozCancelFullScreen) { + document.mozCancelFullScreen(); + } else if (document.webkitCancelFullScreen) { + document.webkitCancelFullScreen(); + } else if (document.msExitFullscreen) { + document.msExitFullscreen(); + } else { + L.DomUtil.removeClass(container, 'leaflet-pseudo-fullscreen'); + this._setFullscreen(false); + this.invalidateSize(); + this.fire('fullscreenchange'); + } + } else { + if (container.requestFullscreen) { + container.requestFullscreen(); + } else if (container.mozRequestFullScreen) { + container.mozRequestFullScreen(); + } else if (container.webkitRequestFullscreen) { + container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); + } else if (container.msRequestFullscreen) { + container.msRequestFullscreen(); + } else { + L.DomUtil.addClass(container, 'leaflet-pseudo-fullscreen'); + this._setFullscreen(true); + this.invalidateSize(); + this.fire('fullscreenchange'); + } + } + }, + + _setFullscreen: function(fullscreen) { + this._isFullscreen = fullscreen; + var container = this.getContainer(); + if (fullscreen) { + L.DomUtil.addClass(container, 'leaflet-fullscreen-on'); + } else { + L.DomUtil.removeClass(container, 'leaflet-fullscreen-on'); + } + }, + + _onFullscreenChange: function (e) { + var fullscreenElement = + document.fullscreenElement || + document.mozFullScreenElement || + document.webkitFullscreenElement || + document.msFullscreenElement; + + if (fullscreenElement === this.getContainer() && !this._isFullscreen) { + this._setFullscreen(true); + this.fire('fullscreenchange'); + } else if (fullscreenElement !== this.getContainer() && this._isFullscreen) { + this._setFullscreen(false); + this.fire('fullscreenchange'); + } + } +}); + +L.Map.mergeOptions({ + fullscreenControl: false +}); + +L.Map.addInitHook(function () { + if (this.options.fullscreenControl) { + this.fullscreenControl = new L.Control.Fullscreen(); + this.addControl(this.fullscreenControl); + } + + var fullscreenchange; + + if ('onfullscreenchange' in document) { + fullscreenchange = 'fullscreenchange'; + } else if ('onmozfullscreenchange' in document) { + fullscreenchange = 'mozfullscreenchange'; + } else if ('onwebkitfullscreenchange' in document) { + fullscreenchange = 'webkitfullscreenchange'; + } else if ('onmsfullscreenchange' in document) { + fullscreenchange = 'MSFullscreenChange'; + } + + if (fullscreenchange) { + var onFullscreenChange = L.bind(this._onFullscreenChange, this); + + this.whenReady(function () { + L.DomEvent.on(document, fullscreenchange, onFullscreenChange); + }); + + this.on('unload', function () { + L.DomEvent.off(document, fullscreenchange, onFullscreenChange); + }); + } +}); + +L.control.fullscreen = function (options) { + return new L.Control.Fullscreen(options); +}; diff --git a/bower_components/Leaflet.fullscreen/src/fullscreen.png b/bower_components/Leaflet.fullscreen/src/fullscreen.png new file mode 100644 index 00000000..7384960a Binary files /dev/null and b/bower_components/Leaflet.fullscreen/src/fullscreen.png differ diff --git a/bower_components/Leaflet.fullscreen/src/fullscreen.svg b/bower_components/Leaflet.fullscreen/src/fullscreen.svg new file mode 100644 index 00000000..e4dbb2ae --- /dev/null +++ b/bower_components/Leaflet.fullscreen/src/fullscreen.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/bower_components/Leaflet.fullscreen/src/fullscreen@2x.png b/bower_components/Leaflet.fullscreen/src/fullscreen@2x.png new file mode 100644 index 00000000..9fca7f87 Binary files /dev/null and b/bower_components/Leaflet.fullscreen/src/fullscreen@2x.png differ diff --git a/bower_components/Leaflet.fullscreen/src/leaflet.fullscreen.css b/bower_components/Leaflet.fullscreen/src/leaflet.fullscreen.css new file mode 100644 index 00000000..d0e8a5a7 --- /dev/null +++ b/bower_components/Leaflet.fullscreen/src/leaflet.fullscreen.css @@ -0,0 +1,34 @@ +.leaflet-control-fullscreen a { + background:#fff url(fullscreen.png) no-repeat 0 0; + background-size:26px 52px; + } + .leaflet-touch .leaflet-control-fullscreen a { + background-position: 2px 2px; + } + .leaflet-fullscreen-on .leaflet-control-fullscreen a { + background-position:0 -26px; + } + .leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a { + background-position: 2px -24px; + } + +.leaflet-container:-webkit-full-screen { + width:100%!important; + height:100%!important; + } +.leaflet-pseudo-fullscreen { + position:fixed!important; + width:100%!important; + height:100%!important; + top:0!important; + left:0!important; + z-index:99999; + } + +@media + (-webkit-min-device-pixel-ratio:2), + (min-resolution:192dpi) { + .leaflet-control-fullscreen a { + background-image:url(fullscreen@2x.png); + } + } diff --git a/bower_components/Leaflet.heat/.bower.json b/bower_components/Leaflet.heat/.bower.json new file mode 100644 index 00000000..404d3b15 --- /dev/null +++ b/bower_components/Leaflet.heat/.bower.json @@ -0,0 +1,12 @@ +{ + "name": "Leaflet.heat", + "_cacheHeaders": { + "ETag": "\"627ede7c11bbe43a3a8b94a5be0d0745cac71e64\"", + "Content-Type": "application/x-gzip", + "Content-Disposition": "attachment; filename=Leaflet.heat-gh-pages.tar.gz" + }, + "_release": "e-tag:627ede7c1", + "_source": "https://github.com/Leaflet/Leaflet.heat/archive/gh-pages.tar.gz", + "_target": "*", + "_originalSource": "https://github.com/Leaflet/Leaflet.heat/archive/gh-pages.tar.gz" +} \ No newline at end of file diff --git a/bower_components/Leaflet.heat/LICENSE b/bower_components/Leaflet.heat/LICENSE new file mode 100644 index 00000000..91a7b5ed --- /dev/null +++ b/bower_components/Leaflet.heat/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2014, Vladimir Agafonkin +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list + of conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/bower_components/Leaflet.heat/README.md b/bower_components/Leaflet.heat/README.md new file mode 100644 index 00000000..cfc8d6ef --- /dev/null +++ b/bower_components/Leaflet.heat/README.md @@ -0,0 +1,74 @@ +Leaflet.heat +========== + +A tiny, simple and fast [Leaflet](http://leafletjs.com) heatmap plugin. +Uses [simpleheat](https://github.com/mourner/simpleheat) under the hood, +additionally clustering points into a grid for performance. + + +## Demos + +- [10,000 points →](http://leaflet.github.io/Leaflet.heat/demo) +- [Adding points dynamically →](http://leaflet.github.io/Leaflet.heat/demo/draw.html) + + +## Basic Usage + +```js +var heat = L.heatLayer(latlngs, {radius: 25}).addTo(map); +``` + +To include the plugin, just use `leaflet-heat.js` from the `dist` folder: + +```html + +``` + +## Building +To build the dist files run: +```npm install && npm run prepublish``` + + +## Reference + +#### L.heatLayer(latlngs, options) + +Constructs a heatmap layer given an array of `LatLng` points and an object with the following options: +- **minOpacity** - the minimum opacity the heat will start at +- **maxZoom** - zoom level where the points reach maximum intensity (as intensity scales with zoom), + equals `maxZoom` of the map by default +- **max** - maximum point intensity, `1.0` by default +- **radius** - radius of each "point" of the heatmap, `25` by default +- **blur** - amount of blur, `15` by default +- **gradient** - color gradient config, e.g. `{0.4: 'blue', 0.65: 'lime', 1: 'red'}` + +Optional third argument in each `LatLng` point (`altitude`) represents point intensity. + +#### Methods + +- **setOptions(options)**: Sets new heatmap options and redraws it. +- **addLatLng(latlng)**: Adds a new point to the heatmap and redraws it. +- **setLatLngs(latlngs)**: Resets heatmap data and redraws it. +- **redraw()**: Redraws the heatmap. + +## Changelog + +#### 0.1.2 — Nov 5, 2014 + +- Added compatibility with Leaflet 0.8-dev. + +#### 0.1.1 — Apr 22, 2014 + +- Fixed overlaying two heatmaps on top of each other. +- Fixed rare animation issues. + +#### 0.1.0 — Feb 3, 2014 + +- Added `addLatLng`, `setLatlngs`, `setOptions` and `redraw` methods. +- Added `max` option and support for different point intensity values (through `LatLng` third argument). +- Added `gradient` option to customize colors. + +#### 0.0.1 — Jan 31, 2014 + +- Initial release. + diff --git a/bower_components/Leaflet.heat/demo/draw.html b/bower_components/Leaflet.heat/demo/draw.html new file mode 100644 index 00000000..bbfa5ff7 --- /dev/null +++ b/bower_components/Leaflet.heat/demo/draw.html @@ -0,0 +1,54 @@ + + + + Leaflet.heat demo + + + + + + +

+ A dynamic demo of Leaflet.heat, a tiny and fast Leaflet heatmap plugin. + +

+ +
+ + + + + + + + diff --git a/bower_components/Leaflet.heat/demo/index.html b/bower_components/Leaflet.heat/demo/index.html new file mode 100644 index 00000000..c1e85d53 --- /dev/null +++ b/bower_components/Leaflet.heat/demo/index.html @@ -0,0 +1,43 @@ + + + + Leaflet.heat demo + + + + + + +

+ A 10,000-point demo of Leaflet.heat, a tiny and fast Leaflet heatmap plugin. + +

+ +
+ + + + + + + + + diff --git a/bower_components/Leaflet.heat/dist/leaflet-heat.js b/bower_components/Leaflet.heat/dist/leaflet-heat.js new file mode 100644 index 00000000..3474bca0 --- /dev/null +++ b/bower_components/Leaflet.heat/dist/leaflet-heat.js @@ -0,0 +1,11 @@ +/* + (c) 2014, Vladimir Agafonkin + simpleheat, a tiny JavaScript library for drawing heatmaps with Canvas + https://github.com/mourner/simpleheat +*/ +!function(){"use strict";function t(i){return this instanceof t?(this._canvas=i="string"==typeof i?document.getElementById(i):i,this._ctx=i.getContext("2d"),this._width=i.width,this._height=i.height,this._max=1,void this.clear()):new t(i)}t.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:function(t){return this._data=t,this},max:function(t){return this._max=t,this},add:function(t){return this._data.push(t),this},clear:function(){return this._data=[],this},radius:function(t,i){i=i||15;var a=this._circle=document.createElement("canvas"),s=a.getContext("2d"),e=this._r=t+i;return a.width=a.height=2*e,s.shadowOffsetX=s.shadowOffsetY=200,s.shadowBlur=i,s.shadowColor="black",s.beginPath(),s.arc(e-200,e-200,t,0,2*Math.PI,!0),s.closePath(),s.fill(),this},gradient:function(t){var i=document.createElement("canvas"),a=i.getContext("2d"),s=a.createLinearGradient(0,0,0,256);i.width=1,i.height=256;for(var e in t)s.addColorStop(e,t[e]);return a.fillStyle=s,a.fillRect(0,0,1,256),this._grad=a.getImageData(0,0,1,256).data,this},draw:function(t){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var i=this._ctx;i.clearRect(0,0,this._width,this._height);for(var a,s=0,e=this._data.length;e>s;s++)a=this._data[s],i.globalAlpha=Math.max(a[2]/this._max,t||.05),i.drawImage(this._circle,a[0]-this._r,a[1]-this._r);var n=i.getImageData(0,0,this._width,this._height);return this._colorize(n.data,this._grad),i.putImageData(n,0,0),this},_colorize:function(t,i){for(var a,s=3,e=t.length;e>s;s+=4)a=4*t[s],a&&(t[s-3]=i[a],t[s-2]=i[a+1],t[s-1]=i[a+2])}},window.simpleheat=t}(),/* + (c) 2014, Vladimir Agafonkin + Leaflet.heat, a tiny and fast heatmap plugin for Leaflet. + https://github.com/Leaflet/Leaflet.heat +*/ +L.HeatLayer=(L.Layer?L.Layer:L.Class).extend({initialize:function(t,i){this._latlngs=t,L.setOptions(this,i)},setLatLngs:function(t){return this._latlngs=t,this.redraw()},addLatLng:function(t){return this._latlngs.push(t),this.redraw()},setOptions:function(t){return L.setOptions(this,t),this._heat&&this._updateOptions(),this.redraw()},redraw:function(){return!this._heat||this._frame||this._map._animating||(this._frame=L.Util.requestAnimFrame(this._redraw,this)),this},onAdd:function(t){this._map=t,this._canvas||this._initCanvas(),t._panes.overlayPane.appendChild(this._canvas),t.on("moveend",this._reset,this),t.options.zoomAnimation&&L.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._canvas),t.off("moveend",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},_initCanvas:function(){var t=this._canvas=L.DomUtil.create("canvas","leaflet-heatmap-layer leaflet-layer"),i=this._map.getSize();t.width=i.x,t.height=i.y;var a=this._map.options.zoomAnimation&&L.Browser.any3d;L.DomUtil.addClass(t,"leaflet-zoom-"+(a?"animated":"hide")),this._heat=simpleheat(t),this._updateOptions()},_updateOptions:function(){this._heat.radius(this.options.radius||this._heat.defaultRadius,this.options.blur),this.options.gradient&&this._heat.gradient(this.options.gradient),this.options.max&&this._heat.max(this.options.max)},_reset:function(){var t=this._map.containerPointToLayerPoint([0,0]);L.DomUtil.setPosition(this._canvas,t);var i=this._map.getSize();this._heat._width!==i.x&&(this._canvas.width=this._heat._width=i.x),this._heat._height!==i.y&&(this._canvas.height=this._heat._height=i.y),this._redraw()},_redraw:function(){var t,i,a,s,e,n,h,o,r,_=[],d=this._heat._r,l=this._map.getSize(),m=new L.LatLngBounds(this._map.containerPointToLatLng(L.point([-d,-d])),this._map.containerPointToLatLng(l.add([d,d]))),c=void 0===this.options.maxZoom?this._map.getMaxZoom():this.options.maxZoom,u=1/Math.pow(2,Math.max(0,Math.min(c-this._map.getZoom(),12))),g=d/2,f=[],p=this._map._getMapPanePos(),v=p.x%g,w=p.y%g;for(t=0,i=this._latlngs.length;i>t;t++)if(m.contains(this._latlngs[t])){a=this._map.latLngToContainerPoint(this._latlngs[t]),e=Math.floor((a.x-v)/g)+2,n=Math.floor((a.y-w)/g)+2;var y=void 0!==this._latlngs[t].alt?this._latlngs[t].alt:void 0!==this._latlngs[t][2]?+this._latlngs[t][2]:1;r=y*u,f[n]=f[n]||[],s=f[n][e],s?(s[0]=(s[0]*s[2]+a.x*r)/(s[2]+r),s[1]=(s[1]*s[2]+a.y*r)/(s[2]+r),s[2]+=r):f[n][e]=[a.x,a.y,r]}for(t=0,i=f.length;i>t;t++)if(f[t])for(h=0,o=f[t].length;o>h;h++)s=f[t][h],s&&_.push([Math.round(s[0]),Math.round(s[1]),Math.min(s[2],1)]);this._heat.data(_).draw(this.options.minOpacity),this._frame=null},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._getCenterOffset(t.center)._multiplyBy(-i).subtract(this._map._getMapPanePos());L.DomUtil.setTransform?L.DomUtil.setTransform(this._canvas,a,i):this._canvas.style[L.DomUtil.TRANSFORM]=L.DomUtil.getTranslateString(a)+" scale("+i+")"}}),L.heatLayer=function(t,i){return new L.HeatLayer(t,i)}; \ No newline at end of file diff --git a/bower_components/Leaflet.heat/package.json b/bower_components/Leaflet.heat/package.json new file mode 100644 index 00000000..7a363de7 --- /dev/null +++ b/bower_components/Leaflet.heat/package.json @@ -0,0 +1,45 @@ +{ + "name": "leaflet.heat", + "version": "0.1.3", + "description": "A tiny and fast Leaflet heatmap plugin.", + "homepage": "https://github.com/Leaflet/Leaflet.heat", + "keywords": [ + "heatmap", + "canvas", + "visualization", + "gis", + "leaflet", + "plugin" + ], + "author": "Vladimir Agafonkin", + "repository": { + "type": "git", + "url": "git://github.com/Leaflet/Leaflet.heat.git" + }, + "main": "dist/leaflet-heat.js", + "devDependencies": { + "simpleheat": "~0.2.0", + "uglify-js": "~2.4.15" + }, + "scripts": { + "test": "jshint src", + "prepublish": "uglifyjs node_modules/simpleheat/simpleheat.js src/HeatLayer.js -c -m --comments /Vladimir/ -o dist/leaflet-heat.js" + }, + "jshintConfig": { + "quotmark": "single", + "globals": { + "L": true, + "simpleheat": true + }, + "trailing": true, + "camelcase": true, + "curly": true, + "eqeqeq": true, + "noempty": true, + "nonbsp": true, + "undef": true, + "unused": true, + "browser": true, + "trailing": true + } +} diff --git a/bower_components/Leaflet.heat/src/HeatLayer.js b/bower_components/Leaflet.heat/src/HeatLayer.js new file mode 100644 index 00000000..d2f52b94 --- /dev/null +++ b/bower_components/Leaflet.heat/src/HeatLayer.js @@ -0,0 +1,202 @@ +/* + (c) 2014, Vladimir Agafonkin + Leaflet.heat, a tiny and fast heatmap plugin for Leaflet. + https://github.com/Leaflet/Leaflet.heat +*/ + +L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({ + + // options: { + // minOpacity: 0.05, + // maxZoom: 18, + // radius: 25, + // blur: 15, + // max: 1.0 + // }, + + initialize: function (latlngs, options) { + this._latlngs = latlngs; + L.setOptions(this, options); + }, + + setLatLngs: function (latlngs) { + this._latlngs = latlngs; + return this.redraw(); + }, + + addLatLng: function (latlng) { + this._latlngs.push(latlng); + return this.redraw(); + }, + + setOptions: function (options) { + L.setOptions(this, options); + if (this._heat) { + this._updateOptions(); + } + return this.redraw(); + }, + + redraw: function () { + if (this._heat && !this._frame && !this._map._animating) { + this._frame = L.Util.requestAnimFrame(this._redraw, this); + } + return this; + }, + + onAdd: function (map) { + this._map = map; + + if (!this._canvas) { + this._initCanvas(); + } + + map._panes.overlayPane.appendChild(this._canvas); + + map.on('moveend', this._reset, this); + + if (map.options.zoomAnimation && L.Browser.any3d) { + map.on('zoomanim', this._animateZoom, this); + } + + this._reset(); + }, + + onRemove: function (map) { + map.getPanes().overlayPane.removeChild(this._canvas); + + map.off('moveend', this._reset, this); + + if (map.options.zoomAnimation) { + map.off('zoomanim', this._animateZoom, this); + } + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + _initCanvas: function () { + var canvas = this._canvas = L.DomUtil.create('canvas', 'leaflet-heatmap-layer leaflet-layer'); + + var size = this._map.getSize(); + canvas.width = size.x; + canvas.height = size.y; + + var animated = this._map.options.zoomAnimation && L.Browser.any3d; + L.DomUtil.addClass(canvas, 'leaflet-zoom-' + (animated ? 'animated' : 'hide')); + + this._heat = simpleheat(canvas); + this._updateOptions(); + }, + + _updateOptions: function () { + this._heat.radius(this.options.radius || this._heat.defaultRadius, this.options.blur); + + if (this.options.gradient) { + this._heat.gradient(this.options.gradient); + } + if (this.options.max) { + this._heat.max(this.options.max); + } + }, + + _reset: function () { + var topLeft = this._map.containerPointToLayerPoint([0, 0]); + L.DomUtil.setPosition(this._canvas, topLeft); + + var size = this._map.getSize(); + + if (this._heat._width !== size.x) { + this._canvas.width = this._heat._width = size.x; + } + if (this._heat._height !== size.y) { + this._canvas.height = this._heat._height = size.y; + } + + this._redraw(); + }, + + _redraw: function () { + var data = [], + r = this._heat._r, + size = this._map.getSize(), + bounds = new L.LatLngBounds( + this._map.containerPointToLatLng(L.point([-r, -r])), + this._map.containerPointToLatLng(size.add([r, r]))), + + maxZoom = this.options.maxZoom === undefined ? this._map.getMaxZoom() : this.options.maxZoom, + v = 1 / Math.pow(2, Math.max(0, Math.min(maxZoom - this._map.getZoom(), 12))), + cellSize = r / 2, + grid = [], + panePos = this._map._getMapPanePos(), + offsetX = panePos.x % cellSize, + offsetY = panePos.y % cellSize, + i, len, p, cell, x, y, j, len2, k; + + // console.time('process'); + for (i = 0, len = this._latlngs.length; i < len; i++) { + if (bounds.contains(this._latlngs[i])) { + p = this._map.latLngToContainerPoint(this._latlngs[i]); + x = Math.floor((p.x - offsetX) / cellSize) + 2; + y = Math.floor((p.y - offsetY) / cellSize) + 2; + + var alt = + this._latlngs[i].alt !== undefined ? this._latlngs[i].alt : + this._latlngs[i][2] !== undefined ? +this._latlngs[i][2] : 1; + k = alt * v; + + grid[y] = grid[y] || []; + cell = grid[y][x]; + + if (!cell) { + grid[y][x] = [p.x, p.y, k]; + + } else { + cell[0] = (cell[0] * cell[2] + p.x * k) / (cell[2] + k); // x + cell[1] = (cell[1] * cell[2] + p.y * k) / (cell[2] + k); // y + cell[2] += k; // cumulated intensity value + } + } + } + + for (i = 0, len = grid.length; i < len; i++) { + if (grid[i]) { + for (j = 0, len2 = grid[i].length; j < len2; j++) { + cell = grid[i][j]; + if (cell) { + data.push([ + Math.round(cell[0]), + Math.round(cell[1]), + Math.min(cell[2], 1) + ]); + } + } + } + } + // console.timeEnd('process'); + + // console.time('draw ' + data.length); + this._heat.data(data).draw(this.options.minOpacity); + // console.timeEnd('draw ' + data.length); + + this._frame = null; + }, + + _animateZoom: function (e) { + var scale = this._map.getZoomScale(e.zoom), + offset = this._map._getCenterOffset(e.center)._multiplyBy(-scale).subtract(this._map._getMapPanePos()); + + if (L.DomUtil.setTransform) { + L.DomUtil.setTransform(this._canvas, offset, scale); + + } else { + this._canvas.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ')'; + } + } +}); + +L.heatLayer = function (latlngs, options) { + return new L.HeatLayer(latlngs, options); +}; diff --git a/bower_components/Leaflet.label/.bower.json b/bower_components/Leaflet.label/.bower.json new file mode 100644 index 00000000..5829a715 --- /dev/null +++ b/bower_components/Leaflet.label/.bower.json @@ -0,0 +1,14 @@ +{ + "name": "Leaflet.label", + "homepage": "https://github.com/Leaflet/Leaflet.label", + "version": "0.2.1", + "_release": "0.2.1", + "_resolution": { + "type": "version", + "tag": "0.2.1", + "commit": "90ed880773bd64723621a666e74a4f6730aea41c" + }, + "_source": "git://github.com/Leaflet/Leaflet.label.git", + "_target": "*", + "_originalSource": "Leaflet.label" +} \ No newline at end of file diff --git a/bower_components/Leaflet.label/.gitattributes b/bower_components/Leaflet.label/.gitattributes new file mode 100644 index 00000000..412eeda7 --- /dev/null +++ b/bower_components/Leaflet.label/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/bower_components/Leaflet.label/.gitignore b/bower_components/Leaflet.label/.gitignore new file mode 100644 index 00000000..96398db9 --- /dev/null +++ b/bower_components/Leaflet.label/.gitignore @@ -0,0 +1,167 @@ + +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/** +tmp/** +tmp/**/* +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +**/[Dd]ebug/ +**/[Rr]elease/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +.builds +**/*.dotCover + +## TODO: If you have NuGet Package Restore enabled, uncomment this +#**/packages/ + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# ReSharper is a .NET coding add-in +_ReSharper* + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Others +[Bb]in +[Oo]bj +sql +TestResults +*.Cache +ClientBin +stylecop.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + + + +############ +## Windows +############ + +# Windows image file caches +Thumbs.db + +# Folder config file +Desktop.ini + +# Node modules used during build +node_modules/ + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +#dist +#build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg + +# Mac crap +.DS_Store diff --git a/bower_components/Leaflet.label/CHANGELOG.md b/bower_components/Leaflet.label/CHANGELOG.md new file mode 100644 index 00000000..5878515f --- /dev/null +++ b/bower_components/Leaflet.label/CHANGELOG.md @@ -0,0 +1,69 @@ +Leaflet.draw Changelog +====================== + +## master + +An in-progress version being developed on the master branch. + +## 0.2.1 (December 13, 2013) + +### Plugin improvements + + * Improved performance when setting label content. + +### Bug fixes + + * Fixed issue where labels could appear blurry after zoom. + +## 0.2.0 (August 20, 2013) + +### Plugin improvements + + * Removed need to call `showLabel` when adding a static label to the map. + * Added support for changing the direction of the label in relation to the marker. Added auto mode that switches depending on which side of the screen you are on. (adapted from [@erictheise](https://github.com/erictheise) pull request) [#17](https://github.com/Leaflet/Leaflet.label/pull/17) + * Added `labelAnchor` option to `L.CircleMarker`. + +### Bug fixes + + * Fix bug where map view hard reset did not update labels. (by [@dagjomar](https://github.com/dagjomar)). [#43](https://github.com/Leaflet/Leaflet.label/pull/43) + * Fix issue where non static labels would remain visible if the latlng of the marker changed. + +## 0.1.4 (August 20, 2013) + +### Bug fixes + + * Fixed error in IE < 9 when trying to set the label z-index. (by [@arthur-e](https://github.com/arthur-e)). [#13](https://github.com/Leaflet/Leaflet.label/pull/25) + * Fixed an issue when removing the click handler from the container to close labels in touch devices. + +## 0.1.3 (May 02, 2013) + +### Plugin improvements + + * Added method `L.Marker.setLabelNoHide()` to allow toggling of static marker labels. (inspired by [@kpwebb](https://github.com/kpwebb)). [#20](https://github.com/Leaflet/Leaflet.label/pull/20) + * Non-static labels will now hide when map container is tapped on touch devices. (by [@snkashis](https://github.com/snkashis)). [#26](https://github.com/Leaflet/Leaflet.label/pull/26) + * Added ability to set the opacity of the label along with the marker. (inspired by [@snkashis](https://github.com/snkashis)). [#20](https://github.com/Leaflet/Leaflet.label/pull/27) + * Added support for mouse event to L.Label. + * Added public getter to L.Marker to retrieve the label associated to a marker. + +### Bug fixes + + * Fixed labels not updating position after being dragged. (by [@snkashis](https://github.com/snkashis)). [#13](https://github.com/Leaflet/Leaflet.label/pull/13) + * Z-Index fixes aimed at static labels. This will ensure that label is shown at the same level as the marker. + * Correctly remove event listeners in Marker.Label and Path.Label. + +## 0.1.1 (December 10, 2012) + +### Plugin improvements + + * FeatureGroup now supports label methods. + +### Bug fixes + + * Fixed bug where label wouldn't hide when unbindLabel was called. + * Fixed Multi-Poly support. + * Fixed bug where a label's position wouldn't be updated when a marker moved. + * Fixed bug where label wouldn't be removed from map when a marker was. + +## 0.1.0 (October 7, 2012) + +Initial version of Leaflet.label diff --git a/bower_components/Leaflet.label/Jakefile.js b/bower_components/Leaflet.label/Jakefile.js new file mode 100644 index 00000000..aab62066 --- /dev/null +++ b/bower_components/Leaflet.label/Jakefile.js @@ -0,0 +1,21 @@ +/* +Leaflet.label building and linting scripts. + +To use, install Node, then run the following commands in the project root: + + npm install -g jake + npm install uglify-js + npm install jshint + +To check the code and build Leaflet.label from source, run "jake" +*/ + +var build = require('./build/build.js'); + +desc('Check Leaflet.label source for errors with JSHint'); +task('lint', build.lint); + +desc('Combine and compress Leaflet.label source files'); +task('build', ['lint'], build.build); + +task('default', ['build']); diff --git a/bower_components/Leaflet.label/MIT-LICENCE.txt b/bower_components/Leaflet.label/MIT-LICENCE.txt new file mode 100644 index 00000000..1ace2f33 --- /dev/null +++ b/bower_components/Leaflet.label/MIT-LICENCE.txt @@ -0,0 +1,20 @@ +Copyright 2012 Jacob Toye + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/bower_components/Leaflet.label/README.md b/bower_components/Leaflet.label/README.md new file mode 100644 index 00000000..07d3ee23 --- /dev/null +++ b/bower_components/Leaflet.label/README.md @@ -0,0 +1,103 @@ +Leaflet.label +============= + +**NOTE: lastest Leaflet.label master requires Leaflet 0.7-dev** + +Leaflet.label is plugin for adding labels to markers & shapes on leaflet powered maps. + +Check out the [demo](http://leaflet.github.com/Leaflet.label/). + +##Usage examples + +If you want to just bind a label to marker that will show when the mouse is over it, it's really easy: + +````js +L.marker([-37.7772, 175.2606]).bindLabel('Look revealing label!').addTo(map); +```` + +Path overlays works the same: + +````js +L.polyline([ + [-37.7612, 175.2756], + [-37.7702, 175.2796], + [-37.7802, 175.2750], +]).bindLabel('Even polylines can have labels.').addTo(map) +```` + +If you would prefer the label to be always visible set the ````noHide: true```` option and call ````showLabel()```` once added to the map: + +````js +L.marker([-37.785, 175.263]) + .bindLabel('A sweet static label!', { noHide: true }) + .addTo(map); +```` + +##Options + +When you call ````bindLabel()```` you can pass in an options object. These options are: + + - **noHide**: doesn't attach event handler for showing/hiding the label on mouseover/out. + - **className**: the css class to add to the label element + - **direction**: one of `left`|`right`(default)|`auto`. The direction the label displays in relation to the marker. `auto` will choose the optimal direction depending on the position of the marker. + +E.g. To create a static label that automatically positions the label + +````js +var myIcon = L.icon({ + iconUrl: 'my-icon.png', + iconSize: [20, 20], + iconAnchor: [10, 10], + labelAnchor: [6, 0] // as I want the label to appear 2px past the icon (10 + 2 - 6) +}); +L.marker([-37.7772, 175.2606], { + icon: myIcon +}).bindLabel('My label', { + noHide: true, + direction: 'auto' +}); +```` + +##Positioning the label for custom icons + +The label is positioned relative to the L.Icon's ````iconAnchor```` option. To reposition the label set the ````labelAnchor```` option of your icon. By default ````labelAnchor```` is set so the label will show vertically centered for the default icon (````L.Icon.Default````). + +E.g. Vertically center an icon with ````iconAnchor```` set as the center of the icon: + +````js +var myIcon = L.icon({ + iconUrl: 'my-icon.png', + iconSize: [20, 20], + iconAnchor: [10, 10], + labelAnchor: [6, 0] // as I want the label to appear 2px past the icon (10 + 2 - 6) +}); +L.marker([-37.7772, 175.2606], { + icon: myIcon +}).bindLabel('Look revealing label!').addTo(map); +```` + +When positioning the label L.Label includes a 6px horizontal padding. you will need to take this into account when setting ````labelAnchor````. + +##Setting the opacity of a label + +You can set the opacity of a label by calling the `setOpacity` method on `L.Marker`. By default the opacity will either be **0** or **1**. + +````js +// Sets opacity of marker to 0.3 and opacity of label to 1 +markerLabel.setOpacity(0.3); + +// Sets opacity of marker to 0.3 and opacity of label to 0.3 +markerLabel.setOpacity(0.3, true); + +// Sets opacity of marker to 0 and opacity of label to 0 +markerLabel.setOpacity(0); +markerLabel.setOpacity(0, true); + +// Sets opacity of marker to 1 and opacity of label to 1 +markerLabel.setOpacity(1); +markerLabel.setOpacity(1, true); +```` + +##Alternative label plugin + +My previous label plugin is still available at https://github.com/jacobtoye/Leaflet.iconlabel. This plugin is a little harder to use, however if you want to have both the icon and label bound to the same event this plugin is for you. diff --git a/bower_components/Leaflet.label/build/build.js b/bower_components/Leaflet.label/build/build.js new file mode 100644 index 00000000..ebd2ae3c --- /dev/null +++ b/bower_components/Leaflet.label/build/build.js @@ -0,0 +1,155 @@ +var fs = require('fs'), + jshint = require('jshint'), + UglifyJS = require('uglify-js'), + + deps = require('./deps.js').deps, + hintrc = require('./hintrc.js'); + + +function lintFiles(files) { + + var errorsFound = 0, + i, j, len, len2, src, errors, e; + + for (i = 0, len = files.length; i < len; i++) { + + jshint.JSHINT(fs.readFileSync(files[i], 'utf8'), hintrc.config, hintrc.globals); + errors = jshint.JSHINT.errors; + + for (j = 0, len2 = errors.length; j < len2; j++) { + e = errors[j]; + console.log(files[i] + '\tline ' + e.line + '\tcol ' + e.character + '\t ' + e.reason); + } + + errorsFound += len2; + } + + return errorsFound; +} + +function getFiles(compsBase32) { + var memo = {}, + comps; + + if (compsBase32) { + comps = parseInt(compsBase32, 32).toString(2).split(''); + console.log('Managing dependencies...'); + } + + function addFiles(srcs) { + for (var j = 0, len = srcs.length; j < len; j++) { + memo[srcs[j]] = true; + } + } + + for (var i in deps) { + if (comps) { + if (parseInt(comps.pop(), 2) === 1) { + console.log('\t* ' + i); + addFiles(deps[i].src); + } else { + console.log('\t ' + i); + } + } else { + addFiles(deps[i].src); + } + } + + var files = []; + + for (var src in memo) { + files.push('src/' + src); + } + + return files; +} + +exports.lint = function () { + + var files = getFiles(); + + console.log('Checking for JS errors...'); + + var errorsFound = lintFiles(files); + + if (errorsFound > 0) { + console.log(errorsFound + ' error(s) found.\n'); + fail(); + } else { + console.log('\tCheck passed'); + } +}; + + +function getSizeDelta(newContent, oldContent) { + if (!oldContent) { + return 'new'; + } + var newLen = newContent.replace(/\r\n?/g, '\n').length, + oldLen = oldContent.replace(/\r\n?/g, '\n').length, + delta = newLen - oldLen; + + return (delta >= 0 ? '+' : '') + delta; +} + +function loadSilently(path) { + try { + return fs.readFileSync(path, 'utf8'); + } catch (e) { + return null; + } +} + +function combineFiles(files) { + var content = ''; + for (var i = 0, len = files.length; i < len; i++) { + content += fs.readFileSync(files[i], 'utf8') + '\n\n'; + } + return content; +} + +exports.build = function (compsBase32, buildName) { + + var files = getFiles(compsBase32); + + console.log('Concatenating ' + files.length + ' files...'); + + var copy = fs.readFileSync('src/copyright.js', 'utf8'), + intro = '(function (window, document, undefined) {\n', + outro = '}(this, document));', + newSrc = copy + intro + combineFiles(files) + outro, + + pathPart = 'dist/leaflet.label' + (buildName ? '-' + buildName : ''), + srcPath = pathPart + '-src.js', + + oldSrc = loadSilently(srcPath), + srcDelta = getSizeDelta(newSrc, oldSrc); + + console.log('\tUncompressed size: ' + newSrc.length + ' bytes (' + srcDelta + ')'); + + if (newSrc === oldSrc) { + console.log('\tNo changes'); + } else { + fs.writeFileSync(srcPath, newSrc); + console.log('\tSaved to ' + srcPath); + } + + console.log('Compressing...'); + + var path = pathPart + '.js', + oldCompressed = loadSilently(path), + newCompressed = copy + UglifyJS.minify(newSrc, { + warnings: true, + fromString: true + }).code, + delta = getSizeDelta(newCompressed, oldCompressed); + + console.log('\tCompressed size: ' + newCompressed.length + ' bytes (' + delta + ')'); + + if (newCompressed === oldCompressed) { + console.log('\tNo changes'); + } else { + fs.writeFileSync(path, newCompressed); + console.log('\tSaved to ' + path); + } +}; diff --git a/bower_components/Leaflet.label/build/deps.js b/bower_components/Leaflet.label/build/deps.js new file mode 100644 index 00000000..f9064aed --- /dev/null +++ b/bower_components/Leaflet.label/build/deps.js @@ -0,0 +1,26 @@ +var deps = { + Core: { + src: [ + 'Leaflet.label.js' + ], + desc: 'The core of the plugin. Currently only includes the version.' + }, + + Label: { + src: [ + 'Label.js', + 'BaseMarkerMethods.js', + 'Marker.Label.js', + 'CircleMarker.Label.js', + 'Path.Label.js', + 'Map.Label.js', + 'FeatureGroup.Label.js' + ], + desc: 'Leaflet.label plugin files.', + deps: ['Core'] + } +}; + +if (typeof exports !== 'undefined') { + exports.deps = deps; +} \ No newline at end of file diff --git a/bower_components/Leaflet.label/build/hint.js b/bower_components/Leaflet.label/build/hint.js new file mode 100644 index 00000000..464bbe11 --- /dev/null +++ b/bower_components/Leaflet.label/build/hint.js @@ -0,0 +1,30 @@ +var jshint = require('jshint').JSHINT, + fs = require('fs'), + config = require('./hintrc.js').config; + +function jshintSrc(path, src) { + jshint(src, config); + + var errors = jshint.errors, + i, len, e, line; + + for (i = 0, len = errors.length; i < len; i++) { + e = errors[i]; + //console.log(e.evidence); + console.log(path + '\tline ' + e.line + '\tcol ' + e.character + '\t ' + e.reason); + } + + return len; +} + +exports.jshint = function (files) { + var errorsFound = 0; + + for (var i = 0, len = files.length; i < len; i++) { + var src = fs.readFileSync(files[i], 'utf8'); + + errorsFound += jshintSrc(files[i], src); + } + + return errorsFound; +}; \ No newline at end of file diff --git a/bower_components/Leaflet.label/build/hintrc.js b/bower_components/Leaflet.label/build/hintrc.js new file mode 100644 index 00000000..618090c2 --- /dev/null +++ b/bower_components/Leaflet.label/build/hintrc.js @@ -0,0 +1,51 @@ +exports.config = { + "browser": true, + "node": true, + "predef": ["L"], + + "debug": false, + "devel": false, + + "es5": false, + "strict": false, + "globalstrict": false, + + "asi": false, + "laxbreak": false, + "bitwise": true, + "boss": false, + "curly": true, + "eqnull": false, + "evil": false, + "expr": false, + "forin": true, + "immed": true, + "latedef": true, + "loopfunc": false, + "noarg": true, + "regexp": true, + "regexdash": false, + "scripturl": false, + "shadow": false, + "supernew": false, + "undef": true, + "funcscope": false, + + "newcap": true, + "noempty": true, + "nonew": true, + "nomen": false, + "onevar": false, + "plusplus": false, + "sub": false, + "indent": 4, + + "eqeqeq": true, + "trailing": true, + "white": true, + "smarttabs": true +}; + +exports.globals = { + 'L': false +} diff --git a/bower_components/Leaflet.label/dist/images/death.png b/bower_components/Leaflet.label/dist/images/death.png new file mode 100644 index 00000000..6566ded2 Binary files /dev/null and b/bower_components/Leaflet.label/dist/images/death.png differ diff --git a/bower_components/Leaflet.label/dist/leaflet.label-src.js b/bower_components/Leaflet.label/dist/leaflet.label-src.js new file mode 100644 index 00000000..daf6c5af --- /dev/null +++ b/bower_components/Leaflet.label/dist/leaflet.label-src.js @@ -0,0 +1,542 @@ +/* + Leaflet.label, a plugin that adds labels to markers and vectors for Leaflet powered maps. + (c) 2012-2013, Jacob Toye, Smartrak + + https://github.com/Leaflet/Leaflet.label + http://leafletjs.com + https://github.com/jacobtoye +*/ +(function (window, document, undefined) { +/* + * Leaflet.label assumes that you have already included the Leaflet library. + */ + +L.labelVersion = '0.2.1'; + +L.Label = L.Class.extend({ + + includes: L.Mixin.Events, + + options: { + className: '', + clickable: false, + direction: 'right', + noHide: false, + offset: [12, -15], // 6 (width of the label triangle) + 6 (padding) + opacity: 1, + zoomAnimation: true + }, + + initialize: function (options, source) { + L.setOptions(this, options); + + this._source = source; + this._animated = L.Browser.any3d && this.options.zoomAnimation; + this._isOpen = false; + }, + + onAdd: function (map) { + this._map = map; + + this._pane = this._source instanceof L.Marker ? map._panes.markerPane : map._panes.popupPane; + + if (!this._container) { + this._initLayout(); + } + + this._pane.appendChild(this._container); + + this._initInteraction(); + + this._update(); + + this.setOpacity(this.options.opacity); + + map + .on('moveend', this._onMoveEnd, this) + .on('viewreset', this._onViewReset, this); + + if (this._animated) { + map.on('zoomanim', this._zoomAnimation, this); + } + + if (L.Browser.touch && !this.options.noHide) { + L.DomEvent.on(this._container, 'click', this.close, this); + } + }, + + onRemove: function (map) { + this._pane.removeChild(this._container); + + map.off({ + zoomanim: this._zoomAnimation, + moveend: this._onMoveEnd, + viewreset: this._onViewReset + }, this); + + this._removeInteraction(); + + this._map = null; + }, + + setLatLng: function (latlng) { + this._latlng = L.latLng(latlng); + if (this._map) { + this._updatePosition(); + } + return this; + }, + + setContent: function (content) { + // Backup previous content and store new content + this._previousContent = this._content; + this._content = content; + + this._updateContent(); + + return this; + }, + + close: function () { + var map = this._map; + + if (map) { + if (L.Browser.touch && !this.options.noHide) { + L.DomEvent.off(this._container, 'click', this.close); + } + + map.removeLayer(this); + } + }, + + updateZIndex: function (zIndex) { + this._zIndex = zIndex; + + if (this._container && this._zIndex) { + this._container.style.zIndex = zIndex; + } + }, + + setOpacity: function (opacity) { + this.options.opacity = opacity; + + if (this._container) { + L.DomUtil.setOpacity(this._container, opacity); + } + }, + + _initLayout: function () { + this._container = L.DomUtil.create('div', 'leaflet-label ' + this.options.className + ' leaflet-zoom-animated'); + this.updateZIndex(this._zIndex); + }, + + _update: function () { + if (!this._map) { return; } + + this._container.style.visibility = 'hidden'; + + this._updateContent(); + this._updatePosition(); + + this._container.style.visibility = ''; + }, + + _updateContent: function () { + if (!this._content || !this._map || this._prevContent === this._content) { + return; + } + + if (typeof this._content === 'string') { + this._container.innerHTML = this._content; + + this._prevContent = this._content; + + this._labelWidth = this._container.offsetWidth; + } + }, + + _updatePosition: function () { + var pos = this._map.latLngToLayerPoint(this._latlng); + + this._setPosition(pos); + }, + + _setPosition: function (pos) { + var map = this._map, + container = this._container, + centerPoint = map.latLngToContainerPoint(map.getCenter()), + labelPoint = map.layerPointToContainerPoint(pos), + direction = this.options.direction, + labelWidth = this._labelWidth, + offset = L.point(this.options.offset); + + // position to the right (right or auto & needs to) + if (direction === 'right' || direction === 'auto' && labelPoint.x < centerPoint.x) { + L.DomUtil.addClass(container, 'leaflet-label-right'); + L.DomUtil.removeClass(container, 'leaflet-label-left'); + + pos = pos.add(offset); + } else { // position to the left + L.DomUtil.addClass(container, 'leaflet-label-left'); + L.DomUtil.removeClass(container, 'leaflet-label-right'); + + pos = pos.add(L.point(-offset.x - labelWidth, offset.y)); + } + + L.DomUtil.setPosition(container, pos); + }, + + _zoomAnimation: function (opt) { + var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round(); + + this._setPosition(pos); + }, + + _onMoveEnd: function () { + if (!this._animated || this.options.direction === 'auto') { + this._updatePosition(); + } + }, + + _onViewReset: function (e) { + /* if map resets hard, we must update the label */ + if (e && e.hard) { + this._update(); + } + }, + + _initInteraction: function () { + if (!this.options.clickable) { return; } + + var container = this._container, + events = ['dblclick', 'mousedown', 'mouseover', 'mouseout', 'contextmenu']; + + L.DomUtil.addClass(container, 'leaflet-clickable'); + L.DomEvent.on(container, 'click', this._onMouseClick, this); + + for (var i = 0; i < events.length; i++) { + L.DomEvent.on(container, events[i], this._fireMouseEvent, this); + } + }, + + _removeInteraction: function () { + if (!this.options.clickable) { return; } + + var container = this._container, + events = ['dblclick', 'mousedown', 'mouseover', 'mouseout', 'contextmenu']; + + L.DomUtil.removeClass(container, 'leaflet-clickable'); + L.DomEvent.off(container, 'click', this._onMouseClick, this); + + for (var i = 0; i < events.length; i++) { + L.DomEvent.off(container, events[i], this._fireMouseEvent, this); + } + }, + + _onMouseClick: function (e) { + if (this.hasEventListeners(e.type)) { + L.DomEvent.stopPropagation(e); + } + + this.fire(e.type, { + originalEvent: e + }); + }, + + _fireMouseEvent: function (e) { + this.fire(e.type, { + originalEvent: e + }); + + // TODO proper custom event propagation + // this line will always be called if marker is in a FeatureGroup + if (e.type === 'contextmenu' && this.hasEventListeners(e.type)) { + L.DomEvent.preventDefault(e); + } + if (e.type !== 'mousedown') { + L.DomEvent.stopPropagation(e); + } else { + L.DomEvent.preventDefault(e); + } + } +}); + + +// This object is a mixin for L.Marker and L.CircleMarker. We declare it here as both need to include the contents. +L.BaseMarkerMethods = { + showLabel: function () { + if (this.label && this._map) { + this.label.setLatLng(this._latlng); + this._map.showLabel(this.label); + } + + return this; + }, + + hideLabel: function () { + if (this.label) { + this.label.close(); + } + return this; + }, + + setLabelNoHide: function (noHide) { + if (this._labelNoHide === noHide) { + return; + } + + this._labelNoHide = noHide; + + if (noHide) { + this._removeLabelRevealHandlers(); + this.showLabel(); + } else { + this._addLabelRevealHandlers(); + this.hideLabel(); + } + }, + + bindLabel: function (content, options) { + var labelAnchor = this.options.icon ? this.options.icon.options.labelAnchor : this.options.labelAnchor, + anchor = L.point(labelAnchor) || L.point(0, 0); + + anchor = anchor.add(L.Label.prototype.options.offset); + + if (options && options.offset) { + anchor = anchor.add(options.offset); + } + + options = L.Util.extend({offset: anchor}, options); + + this._labelNoHide = options.noHide; + + if (!this.label) { + if (!this._labelNoHide) { + this._addLabelRevealHandlers(); + } + + this + .on('remove', this.hideLabel, this) + .on('move', this._moveLabel, this) + .on('add', this._onMarkerAdd, this); + + this._hasLabelHandlers = true; + } + + this.label = new L.Label(options, this) + .setContent(content); + + return this; + }, + + unbindLabel: function () { + if (this.label) { + this.hideLabel(); + + this.label = null; + + if (this._hasLabelHandlers) { + if (!this._labelNoHide) { + this._removeLabelRevealHandlers(); + } + + this + .off('remove', this.hideLabel, this) + .off('move', this._moveLabel, this) + .off('add', this._onMarkerAdd, this); + } + + this._hasLabelHandlers = false; + } + return this; + }, + + updateLabelContent: function (content) { + if (this.label) { + this.label.setContent(content); + } + }, + + getLabel: function () { + return this.label; + }, + + _onMarkerAdd: function () { + if (this._labelNoHide) { + this.showLabel(); + } + }, + + _addLabelRevealHandlers: function () { + this + .on('mouseover', this.showLabel, this) + .on('mouseout', this.hideLabel, this); + + if (L.Browser.touch) { + this.on('click', this.showLabel, this); + } + }, + + _removeLabelRevealHandlers: function () { + this + .off('mouseover', this.showLabel, this) + .off('mouseout', this.hideLabel, this); + + if (L.Browser.touch) { + this.off('click', this.showLabel, this); + } + }, + + _moveLabel: function (e) { + this.label.setLatLng(e.latlng); + } +}; + +// Add in an option to icon that is used to set where the label anchor is +L.Icon.Default.mergeOptions({ + labelAnchor: new L.Point(9, -20) +}); + +// Have to do this since Leaflet is loaded before this plugin and initializes +// L.Marker.options.icon therefore missing our mixin above. +L.Marker.mergeOptions({ + icon: new L.Icon.Default() +}); + +L.Marker.include(L.BaseMarkerMethods); +L.Marker.include({ + _originalUpdateZIndex: L.Marker.prototype._updateZIndex, + + _updateZIndex: function (offset) { + var zIndex = this._zIndex + offset; + + this._originalUpdateZIndex(offset); + + if (this.label) { + this.label.updateZIndex(zIndex); + } + }, + + _originalSetOpacity: L.Marker.prototype.setOpacity, + + setOpacity: function (opacity, labelHasSemiTransparency) { + this.options.labelHasSemiTransparency = labelHasSemiTransparency; + + this._originalSetOpacity(opacity); + }, + + _originalUpdateOpacity: L.Marker.prototype._updateOpacity, + + _updateOpacity: function () { + var absoluteOpacity = this.options.opacity === 0 ? 0 : 1; + + this._originalUpdateOpacity(); + + if (this.label) { + this.label.setOpacity(this.options.labelHasSemiTransparency ? this.options.opacity : absoluteOpacity); + } + }, + + _originalSetLatLng: L.Marker.prototype.setLatLng, + + setLatLng: function (latlng) { + if (this.label && !this._labelNoHide) { + this.hideLabel(); + } + + return this._originalSetLatLng(latlng); + } +}); + +// Add in an option to icon that is used to set where the label anchor is +L.CircleMarker.mergeOptions({ + labelAnchor: new L.Point(0, 0) +}); + + +L.CircleMarker.include(L.BaseMarkerMethods); + +L.Path.include({ + bindLabel: function (content, options) { + if (!this.label || this.label.options !== options) { + this.label = new L.Label(options, this); + } + + this.label.setContent(content); + + if (!this._showLabelAdded) { + this + .on('mouseover', this._showLabel, this) + .on('mousemove', this._moveLabel, this) + .on('mouseout remove', this._hideLabel, this); + + if (L.Browser.touch) { + this.on('click', this._showLabel, this); + } + this._showLabelAdded = true; + } + + return this; + }, + + unbindLabel: function () { + if (this.label) { + this._hideLabel(); + this.label = null; + this._showLabelAdded = false; + this + .off('mouseover', this._showLabel, this) + .off('mousemove', this._moveLabel, this) + .off('mouseout remove', this._hideLabel, this); + } + return this; + }, + + updateLabelContent: function (content) { + if (this.label) { + this.label.setContent(content); + } + }, + + _showLabel: function (e) { + this.label.setLatLng(e.latlng); + this._map.showLabel(this.label); + }, + + _moveLabel: function (e) { + this.label.setLatLng(e.latlng); + }, + + _hideLabel: function () { + this.label.close(); + } +}); + +L.Map.include({ + showLabel: function (label) { + return this.addLayer(label); + } +}); + +L.FeatureGroup.include({ + // TODO: remove this when AOP is supported in Leaflet, need this as we cannot put code in removeLayer() + clearLayers: function () { + this.unbindLabel(); + this.eachLayer(this.removeLayer, this); + return this; + }, + + bindLabel: function (content, options) { + return this.invoke('bindLabel', content, options); + }, + + unbindLabel: function () { + return this.invoke('unbindLabel'); + }, + + updateLabelContent: function (content) { + this.invoke('updateLabelContent', content); + } +}); + +}(this, document)); \ No newline at end of file diff --git a/bower_components/Leaflet.label/dist/leaflet.label.css b/bower_components/Leaflet.label/dist/leaflet.label.css new file mode 100644 index 00000000..8671515c --- /dev/null +++ b/bower_components/Leaflet.label/dist/leaflet.label.css @@ -0,0 +1,52 @@ +.leaflet-label { + background: rgb(235, 235, 235); + background: rgba(235, 235, 235, 0.81); + background-clip: padding-box; + border-color: #777; + border-color: rgba(0,0,0,0.25); + border-radius: 4px; + border-style: solid; + border-width: 4px; + color: #111; + display: block; + font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif; + font-weight: bold; + padding: 1px 6px; + position: absolute; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + white-space: nowrap; + z-index: 6; +} + +.leaflet-label.leaflet-clickable { + cursor: pointer; +} + +.leaflet-label:before, +.leaflet-label:after { + border-top: 6px solid transparent; + border-bottom: 6px solid transparent; + content: none; + position: absolute; + top: 5px; +} + +.leaflet-label:before { + border-right: 6px solid black; + border-right-color: inherit; + left: -10px; +} + +.leaflet-label:after { + border-left: 6px solid black; + border-left-color: inherit; + right: -10px; +} + +.leaflet-label-right:before, +.leaflet-label-left:after { + content: ""; +} \ No newline at end of file diff --git a/bower_components/Leaflet.label/dist/leaflet.label.js b/bower_components/Leaflet.label/dist/leaflet.label.js new file mode 100644 index 00000000..4a054b3f --- /dev/null +++ b/bower_components/Leaflet.label/dist/leaflet.label.js @@ -0,0 +1,9 @@ +/* + Leaflet.label, a plugin that adds labels to markers and vectors for Leaflet powered maps. + (c) 2012-2013, Jacob Toye, Smartrak + + https://github.com/Leaflet/Leaflet.label + http://leafletjs.com + https://github.com/jacobtoye +*/ +(function(){L.labelVersion="0.2.1",L.Label=L.Class.extend({includes:L.Mixin.Events,options:{className:"",clickable:!1,direction:"right",noHide:!1,offset:[12,-15],opacity:1,zoomAnimation:!0},initialize:function(t,e){L.setOptions(this,t),this._source=e,this._animated=L.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._pane=this._source instanceof L.Marker?t._panes.markerPane:t._panes.popupPane,this._container||this._initLayout(),this._pane.appendChild(this._container),this._initInteraction(),this._update(),this.setOpacity(this.options.opacity),t.on("moveend",this._onMoveEnd,this).on("viewreset",this._onViewReset,this),this._animated&&t.on("zoomanim",this._zoomAnimation,this),L.Browser.touch&&!this.options.noHide&&L.DomEvent.on(this._container,"click",this.close,this)},onRemove:function(t){this._pane.removeChild(this._container),t.off({zoomanim:this._zoomAnimation,moveend:this._onMoveEnd,viewreset:this._onViewReset},this),this._removeInteraction(),this._map=null},setLatLng:function(t){return this._latlng=L.latLng(t),this._map&&this._updatePosition(),this},setContent:function(t){return this._previousContent=this._content,this._content=t,this._updateContent(),this},close:function(){var t=this._map;t&&(L.Browser.touch&&!this.options.noHide&&L.DomEvent.off(this._container,"click",this.close),t.removeLayer(this))},updateZIndex:function(t){this._zIndex=t,this._container&&this._zIndex&&(this._container.style.zIndex=t)},setOpacity:function(t){this.options.opacity=t,this._container&&L.DomUtil.setOpacity(this._container,t)},_initLayout:function(){this._container=L.DomUtil.create("div","leaflet-label "+this.options.className+" leaflet-zoom-animated"),this.updateZIndex(this._zIndex)},_update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updatePosition(),this._container.style.visibility="")},_updateContent:function(){this._content&&this._map&&this._prevContent!==this._content&&"string"==typeof this._content&&(this._container.innerHTML=this._content,this._prevContent=this._content,this._labelWidth=this._container.offsetWidth)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),s=this.options.direction,a=this._labelWidth,l=L.point(this.options.offset);"right"===s||"auto"===s&&o.xi;i++)L.DomEvent.on(t,e[i],this._fireMouseEvent,this)}},_removeInteraction:function(){if(this.options.clickable){var t=this._container,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];L.DomUtil.removeClass(t,"leaflet-clickable"),L.DomEvent.off(t,"click",this._onMouseClick,this);for(var i=0;e.length>i;i++)L.DomEvent.off(t,e[i],this._fireMouseEvent,this)}},_onMouseClick:function(t){this.hasEventListeners(t.type)&&L.DomEvent.stopPropagation(t),this.fire(t.type,{originalEvent:t})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&L.DomEvent.preventDefault(t),"mousedown"!==t.type?L.DomEvent.stopPropagation(t):L.DomEvent.preventDefault(t)}}),L.BaseMarkerMethods={showLabel:function(){return this.label&&this._map&&(this.label.setLatLng(this._latlng),this._map.showLabel(this.label)),this},hideLabel:function(){return this.label&&this.label.close(),this},setLabelNoHide:function(t){this._labelNoHide!==t&&(this._labelNoHide=t,t?(this._removeLabelRevealHandlers(),this.showLabel()):(this._addLabelRevealHandlers(),this.hideLabel()))},bindLabel:function(t,e){var i=this.options.icon?this.options.icon.options.labelAnchor:this.options.labelAnchor,n=L.point(i)||L.point(0,0);return n=n.add(L.Label.prototype.options.offset),e&&e.offset&&(n=n.add(e.offset)),e=L.Util.extend({offset:n},e),this._labelNoHide=e.noHide,this.label||(this._labelNoHide||this._addLabelRevealHandlers(),this.on("remove",this.hideLabel,this).on("move",this._moveLabel,this).on("add",this._onMarkerAdd,this),this._hasLabelHandlers=!0),this.label=new L.Label(e,this).setContent(t),this},unbindLabel:function(){return this.label&&(this.hideLabel(),this.label=null,this._hasLabelHandlers&&(this._labelNoHide||this._removeLabelRevealHandlers(),this.off("remove",this.hideLabel,this).off("move",this._moveLabel,this).off("add",this._onMarkerAdd,this)),this._hasLabelHandlers=!1),this},updateLabelContent:function(t){this.label&&this.label.setContent(t)},getLabel:function(){return this.label},_onMarkerAdd:function(){this._labelNoHide&&this.showLabel()},_addLabelRevealHandlers:function(){this.on("mouseover",this.showLabel,this).on("mouseout",this.hideLabel,this),L.Browser.touch&&this.on("click",this.showLabel,this)},_removeLabelRevealHandlers:function(){this.off("mouseover",this.showLabel,this).off("mouseout",this.hideLabel,this),L.Browser.touch&&this.off("click",this.showLabel,this)},_moveLabel:function(t){this.label.setLatLng(t.latlng)}},L.Icon.Default.mergeOptions({labelAnchor:new L.Point(9,-20)}),L.Marker.mergeOptions({icon:new L.Icon.Default}),L.Marker.include(L.BaseMarkerMethods),L.Marker.include({_originalUpdateZIndex:L.Marker.prototype._updateZIndex,_updateZIndex:function(t){var e=this._zIndex+t;this._originalUpdateZIndex(t),this.label&&this.label.updateZIndex(e)},_originalSetOpacity:L.Marker.prototype.setOpacity,setOpacity:function(t,e){this.options.labelHasSemiTransparency=e,this._originalSetOpacity(t)},_originalUpdateOpacity:L.Marker.prototype._updateOpacity,_updateOpacity:function(){var t=0===this.options.opacity?0:1;this._originalUpdateOpacity(),this.label&&this.label.setOpacity(this.options.labelHasSemiTransparency?this.options.opacity:t)},_originalSetLatLng:L.Marker.prototype.setLatLng,setLatLng:function(t){return this.label&&!this._labelNoHide&&this.hideLabel(),this._originalSetLatLng(t)}}),L.CircleMarker.mergeOptions({labelAnchor:new L.Point(0,0)}),L.CircleMarker.include(L.BaseMarkerMethods),L.Path.include({bindLabel:function(t,e){return this.label&&this.label.options===e||(this.label=new L.Label(e,this)),this.label.setContent(t),this._showLabelAdded||(this.on("mouseover",this._showLabel,this).on("mousemove",this._moveLabel,this).on("mouseout remove",this._hideLabel,this),L.Browser.touch&&this.on("click",this._showLabel,this),this._showLabelAdded=!0),this},unbindLabel:function(){return this.label&&(this._hideLabel(),this.label=null,this._showLabelAdded=!1,this.off("mouseover",this._showLabel,this).off("mousemove",this._moveLabel,this).off("mouseout remove",this._hideLabel,this)),this},updateLabelContent:function(t){this.label&&this.label.setContent(t)},_showLabel:function(t){this.label.setLatLng(t.latlng),this._map.showLabel(this.label)},_moveLabel:function(t){this.label.setLatLng(t.latlng)},_hideLabel:function(){this.label.close()}}),L.Map.include({showLabel:function(t){return this.addLayer(t)}}),L.FeatureGroup.include({clearLayers:function(){return this.unbindLabel(),this.eachLayer(this.removeLayer,this),this},bindLabel:function(t,e){return this.invoke("bindLabel",t,e)},unbindLabel:function(){return this.invoke("unbindLabel")},updateLabelContent:function(t){this.invoke("updateLabelContent",t)}})})(this,document); \ No newline at end of file diff --git a/bower_components/Leaflet.label/example/label.html b/bower_components/Leaflet.label/example/label.html new file mode 100644 index 00000000..f3264c4c --- /dev/null +++ b/bower_components/Leaflet.label/example/label.html @@ -0,0 +1,85 @@ + + + + Leaflet.label example + + + + + + + + + + + + + + + + +
+ + + diff --git a/bower_components/Leaflet.label/libs/leaflet/images/layers-2x.png b/bower_components/Leaflet.label/libs/leaflet/images/layers-2x.png new file mode 100644 index 00000000..a2cf7f9e Binary files /dev/null and b/bower_components/Leaflet.label/libs/leaflet/images/layers-2x.png differ diff --git a/bower_components/Leaflet.label/libs/leaflet/images/layers.png b/bower_components/Leaflet.label/libs/leaflet/images/layers.png new file mode 100755 index 00000000..bca0a0e4 Binary files /dev/null and b/bower_components/Leaflet.label/libs/leaflet/images/layers.png differ diff --git a/bower_components/Leaflet.label/libs/leaflet/images/marker-icon-2x.png b/bower_components/Leaflet.label/libs/leaflet/images/marker-icon-2x.png new file mode 100644 index 00000000..0015b649 Binary files /dev/null and b/bower_components/Leaflet.label/libs/leaflet/images/marker-icon-2x.png differ diff --git a/bower_components/Leaflet.label/libs/leaflet/images/marker-icon.png b/bower_components/Leaflet.label/libs/leaflet/images/marker-icon.png new file mode 100755 index 00000000..e2e9f757 Binary files /dev/null and b/bower_components/Leaflet.label/libs/leaflet/images/marker-icon.png differ diff --git a/bower_components/Leaflet.label/libs/leaflet/images/marker-icon@2x.png b/bower_components/Leaflet.label/libs/leaflet/images/marker-icon@2x.png new file mode 100755 index 00000000..0015b649 Binary files /dev/null and b/bower_components/Leaflet.label/libs/leaflet/images/marker-icon@2x.png differ diff --git a/bower_components/Leaflet.label/libs/leaflet/images/marker-shadow.png b/bower_components/Leaflet.label/libs/leaflet/images/marker-shadow.png new file mode 100755 index 00000000..d1e773c7 Binary files /dev/null and b/bower_components/Leaflet.label/libs/leaflet/images/marker-shadow.png differ diff --git a/bower_components/Leaflet.label/libs/leaflet/leaflet-src.js b/bower_components/Leaflet.label/libs/leaflet/leaflet-src.js new file mode 100755 index 00000000..81525483 --- /dev/null +++ b/bower_components/Leaflet.label/libs/leaflet/leaflet-src.js @@ -0,0 +1,9108 @@ +/* + Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com + (c) 2010-2013, Vladimir Agafonkin + (c) 2010-2011, CloudMade +*/ +(function (window, document, undefined) { +var oldL = window.L, + L = {}; + +L.version = '0.7-dev'; + +// define Leaflet for Node module pattern loaders, including Browserify +if (typeof module === 'object' && typeof module.exports === 'object') { + module.exports = L; + +// define Leaflet as an AMD module +} else if (typeof define === 'function' && define.amd) { + define(L); +} + +// define Leaflet as a global L variable, saving the original L to restore later if needed + +L.noConflict = function () { + window.L = oldL; + return this; +}; + +window.L = L; + + +/* + * L.Util contains various utility functions used throughout Leaflet code. + */ + +L.Util = { + extend: function (dest) { // (Object[, Object, ...]) -> + var sources = Array.prototype.slice.call(arguments, 1), + i, j, len, src; + + for (j = 0, len = sources.length; j < len; j++) { + src = sources[j] || {}; + for (i in src) { + if (src.hasOwnProperty(i)) { + dest[i] = src[i]; + } + } + } + return dest; + }, + + bind: function (fn, obj) { // (Function, Object) -> Function + var args = arguments.length > 2 ? Array.prototype.slice.call(arguments, 2) : null; + return function () { + return fn.apply(obj, args || arguments); + }; + }, + + stamp: (function () { + var lastId = 0, + key = '_leaflet_id'; + return function (obj) { + obj[key] = obj[key] || ++lastId; + return obj[key]; + }; + }()), + + invokeEach: function (obj, method, context) { + var i, args; + + if (typeof obj === 'object') { + args = Array.prototype.slice.call(arguments, 3); + + for (i in obj) { + method.apply(context, [i, obj[i]].concat(args)); + } + return true; + } + + return false; + }, + + limitExecByInterval: function (fn, time, context) { + var lock, execOnUnlock; + + return function wrapperFn() { + var args = arguments; + + if (lock) { + execOnUnlock = true; + return; + } + + lock = true; + + setTimeout(function () { + lock = false; + + if (execOnUnlock) { + wrapperFn.apply(context, args); + execOnUnlock = false; + } + }, time); + + fn.apply(context, args); + }; + }, + + falseFn: function () { + return false; + }, + + formatNum: function (num, digits) { + var pow = Math.pow(10, digits || 5); + return Math.round(num * pow) / pow; + }, + + trim: function (str) { + return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); + }, + + splitWords: function (str) { + return L.Util.trim(str).split(/\s+/); + }, + + setOptions: function (obj, options) { + obj.options = L.extend({}, obj.options, options); + return obj.options; + }, + + getParamString: function (obj, existingUrl, uppercase) { + var params = []; + for (var i in obj) { + params.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i])); + } + return ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&'); + }, + + compileTemplate: function (str, data) { + // based on https://gist.github.com/padolsey/6008842 + str = str.replace(/"/g, '\\\"'); + str = str.replace(/\{ *([\w_]+) *\}/g, function (str, key) { + return '" + o["' + key + '"]' + (typeof data[key] === 'function' ? '(o)' : '') + ' + "'; + }); + // jshint evil: true + return new Function('o', 'return "' + str + '";'); + }, + + template: function (str, data) { + var cache = L.Util._templateCache = L.Util._templateCache || {}; + cache[str] = cache[str] || L.Util.compileTemplate(str, data); + return cache[str](data); + }, + + isArray: Array.isArray || function (obj) { + return (Object.prototype.toString.call(obj) === '[object Array]'); + }, + + emptyImageUrl: 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' +}; + +(function () { + + // inspired by http://paulirish.com/2011/requestanimationframe-for-smart-animating/ + + function getPrefixed(name) { + var i, fn, + prefixes = ['webkit', 'moz', 'o', 'ms']; + + for (i = 0; i < prefixes.length && !fn; i++) { + fn = window[prefixes[i] + name]; + } + + return fn; + } + + var lastTime = 0; + + function timeoutDefer(fn) { + var time = +new Date(), + timeToCall = Math.max(0, 16 - (time - lastTime)); + + lastTime = time + timeToCall; + return window.setTimeout(fn, timeToCall); + } + + var requestFn = window.requestAnimationFrame || + getPrefixed('RequestAnimationFrame') || timeoutDefer; + + var cancelFn = window.cancelAnimationFrame || + getPrefixed('CancelAnimationFrame') || + getPrefixed('CancelRequestAnimationFrame') || + function (id) { window.clearTimeout(id); }; + + + L.Util.requestAnimFrame = function (fn, context, immediate, element) { + fn = L.bind(fn, context); + + if (immediate && requestFn === timeoutDefer) { + fn(); + } else { + return requestFn.call(window, fn, element); + } + }; + + L.Util.cancelAnimFrame = function (id) { + if (id) { + cancelFn.call(window, id); + } + }; + +}()); + +// shortcuts for most used utility functions +L.extend = L.Util.extend; +L.bind = L.Util.bind; +L.stamp = L.Util.stamp; +L.setOptions = L.Util.setOptions; + + +/* + * L.Class powers the OOP facilities of the library. + * Thanks to John Resig and Dean Edwards for inspiration! + */ + +L.Class = function () {}; + +L.Class.extend = function (props) { + + // extended class with the new prototype + var NewClass = function () { + + // call the constructor + if (this.initialize) { + this.initialize.apply(this, arguments); + } + + // call all constructor hooks + if (this._initHooks) { + this.callInitHooks(); + } + }; + + // instantiate class without calling constructor + var F = function () {}; + F.prototype = this.prototype; + + var proto = new F(); + proto.constructor = NewClass; + + NewClass.prototype = proto; + + //inherit parent's statics + for (var i in this) { + if (this.hasOwnProperty(i) && i !== 'prototype') { + NewClass[i] = this[i]; + } + } + + // mix static properties into the class + if (props.statics) { + L.extend(NewClass, props.statics); + delete props.statics; + } + + // mix includes into the prototype + if (props.includes) { + L.Util.extend.apply(null, [proto].concat(props.includes)); + delete props.includes; + } + + // merge options + if (props.options && proto.options) { + props.options = L.extend({}, proto.options, props.options); + } + + // mix given properties into the prototype + L.extend(proto, props); + + proto._initHooks = []; + + var parent = this; + // jshint camelcase: false + NewClass.__super__ = parent.prototype; + + // add method for calling all hooks + proto.callInitHooks = function () { + + if (this._initHooksCalled) { return; } + + if (parent.prototype.callInitHooks) { + parent.prototype.callInitHooks.call(this); + } + + this._initHooksCalled = true; + + for (var i = 0, len = proto._initHooks.length; i < len; i++) { + proto._initHooks[i].call(this); + } + }; + + return NewClass; +}; + + +// method for adding properties to prototype +L.Class.include = function (props) { + L.extend(this.prototype, props); +}; + +// merge new default options to the Class +L.Class.mergeOptions = function (options) { + L.extend(this.prototype.options, options); +}; + +// add a constructor hook +L.Class.addInitHook = function (fn) { // (Function) || (String, args...) + var args = Array.prototype.slice.call(arguments, 1); + + var init = typeof fn === 'function' ? fn : function () { + this[fn].apply(this, args); + }; + + this.prototype._initHooks = this.prototype._initHooks || []; + this.prototype._initHooks.push(init); +}; + + +/* + * L.Mixin.Events is used to add custom events functionality to Leaflet classes. + */ + +var eventsKey = '_leaflet_events'; + +L.Mixin = {}; + +L.Mixin.Events = { + + addEventListener: function (types, fn, context) { // (String, Function[, Object]) or (Object[, Object]) + + // types can be a map of types/handlers + if (L.Util.invokeEach(types, this.addEventListener, this, fn, context)) { return this; } + + var events = this[eventsKey] = this[eventsKey] || {}, + contextId = context && L.stamp(context), + i, len, event, type, indexKey, indexLenKey, typeIndex; + + // types can be a string of space-separated words + types = L.Util.splitWords(types); + + for (i = 0, len = types.length; i < len; i++) { + event = { + action: fn, + context: context || this + }; + type = types[i]; + + if (context) { + // store listeners of a particular context in a separate hash (if it has an id) + // gives a major performance boost when removing thousands of map layers + + indexKey = type + '_idx'; + indexLenKey = indexKey + '_len'; + + typeIndex = events[indexKey] = events[indexKey] || {}; + + if (!typeIndex[contextId]) { + typeIndex[contextId] = []; + + // keep track of the number of keys in the index to quickly check if it's empty + events[indexLenKey] = (events[indexLenKey] || 0) + 1; + } + + typeIndex[contextId].push(event); + + + } else { + events[type] = events[type] || []; + events[type].push(event); + } + } + + return this; + }, + + hasEventListeners: function (type) { // (String) -> Boolean + var events = this[eventsKey]; + return !!events && ((type in events && events[type].length > 0) || + (type + '_idx' in events && events[type + '_idx_len'] > 0)); + }, + + removeEventListener: function (types, fn, context) { // ([String, Function, Object]) or (Object[, Object]) + + if (!this[eventsKey]) { + return this; + } + + if (!types) { + return this.clearAllEventListeners(); + } + + if (L.Util.invokeEach(types, this.removeEventListener, this, fn, context)) { return this; } + + var events = this[eventsKey], + contextId = context && L.stamp(context), + i, len, type, listeners, j, indexKey, indexLenKey, typeIndex, removed; + + types = L.Util.splitWords(types); + + for (i = 0, len = types.length; i < len; i++) { + type = types[i]; + indexKey = type + '_idx'; + indexLenKey = indexKey + '_len'; + + typeIndex = events[indexKey]; + + if (!fn) { + // clear all listeners for a type if function isn't specified + delete events[type]; + delete events[indexKey]; + + } else { + listeners = context && typeIndex ? typeIndex[contextId] : events[type]; + + if (listeners) { + for (j = listeners.length - 1; j >= 0; j--) { + if ((listeners[j].action === fn) && (!context || (listeners[j].context === context))) { + removed = listeners.splice(j, 1); + // set the old action to a no-op, because it is possible + // that the listener is being iterated over as part of a dispatch + removed[0].action = L.Util.falseFn; + } + } + + if (context && typeIndex && (listeners.length === 0)) { + delete typeIndex[contextId]; + events[indexLenKey]--; + } + } + } + } + + return this; + }, + + clearAllEventListeners: function () { + delete this[eventsKey]; + return this; + }, + + fireEvent: function (type, data) { // (String[, Object]) + if (!this.hasEventListeners(type)) { + return this; + } + + var event = L.Util.extend({}, data, { type: type, target: this }); + + var events = this[eventsKey], + listeners, i, len, typeIndex, contextId; + + if (events[type]) { + // make sure adding/removing listeners inside other listeners won't cause infinite loop + listeners = events[type].slice(); + + for (i = 0, len = listeners.length; i < len; i++) { + listeners[i].action.call(listeners[i].context || this, event); + } + } + + // fire event for the context-indexed listeners as well + typeIndex = events[type + '_idx']; + + for (contextId in typeIndex) { + listeners = typeIndex[contextId].slice(); + + if (listeners) { + for (i = 0, len = listeners.length; i < len; i++) { + listeners[i].action.call(listeners[i].context || this, event); + } + } + } + + return this; + }, + + addOneTimeEventListener: function (types, fn, context) { + + if (L.Util.invokeEach(types, this.addOneTimeEventListener, this, fn, context)) { return this; } + + var handler = L.bind(function () { + this + .removeEventListener(types, fn, context) + .removeEventListener(types, handler, context); + }, this); + + return this + .addEventListener(types, fn, context) + .addEventListener(types, handler, context); + } +}; + +L.Mixin.Events.on = L.Mixin.Events.addEventListener; +L.Mixin.Events.off = L.Mixin.Events.removeEventListener; +L.Mixin.Events.once = L.Mixin.Events.addOneTimeEventListener; +L.Mixin.Events.fire = L.Mixin.Events.fireEvent; + + +/* + * L.Browser handles different browser and feature detections for internal Leaflet use. + */ + +(function () { + + var ie = 'ActiveXObject' in window, + ie6 = ie && !window.XMLHttpRequest, + ie7 = ie && !document.querySelector, + ielt9 = ie && !document.addEventListener, + + // terrible browser detection to work around Safari / iOS / Android browser bugs + ua = navigator.userAgent.toLowerCase(), + webkit = ua.indexOf('webkit') !== -1, + chrome = ua.indexOf('chrome') !== -1, + phantomjs = ua.indexOf('phantom') !== -1, + android = ua.indexOf('android') !== -1, + android23 = ua.search('android [23]') !== -1, + gecko = ua.indexOf('gecko') !== -1, + + mobile = typeof orientation !== undefined + '', + msPointer = window.navigator && window.navigator.msPointerEnabled && + window.navigator.msMaxTouchPoints && !window.PointerEvent, + pointer = (window.PointerEvent && window.navigator.pointerEnabled && window.navigator.maxTouchPoints) || + msPointer, + retina = ('devicePixelRatio' in window && window.devicePixelRatio > 1) || + ('matchMedia' in window && window.matchMedia('(min-resolution:144dpi)') && + window.matchMedia('(min-resolution:144dpi)').matches), + + doc = document.documentElement, + ie3d = ie && ('transition' in doc.style), + webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()), + gecko3d = 'MozPerspective' in doc.style, + opera3d = 'OTransition' in doc.style, + any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d || opera3d) && !phantomjs; + + + // PhantomJS has 'ontouchstart' in document.documentElement, but doesn't actually support touch. + // https://github.com/Leaflet/Leaflet/pull/1434#issuecomment-13843151 + + var touch = !window.L_NO_TOUCH && !phantomjs && (function () { + + var startName = 'ontouchstart'; + + // IE10+ (We simulate these into touch* events in L.DomEvent and L.DomEvent.Pointer) or WebKit, etc. + if (pointer || (startName in doc)) { + return true; + } + + // Firefox/Gecko + var div = document.createElement('div'), + supported = false; + + if (!div.setAttribute) { + return false; + } + div.setAttribute(startName, 'return;'); + + if (typeof div[startName] === 'function') { + supported = true; + } + + div.removeAttribute(startName); + div = null; + + return supported; + }()); + + + L.Browser = { + ie: ie, + ie6: ie6, + ie7: ie7, + ielt9: ielt9, + webkit: webkit, + gecko: gecko && !webkit && !window.opera && !ie, + + android: android, + android23: android23, + + chrome: chrome, + + ie3d: ie3d, + webkit3d: webkit3d, + gecko3d: gecko3d, + opera3d: opera3d, + any3d: any3d, + + mobile: mobile, + mobileWebkit: mobile && webkit, + mobileWebkit3d: mobile && webkit3d, + mobileOpera: mobile && window.opera, + + touch: touch, + msPointer: msPointer, + pointer: pointer, + + retina: retina + }; + +}()); + + +/* + * L.Point represents a point with x and y coordinates. + */ + +L.Point = function (/*Number*/ x, /*Number*/ y, /*Boolean*/ round) { + this.x = (round ? Math.round(x) : x); + this.y = (round ? Math.round(y) : y); +}; + +L.Point.prototype = { + + clone: function () { + return new L.Point(this.x, this.y); + }, + + // non-destructive, returns a new point + add: function (point) { + return this.clone()._add(L.point(point)); + }, + + // destructive, used directly for performance in situations where it's safe to modify existing point + _add: function (point) { + this.x += point.x; + this.y += point.y; + return this; + }, + + subtract: function (point) { + return this.clone()._subtract(L.point(point)); + }, + + _subtract: function (point) { + this.x -= point.x; + this.y -= point.y; + return this; + }, + + divideBy: function (num) { + return this.clone()._divideBy(num); + }, + + _divideBy: function (num) { + this.x /= num; + this.y /= num; + return this; + }, + + multiplyBy: function (num) { + return this.clone()._multiplyBy(num); + }, + + _multiplyBy: function (num) { + this.x *= num; + this.y *= num; + return this; + }, + + round: function () { + return this.clone()._round(); + }, + + _round: function () { + this.x = Math.round(this.x); + this.y = Math.round(this.y); + return this; + }, + + floor: function () { + return this.clone()._floor(); + }, + + _floor: function () { + this.x = Math.floor(this.x); + this.y = Math.floor(this.y); + return this; + }, + + distanceTo: function (point) { + point = L.point(point); + + var x = point.x - this.x, + y = point.y - this.y; + + return Math.sqrt(x * x + y * y); + }, + + equals: function (point) { + point = L.point(point); + + return point.x === this.x && + point.y === this.y; + }, + + contains: function (point) { + point = L.point(point); + + return Math.abs(point.x) <= Math.abs(this.x) && + Math.abs(point.y) <= Math.abs(this.y); + }, + + toString: function () { + return 'Point(' + + L.Util.formatNum(this.x) + ', ' + + L.Util.formatNum(this.y) + ')'; + } +}; + +L.point = function (x, y, round) { + if (x instanceof L.Point) { + return x; + } + if (L.Util.isArray(x)) { + return new L.Point(x[0], x[1]); + } + if (x === undefined || x === null) { + return x; + } + return new L.Point(x, y, round); +}; + + +/* + * L.Bounds represents a rectangular area on the screen in pixel coordinates. + */ + +L.Bounds = function (a, b) { //(Point, Point) or Point[] + if (!a) { return; } + + var points = b ? [a, b] : a; + + for (var i = 0, len = points.length; i < len; i++) { + this.extend(points[i]); + } +}; + +L.Bounds.prototype = { + // extend the bounds to contain the given point + extend: function (point) { // (Point) + point = L.point(point); + + if (!this.min && !this.max) { + this.min = point.clone(); + this.max = point.clone(); + } else { + this.min.x = Math.min(point.x, this.min.x); + this.max.x = Math.max(point.x, this.max.x); + this.min.y = Math.min(point.y, this.min.y); + this.max.y = Math.max(point.y, this.max.y); + } + return this; + }, + + getCenter: function (round) { // (Boolean) -> Point + return new L.Point( + (this.min.x + this.max.x) / 2, + (this.min.y + this.max.y) / 2, round); + }, + + getBottomLeft: function () { // -> Point + return new L.Point(this.min.x, this.max.y); + }, + + getTopRight: function () { // -> Point + return new L.Point(this.max.x, this.min.y); + }, + + getSize: function () { + return this.max.subtract(this.min); + }, + + contains: function (obj) { // (Bounds) or (Point) -> Boolean + var min, max; + + if (typeof obj[0] === 'number' || obj instanceof L.Point) { + obj = L.point(obj); + } else { + obj = L.bounds(obj); + } + + if (obj instanceof L.Bounds) { + min = obj.min; + max = obj.max; + } else { + min = max = obj; + } + + return (min.x >= this.min.x) && + (max.x <= this.max.x) && + (min.y >= this.min.y) && + (max.y <= this.max.y); + }, + + intersects: function (bounds) { // (Bounds) -> Boolean + bounds = L.bounds(bounds); + + var min = this.min, + max = this.max, + min2 = bounds.min, + max2 = bounds.max, + xIntersects = (max2.x >= min.x) && (min2.x <= max.x), + yIntersects = (max2.y >= min.y) && (min2.y <= max.y); + + return xIntersects && yIntersects; + }, + + isValid: function () { + return !!(this.min && this.max); + } +}; + +L.bounds = function (a, b) { // (Bounds) or (Point, Point) or (Point[]) + if (!a || a instanceof L.Bounds) { + return a; + } + return new L.Bounds(a, b); +}; + + +/* + * L.Transformation is an utility class to perform simple point transformations through a 2d-matrix. + */ + +L.Transformation = function (a, b, c, d) { + this._a = a; + this._b = b; + this._c = c; + this._d = d; +}; + +L.Transformation.prototype = { + transform: function (point, scale) { // (Point, Number) -> Point + return this._transform(point.clone(), scale); + }, + + // destructive transform (faster) + _transform: function (point, scale) { + scale = scale || 1; + point.x = scale * (this._a * point.x + this._b); + point.y = scale * (this._c * point.y + this._d); + return point; + }, + + untransform: function (point, scale) { + scale = scale || 1; + return new L.Point( + (point.x / scale - this._b) / this._a, + (point.y / scale - this._d) / this._c); + } +}; + + +/* + * L.DomUtil contains various utility functions for working with DOM. + */ + +L.DomUtil = { + get: function (id) { + return (typeof id === 'string' ? document.getElementById(id) : id); + }, + + getStyle: function (el, style) { + + var value = el.style[style]; + + if (!value && el.currentStyle) { + value = el.currentStyle[style]; + } + + if ((!value || value === 'auto') && document.defaultView) { + var css = document.defaultView.getComputedStyle(el, null); + value = css ? css[style] : null; + } + + return value === 'auto' ? null : value; + }, + + getViewportOffset: function (element) { + + var top = 0, + left = 0, + el = element, + docBody = document.body, + docEl = document.documentElement, + pos; + + do { + top += el.offsetTop || 0; + left += el.offsetLeft || 0; + + //add borders + top += parseInt(L.DomUtil.getStyle(el, 'borderTopWidth'), 10) || 0; + left += parseInt(L.DomUtil.getStyle(el, 'borderLeftWidth'), 10) || 0; + + pos = L.DomUtil.getStyle(el, 'position'); + + if (el.offsetParent === docBody && pos === 'absolute') { break; } + + if (pos === 'fixed') { + top += docBody.scrollTop || docEl.scrollTop || 0; + left += docBody.scrollLeft || docEl.scrollLeft || 0; + break; + } + + if (pos === 'relative' && !el.offsetLeft) { + var width = L.DomUtil.getStyle(el, 'width'), + maxWidth = L.DomUtil.getStyle(el, 'max-width'), + r = el.getBoundingClientRect(); + + if (width !== 'none' || maxWidth !== 'none') { + left += r.left + el.clientLeft; + } + + //calculate full y offset since we're breaking out of the loop + top += r.top + (docBody.scrollTop || docEl.scrollTop || 0); + + break; + } + + el = el.offsetParent; + + } while (el); + + el = element; + + do { + if (el === docBody) { break; } + + top -= el.scrollTop || 0; + left -= el.scrollLeft || 0; + + el = el.parentNode; + } while (el); + + return new L.Point(left, top); + }, + + documentIsLtr: function () { + if (!L.DomUtil._docIsLtrCached) { + L.DomUtil._docIsLtrCached = true; + L.DomUtil._docIsLtr = L.DomUtil.getStyle(document.body, 'direction') === 'ltr'; + } + return L.DomUtil._docIsLtr; + }, + + create: function (tagName, className, container) { + + var el = document.createElement(tagName); + el.className = className; + + if (container) { + container.appendChild(el); + } + + return el; + }, + + hasClass: function (el, name) { + return (el.className.length > 0) && + new RegExp('(^|\\s)' + name + '(\\s|$)').test(el.className); + }, + + addClass: function (el, name) { + if (!L.DomUtil.hasClass(el, name)) { + el.className += (el.className ? ' ' : '') + name; + } + }, + + removeClass: function (el, name) { + el.className = L.Util.trim((' ' + el.className + ' ').replace(' ' + name + ' ', ' ')); + }, + + setOpacity: function (el, value) { + + if ('opacity' in el.style) { + el.style.opacity = value; + + } else if ('filter' in el.style) { + + var filter = false, + filterName = 'DXImageTransform.Microsoft.Alpha'; + + // filters collection throws an error if we try to retrieve a filter that doesn't exist + try { + filter = el.filters.item(filterName); + } catch (e) { + // don't set opacity to 1 if we haven't already set an opacity, + // it isn't needed and breaks transparent pngs. + if (value === 1) { return; } + } + + value = Math.round(value * 100); + + if (filter) { + filter.Enabled = (value !== 100); + filter.Opacity = value; + } else { + el.style.filter += ' progid:' + filterName + '(opacity=' + value + ')'; + } + } + }, + + testProp: function (props) { + + var style = document.documentElement.style; + + for (var i = 0; i < props.length; i++) { + if (props[i] in style) { + return props[i]; + } + } + return false; + }, + + getTranslateString: function (point) { + // on WebKit browsers (Chrome/Safari/iOS Safari/Android) using translate3d instead of translate + // makes animation smoother as it ensures HW accel is used. Firefox 13 doesn't care + // (same speed either way), Opera 12 doesn't support translate3d + + var is3d = L.Browser.webkit3d, + open = 'translate' + (is3d ? '3d' : '') + '(', + close = (is3d ? ',0' : '') + ')'; + + return open + point.x + 'px,' + point.y + 'px' + close; + }, + + getScaleString: function (scale, origin) { + + var preTranslateStr = L.DomUtil.getTranslateString(origin.add(origin.multiplyBy(-1 * scale))), + scaleStr = ' scale(' + scale + ') '; + + return preTranslateStr + scaleStr; + }, + + setPosition: function (el, point, disable3D) { // (HTMLElement, Point[, Boolean]) + + // jshint camelcase: false + el._leaflet_pos = point; + + if (!disable3D && L.Browser.any3d) { + el.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(point); + + // workaround for Android 2/3 stability (https://github.com/CloudMade/Leaflet/issues/69) + if (L.Browser.mobileWebkit3d) { + el.style.WebkitBackfaceVisibility = 'hidden'; + } + } else { + el.style.left = point.x + 'px'; + el.style.top = point.y + 'px'; + } + }, + + getPosition: function (el) { + // this method is only used for elements previously positioned using setPosition, + // so it's safe to cache the position for performance + + // jshint camelcase: false + return el._leaflet_pos; + } +}; + + +// prefix style property names + +L.DomUtil.TRANSFORM = L.DomUtil.testProp( + ['transform', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform']); + +// webkitTransition comes first because some browser versions that drop vendor prefix don't do +// the same for the transitionend event, in particular the Android 4.1 stock browser + +L.DomUtil.TRANSITION = L.DomUtil.testProp( + ['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']); + +L.DomUtil.TRANSITION_END = + L.DomUtil.TRANSITION === 'webkitTransition' || L.DomUtil.TRANSITION === 'OTransition' ? + L.DomUtil.TRANSITION + 'End' : 'transitionend'; + +(function () { + var userSelectProperty = L.DomUtil.testProp( + ['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']); + + L.extend(L.DomUtil, { + disableTextSelection: function () { + L.DomEvent.on(window, 'selectstart', L.DomEvent.preventDefault); + if (userSelectProperty) { + var style = document.documentElement.style; + this._userSelect = style[userSelectProperty]; + style[userSelectProperty] = 'none'; + } + }, + + enableTextSelection: function () { + L.DomEvent.off(window, 'selectstart', L.DomEvent.preventDefault); + if (userSelectProperty) { + document.documentElement.style[userSelectProperty] = this._userSelect; + delete this._userSelect; + } + }, + + disableImageDrag: function () { + L.DomEvent.on(window, 'dragstart', L.DomEvent.preventDefault); + }, + + enableImageDrag: function () { + L.DomEvent.off(window, 'dragstart', L.DomEvent.preventDefault); + } + }); +})(); + + +/* + * L.LatLng represents a geographical point with latitude and longitude coordinates. + */ + +L.LatLng = function (rawLat, rawLng) { // (Number, Number) + var lat = parseFloat(rawLat), + lng = parseFloat(rawLng); + + if (isNaN(lat) || isNaN(lng)) { + throw new Error('Invalid LatLng object: (' + rawLat + ', ' + rawLng + ')'); + } + + this.lat = lat; + this.lng = lng; +}; + +L.extend(L.LatLng, { + DEG_TO_RAD: Math.PI / 180, + RAD_TO_DEG: 180 / Math.PI, + MAX_MARGIN: 1.0E-9 // max margin of error for the "equals" check +}); + +L.LatLng.prototype = { + equals: function (obj) { // (LatLng) -> Boolean + if (!obj) { return false; } + + obj = L.latLng(obj); + + var margin = Math.max( + Math.abs(this.lat - obj.lat), + Math.abs(this.lng - obj.lng)); + + return margin <= L.LatLng.MAX_MARGIN; + }, + + toString: function (precision) { // (Number) -> String + return 'LatLng(' + + L.Util.formatNum(this.lat, precision) + ', ' + + L.Util.formatNum(this.lng, precision) + ')'; + }, + + // Haversine distance formula, see http://en.wikipedia.org/wiki/Haversine_formula + // TODO move to projection code, LatLng shouldn't know about Earth + distanceTo: function (other) { // (LatLng) -> Number + other = L.latLng(other); + + var R = 6378137, // earth radius in meters + d2r = L.LatLng.DEG_TO_RAD, + dLat = (other.lat - this.lat) * d2r, + dLon = (other.lng - this.lng) * d2r, + lat1 = this.lat * d2r, + lat2 = other.lat * d2r, + sin1 = Math.sin(dLat / 2), + sin2 = Math.sin(dLon / 2); + + var a = sin1 * sin1 + sin2 * sin2 * Math.cos(lat1) * Math.cos(lat2); + + return R * 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); + }, + + wrap: function (a, b) { // (Number, Number) -> LatLng + var lng = this.lng; + + a = a || -180; + b = b || 180; + + lng = (lng + b) % (b - a) + (lng < a || lng === b ? b : a); + + return new L.LatLng(this.lat, lng); + } +}; + +L.latLng = function (a, b) { // (LatLng) or ([Number, Number]) or (Number, Number) + if (a instanceof L.LatLng) { + return a; + } + if (L.Util.isArray(a)) { + if (typeof a[0] === 'number' || typeof a[0] === 'string') { + return new L.LatLng(a[0], a[1]); + } else { + return null; + } + } + if (a === undefined || a === null) { + return a; + } + if (typeof a === 'object' && 'lat' in a) { + return new L.LatLng(a.lat, 'lng' in a ? a.lng : a.lon); + } + if (b === undefined) { + return null; + } + return new L.LatLng(a, b); +}; + + + +/* + * L.LatLngBounds represents a rectangular area on the map in geographical coordinates. + */ + +L.LatLngBounds = function (southWest, northEast) { // (LatLng, LatLng) or (LatLng[]) + if (!southWest) { return; } + + var latlngs = northEast ? [southWest, northEast] : southWest; + + for (var i = 0, len = latlngs.length; i < len; i++) { + this.extend(latlngs[i]); + } +}; + +L.LatLngBounds.prototype = { + // extend the bounds to contain the given point or bounds + extend: function (obj) { // (LatLng) or (LatLngBounds) + if (!obj) { return this; } + + var latLng = L.latLng(obj); + if (latLng !== null) { + obj = latLng; + } else { + obj = L.latLngBounds(obj); + } + + if (obj instanceof L.LatLng) { + if (!this._southWest && !this._northEast) { + this._southWest = new L.LatLng(obj.lat, obj.lng); + this._northEast = new L.LatLng(obj.lat, obj.lng); + } else { + this._southWest.lat = Math.min(obj.lat, this._southWest.lat); + this._southWest.lng = Math.min(obj.lng, this._southWest.lng); + + this._northEast.lat = Math.max(obj.lat, this._northEast.lat); + this._northEast.lng = Math.max(obj.lng, this._northEast.lng); + } + } else if (obj instanceof L.LatLngBounds) { + this.extend(obj._southWest); + this.extend(obj._northEast); + } + return this; + }, + + // extend the bounds by a percentage + pad: function (bufferRatio) { // (Number) -> LatLngBounds + var sw = this._southWest, + ne = this._northEast, + heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio, + widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio; + + return new L.LatLngBounds( + new L.LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer), + new L.LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer)); + }, + + getCenter: function () { // -> LatLng + return new L.LatLng( + (this._southWest.lat + this._northEast.lat) / 2, + (this._southWest.lng + this._northEast.lng) / 2); + }, + + getSouthWest: function () { + return this._southWest; + }, + + getNorthEast: function () { + return this._northEast; + }, + + getNorthWest: function () { + return new L.LatLng(this.getNorth(), this.getWest()); + }, + + getSouthEast: function () { + return new L.LatLng(this.getSouth(), this.getEast()); + }, + + getWest: function () { + return this._southWest.lng; + }, + + getSouth: function () { + return this._southWest.lat; + }, + + getEast: function () { + return this._northEast.lng; + }, + + getNorth: function () { + return this._northEast.lat; + }, + + contains: function (obj) { // (LatLngBounds) or (LatLng) -> Boolean + if (typeof obj[0] === 'number' || obj instanceof L.LatLng) { + obj = L.latLng(obj); + } else { + obj = L.latLngBounds(obj); + } + + var sw = this._southWest, + ne = this._northEast, + sw2, ne2; + + if (obj instanceof L.LatLngBounds) { + sw2 = obj.getSouthWest(); + ne2 = obj.getNorthEast(); + } else { + sw2 = ne2 = obj; + } + + return (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) && + (sw2.lng >= sw.lng) && (ne2.lng <= ne.lng); + }, + + intersects: function (bounds) { // (LatLngBounds) + bounds = L.latLngBounds(bounds); + + var sw = this._southWest, + ne = this._northEast, + sw2 = bounds.getSouthWest(), + ne2 = bounds.getNorthEast(), + + latIntersects = (ne2.lat >= sw.lat) && (sw2.lat <= ne.lat), + lngIntersects = (ne2.lng >= sw.lng) && (sw2.lng <= ne.lng); + + return latIntersects && lngIntersects; + }, + + toBBoxString: function () { + return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(','); + }, + + equals: function (bounds) { // (LatLngBounds) + if (!bounds) { return false; } + + bounds = L.latLngBounds(bounds); + + return this._southWest.equals(bounds.getSouthWest()) && + this._northEast.equals(bounds.getNorthEast()); + }, + + isValid: function () { + return !!(this._southWest && this._northEast); + } +}; + +//TODO International date line? + +L.latLngBounds = function (a, b) { // (LatLngBounds) or (LatLng, LatLng) + if (!a || a instanceof L.LatLngBounds) { + return a; + } + return new L.LatLngBounds(a, b); +}; + + +/* + * L.Projection contains various geographical projections used by CRS classes. + */ + +L.Projection = {}; + + +/* + * Spherical Mercator is the most popular map projection, used by EPSG:3857 CRS used by default. + */ + +L.Projection.SphericalMercator = { + MAX_LATITUDE: 85.0511287798, + + project: function (latlng) { // (LatLng) -> Point + var d = L.LatLng.DEG_TO_RAD, + max = this.MAX_LATITUDE, + lat = Math.max(Math.min(max, latlng.lat), -max), + x = latlng.lng * d, + y = lat * d; + + y = Math.log(Math.tan((Math.PI / 4) + (y / 2))); + + return new L.Point(x, y); + }, + + unproject: function (point) { // (Point, Boolean) -> LatLng + var d = L.LatLng.RAD_TO_DEG, + lng = point.x * d, + lat = (2 * Math.atan(Math.exp(point.y)) - (Math.PI / 2)) * d; + + return new L.LatLng(lat, lng); + } +}; + + +/* + * Simple equirectangular (Plate Carree) projection, used by CRS like EPSG:4326 and Simple. + */ + +L.Projection.LonLat = { + project: function (latlng) { + return new L.Point(latlng.lng, latlng.lat); + }, + + unproject: function (point) { + return new L.LatLng(point.y, point.x); + } +}; + + +/* + * L.CRS is a base object for all defined CRS (Coordinate Reference Systems) in Leaflet. + */ + +L.CRS = { + latLngToPoint: function (latlng, zoom) { // (LatLng, Number) -> Point + var projectedPoint = this.projection.project(latlng), + scale = this.scale(zoom); + + return this.transformation._transform(projectedPoint, scale); + }, + + pointToLatLng: function (point, zoom) { // (Point, Number[, Boolean]) -> LatLng + var scale = this.scale(zoom), + untransformedPoint = this.transformation.untransform(point, scale); + + return this.projection.unproject(untransformedPoint); + }, + + project: function (latlng) { + return this.projection.project(latlng); + }, + + scale: function (zoom) { + return 256 * Math.pow(2, zoom); + } +}; + + +/* + * A simple CRS that can be used for flat non-Earth maps like panoramas or game maps. + */ + +L.CRS.Simple = L.extend({}, L.CRS, { + projection: L.Projection.LonLat, + transformation: new L.Transformation(1, 0, -1, 0), + + scale: function (zoom) { + return Math.pow(2, zoom); + } +}); + + +/* + * L.CRS.EPSG3857 (Spherical Mercator) is the most common CRS for web mapping + * and is used by Leaflet by default. + */ + +L.CRS.EPSG3857 = L.extend({}, L.CRS, { + code: 'EPSG:3857', + + projection: L.Projection.SphericalMercator, + transformation: new L.Transformation(0.5 / Math.PI, 0.5, -0.5 / Math.PI, 0.5), + + project: function (latlng) { // (LatLng) -> Point + var projectedPoint = this.projection.project(latlng), + earthRadius = 6378137; + return projectedPoint.multiplyBy(earthRadius); + } +}); + +L.CRS.EPSG900913 = L.extend({}, L.CRS.EPSG3857, { + code: 'EPSG:900913' +}); + + +/* + * L.CRS.EPSG4326 is a CRS popular among advanced GIS specialists. + */ + +L.CRS.EPSG4326 = L.extend({}, L.CRS, { + code: 'EPSG:4326', + + projection: L.Projection.LonLat, + transformation: new L.Transformation(1 / 360, 0.5, -1 / 360, 0.5) +}); + + +/* + * L.Map is the central class of the API - it is used to create a map. + */ + +L.Map = L.Class.extend({ + + includes: L.Mixin.Events, + + options: { + crs: L.CRS.EPSG3857, + + /* + center: LatLng, + zoom: Number, + layers: Array, + */ + + fadeAnimation: L.DomUtil.TRANSITION && !L.Browser.android23, + trackResize: true, + markerZoomAnimation: L.DomUtil.TRANSITION && L.Browser.any3d + }, + + initialize: function (id, options) { // (HTMLElement or String, Object) + options = L.setOptions(this, options); + + + this._initContainer(id); + this._initLayout(); + + // hack for https://github.com/Leaflet/Leaflet/issues/1980 + this._onResize = L.bind(this._onResize, this); + + this._initEvents(); + + if (options.maxBounds) { + this.setMaxBounds(options.maxBounds); + } + + if (options.center && options.zoom !== undefined) { + this.setView(L.latLng(options.center), options.zoom, {reset: true}); + } + + this._handlers = []; + + this._layers = {}; + this._zoomBoundLayers = {}; + this._tileLayersNum = 0; + + this.callInitHooks(); + + this._addLayers(options.layers); + }, + + + // public methods that modify map state + + // replaced by animation-powered implementation in Map.PanAnimation.js + setView: function (center, zoom) { + zoom = zoom === undefined ? this.getZoom() : zoom; + this._resetView(L.latLng(center), this._limitZoom(zoom)); + return this; + }, + + setZoom: function (zoom, options) { + if (!this._loaded) { + this._zoom = this._limitZoom(zoom); + return this; + } + return this.setView(this.getCenter(), zoom, {zoom: options}); + }, + + zoomIn: function (delta, options) { + return this.setZoom(this._zoom + (delta || 1), options); + }, + + zoomOut: function (delta, options) { + return this.setZoom(this._zoom - (delta || 1), options); + }, + + setZoomAround: function (latlng, zoom, options) { + var scale = this.getZoomScale(zoom), + viewHalf = this.getSize().divideBy(2), + containerPoint = latlng instanceof L.Point ? latlng : this.latLngToContainerPoint(latlng), + + centerOffset = containerPoint.subtract(viewHalf).multiplyBy(1 - 1 / scale), + newCenter = this.containerPointToLatLng(viewHalf.add(centerOffset)); + + return this.setView(newCenter, zoom, {zoom: options}); + }, + + fitBounds: function (bounds, options) { + + options = options || {}; + bounds = bounds.getBounds ? bounds.getBounds() : L.latLngBounds(bounds); + + var paddingTL = L.point(options.paddingTopLeft || options.padding || [0, 0]), + paddingBR = L.point(options.paddingBottomRight || options.padding || [0, 0]), + + zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR)), + paddingOffset = paddingBR.subtract(paddingTL).divideBy(2), + + swPoint = this.project(bounds.getSouthWest(), zoom), + nePoint = this.project(bounds.getNorthEast(), zoom), + center = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom); + + zoom = options && options.maxZoom ? Math.min(options.maxZoom, zoom) : zoom; + + return this.setView(center, zoom, options); + }, + + fitWorld: function (options) { + return this.fitBounds([[-90, -180], [90, 180]], options); + }, + + panTo: function (center, options) { // (LatLng) + return this.setView(center, this._zoom, {pan: options}); + }, + + panBy: function (offset) { // (Point) + // replaced with animated panBy in Map.Animation.js + this.fire('movestart'); + + this._rawPanBy(L.point(offset)); + + this.fire('move'); + return this.fire('moveend'); + }, + + setMaxBounds: function (bounds, options) { + bounds = L.latLngBounds(bounds); + + this.options.maxBounds = bounds; + + if (!bounds) { + this._boundsMinZoom = null; + this.off('moveend', this._panInsideMaxBounds, this); + return this; + } + + var minZoom = this.getBoundsZoom(bounds, true); + + this._boundsMinZoom = minZoom; + + if (this._loaded) { + if (this._zoom < minZoom) { + this.setView(bounds.getCenter(), minZoom, options); + } else { + this.panInsideBounds(bounds); + } + } + + this.on('moveend', this._panInsideMaxBounds, this); + + return this; + }, + + panInsideBounds: function (bounds) { + bounds = L.latLngBounds(bounds); + + var viewBounds = this.getPixelBounds(), + viewSw = viewBounds.getBottomLeft(), + viewNe = viewBounds.getTopRight(), + sw = this.project(bounds.getSouthWest()), + ne = this.project(bounds.getNorthEast()), + dx = 0, + dy = 0; + + if (viewNe.y < ne.y) { // north + dy = Math.ceil(ne.y - viewNe.y); + } + if (viewNe.x > ne.x) { // east + dx = Math.floor(ne.x - viewNe.x); + } + if (viewSw.y > sw.y) { // south + dy = Math.floor(sw.y - viewSw.y); + } + if (viewSw.x < sw.x) { // west + dx = Math.ceil(sw.x - viewSw.x); + } + + if (dx || dy) { + return this.panBy([dx, dy]); + } + + return this; + }, + + addLayer: function (layer) { + // TODO method is too big, refactor + + var id = L.stamp(layer); + + if (this._layers[id]) { return this; } + + this._layers[id] = layer; + + // TODO getMaxZoom, getMinZoom in ILayer (instead of options) + if (layer.options && (!isNaN(layer.options.maxZoom) || !isNaN(layer.options.minZoom))) { + this._zoomBoundLayers[id] = layer; + this._updateZoomLevels(); + } + + // TODO looks ugly, refactor!!! + if (this.options.zoomAnimation && L.TileLayer && (layer instanceof L.TileLayer)) { + this._tileLayersNum++; + this._tileLayersToLoad++; + layer.on('load', this._onTileLayerLoad, this); + } + + if (this._loaded) { + this._layerAdd(layer); + } + + return this; + }, + + removeLayer: function (layer) { + var id = L.stamp(layer); + + if (!this._layers[id]) { return this; } + + if (this._loaded) { + layer.onRemove(this); + } + + delete this._layers[id]; + + if (this._loaded) { + this.fire('layerremove', {layer: layer}); + } + + if (this._zoomBoundLayers[id]) { + delete this._zoomBoundLayers[id]; + this._updateZoomLevels(); + } + + // TODO looks ugly, refactor + if (this.options.zoomAnimation && L.TileLayer && (layer instanceof L.TileLayer)) { + this._tileLayersNum--; + this._tileLayersToLoad--; + layer.off('load', this._onTileLayerLoad, this); + } + + return this; + }, + + hasLayer: function (layer) { + if (!layer) { return false; } + + return (L.stamp(layer) in this._layers); + }, + + eachLayer: function (method, context) { + for (var i in this._layers) { + method.call(context, this._layers[i]); + } + return this; + }, + + invalidateSize: function (options) { + options = L.extend({ + animate: false, + pan: true + }, options === true ? {animate: true} : options); + + var oldSize = this.getSize(); + this._sizeChanged = true; + this._initialCenter = null; + + if (this.options.maxBounds) { + this.setMaxBounds(this.options.maxBounds); + } + + if (!this._loaded) { return this; } + + var newSize = this.getSize(), + oldCenter = oldSize.divideBy(2).round(), + newCenter = newSize.divideBy(2).round(), + offset = oldCenter.subtract(newCenter); + + if (!offset.x && !offset.y) { return this; } + + if (options.animate && options.pan) { + this.panBy(offset); + + } else { + if (options.pan) { + this._rawPanBy(offset); + } + + this.fire('move'); + + // make sure moveend is not fired too often on resize + clearTimeout(this._sizeTimer); + this._sizeTimer = setTimeout(L.bind(this.fire, this, 'moveend'), 200); + } + + return this.fire('resize', { + oldSize: oldSize, + newSize: newSize + }); + }, + + // TODO handler.addTo + addHandler: function (name, HandlerClass) { + if (!HandlerClass) { return this; } + + var handler = this[name] = new HandlerClass(this); + + this._handlers.push(handler); + + if (this.options[name]) { + handler.enable(); + } + + return this; + }, + + remove: function () { + if (this._loaded) { + this.fire('unload'); + } + + this._initEvents('off'); + + try { + // throws error in IE6-8 + delete this._container._leaflet; + } catch (e) { + this._container._leaflet = undefined; + } + + this._clearPanes(); + if (this._clearControlPos) { + this._clearControlPos(); + } + + this._clearHandlers(); + + return this; + }, + + + // public methods for getting map state + + getCenter: function () { // (Boolean) -> LatLng + this._checkIfLoaded(); + + if (this._initialCenter && !this._moved()) { + return this._initialCenter; + } + return this.layerPointToLatLng(this._getCenterLayerPoint()); + }, + + getZoom: function () { + return this._zoom; + }, + + getBounds: function () { + var bounds = this.getPixelBounds(), + sw = this.unproject(bounds.getBottomLeft()), + ne = this.unproject(bounds.getTopRight()); + + return new L.LatLngBounds(sw, ne); + }, + + getMinZoom: function () { + var z1 = this._layersMinZoom === undefined ? 0 : this._layersMinZoom, + z2 = this._boundsMinZoom === undefined ? 0 : this._boundsMinZoom; + return this.options.minZoom === undefined ? Math.max(z1, z2) : this.options.minZoom; + }, + + getMaxZoom: function () { + return this.options.maxZoom === undefined ? + (this._layersMaxZoom === undefined ? Infinity : this._layersMaxZoom) : + this.options.maxZoom; + }, + + getBoundsZoom: function (bounds, inside, padding) { // (LatLngBounds[, Boolean, Point]) -> Number + bounds = L.latLngBounds(bounds); + + var zoom = this.getMinZoom() - (inside ? 1 : 0), + maxZoom = this.getMaxZoom(), + size = this.getSize(), + + nw = bounds.getNorthWest(), + se = bounds.getSouthEast(), + + zoomNotFound = true, + boundsSize; + + padding = L.point(padding || [0, 0]); + + do { + zoom++; + boundsSize = this.project(se, zoom).subtract(this.project(nw, zoom)).add(padding); + zoomNotFound = !inside ? size.contains(boundsSize) : boundsSize.x < size.x || boundsSize.y < size.y; + + } while (zoomNotFound && zoom <= maxZoom); + + if (zoomNotFound && inside) { + return null; + } + + return inside ? zoom : zoom - 1; + }, + + getSize: function () { + if (!this._size || this._sizeChanged) { + this._size = new L.Point( + this._container.clientWidth, + this._container.clientHeight); + + this._sizeChanged = false; + } + return this._size.clone(); + }, + + getPixelBounds: function () { + var topLeftPoint = this._getTopLeftPoint(); + return new L.Bounds(topLeftPoint, topLeftPoint.add(this.getSize())); + }, + + getPixelOrigin: function () { + this._checkIfLoaded(); + return this._initialTopLeftPoint; + }, + + getPanes: function () { + return this._panes; + }, + + getContainer: function () { + return this._container; + }, + + + // TODO replace with universal implementation after refactoring projections + + getZoomScale: function (toZoom) { + var crs = this.options.crs; + return crs.scale(toZoom) / crs.scale(this._zoom); + }, + + getScaleZoom: function (scale) { + return this._zoom + (Math.log(scale) / Math.LN2); + }, + + + // conversion methods + + project: function (latlng, zoom) { // (LatLng[, Number]) -> Point + zoom = zoom === undefined ? this._zoom : zoom; + return this.options.crs.latLngToPoint(L.latLng(latlng), zoom); + }, + + unproject: function (point, zoom) { // (Point[, Number]) -> LatLng + zoom = zoom === undefined ? this._zoom : zoom; + return this.options.crs.pointToLatLng(L.point(point), zoom); + }, + + layerPointToLatLng: function (point) { // (Point) + var projectedPoint = L.point(point).add(this.getPixelOrigin()); + return this.unproject(projectedPoint); + }, + + latLngToLayerPoint: function (latlng) { // (LatLng) + var projectedPoint = this.project(L.latLng(latlng))._round(); + return projectedPoint._subtract(this.getPixelOrigin()); + }, + + containerPointToLayerPoint: function (point) { // (Point) + return L.point(point).subtract(this._getMapPanePos()); + }, + + layerPointToContainerPoint: function (point) { // (Point) + return L.point(point).add(this._getMapPanePos()); + }, + + containerPointToLatLng: function (point) { + var layerPoint = this.containerPointToLayerPoint(L.point(point)); + return this.layerPointToLatLng(layerPoint); + }, + + latLngToContainerPoint: function (latlng) { + return this.layerPointToContainerPoint(this.latLngToLayerPoint(L.latLng(latlng))); + }, + + mouseEventToContainerPoint: function (e) { // (MouseEvent) + return L.DomEvent.getMousePosition(e, this._container); + }, + + mouseEventToLayerPoint: function (e) { // (MouseEvent) + return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e)); + }, + + mouseEventToLatLng: function (e) { // (MouseEvent) + return this.layerPointToLatLng(this.mouseEventToLayerPoint(e)); + }, + + + // map initialization methods + + _initContainer: function (id) { + var container = this._container = L.DomUtil.get(id); + + if (!container) { + throw new Error('Map container not found.'); + } else if (container._leaflet) { + throw new Error('Map container is already initialized.'); + } + + container._leaflet = true; + }, + + _initLayout: function () { + var container = this._container; + + L.DomUtil.addClass(container, 'leaflet-container' + + (L.Browser.touch ? ' leaflet-touch' : '') + + (L.Browser.retina ? ' leaflet-retina' : '') + + (this.options.fadeAnimation ? ' leaflet-fade-anim' : '')); + + var position = L.DomUtil.getStyle(container, 'position'); + + if (position !== 'absolute' && position !== 'relative' && position !== 'fixed') { + container.style.position = 'relative'; + } + + this._initPanes(); + + if (this._initControlPos) { + this._initControlPos(); + } + }, + + _initPanes: function () { + var panes = this._panes = {}; + + this._mapPane = panes.mapPane = this._createPane('leaflet-map-pane', this._container); + + this._tilePane = panes.tilePane = this._createPane('leaflet-tile-pane', this._mapPane); + panes.objectsPane = this._createPane('leaflet-objects-pane', this._mapPane); + panes.shadowPane = this._createPane('leaflet-shadow-pane'); + panes.overlayPane = this._createPane('leaflet-overlay-pane'); + panes.markerPane = this._createPane('leaflet-marker-pane'); + panes.popupPane = this._createPane('leaflet-popup-pane'); + + var zoomHide = ' leaflet-zoom-hide'; + + if (!this.options.markerZoomAnimation) { + L.DomUtil.addClass(panes.markerPane, zoomHide); + L.DomUtil.addClass(panes.shadowPane, zoomHide); + L.DomUtil.addClass(panes.popupPane, zoomHide); + } + }, + + _createPane: function (className, container) { + return L.DomUtil.create('div', className, container || this._panes.objectsPane); + }, + + _clearPanes: function () { + this._container.removeChild(this._mapPane); + }, + + _addLayers: function (layers) { + layers = layers ? (L.Util.isArray(layers) ? layers : [layers]) : []; + + for (var i = 0, len = layers.length; i < len; i++) { + this.addLayer(layers[i]); + } + }, + + + // private methods that modify map state + + _resetView: function (center, zoom, preserveMapOffset, afterZoomAnim) { + + var zoomChanged = (this._zoom !== zoom); + + if (!afterZoomAnim) { + this.fire('movestart'); + + if (zoomChanged) { + this.fire('zoomstart'); + } + } + + this._zoom = zoom; + this._initialCenter = center; + + this._initialTopLeftPoint = this._getNewTopLeftPoint(center); + + if (!preserveMapOffset) { + L.DomUtil.setPosition(this._mapPane, new L.Point(0, 0)); + } else { + this._initialTopLeftPoint._add(this._getMapPanePos()); + } + + this._tileLayersToLoad = this._tileLayersNum; + + var loading = !this._loaded; + this._loaded = true; + + if (loading) { + this.fire('load'); + this.eachLayer(this._layerAdd, this); + } + + this.fire('viewreset', {hard: !preserveMapOffset}); + + this.fire('move'); + + if (zoomChanged || afterZoomAnim) { + this.fire('zoomend'); + } + + this.fire('moveend', {hard: !preserveMapOffset}); + }, + + _rawPanBy: function (offset) { + L.DomUtil.setPosition(this._mapPane, this._getMapPanePos().subtract(offset)); + }, + + _getZoomSpan: function () { + return this.getMaxZoom() - this.getMinZoom(); + }, + + _updateZoomLevels: function () { + var i, + minZoom = Infinity, + maxZoom = -Infinity, + oldZoomSpan = this._getZoomSpan(); + + for (i in this._zoomBoundLayers) { + var layer = this._zoomBoundLayers[i]; + if (!isNaN(layer.options.minZoom)) { + minZoom = Math.min(minZoom, layer.options.minZoom); + } + if (!isNaN(layer.options.maxZoom)) { + maxZoom = Math.max(maxZoom, layer.options.maxZoom); + } + } + + if (i === undefined) { // we have no tilelayers + this._layersMaxZoom = this._layersMinZoom = undefined; + } else { + this._layersMaxZoom = maxZoom; + this._layersMinZoom = minZoom; + } + + if (oldZoomSpan !== this._getZoomSpan()) { + this.fire('zoomlevelschange'); + } + }, + + _panInsideMaxBounds: function () { + this.panInsideBounds(this.options.maxBounds); + }, + + _checkIfLoaded: function () { + if (!this._loaded) { + throw new Error('Set map center and zoom first.'); + } + }, + + // map events + + _initEvents: function (onOff) { + if (!L.DomEvent) { return; } + + onOff = onOff || 'on'; + + L.DomEvent[onOff](this._container, 'click', this._onMouseClick, this); + + var events = ['dblclick', 'mousedown', 'mouseup', 'mouseenter', + 'mouseleave', 'mousemove', 'contextmenu'], + i, len; + + for (i = 0, len = events.length; i < len; i++) { + L.DomEvent[onOff](this._container, events[i], this._fireMouseEvent, this); + } + + if (this.options.trackResize) { + L.DomEvent[onOff](window, 'resize', this._onResize, this); + } + }, + + _onResize: function () { + L.Util.cancelAnimFrame(this._resizeRequest); + this._resizeRequest = L.Util.requestAnimFrame( + this.invalidateSize, this, false, this._container); + }, + + _onMouseClick: function (e) { + if (!this._loaded || (!e._simulated && + ((this.dragging && this.dragging.moved()) || + (this.boxZoom && this.boxZoom.moved()))) || + L.DomEvent._skipped(e)) { return; } + + this.fire('preclick'); + this._fireMouseEvent(e); + }, + + _fireMouseEvent: function (e) { + if (!this._loaded || L.DomEvent._skipped(e)) { return; } + + var type = e.type; + + type = (type === 'mouseenter' ? 'mouseover' : (type === 'mouseleave' ? 'mouseout' : type)); + + if (!this.hasEventListeners(type)) { return; } + + if (type === 'contextmenu') { + L.DomEvent.preventDefault(e); + } + + var containerPoint = this.mouseEventToContainerPoint(e), + layerPoint = this.containerPointToLayerPoint(containerPoint), + latlng = this.layerPointToLatLng(layerPoint); + + this.fire(type, { + latlng: latlng, + layerPoint: layerPoint, + containerPoint: containerPoint, + originalEvent: e + }); + }, + + _onTileLayerLoad: function () { + this._tileLayersToLoad--; + if (this._tileLayersNum && !this._tileLayersToLoad) { + this.fire('tilelayersload'); + } + }, + + _clearHandlers: function () { + for (var i = 0, len = this._handlers.length; i < len; i++) { + this._handlers[i].disable(); + } + }, + + whenReady: function (callback, context) { + if (this._loaded) { + callback.call(context || this, this); + } else { + this.on('load', callback, context); + } + return this; + }, + + _layerAdd: function (layer) { + layer.onAdd(this); + this.fire('layeradd', {layer: layer}); + }, + + + // private methods for getting map state + + _getMapPanePos: function () { + return L.DomUtil.getPosition(this._mapPane); + }, + + _moved: function () { + var pos = this._getMapPanePos(); + return pos && !pos.equals([0, 0]); + }, + + _getTopLeftPoint: function () { + return this.getPixelOrigin().subtract(this._getMapPanePos()); + }, + + _getNewTopLeftPoint: function (center, zoom) { + var viewHalf = this.getSize()._divideBy(2); + // TODO round on display, not calculation to increase precision? + return this.project(center, zoom)._subtract(viewHalf)._round(); + }, + + _latLngToNewLayerPoint: function (latlng, newZoom, newCenter) { + var topLeft = this._getNewTopLeftPoint(newCenter, newZoom).add(this._getMapPanePos()); + return this.project(latlng, newZoom)._subtract(topLeft); + }, + + // layer point of the current center + _getCenterLayerPoint: function () { + return this.containerPointToLayerPoint(this.getSize()._divideBy(2)); + }, + + // offset of the specified place to the current center in pixels + _getCenterOffset: function (latlng) { + return this.latLngToLayerPoint(latlng).subtract(this._getCenterLayerPoint()); + }, + + _limitZoom: function (zoom) { + var min = this.getMinZoom(), + max = this.getMaxZoom(); + + return Math.max(min, Math.min(max, zoom)); + } +}); + +L.map = function (id, options) { + return new L.Map(id, options); +}; + + +/* + * Mercator projection that takes into account that the Earth is not a perfect sphere. + * Less popular than spherical mercator; used by projections like EPSG:3395. + */ + +L.Projection.Mercator = { + MAX_LATITUDE: 85.0840591556, + + R_MINOR: 6356752.314245179, + R_MAJOR: 6378137, + + project: function (latlng) { // (LatLng) -> Point + var d = L.LatLng.DEG_TO_RAD, + max = this.MAX_LATITUDE, + lat = Math.max(Math.min(max, latlng.lat), -max), + r = this.R_MAJOR, + r2 = this.R_MINOR, + x = latlng.lng * d * r, + y = lat * d, + tmp = r2 / r, + eccent = Math.sqrt(1.0 - tmp * tmp), + con = eccent * Math.sin(y); + + con = Math.pow((1 - con) / (1 + con), eccent * 0.5); + + var ts = Math.tan(0.5 * ((Math.PI * 0.5) - y)) / con; + y = -r * Math.log(ts); + + return new L.Point(x, y); + }, + + unproject: function (point) { // (Point, Boolean) -> LatLng + var d = L.LatLng.RAD_TO_DEG, + r = this.R_MAJOR, + r2 = this.R_MINOR, + lng = point.x * d / r, + tmp = r2 / r, + eccent = Math.sqrt(1 - (tmp * tmp)), + ts = Math.exp(- point.y / r), + phi = (Math.PI / 2) - 2 * Math.atan(ts), + numIter = 15, + tol = 1e-7, + i = numIter, + dphi = 0.1, + con; + + while ((Math.abs(dphi) > tol) && (--i > 0)) { + con = eccent * Math.sin(phi); + dphi = (Math.PI / 2) - 2 * Math.atan(ts * + Math.pow((1.0 - con) / (1.0 + con), 0.5 * eccent)) - phi; + phi += dphi; + } + + return new L.LatLng(phi * d, lng); + } +}; + + + +L.CRS.EPSG3395 = L.extend({}, L.CRS, { + code: 'EPSG:3395', + + projection: L.Projection.Mercator, + + transformation: (function () { + var m = L.Projection.Mercator, + r = m.R_MAJOR, + scale = 0.5 / (Math.PI * r); + + return new L.Transformation(scale, 0.5, -scale, 0.5); + }()) +}); + + +/* + * L.TileLayer is used for standard xyz-numbered tile layers. + */ + +L.TileLayer = L.Class.extend({ + includes: L.Mixin.Events, + + options: { + minZoom: 0, + maxZoom: 18, + tileSize: 256, + subdomains: 'abc', + errorTileUrl: '', + attribution: '', + zoomOffset: 0, + opacity: 1, + /* + maxNativeZoom: null, + zIndex: null, + tms: false, + continuousWorld: false, + noWrap: false, + zoomReverse: false, + detectRetina: false, + reuseTiles: false, + bounds: false, + */ + unloadInvisibleTiles: L.Browser.mobile, + updateWhenIdle: L.Browser.mobile + }, + + initialize: function (url, options) { + options = L.setOptions(this, options); + + // detecting retina displays, adjusting tileSize and zoom levels + if (options.detectRetina && L.Browser.retina && options.maxZoom > 0) { + + options.tileSize = Math.floor(options.tileSize / 2); + options.zoomOffset++; + + if (options.minZoom > 0) { + options.minZoom--; + } + this.options.maxZoom--; + } + + if (options.bounds) { + options.bounds = L.latLngBounds(options.bounds); + } + + this._url = url; + + var subdomains = this.options.subdomains; + + if (typeof subdomains === 'string') { + this.options.subdomains = subdomains.split(''); + } + }, + + onAdd: function (map) { + this._map = map; + this._animated = map._zoomAnimated; + + // create a container div for tiles + this._initContainer(); + + // set up events + map.on({ + 'viewreset': this._reset, + 'moveend': this._update + }, this); + + if (this._animated) { + map.on({ + 'zoomanim': this._animateZoom, + 'zoomend': this._endZoomAnim + }, this); + } + + if (!this.options.updateWhenIdle) { + this._limitedUpdate = L.Util.limitExecByInterval(this._update, 150, this); + map.on('move', this._limitedUpdate, this); + } + + this._reset(); + this._update(); + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + onRemove: function (map) { + this._container.parentNode.removeChild(this._container); + + map.off({ + 'viewreset': this._reset, + 'moveend': this._update + }, this); + + if (this._animated) { + map.off({ + 'zoomanim': this._animateZoom, + 'zoomend': this._endZoomAnim + }, this); + } + + if (!this.options.updateWhenIdle) { + map.off('move', this._limitedUpdate, this); + } + + this._container = null; + this._map = null; + }, + + bringToFront: function () { + var pane = this._map._panes.tilePane; + + if (this._container) { + pane.appendChild(this._container); + this._setAutoZIndex(pane, Math.max); + } + + return this; + }, + + bringToBack: function () { + var pane = this._map._panes.tilePane; + + if (this._container) { + pane.insertBefore(this._container, pane.firstChild); + this._setAutoZIndex(pane, Math.min); + } + + return this; + }, + + getAttribution: function () { + return this.options.attribution; + }, + + getContainer: function () { + return this._container; + }, + + setOpacity: function (opacity) { + this.options.opacity = opacity; + + if (this._map) { + this._updateOpacity(); + } + + return this; + }, + + setZIndex: function (zIndex) { + this.options.zIndex = zIndex; + this._updateZIndex(); + + return this; + }, + + setUrl: function (url, noRedraw) { + this._url = url; + + if (!noRedraw) { + this.redraw(); + } + + return this; + }, + + redraw: function () { + if (this._map) { + this._reset({hard: true}); + this._update(); + } + return this; + }, + + _updateZIndex: function () { + if (this._container && this.options.zIndex !== undefined) { + this._container.style.zIndex = this.options.zIndex; + } + }, + + _setAutoZIndex: function (pane, compare) { + + var layers = pane.children, + edgeZIndex = -compare(Infinity, -Infinity), // -Infinity for max, Infinity for min + zIndex, i, len; + + for (i = 0, len = layers.length; i < len; i++) { + + if (layers[i] !== this._container) { + zIndex = parseInt(layers[i].style.zIndex, 10); + + if (!isNaN(zIndex)) { + edgeZIndex = compare(edgeZIndex, zIndex); + } + } + } + + this.options.zIndex = this._container.style.zIndex = + (isFinite(edgeZIndex) ? edgeZIndex : 0) + compare(1, -1); + }, + + _updateOpacity: function () { + var i, + tiles = this._tiles; + + if (L.Browser.ielt9) { + for (i in tiles) { + L.DomUtil.setOpacity(tiles[i], this.options.opacity); + } + } else { + L.DomUtil.setOpacity(this._container, this.options.opacity); + } + }, + + _initContainer: function () { + var tilePane = this._map._panes.tilePane; + + if (!this._container) { + this._container = L.DomUtil.create('div', 'leaflet-layer'); + + this._updateZIndex(); + + if (this._animated) { + var className = 'leaflet-tile-container'; + + this._bgBuffer = L.DomUtil.create('div', className, this._container); + this._tileContainer = L.DomUtil.create('div', className, this._container); + + } else { + this._tileContainer = this._container; + } + + tilePane.appendChild(this._container); + + if (this.options.opacity < 1) { + this._updateOpacity(); + } + } + }, + + _reset: function (e) { + for (var key in this._tiles) { + this.fire('tileunload', {tile: this._tiles[key]}); + } + + this._tiles = {}; + this._tilesToLoad = 0; + + if (this.options.reuseTiles) { + this._unusedTiles = []; + } + + this._tileContainer.innerHTML = ''; + + if (this._animated && e && e.hard) { + this._clearBgBuffer(); + } + + this._initContainer(); + }, + + _getTileSize: function () { + var map = this._map, + zoom = map.getZoom(), + zoomN = this.options.maxNativeZoom, + tileSize = this.options.tileSize; + + if (zoomN && zoom > zoomN) { + tileSize = Math.round(map.getZoomScale(zoom) / map.getZoomScale(zoomN) * tileSize); + } + + return tileSize; + }, + + _update: function () { + + if (!this._map) { return; } + + var map = this._map, + bounds = map.getPixelBounds(), + zoom = map.getZoom(), + tileSize = this._getTileSize(); + + if (zoom > this.options.maxZoom || zoom < this.options.minZoom) { + return; + } + + var tileBounds = L.bounds( + bounds.min.divideBy(tileSize)._floor(), + bounds.max.divideBy(tileSize)._floor()); + + this._addTilesFromCenterOut(tileBounds); + + if (this.options.unloadInvisibleTiles || this.options.reuseTiles) { + this._removeOtherTiles(tileBounds); + } + }, + + _addTilesFromCenterOut: function (bounds) { + var queue = [], + center = bounds.getCenter(); + + var j, i, point; + + for (j = bounds.min.y; j <= bounds.max.y; j++) { + for (i = bounds.min.x; i <= bounds.max.x; i++) { + point = new L.Point(i, j); + + if (this._tileShouldBeLoaded(point)) { + queue.push(point); + } + } + } + + var tilesToLoad = queue.length; + + if (tilesToLoad === 0) { return; } + + // load tiles in order of their distance to center + queue.sort(function (a, b) { + return a.distanceTo(center) - b.distanceTo(center); + }); + + var fragment = document.createDocumentFragment(); + + // if its the first batch of tiles to load + if (!this._tilesToLoad) { + this.fire('loading'); + } + + this._tilesToLoad += tilesToLoad; + + for (i = 0; i < tilesToLoad; i++) { + this._addTile(queue[i], fragment); + } + + this._tileContainer.appendChild(fragment); + }, + + _tileShouldBeLoaded: function (tilePoint) { + if ((tilePoint.x + ':' + tilePoint.y) in this._tiles) { + return false; // already loaded + } + + var options = this.options; + + if (!options.continuousWorld) { + var limit = this._getWrapTileNum(); + + // don't load if exceeds world bounds + if ((options.noWrap && (tilePoint.x < 0 || tilePoint.x >= limit)) || + tilePoint.y < 0 || tilePoint.y >= limit) { return false; } + } + + if (options.bounds) { + var tileSize = options.tileSize, + nwPoint = tilePoint.multiplyBy(tileSize), + sePoint = nwPoint.add([tileSize, tileSize]), + nw = this._map.unproject(nwPoint), + se = this._map.unproject(sePoint); + + // TODO temporary hack, will be removed after refactoring projections + // https://github.com/Leaflet/Leaflet/issues/1618 + if (!options.continuousWorld && !options.noWrap) { + nw = nw.wrap(); + se = se.wrap(); + } + + if (!options.bounds.intersects([nw, se])) { return false; } + } + + return true; + }, + + _removeOtherTiles: function (bounds) { + var kArr, x, y, key; + + for (key in this._tiles) { + kArr = key.split(':'); + x = parseInt(kArr[0], 10); + y = parseInt(kArr[1], 10); + + // remove tile if it's out of bounds + if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) { + this._removeTile(key); + } + } + }, + + _removeTile: function (key) { + var tile = this._tiles[key]; + + this.fire('tileunload', {tile: tile, url: tile.src}); + + if (this.options.reuseTiles) { + L.DomUtil.removeClass(tile, 'leaflet-tile-loaded'); + this._unusedTiles.push(tile); + + } else if (tile.parentNode === this._tileContainer) { + this._tileContainer.removeChild(tile); + } + + // for https://github.com/CloudMade/Leaflet/issues/137 + if (!L.Browser.android) { + tile.onload = null; + tile.src = L.Util.emptyImageUrl; + } + + delete this._tiles[key]; + }, + + _addTile: function (tilePoint, container) { + var tilePos = this._getTilePos(tilePoint); + + // get unused tile - or create a new tile + var tile = this._getTile(); + + /* + Chrome 20 layouts much faster with top/left (verify with timeline, frames) + Android 4 browser has display issues with top/left and requires transform instead + Android 2 browser requires top/left or tiles disappear on load or first drag + (reappear after zoom) https://github.com/CloudMade/Leaflet/issues/866 + (other browsers don't currently care) - see debug/hacks/jitter.html for an example + */ + L.DomUtil.setPosition(tile, tilePos, L.Browser.chrome || L.Browser.android23); + + this._tiles[tilePoint.x + ':' + tilePoint.y] = tile; + + this._loadTile(tile, tilePoint); + + if (tile.parentNode !== this._tileContainer) { + container.appendChild(tile); + } + }, + + _getZoomForUrl: function () { + + var options = this.options, + zoom = this._map.getZoom(); + + if (options.zoomReverse) { + zoom = options.maxZoom - zoom; + } + + zoom += options.zoomOffset; + + return options.maxNativeZoom ? Math.min(zoom, options.maxNativeZoom) : zoom; + }, + + _getTilePos: function (tilePoint) { + var origin = this._map.getPixelOrigin(), + tileSize = this._getTileSize(); + + return tilePoint.multiplyBy(tileSize).subtract(origin); + }, + + // image-specific code (override to implement e.g. Canvas or SVG tile layer) + + getTileUrl: function (tilePoint) { + return L.Util.template(this._url, L.extend({ + s: this._getSubdomain(tilePoint), + z: tilePoint.z, + x: tilePoint.x, + y: tilePoint.y + }, this.options)); + }, + + _getWrapTileNum: function () { + // TODO refactor, limit is not valid for non-standard projections + return Math.pow(2, this._getZoomForUrl()); + }, + + _adjustTilePoint: function (tilePoint) { + + var limit = this._getWrapTileNum(); + + // wrap tile coordinates + if (!this.options.continuousWorld && !this.options.noWrap) { + tilePoint.x = ((tilePoint.x % limit) + limit) % limit; + } + + if (this.options.tms) { + tilePoint.y = limit - tilePoint.y - 1; + } + + tilePoint.z = this._getZoomForUrl(); + }, + + _getSubdomain: function (tilePoint) { + var index = Math.abs(tilePoint.x + tilePoint.y) % this.options.subdomains.length; + return this.options.subdomains[index]; + }, + + _getTile: function () { + if (this.options.reuseTiles && this._unusedTiles.length > 0) { + var tile = this._unusedTiles.pop(); + this._resetTile(tile); + return tile; + } + return this._createTile(); + }, + + // Override if data stored on a tile needs to be cleaned up before reuse + _resetTile: function (/*tile*/) {}, + + _createTile: function () { + var tile = L.DomUtil.create('img', 'leaflet-tile'); + tile.style.width = tile.style.height = this._getTileSize() + 'px'; + tile.galleryimg = 'no'; + + tile.onselectstart = tile.onmousemove = L.Util.falseFn; + + if (L.Browser.ielt9 && this.options.opacity !== undefined) { + L.DomUtil.setOpacity(tile, this.options.opacity); + } + return tile; + }, + + _loadTile: function (tile, tilePoint) { + tile._layer = this; + tile.onload = this._tileOnLoad; + tile.onerror = this._tileOnError; + + this._adjustTilePoint(tilePoint); + tile.src = this.getTileUrl(tilePoint); + + this.fire('tileloadstart', { + tile: tile, + url: tile.src + }); + }, + + _tileLoaded: function () { + this._tilesToLoad--; + + if (this._animated) { + L.DomUtil.addClass(this._tileContainer, 'leaflet-zoom-animated'); + } + + if (!this._tilesToLoad) { + this.fire('load'); + + if (this._animated) { + // clear scaled tiles after all new tiles are loaded (for performance) + clearTimeout(this._clearBgBufferTimer); + this._clearBgBufferTimer = setTimeout(L.bind(this._clearBgBuffer, this), 500); + } + } + }, + + _tileOnLoad: function () { + var layer = this._layer; + + //Only if we are loading an actual image + if (this.src !== L.Util.emptyImageUrl) { + L.DomUtil.addClass(this, 'leaflet-tile-loaded'); + + layer.fire('tileload', { + tile: this, + url: this.src + }); + } + + layer._tileLoaded(); + }, + + _tileOnError: function () { + var layer = this._layer; + + layer.fire('tileerror', { + tile: this, + url: this.src + }); + + var newUrl = layer.options.errorTileUrl; + if (newUrl) { + this.src = newUrl; + } + + layer._tileLoaded(); + } +}); + +L.tileLayer = function (url, options) { + return new L.TileLayer(url, options); +}; + + +/* + * L.TileLayer.WMS is used for putting WMS tile layers on the map. + */ + +L.TileLayer.WMS = L.TileLayer.extend({ + + defaultWmsParams: { + service: 'WMS', + request: 'GetMap', + version: '1.1.1', + layers: '', + styles: '', + format: 'image/jpeg', + transparent: false + }, + + initialize: function (url, options) { // (String, Object) + + this._url = url; + + var wmsParams = L.extend({}, this.defaultWmsParams), + tileSize = options.tileSize || this.options.tileSize; + + if (options.detectRetina && L.Browser.retina) { + wmsParams.width = wmsParams.height = tileSize * 2; + } else { + wmsParams.width = wmsParams.height = tileSize; + } + + for (var i in options) { + // all keys that are not TileLayer options go to WMS params + if (!this.options.hasOwnProperty(i) && i !== 'crs') { + wmsParams[i] = options[i]; + } + } + + this.wmsParams = wmsParams; + + L.setOptions(this, options); + }, + + onAdd: function (map) { + + this._crs = this.options.crs || map.options.crs; + + this._wmsVersion = parseFloat(this.wmsParams.version); + + var projectionKey = this._wmsVersion >= 1.3 ? 'crs' : 'srs'; + this.wmsParams[projectionKey] = this._crs.code; + + L.TileLayer.prototype.onAdd.call(this, map); + }, + + getTileUrl: function (tilePoint) { // (Point, Number) -> String + + var map = this._map, + tileSize = this.options.tileSize, + + nwPoint = tilePoint.multiplyBy(tileSize), + sePoint = nwPoint.add([tileSize, tileSize]), + + nw = this._crs.project(map.unproject(nwPoint, tilePoint.z)), + se = this._crs.project(map.unproject(sePoint, tilePoint.z)), + bbox = this._wmsVersion >= 1.3 && this._crs === L.CRS.EPSG4326 ? + [se.y, nw.x, nw.y, se.x].join(',') : + [nw.x, se.y, se.x, nw.y].join(','), + + url = L.Util.template(this._url, {s: this._getSubdomain(tilePoint)}); + + return url + L.Util.getParamString(this.wmsParams, url, true) + '&BBOX=' + bbox; + }, + + setParams: function (params, noRedraw) { + + L.extend(this.wmsParams, params); + + if (!noRedraw) { + this.redraw(); + } + + return this; + } +}); + +L.tileLayer.wms = function (url, options) { + return new L.TileLayer.WMS(url, options); +}; + + +/* + * L.TileLayer.Canvas is a class that you can use as a base for creating + * dynamically drawn Canvas-based tile layers. + */ + +L.TileLayer.Canvas = L.TileLayer.extend({ + options: { + async: false + }, + + initialize: function (options) { + L.setOptions(this, options); + }, + + redraw: function () { + if (this._map) { + this._reset({hard: true}); + this._update(); + } + + for (var i in this._tiles) { + this._redrawTile(this._tiles[i]); + } + return this; + }, + + _redrawTile: function (tile) { + this.drawTile(tile, tile._tilePoint, this._map._zoom); + }, + + _createTile: function () { + var tile = L.DomUtil.create('canvas', 'leaflet-tile'); + tile.width = tile.height = this.options.tileSize; + tile.onselectstart = tile.onmousemove = L.Util.falseFn; + return tile; + }, + + _loadTile: function (tile, tilePoint) { + tile._layer = this; + tile._tilePoint = tilePoint; + + this._redrawTile(tile); + + if (!this.options.async) { + this.tileDrawn(tile); + } + }, + + drawTile: function (/*tile, tilePoint*/) { + // override with rendering code + }, + + tileDrawn: function (tile) { + this._tileOnLoad.call(tile); + } +}); + + +L.tileLayer.canvas = function (options) { + return new L.TileLayer.Canvas(options); +}; + + +/* + * L.ImageOverlay is used to overlay images over the map (to specific geographical bounds). + */ + +L.ImageOverlay = L.Class.extend({ + includes: L.Mixin.Events, + + options: { + opacity: 1 + }, + + initialize: function (url, bounds, options) { // (String, LatLngBounds, Object) + this._url = url; + this._bounds = L.latLngBounds(bounds); + + L.setOptions(this, options); + }, + + onAdd: function (map) { + this._map = map; + + if (!this._image) { + this._initImage(); + } + + map._panes.overlayPane.appendChild(this._image); + + map.on('viewreset', this._reset, this); + + if (map.options.zoomAnimation && L.Browser.any3d) { + map.on('zoomanim', this._animateZoom, this); + } + + this._reset(); + }, + + onRemove: function (map) { + map.getPanes().overlayPane.removeChild(this._image); + + map.off('viewreset', this._reset, this); + + if (map.options.zoomAnimation) { + map.off('zoomanim', this._animateZoom, this); + } + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + setOpacity: function (opacity) { + this.options.opacity = opacity; + this._updateOpacity(); + return this; + }, + + // TODO remove bringToFront/bringToBack duplication from TileLayer/Path + bringToFront: function () { + if (this._image) { + this._map._panes.overlayPane.appendChild(this._image); + } + return this; + }, + + bringToBack: function () { + var pane = this._map._panes.overlayPane; + if (this._image) { + pane.insertBefore(this._image, pane.firstChild); + } + return this; + }, + + setUrl: function (url) { + this._url = url; + this._image.src = this._url; + }, + + getAttribution: function () { + return this.options.attribution; + }, + + _initImage: function () { + this._image = L.DomUtil.create('img', 'leaflet-image-layer'); + + if (this._map.options.zoomAnimation && L.Browser.any3d) { + L.DomUtil.addClass(this._image, 'leaflet-zoom-animated'); + } else { + L.DomUtil.addClass(this._image, 'leaflet-zoom-hide'); + } + + this._updateOpacity(); + + //TODO createImage util method to remove duplication + L.extend(this._image, { + galleryimg: 'no', + onselectstart: L.Util.falseFn, + onmousemove: L.Util.falseFn, + onload: L.bind(this._onImageLoad, this), + src: this._url + }); + }, + + _animateZoom: function (e) { + var map = this._map, + image = this._image, + scale = map.getZoomScale(e.zoom), + nw = this._bounds.getNorthWest(), + se = this._bounds.getSouthEast(), + + topLeft = map._latLngToNewLayerPoint(nw, e.zoom, e.center), + size = map._latLngToNewLayerPoint(se, e.zoom, e.center)._subtract(topLeft), + origin = topLeft._add(size._multiplyBy((1 / 2) * (1 - 1 / scale))); + + image.style[L.DomUtil.TRANSFORM] = + L.DomUtil.getTranslateString(origin) + ' scale(' + scale + ') '; + }, + + _reset: function () { + var image = this._image, + topLeft = this._map.latLngToLayerPoint(this._bounds.getNorthWest()), + size = this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(topLeft); + + L.DomUtil.setPosition(image, topLeft); + + image.style.width = size.x + 'px'; + image.style.height = size.y + 'px'; + }, + + _onImageLoad: function () { + this.fire('load'); + }, + + _updateOpacity: function () { + L.DomUtil.setOpacity(this._image, this.options.opacity); + } +}); + +L.imageOverlay = function (url, bounds, options) { + return new L.ImageOverlay(url, bounds, options); +}; + + +/* + * L.Icon is an image-based icon class that you can use with L.Marker for custom markers. + */ + +L.Icon = L.Class.extend({ + options: { + /* + iconUrl: (String) (required) + iconRetinaUrl: (String) (optional, used for retina devices if detected) + iconSize: (Point) (can be set through CSS) + iconAnchor: (Point) (centered by default, can be set in CSS with negative margins) + popupAnchor: (Point) (if not specified, popup opens in the anchor point) + shadowUrl: (String) (no shadow by default) + shadowRetinaUrl: (String) (optional, used for retina devices if detected) + shadowSize: (Point) + shadowAnchor: (Point) + */ + className: '' + }, + + initialize: function (options) { + L.setOptions(this, options); + }, + + createIcon: function (oldIcon) { + return this._createIcon('icon', oldIcon); + }, + + createShadow: function (oldIcon) { + return this._createIcon('shadow', oldIcon); + }, + + _createIcon: function (name, oldIcon) { + var src = this._getIconUrl(name); + + if (!src) { + if (name === 'icon') { + throw new Error('iconUrl not set in Icon options (see the docs).'); + } + return null; + } + + var img; + if (!oldIcon || oldIcon.tagName !== 'IMG') { + img = this._createImg(src); + } else { + img = this._createImg(src, oldIcon); + } + this._setIconStyles(img, name); + + return img; + }, + + _setIconStyles: function (img, name) { + var options = this.options, + size = L.point(options[name + 'Size']), + anchor; + + if (name === 'shadow') { + anchor = L.point(options.shadowAnchor || options.iconAnchor); + } else { + anchor = L.point(options.iconAnchor); + } + + if (!anchor && size) { + anchor = size.divideBy(2, true); + } + + img.className = 'leaflet-marker-' + name + ' ' + options.className; + + if (anchor) { + img.style.marginLeft = (-anchor.x) + 'px'; + img.style.marginTop = (-anchor.y) + 'px'; + } + + if (size) { + img.style.width = size.x + 'px'; + img.style.height = size.y + 'px'; + } + }, + + _createImg: function (src, el) { + + if (!L.Browser.ie6) { + if (!el) { + el = document.createElement('img'); + } + el.src = src; + } else { + if (!el) { + el = document.createElement('div'); + } + el.style.filter = + 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + src + '")'; + } + return el; + }, + + _getIconUrl: function (name) { + if (L.Browser.retina && this.options[name + 'RetinaUrl']) { + return this.options[name + 'RetinaUrl']; + } + return this.options[name + 'Url']; + } +}); + +L.icon = function (options) { + return new L.Icon(options); +}; + + +/* + * L.Icon.Default is the blue marker icon used by default in Leaflet. + */ + +L.Icon.Default = L.Icon.extend({ + + options: { + iconSize: [25, 41], + iconAnchor: [12, 41], + popupAnchor: [1, -34], + + shadowSize: [41, 41] + }, + + _getIconUrl: function (name) { + var key = name + 'Url'; + + if (this.options[key]) { + return this.options[key]; + } + + if (L.Browser.retina && name === 'icon') { + name += '-2x'; + } + + var path = L.Icon.Default.imagePath; + + if (!path) { + throw new Error('Couldn\'t autodetect L.Icon.Default.imagePath, set it manually.'); + } + + return path + '/marker-' + name + '.png'; + } +}); + +L.Icon.Default.imagePath = (function () { + var scripts = document.getElementsByTagName('script'), + leafletRe = /[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/; + + var i, len, src, matches, path; + + for (i = 0, len = scripts.length; i < len; i++) { + src = scripts[i].src; + matches = src.match(leafletRe); + + if (matches) { + path = src.split(leafletRe)[0]; + return (path ? path + '/' : '') + 'images'; + } + } +}()); + + +/* + * L.Marker is used to display clickable/draggable icons on the map. + */ + +L.Marker = L.Class.extend({ + + includes: L.Mixin.Events, + + options: { + icon: new L.Icon.Default(), + title: '', + alt: '', + clickable: true, + draggable: false, + keyboard: true, + zIndexOffset: 0, + opacity: 1, + riseOnHover: false, + riseOffset: 250 + }, + + initialize: function (latlng, options) { + L.setOptions(this, options); + this._latlng = L.latLng(latlng); + }, + + onAdd: function (map) { + this._map = map; + + map.on('viewreset', this.update, this); + + this._initIcon(); + this.update(); + this.fire('add'); + + if (map.options.zoomAnimation && map.options.markerZoomAnimation) { + map.on('zoomanim', this._animateZoom, this); + } + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + onRemove: function (map) { + if (this.dragging) { + this.dragging.disable(); + } + + this._removeIcon(); + this._removeShadow(); + + this.fire('remove'); + + map.off({ + 'viewreset': this.update, + 'zoomanim': this._animateZoom + }, this); + + this._map = null; + }, + + getLatLng: function () { + return this._latlng; + }, + + setLatLng: function (latlng) { + this._latlng = L.latLng(latlng); + + this.update(); + + return this.fire('move', { latlng: this._latlng }); + }, + + setZIndexOffset: function (offset) { + this.options.zIndexOffset = offset; + this.update(); + + return this; + }, + + setIcon: function (icon) { + + this.options.icon = icon; + + if (this._map) { + this._initIcon(); + this.update(); + } + + if (this._popup) { + this.bindPopup(this._popup); + } + + return this; + }, + + update: function () { + if (this._icon) { + var pos = this._map.latLngToLayerPoint(this._latlng).round(); + this._setPos(pos); + } + + return this; + }, + + _initIcon: function () { + var options = this.options, + map = this._map, + animation = (map.options.zoomAnimation && map.options.markerZoomAnimation), + classToAdd = animation ? 'leaflet-zoom-animated' : 'leaflet-zoom-hide'; + + var icon = options.icon.createIcon(this._icon), + addIcon = false; + + // if we're not reusing the icon, remove the old one and init new one + if (icon !== this._icon) { + if (this._icon) { + this._removeIcon(); + } + addIcon = true; + + if (options.title) { + icon.title = options.title; + } + + if (options.alt) { + icon.alt = options.alt; + } + } + + L.DomUtil.addClass(icon, classToAdd); + + if (options.keyboard) { + icon.tabIndex = '0'; + } + + this._icon = icon; + + this._initInteraction(); + + if (options.riseOnHover) { + L.DomEvent + .on(icon, 'mouseover', this._bringToFront, this) + .on(icon, 'mouseout', this._resetZIndex, this); + } + + var newShadow = options.icon.createShadow(this._shadow), + addShadow = false; + + if (newShadow !== this._shadow) { + this._removeShadow(); + addShadow = true; + } + + if (newShadow) { + L.DomUtil.addClass(newShadow, classToAdd); + } + this._shadow = newShadow; + + + if (options.opacity < 1) { + this._updateOpacity(); + } + + + var panes = this._map._panes; + + if (addIcon) { + panes.markerPane.appendChild(this._icon); + } + + if (newShadow && addShadow) { + panes.shadowPane.appendChild(this._shadow); + } + }, + + _removeIcon: function () { + if (this.options.riseOnHover) { + L.DomEvent + .off(this._icon, 'mouseover', this._bringToFront) + .off(this._icon, 'mouseout', this._resetZIndex); + } + + this._map._panes.markerPane.removeChild(this._icon); + + this._icon = null; + }, + + _removeShadow: function () { + if (this._shadow) { + this._map._panes.shadowPane.removeChild(this._shadow); + } + this._shadow = null; + }, + + _setPos: function (pos) { + L.DomUtil.setPosition(this._icon, pos); + + if (this._shadow) { + L.DomUtil.setPosition(this._shadow, pos); + } + + this._zIndex = pos.y + this.options.zIndexOffset; + + this._resetZIndex(); + }, + + _updateZIndex: function (offset) { + this._icon.style.zIndex = this._zIndex + offset; + }, + + _animateZoom: function (opt) { + var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round(); + + this._setPos(pos); + }, + + _initInteraction: function () { + + if (!this.options.clickable) { return; } + + // TODO refactor into something shared with Map/Path/etc. to DRY it up + + var icon = this._icon, + events = ['dblclick', 'mousedown', 'mouseover', 'mouseout', 'contextmenu']; + + L.DomUtil.addClass(icon, 'leaflet-clickable'); + L.DomEvent.on(icon, 'click', this._onMouseClick, this); + L.DomEvent.on(icon, 'keypress', this._onKeyPress, this); + + for (var i = 0; i < events.length; i++) { + L.DomEvent.on(icon, events[i], this._fireMouseEvent, this); + } + + if (L.Handler.MarkerDrag) { + this.dragging = new L.Handler.MarkerDrag(this); + + if (this.options.draggable) { + this.dragging.enable(); + } + } + }, + + _onMouseClick: function (e) { + var wasDragged = this.dragging && this.dragging.moved(); + + if (this.hasEventListeners(e.type) || wasDragged) { + L.DomEvent.stopPropagation(e); + } + + if (wasDragged) { return; } + + if ((!this.dragging || !this.dragging._enabled) && this._map.dragging && this._map.dragging.moved()) { return; } + + this.fire(e.type, { + originalEvent: e, + latlng: this._latlng + }); + }, + + _onKeyPress: function (e) { + if (e.keyCode === 13) { + this.fire('click', { + originalEvent: e, + latlng: this._latlng + }); + } + }, + + _fireMouseEvent: function (e) { + + this.fire(e.type, { + originalEvent: e, + latlng: this._latlng + }); + + // TODO proper custom event propagation + // this line will always be called if marker is in a FeatureGroup + if (e.type === 'contextmenu' && this.hasEventListeners(e.type)) { + L.DomEvent.preventDefault(e); + } + if (e.type !== 'mousedown') { + L.DomEvent.stopPropagation(e); + } else { + L.DomEvent.preventDefault(e); + } + }, + + setOpacity: function (opacity) { + this.options.opacity = opacity; + if (this._map) { + this._updateOpacity(); + } + + return this; + }, + + _updateOpacity: function () { + L.DomUtil.setOpacity(this._icon, this.options.opacity); + if (this._shadow) { + L.DomUtil.setOpacity(this._shadow, this.options.opacity); + } + }, + + _bringToFront: function () { + this._updateZIndex(this.options.riseOffset); + }, + + _resetZIndex: function () { + this._updateZIndex(0); + } +}); + +L.marker = function (latlng, options) { + return new L.Marker(latlng, options); +}; + + +/* + * L.DivIcon is a lightweight HTML-based icon class (as opposed to the image-based L.Icon) + * to use with L.Marker. + */ + +L.DivIcon = L.Icon.extend({ + options: { + iconSize: [12, 12], // also can be set through CSS + /* + iconAnchor: (Point) + popupAnchor: (Point) + html: (String) + bgPos: (Point) + */ + className: 'leaflet-div-icon', + html: false + }, + + createIcon: function (oldIcon) { + var div = (oldIcon && oldIcon.tagName === 'DIV') ? oldIcon : document.createElement('div'), + options = this.options; + + if (options.html !== false) { + div.innerHTML = options.html; + } else { + div.innerHTML = ''; + } + + if (options.bgPos) { + div.style.backgroundPosition = + (-options.bgPos.x) + 'px ' + (-options.bgPos.y) + 'px'; + } + + this._setIconStyles(div, 'icon'); + return div; + }, + + createShadow: function () { + return null; + } +}); + +L.divIcon = function (options) { + return new L.DivIcon(options); +}; + + +/* + * L.Popup is used for displaying popups on the map. + */ + +L.Map.mergeOptions({ + closePopupOnClick: true +}); + +L.Popup = L.Class.extend({ + includes: L.Mixin.Events, + + options: { + minWidth: 50, + maxWidth: 300, + // maxHeight: null, + autoPan: true, + closeButton: true, + offset: [0, 7], + autoPanPadding: [5, 5], + // autoPanPaddingTopLeft: null, + // autoPanPaddingBottomRight: null, + keepInView: false, + className: '', + zoomAnimation: true + }, + + initialize: function (options, source) { + L.setOptions(this, options); + + this._source = source; + this._animated = L.Browser.any3d && this.options.zoomAnimation; + this._isOpen = false; + }, + + onAdd: function (map) { + this._map = map; + + if (!this._container) { + this._initLayout(); + } + + var animFade = map.options.fadeAnimation; + + if (animFade) { + L.DomUtil.setOpacity(this._container, 0); + } + map._panes.popupPane.appendChild(this._container); + + map.on(this._getEvents(), this); + + this.update(); + + if (animFade) { + L.DomUtil.setOpacity(this._container, 1); + } + + this.fire('open'); + + map.fire('popupopen', {popup: this}); + + if (this._source) { + this._source.fire('popupopen', {popup: this}); + } + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + openOn: function (map) { + map.openPopup(this); + return this; + }, + + onRemove: function (map) { + map._panes.popupPane.removeChild(this._container); + + L.Util.falseFn(this._container.offsetWidth); // force reflow + + map.off(this._getEvents(), this); + + if (map.options.fadeAnimation) { + L.DomUtil.setOpacity(this._container, 0); + } + + this._map = null; + + this.fire('close'); + + map.fire('popupclose', {popup: this}); + + if (this._source) { + this._source.fire('popupclose', {popup: this}); + } + }, + + getLatLng: function () { + return this._latlng; + }, + + setLatLng: function (latlng) { + this._latlng = L.latLng(latlng); + this.update(); + return this; + }, + + getContent: function () { + return this._content; + }, + + setContent: function (content) { + this._content = content; + this.update(); + return this; + }, + + update: function () { + if (!this._map) { return; } + + this._container.style.visibility = 'hidden'; + + this._updateContent(); + this._updateLayout(); + this._updatePosition(); + + this._container.style.visibility = ''; + + this._adjustPan(); + }, + + _getEvents: function () { + var events = { + viewreset: this._updatePosition + }; + + if (this._animated) { + events.zoomanim = this._zoomAnimation; + } + if ('closeOnClick' in this.options ? this.options.closeOnClick : this._map.options.closePopupOnClick) { + events.preclick = this._close; + } + if (this.options.keepInView) { + events.moveend = this._adjustPan; + } + + return events; + }, + + _close: function () { + if (this._map) { + this._map.closePopup(this); + } + }, + + _initLayout: function () { + var prefix = 'leaflet-popup', + containerClass = prefix + ' ' + this.options.className + ' leaflet-zoom-' + + (this._animated ? 'animated' : 'hide'), + container = this._container = L.DomUtil.create('div', containerClass), + closeButton; + + if (this.options.closeButton) { + closeButton = this._closeButton = + L.DomUtil.create('a', prefix + '-close-button', container); + closeButton.href = '#close'; + closeButton.innerHTML = '×'; + L.DomEvent.disableClickPropagation(closeButton); + + L.DomEvent.on(closeButton, 'click', this._onCloseButtonClick, this); + } + + var wrapper = this._wrapper = + L.DomUtil.create('div', prefix + '-content-wrapper', container); + L.DomEvent.disableClickPropagation(wrapper); + + this._contentNode = L.DomUtil.create('div', prefix + '-content', wrapper); + + L.DomEvent.disableScrollPropagation(this._contentNode); + L.DomEvent.on(wrapper, 'contextmenu', L.DomEvent.stopPropagation); + + this._tipContainer = L.DomUtil.create('div', prefix + '-tip-container', container); + this._tip = L.DomUtil.create('div', prefix + '-tip', this._tipContainer); + }, + + _updateContent: function () { + if (!this._content) { return; } + + if (typeof this._content === 'string') { + this._contentNode.innerHTML = this._content; + } else { + while (this._contentNode.hasChildNodes()) { + this._contentNode.removeChild(this._contentNode.firstChild); + } + this._contentNode.appendChild(this._content); + } + this.fire('contentupdate'); + }, + + _updateLayout: function () { + var container = this._contentNode, + style = container.style; + + style.width = ''; + style.whiteSpace = 'nowrap'; + + var width = container.offsetWidth; + width = Math.min(width, this.options.maxWidth); + width = Math.max(width, this.options.minWidth); + + style.width = (width + 1) + 'px'; + style.whiteSpace = ''; + + style.height = ''; + + var height = container.offsetHeight, + maxHeight = this.options.maxHeight, + scrolledClass = 'leaflet-popup-scrolled'; + + if (maxHeight && height > maxHeight) { + style.height = maxHeight + 'px'; + L.DomUtil.addClass(container, scrolledClass); + } else { + L.DomUtil.removeClass(container, scrolledClass); + } + + this._containerWidth = this._container.offsetWidth; + }, + + _updatePosition: function () { + if (!this._map) { return; } + + var pos = this._map.latLngToLayerPoint(this._latlng), + animated = this._animated, + offset = L.point(this.options.offset); + + if (animated) { + L.DomUtil.setPosition(this._container, pos); + } + + this._containerBottom = -offset.y - (animated ? 0 : pos.y); + this._containerLeft = -Math.round(this._containerWidth / 2) + offset.x + (animated ? 0 : pos.x); + + // bottom position the popup in case the height of the popup changes (images loading etc) + this._container.style.bottom = this._containerBottom + 'px'; + this._container.style.left = this._containerLeft + 'px'; + }, + + _zoomAnimation: function (opt) { + var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center); + + L.DomUtil.setPosition(this._container, pos); + }, + + _adjustPan: function () { + if (!this.options.autoPan) { return; } + + var map = this._map, + containerHeight = this._container.offsetHeight, + containerWidth = this._containerWidth, + + layerPos = new L.Point(this._containerLeft, -containerHeight - this._containerBottom); + + if (this._animated) { + layerPos._add(L.DomUtil.getPosition(this._container)); + } + + var containerPos = map.layerPointToContainerPoint(layerPos), + padding = L.point(this.options.autoPanPadding), + paddingTL = L.point(this.options.autoPanPaddingTopLeft || padding), + paddingBR = L.point(this.options.autoPanPaddingBottomRight || padding), + size = map.getSize(), + dx = 0, + dy = 0; + + if (containerPos.x + containerWidth + paddingBR.x > size.x) { // right + dx = containerPos.x + containerWidth - size.x + paddingBR.x; + } + if (containerPos.x - dx - paddingTL.x < 0) { // left + dx = containerPos.x - paddingTL.x; + } + if (containerPos.y + containerHeight + paddingBR.y > size.y) { // bottom + dy = containerPos.y + containerHeight - size.y + paddingBR.y; + } + if (containerPos.y - dy - paddingTL.y < 0) { // top + dy = containerPos.y - paddingTL.y; + } + + if (dx || dy) { + map + .fire('autopanstart') + .panBy([dx, dy]); + } + }, + + _onCloseButtonClick: function (e) { + this._close(); + L.DomEvent.stop(e); + } +}); + +L.popup = function (options, source) { + return new L.Popup(options, source); +}; + + +L.Map.include({ + openPopup: function (popup, latlng, options) { // (Popup) or (String || HTMLElement, LatLng[, Object]) + this.closePopup(); + + if (!(popup instanceof L.Popup)) { + var content = popup; + + popup = new L.Popup(options) + .setLatLng(latlng) + .setContent(content); + } + popup._isOpen = true; + + this._popup = popup; + return this.addLayer(popup); + }, + + closePopup: function (popup) { + if (!popup || popup === this._popup) { + popup = this._popup; + this._popup = null; + } + if (popup) { + this.removeLayer(popup); + popup._isOpen = false; + } + return this; + } +}); + + +/* + * Popup extension to L.Marker, adding popup-related methods. + */ + +L.Marker.include({ + openPopup: function () { + if (this._popup && this._map && !this._map.hasLayer(this._popup)) { + this._popup.setLatLng(this._latlng); + this._map.openPopup(this._popup); + } + + return this; + }, + + closePopup: function () { + if (this._popup) { + this._popup._close(); + } + return this; + }, + + togglePopup: function () { + if (this._popup) { + if (this._popup._isOpen) { + this.closePopup(); + } else { + this.openPopup(); + } + } + return this; + }, + + bindPopup: function (content, options) { + var anchor = L.point(this.options.icon.options.popupAnchor || [0, 0]); + + anchor = anchor.add(L.Popup.prototype.options.offset); + + if (options && options.offset) { + anchor = anchor.add(options.offset); + } + + options = L.extend({offset: anchor}, options); + + if (!this._popupHandlersAdded) { + this + .on('click', this.togglePopup, this) + .on('remove', this.closePopup, this) + .on('move', this._movePopup, this); + this._popupHandlersAdded = true; + } + + if (content instanceof L.Popup) { + L.setOptions(content, options); + this._popup = content; + } else { + this._popup = new L.Popup(options, this) + .setContent(content); + } + + return this; + }, + + setPopupContent: function (content) { + if (this._popup) { + this._popup.setContent(content); + } + return this; + }, + + unbindPopup: function () { + if (this._popup) { + this._popup = null; + this + .off('click', this.togglePopup, this) + .off('remove', this.closePopup, this) + .off('move', this._movePopup, this); + this._popupHandlersAdded = false; + } + return this; + }, + + getPopup: function () { + return this._popup; + }, + + _movePopup: function (e) { + this._popup.setLatLng(e.latlng); + } +}); + + +/* + * L.LayerGroup is a class to combine several layers into one so that + * you can manipulate the group (e.g. add/remove it) as one layer. + */ + +L.LayerGroup = L.Class.extend({ + initialize: function (layers) { + this._layers = {}; + + var i, len; + + if (layers) { + for (i = 0, len = layers.length; i < len; i++) { + this.addLayer(layers[i]); + } + } + }, + + addLayer: function (layer) { + var id = this.getLayerId(layer); + + this._layers[id] = layer; + + if (this._map) { + this._map.addLayer(layer); + } + + return this; + }, + + removeLayer: function (layer) { + var id = layer in this._layers ? layer : this.getLayerId(layer); + + if (this._map && this._layers[id]) { + this._map.removeLayer(this._layers[id]); + } + + delete this._layers[id]; + + return this; + }, + + hasLayer: function (layer) { + if (!layer) { return false; } + + return (layer in this._layers || this.getLayerId(layer) in this._layers); + }, + + clearLayers: function () { + this.eachLayer(this.removeLayer, this); + return this; + }, + + invoke: function (methodName) { + var args = Array.prototype.slice.call(arguments, 1), + i, layer; + + for (i in this._layers) { + layer = this._layers[i]; + + if (layer[methodName]) { + layer[methodName].apply(layer, args); + } + } + + return this; + }, + + onAdd: function (map) { + this._map = map; + this.eachLayer(map.addLayer, map); + }, + + onRemove: function (map) { + this.eachLayer(map.removeLayer, map); + this._map = null; + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + eachLayer: function (method, context) { + for (var i in this._layers) { + method.call(context, this._layers[i]); + } + return this; + }, + + getLayer: function (id) { + return this._layers[id]; + }, + + getLayers: function () { + var layers = []; + + for (var i in this._layers) { + layers.push(this._layers[i]); + } + return layers; + }, + + setZIndex: function (zIndex) { + return this.invoke('setZIndex', zIndex); + }, + + getLayerId: function (layer) { + return L.stamp(layer); + } +}); + +L.layerGroup = function (layers) { + return new L.LayerGroup(layers); +}; + + +/* + * L.FeatureGroup extends L.LayerGroup by introducing mouse events and additional methods + * shared between a group of interactive layers (like vectors or markers). + */ + +L.FeatureGroup = L.LayerGroup.extend({ + includes: L.Mixin.Events, + + statics: { + EVENTS: 'click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose' + }, + + addLayer: function (layer) { + if (this.hasLayer(layer)) { + return this; + } + + if ('on' in layer) { + layer.on(L.FeatureGroup.EVENTS, this._propagateEvent, this); + } + + L.LayerGroup.prototype.addLayer.call(this, layer); + + if (this._popupContent && layer.bindPopup) { + layer.bindPopup(this._popupContent, this._popupOptions); + } + + return this.fire('layeradd', {layer: layer}); + }, + + removeLayer: function (layer) { + if (!this.hasLayer(layer)) { + return this; + } + if (layer in this._layers) { + layer = this._layers[layer]; + } + + layer.off(L.FeatureGroup.EVENTS, this._propagateEvent, this); + + L.LayerGroup.prototype.removeLayer.call(this, layer); + + if (this._popupContent) { + this.invoke('unbindPopup'); + } + + return this.fire('layerremove', {layer: layer}); + }, + + bindPopup: function (content, options) { + this._popupContent = content; + this._popupOptions = options; + return this.invoke('bindPopup', content, options); + }, + + setStyle: function (style) { + return this.invoke('setStyle', style); + }, + + bringToFront: function () { + return this.invoke('bringToFront'); + }, + + bringToBack: function () { + return this.invoke('bringToBack'); + }, + + getBounds: function () { + var bounds = new L.LatLngBounds(); + + this.eachLayer(function (layer) { + bounds.extend(layer instanceof L.Marker ? layer.getLatLng() : layer.getBounds()); + }); + + return bounds; + }, + + _propagateEvent: function (e) { + if (!e.layer) { + e.layer = e.target; + } + e.target = this; + + this.fire(e.type, e); + } +}); + +L.featureGroup = function (layers) { + return new L.FeatureGroup(layers); +}; + + +/* + * L.Path is a base class for rendering vector paths on a map. Inherited by Polyline, Circle, etc. + */ + +L.Path = L.Class.extend({ + includes: [L.Mixin.Events], + + statics: { + // how much to extend the clip area around the map view + // (relative to its size, e.g. 0.5 is half the screen in each direction) + // set it so that SVG element doesn't exceed 1280px (vectors flicker on dragend if it is) + CLIP_PADDING: (function () { + var max = L.Browser.mobile ? 1280 : 2000, + target = (max / Math.max(window.outerWidth, window.outerHeight) - 1) / 2; + return Math.max(0, Math.min(0.5, target)); + })() + }, + + options: { + stroke: true, + color: '#0033ff', + dashArray: null, + lineCap: null, + lineJoin: null, + weight: 5, + opacity: 0.5, + + fill: false, + fillColor: null, //same as color by default + fillOpacity: 0.2, + + clickable: true + }, + + initialize: function (options) { + L.setOptions(this, options); + }, + + onAdd: function (map) { + this._map = map; + + if (!this._container) { + this._initElements(); + this._initEvents(); + } + + this.projectLatlngs(); + this._updatePath(); + + if (this._container) { + this._map._pathRoot.appendChild(this._container); + } + + this.fire('add'); + + map.on({ + 'viewreset': this.projectLatlngs, + 'moveend': this._updatePath + }, this); + }, + + addTo: function (map) { + map.addLayer(this); + return this; + }, + + onRemove: function (map) { + map._pathRoot.removeChild(this._container); + + // Need to fire remove event before we set _map to null as the event hooks might need the object + this.fire('remove'); + this._map = null; + + if (L.Browser.vml) { + this._container = null; + this._stroke = null; + this._fill = null; + } + + map.off({ + 'viewreset': this.projectLatlngs, + 'moveend': this._updatePath + }, this); + }, + + projectLatlngs: function () { + // do all projection stuff here + }, + + setStyle: function (style) { + L.setOptions(this, style); + + if (this._container) { + this._updateStyle(); + } + + return this; + }, + + redraw: function () { + if (this._map) { + this.projectLatlngs(); + this._updatePath(); + } + return this; + } +}); + +L.Map.include({ + _updatePathViewport: function () { + var p = L.Path.CLIP_PADDING, + size = this.getSize(), + panePos = L.DomUtil.getPosition(this._mapPane), + min = panePos.multiplyBy(-1)._subtract(size.multiplyBy(p)._round()), + max = min.add(size.multiplyBy(1 + p * 2)._round()); + + this._pathViewport = new L.Bounds(min, max); + } +}); + + +/* + * Extends L.Path with SVG-specific rendering code. + */ + +L.Path.SVG_NS = 'http://www.w3.org/2000/svg'; + +L.Browser.svg = !!(document.createElementNS && document.createElementNS(L.Path.SVG_NS, 'svg').createSVGRect); + +L.Path = L.Path.extend({ + statics: { + SVG: L.Browser.svg + }, + + bringToFront: function () { + var root = this._map._pathRoot, + path = this._container; + + if (path && root.lastChild !== path) { + root.appendChild(path); + } + return this; + }, + + bringToBack: function () { + var root = this._map._pathRoot, + path = this._container, + first = root.firstChild; + + if (path && first !== path) { + root.insertBefore(path, first); + } + return this; + }, + + getPathString: function () { + // form path string here + }, + + _createElement: function (name) { + return document.createElementNS(L.Path.SVG_NS, name); + }, + + _initElements: function () { + this._map._initPathRoot(); + this._initPath(); + this._initStyle(); + }, + + _initPath: function () { + this._container = this._createElement('g'); + + this._path = this._createElement('path'); + this._container.appendChild(this._path); + }, + + _initStyle: function () { + if (this.options.stroke) { + this._path.setAttribute('stroke-linejoin', 'round'); + this._path.setAttribute('stroke-linecap', 'round'); + } + if (this.options.fill) { + this._path.setAttribute('fill-rule', 'evenodd'); + } + if (this.options.pointerEvents) { + this._path.setAttribute('pointer-events', this.options.pointerEvents); + } + if (!this.options.clickable && !this.options.pointerEvents) { + this._path.setAttribute('pointer-events', 'none'); + } + this._updateStyle(); + }, + + _updateStyle: function () { + if (this.options.stroke) { + this._path.setAttribute('stroke', this.options.color); + this._path.setAttribute('stroke-opacity', this.options.opacity); + this._path.setAttribute('stroke-width', this.options.weight); + if (this.options.dashArray) { + this._path.setAttribute('stroke-dasharray', this.options.dashArray); + } else { + this._path.removeAttribute('stroke-dasharray'); + } + if (this.options.lineCap) { + this._path.setAttribute('stroke-linecap', this.options.lineCap); + } + if (this.options.lineJoin) { + this._path.setAttribute('stroke-linejoin', this.options.lineJoin); + } + } else { + this._path.setAttribute('stroke', 'none'); + } + if (this.options.fill) { + this._path.setAttribute('fill', this.options.fillColor || this.options.color); + this._path.setAttribute('fill-opacity', this.options.fillOpacity); + } else { + this._path.setAttribute('fill', 'none'); + } + }, + + _updatePath: function () { + var str = this.getPathString(); + if (!str) { + // fix webkit empty string parsing bug + str = 'M0 0'; + } + this._path.setAttribute('d', str); + }, + + // TODO remove duplication with L.Map + _initEvents: function () { + if (this.options.clickable) { + if (L.Browser.svg || !L.Browser.vml) { + this._path.setAttribute('class', 'leaflet-clickable'); + } + + L.DomEvent.on(this._container, 'click', this._onMouseClick, this); + + var events = ['dblclick', 'mousedown', 'mouseover', + 'mouseout', 'mousemove', 'contextmenu']; + for (var i = 0; i < events.length; i++) { + L.DomEvent.on(this._container, events[i], this._fireMouseEvent, this); + } + } + }, + + _onMouseClick: function (e) { + if (this._map.dragging && this._map.dragging.moved()) { return; } + + this._fireMouseEvent(e); + }, + + _fireMouseEvent: function (e) { + if (!this.hasEventListeners(e.type)) { return; } + + var map = this._map, + containerPoint = map.mouseEventToContainerPoint(e), + layerPoint = map.containerPointToLayerPoint(containerPoint), + latlng = map.layerPointToLatLng(layerPoint); + + this.fire(e.type, { + latlng: latlng, + layerPoint: layerPoint, + containerPoint: containerPoint, + originalEvent: e + }); + + if (e.type === 'contextmenu') { + L.DomEvent.preventDefault(e); + } + if (e.type !== 'mousemove') { + L.DomEvent.stopPropagation(e); + } + } +}); + +L.Map.include({ + _initPathRoot: function () { + if (!this._pathRoot) { + this._pathRoot = L.Path.prototype._createElement('svg'); + this._panes.overlayPane.appendChild(this._pathRoot); + + if (this.options.zoomAnimation && L.Browser.any3d) { + this._pathRoot.setAttribute('class', ' leaflet-zoom-animated'); + + this.on({ + 'zoomanim': this._animatePathZoom, + 'zoomend': this._endPathZoom + }); + } else { + this._pathRoot.setAttribute('class', ' leaflet-zoom-hide'); + } + + this.on('moveend', this._updateSvgViewport); + this._updateSvgViewport(); + } + }, + + _animatePathZoom: function (e) { + var scale = this.getZoomScale(e.zoom), + offset = this._getCenterOffset(e.center)._multiplyBy(-scale)._add(this._pathViewport.min); + + this._pathRoot.style[L.DomUtil.TRANSFORM] = + L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ') '; + + this._pathZooming = true; + }, + + _endPathZoom: function () { + this._pathZooming = false; + }, + + _updateSvgViewport: function () { + + if (this._pathZooming) { + // Do not update SVGs while a zoom animation is going on otherwise the animation will break. + // When the zoom animation ends we will be updated again anyway + // This fixes the case where you do a momentum move and zoom while the move is still ongoing. + return; + } + + this._updatePathViewport(); + + var vp = this._pathViewport, + min = vp.min, + max = vp.max, + width = max.x - min.x, + height = max.y - min.y, + root = this._pathRoot, + pane = this._panes.overlayPane; + + // Hack to make flicker on drag end on mobile webkit less irritating + if (L.Browser.mobileWebkit) { + pane.removeChild(root); + } + + L.DomUtil.setPosition(root, min); + root.setAttribute('width', width); + root.setAttribute('height', height); + root.setAttribute('viewBox', [min.x, min.y, width, height].join(' ')); + + if (L.Browser.mobileWebkit) { + pane.appendChild(root); + } + } +}); + + +/* + * Popup extension to L.Path (polylines, polygons, circles), adding popup-related methods. + */ + +L.Path.include({ + + bindPopup: function (content, options) { + + if (content instanceof L.Popup) { + this._popup = content; + } else { + if (!this._popup || options) { + this._popup = new L.Popup(options, this); + } + this._popup.setContent(content); + } + + if (!this._popupHandlersAdded) { + this + .on('click', this._openPopup, this) + .on('remove', this.closePopup, this); + + this._popupHandlersAdded = true; + } + + return this; + }, + + unbindPopup: function () { + if (this._popup) { + this._popup = null; + this + .off('click', this._openPopup) + .off('remove', this.closePopup); + + this._popupHandlersAdded = false; + } + return this; + }, + + openPopup: function (latlng) { + + if (this._popup) { + // open the popup from one of the path's points if not specified + latlng = latlng || this._latlng || + this._latlngs[Math.floor(this._latlngs.length / 2)]; + + this._openPopup({latlng: latlng}); + } + + return this; + }, + + closePopup: function () { + if (this._popup) { + this._popup._close(); + } + return this; + }, + + _openPopup: function (e) { + this._popup.setLatLng(e.latlng); + this._map.openPopup(this._popup); + } +}); + + +/* + * Vector rendering for IE6-8 through VML. + * Thanks to Dmitry Baranovsky and his Raphael library for inspiration! + */ + +L.Browser.vml = !L.Browser.svg && (function () { + try { + var div = document.createElement('div'); + div.innerHTML = ''; + + var shape = div.firstChild; + shape.style.behavior = 'url(#default#VML)'; + + return shape && (typeof shape.adj === 'object'); + + } catch (e) { + return false; + } +}()); + +L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({ + statics: { + VML: true, + CLIP_PADDING: 0.02 + }, + + _createElement: (function () { + try { + document.namespaces.add('lvml', 'urn:schemas-microsoft-com:vml'); + return function (name) { + return document.createElement(''); + }; + } catch (e) { + return function (name) { + return document.createElement( + '<' + name + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">'); + }; + } + }()), + + _initPath: function () { + var container = this._container = this._createElement('shape'); + L.DomUtil.addClass(container, 'leaflet-vml-shape'); + if (this.options.clickable) { + L.DomUtil.addClass(container, 'leaflet-clickable'); + } + container.coordsize = '1 1'; + + this._path = this._createElement('path'); + container.appendChild(this._path); + + this._map._pathRoot.appendChild(container); + }, + + _initStyle: function () { + this._updateStyle(); + }, + + _updateStyle: function () { + var stroke = this._stroke, + fill = this._fill, + options = this.options, + container = this._container; + + container.stroked = options.stroke; + container.filled = options.fill; + + if (options.stroke) { + if (!stroke) { + stroke = this._stroke = this._createElement('stroke'); + stroke.endcap = 'round'; + container.appendChild(stroke); + } + stroke.weight = options.weight + 'px'; + stroke.color = options.color; + stroke.opacity = options.opacity; + + if (options.dashArray) { + stroke.dashStyle = L.Util.isArray(options.dashArray) ? + options.dashArray.join(' ') : + options.dashArray.replace(/( *, *)/g, ' '); + } else { + stroke.dashStyle = ''; + } + if (options.lineCap) { + stroke.endcap = options.lineCap.replace('butt', 'flat'); + } + if (options.lineJoin) { + stroke.joinstyle = options.lineJoin; + } + + } else if (stroke) { + container.removeChild(stroke); + this._stroke = null; + } + + if (options.fill) { + if (!fill) { + fill = this._fill = this._createElement('fill'); + container.appendChild(fill); + } + fill.color = options.fillColor || options.color; + fill.opacity = options.fillOpacity; + + } else if (fill) { + container.removeChild(fill); + this._fill = null; + } + }, + + _updatePath: function () { + var style = this._container.style; + + style.display = 'none'; + this._path.v = this.getPathString() + ' '; // the space fixes IE empty path string bug + style.display = ''; + } +}); + +L.Map.include(L.Browser.svg || !L.Browser.vml ? {} : { + _initPathRoot: function () { + if (this._pathRoot) { return; } + + var root = this._pathRoot = document.createElement('div'); + root.className = 'leaflet-vml-container'; + this._panes.overlayPane.appendChild(root); + + this.on('moveend', this._updatePathViewport); + this._updatePathViewport(); + } +}); + + +/* + * Vector rendering for all browsers that support canvas. + */ + +L.Browser.canvas = (function () { + return !!document.createElement('canvas').getContext; +}()); + +L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path : L.Path.extend({ + statics: { + //CLIP_PADDING: 0.02, // not sure if there's a need to set it to a small value + CANVAS: true, + SVG: false + }, + + redraw: function () { + if (this._map) { + this.projectLatlngs(); + this._requestUpdate(); + } + return this; + }, + + setStyle: function (style) { + L.setOptions(this, style); + + if (this._map) { + this._updateStyle(); + this._requestUpdate(); + } + return this; + }, + + onRemove: function (map) { + map + .off('viewreset', this.projectLatlngs, this) + .off('moveend', this._updatePath, this); + + if (this.options.clickable) { + this._map.off('click', this._onClick, this); + this._map.off('mousemove', this._onMouseMove, this); + } + + this._requestUpdate(); + + this._map = null; + }, + + _requestUpdate: function () { + if (this._map && !L.Path._updateRequest) { + L.Path._updateRequest = L.Util.requestAnimFrame(this._fireMapMoveEnd, this._map); + } + }, + + _fireMapMoveEnd: function () { + L.Path._updateRequest = null; + this.fire('moveend'); + }, + + _initElements: function () { + this._map._initPathRoot(); + this._ctx = this._map._canvasCtx; + }, + + _updateStyle: function () { + var options = this.options; + + if (options.stroke) { + this._ctx.lineWidth = options.weight; + this._ctx.strokeStyle = options.color; + } + if (options.fill) { + this._ctx.fillStyle = options.fillColor || options.color; + } + }, + + _drawPath: function () { + var i, j, len, len2, point, drawMethod; + + this._ctx.beginPath(); + + for (i = 0, len = this._parts.length; i < len; i++) { + for (j = 0, len2 = this._parts[i].length; j < len2; j++) { + point = this._parts[i][j]; + drawMethod = (j === 0 ? 'move' : 'line') + 'To'; + + this._ctx[drawMethod](point.x, point.y); + } + // TODO refactor ugly hack + if (this instanceof L.Polygon) { + this._ctx.closePath(); + } + } + }, + + _checkIfEmpty: function () { + return !this._parts.length; + }, + + _updatePath: function () { + if (this._checkIfEmpty()) { return; } + + var ctx = this._ctx, + options = this.options; + + this._drawPath(); + ctx.save(); + this._updateStyle(); + + if (options.fill) { + ctx.globalAlpha = options.fillOpacity; + ctx.fill(); + } + + if (options.stroke) { + ctx.globalAlpha = options.opacity; + ctx.stroke(); + } + + ctx.restore(); + + // TODO optimization: 1 fill/stroke for all features with equal style instead of 1 for each feature + }, + + _initEvents: function () { + if (this.options.clickable) { + // TODO dblclick + this._map.on('mousemove', this._onMouseMove, this); + this._map.on('click', this._onClick, this); + } + }, + + _onClick: function (e) { + if (this._containsPoint(e.layerPoint)) { + this.fire('click', e); + } + }, + + _onMouseMove: function (e) { + if (!this._map || this._map._animatingZoom) { return; } + + // TODO don't do on each move + if (this._containsPoint(e.layerPoint)) { + this._ctx.canvas.style.cursor = 'pointer'; + this._mouseInside = true; + this.fire('mouseover', e); + + } else if (this._mouseInside) { + this._ctx.canvas.style.cursor = ''; + this._mouseInside = false; + this.fire('mouseout', e); + } + } +}); + +L.Map.include((L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? {} : { + _initPathRoot: function () { + var root = this._pathRoot, + ctx; + + if (!root) { + root = this._pathRoot = document.createElement('canvas'); + root.style.position = 'absolute'; + ctx = this._canvasCtx = root.getContext('2d'); + + ctx.lineCap = 'round'; + ctx.lineJoin = 'round'; + + this._panes.overlayPane.appendChild(root); + + if (this.options.zoomAnimation) { + this._pathRoot.className = 'leaflet-zoom-animated'; + this.on('zoomanim', this._animatePathZoom); + this.on('zoomend', this._endPathZoom); + } + this.on('moveend', this._updateCanvasViewport); + this._updateCanvasViewport(); + } + }, + + _updateCanvasViewport: function () { + // don't redraw while zooming. See _updateSvgViewport for more details + if (this._pathZooming) { return; } + this._updatePathViewport(); + + var vp = this._pathViewport, + min = vp.min, + size = vp.max.subtract(min), + root = this._pathRoot; + + //TODO check if this works properly on mobile webkit + L.DomUtil.setPosition(root, min); + root.width = size.x; + root.height = size.y; + root.getContext('2d').translate(-min.x, -min.y); + } +}); + + +/* + * L.LineUtil contains different utility functions for line segments + * and polylines (clipping, simplification, distances, etc.) + */ + +/*jshint bitwise:false */ // allow bitwise oprations for this file + +L.LineUtil = { + + // Simplify polyline with vertex reduction and Douglas-Peucker simplification. + // Improves rendering performance dramatically by lessening the number of points to draw. + + simplify: function (/*Point[]*/ points, /*Number*/ tolerance) { + if (!tolerance || !points.length) { + return points.slice(); + } + + var sqTolerance = tolerance * tolerance; + + // stage 1: vertex reduction + points = this._reducePoints(points, sqTolerance); + + // stage 2: Douglas-Peucker simplification + points = this._simplifyDP(points, sqTolerance); + + return points; + }, + + // distance from a point to a segment between two points + pointToSegmentDistance: function (/*Point*/ p, /*Point*/ p1, /*Point*/ p2) { + return Math.sqrt(this._sqClosestPointOnSegment(p, p1, p2, true)); + }, + + closestPointOnSegment: function (/*Point*/ p, /*Point*/ p1, /*Point*/ p2) { + return this._sqClosestPointOnSegment(p, p1, p2); + }, + + // Douglas-Peucker simplification, see http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm + _simplifyDP: function (points, sqTolerance) { + + var len = points.length, + ArrayConstructor = typeof Uint8Array !== undefined + '' ? Uint8Array : Array, + markers = new ArrayConstructor(len); + + markers[0] = markers[len - 1] = 1; + + this._simplifyDPStep(points, markers, sqTolerance, 0, len - 1); + + var i, + newPoints = []; + + for (i = 0; i < len; i++) { + if (markers[i]) { + newPoints.push(points[i]); + } + } + + return newPoints; + }, + + _simplifyDPStep: function (points, markers, sqTolerance, first, last) { + + var maxSqDist = 0, + index, i, sqDist; + + for (i = first + 1; i <= last - 1; i++) { + sqDist = this._sqClosestPointOnSegment(points[i], points[first], points[last], true); + + if (sqDist > maxSqDist) { + index = i; + maxSqDist = sqDist; + } + } + + if (maxSqDist > sqTolerance) { + markers[index] = 1; + + this._simplifyDPStep(points, markers, sqTolerance, first, index); + this._simplifyDPStep(points, markers, sqTolerance, index, last); + } + }, + + // reduce points that are too close to each other to a single point + _reducePoints: function (points, sqTolerance) { + var reducedPoints = [points[0]]; + + for (var i = 1, prev = 0, len = points.length; i < len; i++) { + if (this._sqDist(points[i], points[prev]) > sqTolerance) { + reducedPoints.push(points[i]); + prev = i; + } + } + if (prev < len - 1) { + reducedPoints.push(points[len - 1]); + } + return reducedPoints; + }, + + // Cohen-Sutherland line clipping algorithm. + // Used to avoid rendering parts of a polyline that are not currently visible. + + clipSegment: function (a, b, bounds, useLastCode) { + var codeA = useLastCode ? this._lastCode : this._getBitCode(a, bounds), + codeB = this._getBitCode(b, bounds), + + codeOut, p, newCode; + + // save 2nd code to avoid calculating it on the next segment + this._lastCode = codeB; + + while (true) { + // if a,b is inside the clip window (trivial accept) + if (!(codeA | codeB)) { + return [a, b]; + // if a,b is outside the clip window (trivial reject) + } else if (codeA & codeB) { + return false; + // other cases + } else { + codeOut = codeA || codeB; + p = this._getEdgeIntersection(a, b, codeOut, bounds); + newCode = this._getBitCode(p, bounds); + + if (codeOut === codeA) { + a = p; + codeA = newCode; + } else { + b = p; + codeB = newCode; + } + } + } + }, + + _getEdgeIntersection: function (a, b, code, bounds) { + var dx = b.x - a.x, + dy = b.y - a.y, + min = bounds.min, + max = bounds.max; + + if (code & 8) { // top + return new L.Point(a.x + dx * (max.y - a.y) / dy, max.y); + } else if (code & 4) { // bottom + return new L.Point(a.x + dx * (min.y - a.y) / dy, min.y); + } else if (code & 2) { // right + return new L.Point(max.x, a.y + dy * (max.x - a.x) / dx); + } else if (code & 1) { // left + return new L.Point(min.x, a.y + dy * (min.x - a.x) / dx); + } + }, + + _getBitCode: function (/*Point*/ p, bounds) { + var code = 0; + + if (p.x < bounds.min.x) { // left + code |= 1; + } else if (p.x > bounds.max.x) { // right + code |= 2; + } + if (p.y < bounds.min.y) { // bottom + code |= 4; + } else if (p.y > bounds.max.y) { // top + code |= 8; + } + + return code; + }, + + // square distance (to avoid unnecessary Math.sqrt calls) + _sqDist: function (p1, p2) { + var dx = p2.x - p1.x, + dy = p2.y - p1.y; + return dx * dx + dy * dy; + }, + + // return closest point on segment or distance to that point + _sqClosestPointOnSegment: function (p, p1, p2, sqDist) { + var x = p1.x, + y = p1.y, + dx = p2.x - x, + dy = p2.y - y, + dot = dx * dx + dy * dy, + t; + + if (dot > 0) { + t = ((p.x - x) * dx + (p.y - y) * dy) / dot; + + if (t > 1) { + x = p2.x; + y = p2.y; + } else if (t > 0) { + x += dx * t; + y += dy * t; + } + } + + dx = p.x - x; + dy = p.y - y; + + return sqDist ? dx * dx + dy * dy : new L.Point(x, y); + } +}; + + +/* + * L.Polyline is used to display polylines on a map. + */ + +L.Polyline = L.Path.extend({ + initialize: function (latlngs, options) { + L.Path.prototype.initialize.call(this, options); + + this._latlngs = this._convertLatLngs(latlngs); + }, + + options: { + // how much to simplify the polyline on each zoom level + // more = better performance and smoother look, less = more accurate + smoothFactor: 1.0, + noClip: false + }, + + projectLatlngs: function () { + this._originalPoints = []; + + for (var i = 0, len = this._latlngs.length; i < len; i++) { + this._originalPoints[i] = this._map.latLngToLayerPoint(this._latlngs[i]); + } + }, + + getPathString: function () { + for (var i = 0, len = this._parts.length, str = ''; i < len; i++) { + str += this._getPathPartStr(this._parts[i]); + } + return str; + }, + + getLatLngs: function () { + return this._latlngs; + }, + + setLatLngs: function (latlngs) { + this._latlngs = this._convertLatLngs(latlngs); + return this.redraw(); + }, + + addLatLng: function (latlng) { + this._latlngs.push(L.latLng(latlng)); + return this.redraw(); + }, + + spliceLatLngs: function () { // (Number index, Number howMany) + var removed = [].splice.apply(this._latlngs, arguments); + this._convertLatLngs(this._latlngs, true); + this.redraw(); + return removed; + }, + + closestLayerPoint: function (p) { + var minDistance = Infinity, parts = this._parts, p1, p2, minPoint = null; + + for (var j = 0, jLen = parts.length; j < jLen; j++) { + var points = parts[j]; + for (var i = 1, len = points.length; i < len; i++) { + p1 = points[i - 1]; + p2 = points[i]; + var sqDist = L.LineUtil._sqClosestPointOnSegment(p, p1, p2, true); + if (sqDist < minDistance) { + minDistance = sqDist; + minPoint = L.LineUtil._sqClosestPointOnSegment(p, p1, p2); + } + } + } + if (minPoint) { + minPoint.distance = Math.sqrt(minDistance); + } + return minPoint; + }, + + getBounds: function () { + return new L.LatLngBounds(this.getLatLngs()); + }, + + _convertLatLngs: function (latlngs, overwrite) { + var i, len, target = overwrite ? latlngs : []; + + for (i = 0, len = latlngs.length; i < len; i++) { + if (L.Util.isArray(latlngs[i]) && typeof latlngs[i][0] !== 'number') { + return; + } + target[i] = L.latLng(latlngs[i]); + } + return target; + }, + + _initEvents: function () { + L.Path.prototype._initEvents.call(this); + }, + + _getPathPartStr: function (points) { + var round = L.Path.VML; + + for (var j = 0, len2 = points.length, str = '', p; j < len2; j++) { + p = points[j]; + if (round) { + p._round(); + } + str += (j ? 'L' : 'M') + p.x + ' ' + p.y; + } + return str; + }, + + _clipPoints: function () { + var points = this._originalPoints, + len = points.length, + i, k, segment; + + if (this.options.noClip) { + this._parts = [points]; + return; + } + + this._parts = []; + + var parts = this._parts, + vp = this._map._pathViewport, + lu = L.LineUtil; + + for (i = 0, k = 0; i < len - 1; i++) { + segment = lu.clipSegment(points[i], points[i + 1], vp, i); + if (!segment) { + continue; + } + + parts[k] = parts[k] || []; + parts[k].push(segment[0]); + + // if segment goes out of screen, or it's the last one, it's the end of the line part + if ((segment[1] !== points[i + 1]) || (i === len - 2)) { + parts[k].push(segment[1]); + k++; + } + } + }, + + // simplify each clipped part of the polyline + _simplifyPoints: function () { + var parts = this._parts, + lu = L.LineUtil; + + for (var i = 0, len = parts.length; i < len; i++) { + parts[i] = lu.simplify(parts[i], this.options.smoothFactor); + } + }, + + _updatePath: function () { + if (!this._map) { return; } + + this._clipPoints(); + this._simplifyPoints(); + + L.Path.prototype._updatePath.call(this); + } +}); + +L.polyline = function (latlngs, options) { + return new L.Polyline(latlngs, options); +}; + + +/* + * L.PolyUtil contains utility functions for polygons (clipping, etc.). + */ + +/*jshint bitwise:false */ // allow bitwise operations here + +L.PolyUtil = {}; + +/* + * Sutherland-Hodgeman polygon clipping algorithm. + * Used to avoid rendering parts of a polygon that are not currently visible. + */ +L.PolyUtil.clipPolygon = function (points, bounds) { + var clippedPoints, + edges = [1, 4, 2, 8], + i, j, k, + a, b, + len, edge, p, + lu = L.LineUtil; + + for (i = 0, len = points.length; i < len; i++) { + points[i]._code = lu._getBitCode(points[i], bounds); + } + + // for each edge (left, bottom, right, top) + for (k = 0; k < 4; k++) { + edge = edges[k]; + clippedPoints = []; + + for (i = 0, len = points.length, j = len - 1; i < len; j = i++) { + a = points[i]; + b = points[j]; + + // if a is inside the clip window + if (!(a._code & edge)) { + // if b is outside the clip window (a->b goes out of screen) + if (b._code & edge) { + p = lu._getEdgeIntersection(b, a, edge, bounds); + p._code = lu._getBitCode(p, bounds); + clippedPoints.push(p); + } + clippedPoints.push(a); + + // else if b is inside the clip window (a->b enters the screen) + } else if (!(b._code & edge)) { + p = lu._getEdgeIntersection(b, a, edge, bounds); + p._code = lu._getBitCode(p, bounds); + clippedPoints.push(p); + } + } + points = clippedPoints; + } + + return points; +}; + + +/* + * L.Polygon is used to display polygons on a map. + */ + +L.Polygon = L.Polyline.extend({ + options: { + fill: true + }, + + initialize: function (latlngs, options) { + L.Polyline.prototype.initialize.call(this, latlngs, options); + this._initWithHoles(latlngs); + }, + + _initWithHoles: function (latlngs) { + var i, len, hole; + if (latlngs && L.Util.isArray(latlngs[0]) && (typeof latlngs[0][0] !== 'number')) { + this._latlngs = this._convertLatLngs(latlngs[0]); + this._holes = latlngs.slice(1); + + for (i = 0, len = this._holes.length; i < len; i++) { + hole = this._holes[i] = this._convertLatLngs(this._holes[i]); + if (hole[0].equals(hole[hole.length - 1])) { + hole.pop(); + } + } + } + + // filter out last point if its equal to the first one + latlngs = this._latlngs; + + if (latlngs.length >= 2 && latlngs[0].equals(latlngs[latlngs.length - 1])) { + latlngs.pop(); + } + }, + + projectLatlngs: function () { + L.Polyline.prototype.projectLatlngs.call(this); + + // project polygon holes points + // TODO move this logic to Polyline to get rid of duplication + this._holePoints = []; + + if (!this._holes) { return; } + + var i, j, len, len2; + + for (i = 0, len = this._holes.length; i < len; i++) { + this._holePoints[i] = []; + + for (j = 0, len2 = this._holes[i].length; j < len2; j++) { + this._holePoints[i][j] = this._map.latLngToLayerPoint(this._holes[i][j]); + } + } + }, + + setLatLngs: function (latlngs) { + if (latlngs && L.Util.isArray(latlngs[0]) && (typeof latlngs[0][0] !== 'number')) { + this._initWithHoles(latlngs); + return this.redraw(); + } else { + return L.Polyline.prototype.setLatLngs.call(this, latlngs); + } + }, + + _clipPoints: function () { + var points = this._originalPoints, + newParts = []; + + this._parts = [points].concat(this._holePoints); + + if (this.options.noClip) { return; } + + for (var i = 0, len = this._parts.length; i < len; i++) { + var clipped = L.PolyUtil.clipPolygon(this._parts[i], this._map._pathViewport); + if (clipped.length) { + newParts.push(clipped); + } + } + + this._parts = newParts; + }, + + _getPathPartStr: function (points) { + var str = L.Polyline.prototype._getPathPartStr.call(this, points); + return str + (L.Browser.svg ? 'z' : 'x'); + } +}); + +L.polygon = function (latlngs, options) { + return new L.Polygon(latlngs, options); +}; + + +/* + * Contains L.MultiPolyline and L.MultiPolygon layers. + */ + +(function () { + function createMulti(Klass) { + + return L.FeatureGroup.extend({ + + initialize: function (latlngs, options) { + this._layers = {}; + this._options = options; + this.setLatLngs(latlngs); + }, + + setLatLngs: function (latlngs) { + var i = 0, + len = latlngs.length; + + this.eachLayer(function (layer) { + if (i < len) { + layer.setLatLngs(latlngs[i++]); + } else { + this.removeLayer(layer); + } + }, this); + + while (i < len) { + this.addLayer(new Klass(latlngs[i++], this._options)); + } + + return this; + }, + + getLatLngs: function () { + var latlngs = []; + + this.eachLayer(function (layer) { + latlngs.push(layer.getLatLngs()); + }); + + return latlngs; + } + }); + } + + L.MultiPolyline = createMulti(L.Polyline); + L.MultiPolygon = createMulti(L.Polygon); + + L.multiPolyline = function (latlngs, options) { + return new L.MultiPolyline(latlngs, options); + }; + + L.multiPolygon = function (latlngs, options) { + return new L.MultiPolygon(latlngs, options); + }; +}()); + + +/* + * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object. + */ + +L.Rectangle = L.Polygon.extend({ + initialize: function (latLngBounds, options) { + L.Polygon.prototype.initialize.call(this, this._boundsToLatLngs(latLngBounds), options); + }, + + setBounds: function (latLngBounds) { + this.setLatLngs(this._boundsToLatLngs(latLngBounds)); + }, + + _boundsToLatLngs: function (latLngBounds) { + latLngBounds = L.latLngBounds(latLngBounds); + return [ + latLngBounds.getSouthWest(), + latLngBounds.getNorthWest(), + latLngBounds.getNorthEast(), + latLngBounds.getSouthEast() + ]; + } +}); + +L.rectangle = function (latLngBounds, options) { + return new L.Rectangle(latLngBounds, options); +}; + + +/* + * L.Circle is a circle overlay (with a certain radius in meters). + */ + +L.Circle = L.Path.extend({ + initialize: function (latlng, radius, options) { + L.Path.prototype.initialize.call(this, options); + + this._latlng = L.latLng(latlng); + this._mRadius = radius; + }, + + options: { + fill: true + }, + + setLatLng: function (latlng) { + this._latlng = L.latLng(latlng); + return this.redraw(); + }, + + setRadius: function (radius) { + this._mRadius = radius; + return this.redraw(); + }, + + projectLatlngs: function () { + var lngRadius = this._getLngRadius(), + latlng = this._latlng, + pointLeft = this._map.latLngToLayerPoint([latlng.lat, latlng.lng - lngRadius]); + + this._point = this._map.latLngToLayerPoint(latlng); + this._radius = Math.max(this._point.x - pointLeft.x, 1); + }, + + getBounds: function () { + var lngRadius = this._getLngRadius(), + latRadius = (this._mRadius / 40075017) * 360, + latlng = this._latlng; + + return new L.LatLngBounds( + [latlng.lat - latRadius, latlng.lng - lngRadius], + [latlng.lat + latRadius, latlng.lng + lngRadius]); + }, + + getLatLng: function () { + return this._latlng; + }, + + getPathString: function () { + var p = this._point, + r = this._radius; + + if (this._checkIfEmpty()) { + return ''; + } + + if (L.Browser.svg) { + return 'M' + p.x + ',' + (p.y - r) + + 'A' + r + ',' + r + ',0,1,1,' + + (p.x - 0.1) + ',' + (p.y - r) + ' z'; + } else { + p._round(); + r = Math.round(r); + return 'AL ' + p.x + ',' + p.y + ' ' + r + ',' + r + ' 0,' + (65535 * 360); + } + }, + + getRadius: function () { + return this._mRadius; + }, + + // TODO Earth hardcoded, move into projection code! + + _getLatRadius: function () { + return (this._mRadius / 40075017) * 360; + }, + + _getLngRadius: function () { + return this._getLatRadius() / Math.cos(L.LatLng.DEG_TO_RAD * this._latlng.lat); + }, + + _checkIfEmpty: function () { + if (!this._map) { + return false; + } + var vp = this._map._pathViewport, + r = this._radius, + p = this._point; + + return p.x - r > vp.max.x || p.y - r > vp.max.y || + p.x + r < vp.min.x || p.y + r < vp.min.y; + } +}); + +L.circle = function (latlng, radius, options) { + return new L.Circle(latlng, radius, options); +}; + + +/* + * L.CircleMarker is a circle overlay with a permanent pixel radius. + */ + +L.CircleMarker = L.Circle.extend({ + options: { + radius: 10, + weight: 2 + }, + + initialize: function (latlng, options) { + L.Circle.prototype.initialize.call(this, latlng, null, options); + this._radius = this.options.radius; + }, + + projectLatlngs: function () { + this._point = this._map.latLngToLayerPoint(this._latlng); + }, + + _updateStyle : function () { + L.Circle.prototype._updateStyle.call(this); + this.setRadius(this.options.radius); + }, + + setLatLng: function (latlng) { + L.Circle.prototype.setLatLng.call(this, latlng); + if (this._popup && this._popup._isOpen) { + this._popup.setLatLng(latlng); + } + }, + + setRadius: function (radius) { + this.options.radius = this._radius = radius; + return this.redraw(); + }, + + getRadius: function () { + return this._radius; + } +}); + +L.circleMarker = function (latlng, options) { + return new L.CircleMarker(latlng, options); +}; + + +/* + * Extends L.Polyline to be able to manually detect clicks on Canvas-rendered polylines. + */ + +L.Polyline.include(!L.Path.CANVAS ? {} : { + _containsPoint: function (p, closed) { + var i, j, k, len, len2, dist, part, + w = this.options.weight / 2; + + if (L.Browser.touch) { + w += 10; // polyline click tolerance on touch devices + } + + for (i = 0, len = this._parts.length; i < len; i++) { + part = this._parts[i]; + for (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) { + if (!closed && (j === 0)) { + continue; + } + + dist = L.LineUtil.pointToSegmentDistance(p, part[k], part[j]); + + if (dist <= w) { + return true; + } + } + } + return false; + } +}); + + +/* + * Extends L.Polygon to be able to manually detect clicks on Canvas-rendered polygons. + */ + +L.Polygon.include(!L.Path.CANVAS ? {} : { + _containsPoint: function (p) { + var inside = false, + part, p1, p2, + i, j, k, + len, len2; + + // TODO optimization: check if within bounds first + + if (L.Polyline.prototype._containsPoint.call(this, p, true)) { + // click on polygon border + return true; + } + + // ray casting algorithm for detecting if point is in polygon + + for (i = 0, len = this._parts.length; i < len; i++) { + part = this._parts[i]; + + for (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) { + p1 = part[j]; + p2 = part[k]; + + if (((p1.y > p.y) !== (p2.y > p.y)) && + (p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x)) { + inside = !inside; + } + } + } + + return inside; + } +}); + + +/* + * Extends L.Circle with Canvas-specific code. + */ + +L.Circle.include(!L.Path.CANVAS ? {} : { + _drawPath: function () { + var p = this._point; + this._ctx.beginPath(); + this._ctx.arc(p.x, p.y, this._radius, 0, Math.PI * 2, false); + }, + + _containsPoint: function (p) { + var center = this._point, + w2 = this.options.stroke ? this.options.weight / 2 : 0; + + return (p.distanceTo(center) <= this._radius + w2); + } +}); + + +/* + * CircleMarker canvas specific drawing parts. + */ + +L.CircleMarker.include(!L.Path.CANVAS ? {} : { + _updateStyle: function () { + L.Path.prototype._updateStyle.call(this); + } +}); + + +/* + * L.GeoJSON turns any GeoJSON data into a Leaflet layer. + */ + +L.GeoJSON = L.FeatureGroup.extend({ + + initialize: function (geojson, options) { + L.setOptions(this, options); + + this._layers = {}; + + if (geojson) { + this.addData(geojson); + } + }, + + addData: function (geojson) { + var features = L.Util.isArray(geojson) ? geojson : geojson.features, + i, len, feature; + + if (features) { + for (i = 0, len = features.length; i < len; i++) { + // Only add this if geometry or geometries are set and not null + feature = features[i]; + if (feature.geometries || feature.geometry || feature.features || feature.coordinates) { + this.addData(features[i]); + } + } + return this; + } + + var options = this.options; + + if (options.filter && !options.filter(geojson)) { return; } + + var layer = L.GeoJSON.geometryToLayer(geojson, options.pointToLayer, options.coordsToLatLng, options); + layer.feature = L.GeoJSON.asFeature(geojson); + + layer.defaultOptions = layer.options; + this.resetStyle(layer); + + if (options.onEachFeature) { + options.onEachFeature(geojson, layer); + } + + return this.addLayer(layer); + }, + + resetStyle: function (layer) { + var style = this.options.style; + if (style) { + // reset any custom styles + L.Util.extend(layer.options, layer.defaultOptions); + + this._setLayerStyle(layer, style); + } + }, + + setStyle: function (style) { + this.eachLayer(function (layer) { + this._setLayerStyle(layer, style); + }, this); + }, + + _setLayerStyle: function (layer, style) { + if (typeof style === 'function') { + style = style(layer.feature); + } + if (layer.setStyle) { + layer.setStyle(style); + } + } +}); + +L.extend(L.GeoJSON, { + geometryToLayer: function (geojson, pointToLayer, coordsToLatLng, vectorOptions) { + var geometry = geojson.type === 'Feature' ? geojson.geometry : geojson, + coords = geometry.coordinates, + layers = [], + latlng, latlngs, i, len; + + coordsToLatLng = coordsToLatLng || this.coordsToLatLng; + + switch (geometry.type) { + case 'Point': + latlng = coordsToLatLng(coords); + return pointToLayer ? pointToLayer(geojson, latlng) : new L.Marker(latlng); + + case 'MultiPoint': + for (i = 0, len = coords.length; i < len; i++) { + latlng = coordsToLatLng(coords[i]); + layers.push(pointToLayer ? pointToLayer(geojson, latlng) : new L.Marker(latlng)); + } + return new L.FeatureGroup(layers); + + case 'LineString': + latlngs = this.coordsToLatLngs(coords, 0, coordsToLatLng); + return new L.Polyline(latlngs, vectorOptions); + + case 'Polygon': + if (coords.length === 2 && !coords[1].length) { + throw new Error('Invalid GeoJSON object.'); + } + latlngs = this.coordsToLatLngs(coords, 1, coordsToLatLng); + return new L.Polygon(latlngs, vectorOptions); + + case 'MultiLineString': + latlngs = this.coordsToLatLngs(coords, 1, coordsToLatLng); + return new L.MultiPolyline(latlngs, vectorOptions); + + case 'MultiPolygon': + latlngs = this.coordsToLatLngs(coords, 2, coordsToLatLng); + return new L.MultiPolygon(latlngs, vectorOptions); + + case 'GeometryCollection': + for (i = 0, len = geometry.geometries.length; i < len; i++) { + + layers.push(this.geometryToLayer({ + geometry: geometry.geometries[i], + type: 'Feature', + properties: geojson.properties + }, pointToLayer, coordsToLatLng, vectorOptions)); + } + return new L.FeatureGroup(layers); + + default: + throw new Error('Invalid GeoJSON object.'); + } + }, + + coordsToLatLng: function (coords) { // (Array[, Boolean]) -> LatLng + return new L.LatLng(coords[1], coords[0]); + }, + + coordsToLatLngs: function (coords, levelsDeep, coordsToLatLng) { // (Array[, Number, Function]) -> Array + var latlng, i, len, + latlngs = []; + + for (i = 0, len = coords.length; i < len; i++) { + latlng = levelsDeep ? + this.coordsToLatLngs(coords[i], levelsDeep - 1, coordsToLatLng) : + (coordsToLatLng || this.coordsToLatLng)(coords[i]); + + latlngs.push(latlng); + } + + return latlngs; + }, + + latLngToCoords: function (latLng) { + return [latLng.lng, latLng.lat]; + }, + + latLngsToCoords: function (latLngs) { + var coords = []; + + for (var i = 0, len = latLngs.length; i < len; i++) { + coords.push(L.GeoJSON.latLngToCoords(latLngs[i])); + } + + return coords; + }, + + getFeature: function (layer, newGeometry) { + return layer.feature ? L.extend({}, layer.feature, {geometry: newGeometry}) : L.GeoJSON.asFeature(newGeometry); + }, + + asFeature: function (geoJSON) { + if (geoJSON.type === 'Feature') { + return geoJSON; + } + + return { + type: 'Feature', + properties: {}, + geometry: geoJSON + }; + } +}); + +var PointToGeoJSON = { + toGeoJSON: function () { + return L.GeoJSON.getFeature(this, { + type: 'Point', + coordinates: L.GeoJSON.latLngToCoords(this.getLatLng()) + }); + } +}; + +L.Marker.include(PointToGeoJSON); +L.Circle.include(PointToGeoJSON); +L.CircleMarker.include(PointToGeoJSON); + +L.Polyline.include({ + toGeoJSON: function () { + return L.GeoJSON.getFeature(this, { + type: 'LineString', + coordinates: L.GeoJSON.latLngsToCoords(this.getLatLngs()) + }); + } +}); + +L.Polygon.include({ + toGeoJSON: function () { + var coords = [L.GeoJSON.latLngsToCoords(this.getLatLngs())], + i, len, hole; + + coords[0].push(coords[0][0]); + + if (this._holes) { + for (i = 0, len = this._holes.length; i < len; i++) { + hole = L.GeoJSON.latLngsToCoords(this._holes[i]); + hole.push(hole[0]); + coords.push(hole); + } + } + + return L.GeoJSON.getFeature(this, { + type: 'Polygon', + coordinates: coords + }); + } +}); + +(function () { + function multiToGeoJSON(type) { + return function () { + var coords = []; + + this.eachLayer(function (layer) { + coords.push(layer.toGeoJSON().geometry.coordinates); + }); + + return L.GeoJSON.getFeature(this, { + type: type, + coordinates: coords + }); + }; + } + + L.MultiPolyline.include({toGeoJSON: multiToGeoJSON('MultiLineString')}); + L.MultiPolygon.include({toGeoJSON: multiToGeoJSON('MultiPolygon')}); + + L.LayerGroup.include({ + toGeoJSON: function () { + + var geometry = this.feature && this.feature.geometry, + jsons = [], + json; + + if (geometry && geometry.type === 'MultiPoint') { + return multiToGeoJSON('MultiPoint').call(this); + } + + var isGeometryCollection = geometry && geometry.type === 'GeometryCollection'; + + this.eachLayer(function (layer) { + if (layer.toGeoJSON) { + json = layer.toGeoJSON(); + jsons.push(isGeometryCollection ? json.geometry : L.GeoJSON.asFeature(json)); + } + }); + + if (isGeometryCollection) { + return L.GeoJSON.getFeature(this, { + geometries: jsons, + type: 'GeometryCollection' + }); + } + + return { + type: 'FeatureCollection', + features: jsons + }; + } + }); +}()); + +L.geoJson = function (geojson, options) { + return new L.GeoJSON(geojson, options); +}; + + +/* + * L.DomEvent contains functions for working with DOM events. + */ + +L.DomEvent = { + /* inspired by John Resig, Dean Edwards and YUI addEvent implementations */ + addListener: function (obj, type, fn, context) { // (HTMLElement, String, Function[, Object]) + + var id = L.stamp(fn), + key = '_leaflet_' + type + id, + handler, originalHandler, newType; + + if (obj[key]) { return this; } + + handler = function (e) { + return fn.call(context || obj, e || L.DomEvent._getEvent()); + }; + + if (L.Browser.pointer && type.indexOf('touch') === 0) { + return this.addPointerListener(obj, type, handler, id); + } + if (L.Browser.touch && (type === 'dblclick') && this.addDoubleTapListener) { + this.addDoubleTapListener(obj, handler, id); + } + + if ('addEventListener' in obj) { + + if (type === 'mousewheel') { + obj.addEventListener('DOMMouseScroll', handler, false); + obj.addEventListener(type, handler, false); + + } else if ((type === 'mouseenter') || (type === 'mouseleave')) { + + originalHandler = handler; + newType = (type === 'mouseenter' ? 'mouseover' : 'mouseout'); + + handler = function (e) { + if (!L.DomEvent._checkMouse(obj, e)) { return; } + return originalHandler(e); + }; + + obj.addEventListener(newType, handler, false); + + } else if (type === 'click' && L.Browser.android) { + originalHandler = handler; + handler = function (e) { + return L.DomEvent._filterClick(e, originalHandler); + }; + + obj.addEventListener(type, handler, false); + } else { + obj.addEventListener(type, handler, false); + } + + } else if ('attachEvent' in obj) { + obj.attachEvent('on' + type, handler); + } + + obj[key] = handler; + + return this; + }, + + removeListener: function (obj, type, fn) { // (HTMLElement, String, Function) + + var id = L.stamp(fn), + key = '_leaflet_' + type + id, + handler = obj[key]; + + if (!handler) { return this; } + + if (L.Browser.pointer && type.indexOf('touch') === 0) { + this.removePointerListener(obj, type, id); + } else if (L.Browser.touch && (type === 'dblclick') && this.removeDoubleTapListener) { + this.removeDoubleTapListener(obj, id); + + } else if ('removeEventListener' in obj) { + + if (type === 'mousewheel') { + obj.removeEventListener('DOMMouseScroll', handler, false); + obj.removeEventListener(type, handler, false); + + } else if ((type === 'mouseenter') || (type === 'mouseleave')) { + obj.removeEventListener((type === 'mouseenter' ? 'mouseover' : 'mouseout'), handler, false); + } else { + obj.removeEventListener(type, handler, false); + } + } else if ('detachEvent' in obj) { + obj.detachEvent('on' + type, handler); + } + + obj[key] = null; + + return this; + }, + + stopPropagation: function (e) { + + if (e.stopPropagation) { + e.stopPropagation(); + } else { + e.cancelBubble = true; + } + L.DomEvent._skipped(e); + + return this; + }, + + disableScrollPropagation: function (el) { + var stop = L.DomEvent.stopPropagation; + + return L.DomEvent + .on(el, 'mousewheel', stop) + .on(el, 'MozMousePixelScroll', stop); + }, + + disableClickPropagation: function (el) { + var stop = L.DomEvent.stopPropagation; + + for (var i = L.Draggable.START.length - 1; i >= 0; i--) { + L.DomEvent.on(el, L.Draggable.START[i], stop); + } + + return L.DomEvent + .on(el, 'click', L.DomEvent._fakeStop) + .on(el, 'dblclick', stop); + }, + + preventDefault: function (e) { + + if (e.preventDefault) { + e.preventDefault(); + } else { + e.returnValue = false; + } + return this; + }, + + stop: function (e) { + return L.DomEvent + .preventDefault(e) + .stopPropagation(e); + }, + + getMousePosition: function (e, container) { + var body = document.body, + docEl = document.documentElement, + //gecko makes scrollLeft more negative as you scroll in rtl, other browsers don't + //ref: https://code.google.com/p/closure-library/source/browse/closure/goog/style/bidi.js + x = L.DomUtil.documentIsLtr() ? + (e.pageX ? e.pageX - body.scrollLeft - docEl.scrollLeft : e.clientX) : + (L.Browser.gecko ? e.pageX - body.scrollLeft - docEl.scrollLeft : + e.pageX ? e.pageX - body.scrollLeft + docEl.scrollLeft : e.clientX), + y = e.pageY ? e.pageY - body.scrollTop - docEl.scrollTop: e.clientY, + pos = new L.Point(x, y); + + if (!container) { + return pos; + } + + var rect = container.getBoundingClientRect(), + left = rect.left - container.clientLeft, + top = rect.top - container.clientTop; + + return pos._subtract(new L.Point(left, top)); + }, + + getWheelDelta: function (e) { + + var delta = 0; + + if (e.wheelDelta) { + delta = e.wheelDelta / 120; + } + if (e.detail) { + delta = -e.detail / 3; + } + return delta; + }, + + _skipEvents: {}, + + _fakeStop: function (e) { + // fakes stopPropagation by setting a special event flag, checked/reset with L.DomEvent._skipped(e) + L.DomEvent._skipEvents[e.type] = true; + }, + + _skipped: function (e) { + var skipped = this._skipEvents[e.type]; + // reset when checking, as it's only used in map container and propagates outside of the map + this._skipEvents[e.type] = false; + return skipped; + }, + + // check if element really left/entered the event target (for mouseenter/mouseleave) + _checkMouse: function (el, e) { + + var related = e.relatedTarget; + + if (!related) { return true; } + + try { + while (related && (related !== el)) { + related = related.parentNode; + } + } catch (err) { + return false; + } + return (related !== el); + }, + + _getEvent: function () { // evil magic for IE + /*jshint noarg:false */ + var e = window.event; + if (!e) { + var caller = arguments.callee.caller; + while (caller) { + e = caller['arguments'][0]; + if (e && window.Event === e.constructor) { + break; + } + caller = caller.caller; + } + } + return e; + }, + + // this is a horrible workaround for a bug in Android where a single touch triggers two click events + _filterClick: function (e, handler) { + var timeStamp = (e.timeStamp || e.originalEvent.timeStamp), + elapsed = L.DomEvent._lastClick && (timeStamp - L.DomEvent._lastClick); + + // are they closer together than 1000ms yet more than 100ms? + // Android typically triggers them ~300ms apart while multiple listeners + // on the same event should be triggered far faster; + // or check if click is simulated on the element, and if it is, reject any non-simulated events + + if ((elapsed && elapsed > 100 && elapsed < 1000) || (e.target._simulatedClick && !e._simulated)) { + L.DomEvent.stop(e); + return; + } + L.DomEvent._lastClick = timeStamp; + + return handler(e); + } +}; + +L.DomEvent.on = L.DomEvent.addListener; +L.DomEvent.off = L.DomEvent.removeListener; + + +/* + * L.Draggable allows you to add dragging capabilities to any element. Supports mobile devices too. + */ + +L.Draggable = L.Class.extend({ + includes: L.Mixin.Events, + + statics: { + START: L.Browser.touch ? ['touchstart', 'mousedown'] : ['mousedown'], + END: { + mousedown: 'mouseup', + touchstart: 'touchend', + pointerdown: 'touchend', + MSPointerDown: 'touchend' + }, + MOVE: { + mousedown: 'mousemove', + touchstart: 'touchmove', + pointerdown: 'touchmove', + MSPointerDown: 'touchmove' + } + }, + + initialize: function (element, dragStartTarget) { + this._element = element; + this._dragStartTarget = dragStartTarget || element; + }, + + enable: function () { + if (this._enabled) { return; } + + for (var i = L.Draggable.START.length - 1; i >= 0; i--) { + L.DomEvent.on(this._dragStartTarget, L.Draggable.START[i], this._onDown, this); + } + + this._enabled = true; + }, + + disable: function () { + if (!this._enabled) { return; } + + for (var i = L.Draggable.START.length - 1; i >= 0; i--) { + L.DomEvent.off(this._dragStartTarget, L.Draggable.START[i], this._onDown, this); + } + + this._enabled = false; + this._moved = false; + }, + + _onDown: function (e) { + this._moved = false; + + if (e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; } + + L.DomEvent.stopPropagation(e); + + if (L.Draggable._disabled) { return; } + + L.DomUtil.disableImageDrag(); + L.DomUtil.disableTextSelection(); + + if (this._moving) { return; } + + var first = e.touches ? e.touches[0] : e; + + this._startPoint = new L.Point(first.clientX, first.clientY); + this._startPos = this._newPos = L.DomUtil.getPosition(this._element); + + L.DomEvent + .on(document, L.Draggable.MOVE[e.type], this._onMove, this) + .on(document, L.Draggable.END[e.type], this._onUp, this); + }, + + _onMove: function (e) { + if (e.touches && e.touches.length > 1) { + this._moved = true; + return; + } + + var first = (e.touches && e.touches.length === 1 ? e.touches[0] : e), + newPoint = new L.Point(first.clientX, first.clientY), + offset = newPoint.subtract(this._startPoint); + + if (!offset.x && !offset.y) { return; } + + L.DomEvent.preventDefault(e); + + if (!this._moved) { + this.fire('dragstart'); + + this._moved = true; + this._startPos = L.DomUtil.getPosition(this._element).subtract(offset); + + if (!L.Browser.touch) { + L.DomUtil.addClass(document.body, 'leaflet-dragging'); + } + } + + this._newPos = this._startPos.add(offset); + this._moving = true; + + L.Util.cancelAnimFrame(this._animRequest); + this._animRequest = L.Util.requestAnimFrame(this._updatePosition, this, true, this._dragStartTarget); + }, + + _updatePosition: function () { + this.fire('predrag'); + L.DomUtil.setPosition(this._element, this._newPos); + this.fire('drag'); + }, + + _onUp: function () { + if (!L.Browser.touch) { + L.DomUtil.removeClass(document.body, 'leaflet-dragging'); + } + + for (var i in L.Draggable.MOVE) { + L.DomEvent + .off(document, L.Draggable.MOVE[i], this._onMove) + .off(document, L.Draggable.END[i], this._onUp); + } + + L.DomUtil.enableImageDrag(); + L.DomUtil.enableTextSelection(); + + if (this._moved) { + // ensure drag is not fired after dragend + L.Util.cancelAnimFrame(this._animRequest); + + this.fire('dragend'); + } + + this._moving = false; + } +}); + + +/* + L.Handler is a base class for handler classes that are used internally to inject + interaction features like dragging to classes like Map and Marker. +*/ + +L.Handler = L.Class.extend({ + initialize: function (map) { + this._map = map; + }, + + enable: function () { + if (this._enabled) { return; } + + this._enabled = true; + this.addHooks(); + }, + + disable: function () { + if (!this._enabled) { return; } + + this._enabled = false; + this.removeHooks(); + }, + + enabled: function () { + return !!this._enabled; + } +}); + + +/* + * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default. + */ + +L.Map.mergeOptions({ + dragging: true, + + inertia: !L.Browser.android23, + inertiaDeceleration: 3400, // px/s^2 + inertiaMaxSpeed: Infinity, // px/s + inertiaThreshold: L.Browser.touch ? 32 : 18, // ms + easeLinearity: 0.25, + + // TODO refactor, move to CRS + worldCopyJump: false +}); + +L.Map.Drag = L.Handler.extend({ + addHooks: function () { + if (!this._draggable) { + var map = this._map; + + this._draggable = new L.Draggable(map._mapPane, map._container); + + this._draggable.on({ + 'dragstart': this._onDragStart, + 'drag': this._onDrag, + 'dragend': this._onDragEnd + }, this); + + if (map.options.worldCopyJump) { + this._draggable.on('predrag', this._onPreDrag, this); + map.on('viewreset', this._onViewReset, this); + + map.whenReady(this._onViewReset, this); + } + } + this._draggable.enable(); + }, + + removeHooks: function () { + this._draggable.disable(); + }, + + moved: function () { + return this._draggable && this._draggable._moved; + }, + + _onDragStart: function () { + var map = this._map; + + if (map._panAnim) { + map._panAnim.stop(); + } + + map + .fire('movestart') + .fire('dragstart'); + + if (map.options.inertia) { + this._positions = []; + this._times = []; + } + }, + + _onDrag: function () { + if (this._map.options.inertia) { + var time = this._lastTime = +new Date(), + pos = this._lastPos = this._draggable._newPos; + + this._positions.push(pos); + this._times.push(time); + + if (time - this._times[0] > 200) { + this._positions.shift(); + this._times.shift(); + } + } + + this._map + .fire('move') + .fire('drag'); + }, + + _onViewReset: function () { + // TODO fix hardcoded Earth values + var pxCenter = this._map.getSize()._divideBy(2), + pxWorldCenter = this._map.latLngToLayerPoint([0, 0]); + + this._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x; + this._worldWidth = this._map.project([0, 180]).x; + }, + + _onPreDrag: function () { + // TODO refactor to be able to adjust map pane position after zoom + var worldWidth = this._worldWidth, + halfWidth = Math.round(worldWidth / 2), + dx = this._initialWorldOffset, + x = this._draggable._newPos.x, + newX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx, + newX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx, + newX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2; + + this._draggable._newPos.x = newX; + }, + + _onDragEnd: function () { + var map = this._map, + options = map.options, + delay = +new Date() - this._lastTime, + + noInertia = !options.inertia || delay > options.inertiaThreshold || !this._positions[0]; + + map.fire('dragend'); + + if (noInertia) { + map.fire('moveend'); + + } else { + + var direction = this._lastPos.subtract(this._positions[0]), + duration = (this._lastTime + delay - this._times[0]) / 1000, + ease = options.easeLinearity, + + speedVector = direction.multiplyBy(ease / duration), + speed = speedVector.distanceTo([0, 0]), + + limitedSpeed = Math.min(options.inertiaMaxSpeed, speed), + limitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed), + + decelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease), + offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round(); + + if (!offset.x || !offset.y) { + map.fire('moveend'); + + } else { + L.Util.requestAnimFrame(function () { + map.panBy(offset, { + duration: decelerationDuration, + easeLinearity: ease, + noMoveStart: true + }); + }); + } + } + } +}); + +L.Map.addInitHook('addHandler', 'dragging', L.Map.Drag); + + +/* + * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default. + */ + +L.Map.mergeOptions({ + doubleClickZoom: true +}); + +L.Map.DoubleClickZoom = L.Handler.extend({ + addHooks: function () { + this._map.on('dblclick', this._onDoubleClick, this); + }, + + removeHooks: function () { + this._map.off('dblclick', this._onDoubleClick, this); + }, + + _onDoubleClick: function (e) { + var map = this._map, + zoom = map.getZoom() + 1; + + if (map.options.doubleClickZoom === 'center') { + map.setZoom(zoom); + } else { + map.setZoomAround(e.containerPoint, zoom); + } + } +}); + +L.Map.addInitHook('addHandler', 'doubleClickZoom', L.Map.DoubleClickZoom); + + +/* + * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map. + */ + +L.Map.mergeOptions({ + scrollWheelZoom: true +}); + +L.Map.ScrollWheelZoom = L.Handler.extend({ + addHooks: function () { + L.DomEvent.on(this._map._container, 'mousewheel', this._onWheelScroll, this); + L.DomEvent.on(this._map._container, 'MozMousePixelScroll', L.DomEvent.preventDefault); + this._delta = 0; + }, + + removeHooks: function () { + L.DomEvent.off(this._map._container, 'mousewheel', this._onWheelScroll); + L.DomEvent.off(this._map._container, 'MozMousePixelScroll', L.DomEvent.preventDefault); + }, + + _onWheelScroll: function (e) { + var delta = L.DomEvent.getWheelDelta(e); + + this._delta += delta; + this._lastMousePos = this._map.mouseEventToContainerPoint(e); + + if (!this._startTime) { + this._startTime = +new Date(); + } + + var left = Math.max(40 - (+new Date() - this._startTime), 0); + + clearTimeout(this._timer); + this._timer = setTimeout(L.bind(this._performZoom, this), left); + + L.DomEvent.preventDefault(e); + L.DomEvent.stopPropagation(e); + }, + + _performZoom: function () { + var map = this._map, + delta = this._delta, + zoom = map.getZoom(); + + delta = delta > 0 ? Math.ceil(delta) : Math.floor(delta); + delta = Math.max(Math.min(delta, 4), -4); + delta = map._limitZoom(zoom + delta) - zoom; + + this._delta = 0; + this._startTime = null; + + if (!delta) { return; } + + if (map.options.scrollWheelZoom === 'center') { + map.setZoom(zoom + delta); + } else { + map.setZoomAround(this._lastMousePos, zoom + delta); + } + } +}); + +L.Map.addInitHook('addHandler', 'scrollWheelZoom', L.Map.ScrollWheelZoom); + + +/* + * Extends the event handling code with double tap support for mobile browsers. + */ + +L.extend(L.DomEvent, { + + _touchstart: L.Browser.msPointer ? 'MSPointerDown' : L.Browser.pointer ? 'pointerdown' : 'touchstart', + _touchend: L.Browser.msPointer ? 'MSPointerUp' : L.Browser.pointer ? 'pointerup' : 'touchend', + + // inspired by Zepto touch code by Thomas Fuchs + addDoubleTapListener: function (obj, handler, id) { + var last, + doubleTap = false, + delay = 250, + touch, + pre = '_leaflet_', + touchstart = this._touchstart, + touchend = this._touchend, + trackedTouches = []; + + function onTouchStart(e) { + var count; + + if (L.Browser.pointer) { + trackedTouches.push(e.pointerId); + count = trackedTouches.length; + } else { + count = e.touches.length; + } + if (count > 1) { + return; + } + + var now = Date.now(), + delta = now - (last || now); + + touch = e.touches ? e.touches[0] : e; + doubleTap = (delta > 0 && delta <= delay); + last = now; + } + + function onTouchEnd(e) { + if (L.Browser.pointer) { + var idx = trackedTouches.indexOf(e.pointerId); + if (idx === -1) { + return; + } + trackedTouches.splice(idx, 1); + } + + if (doubleTap) { + if (L.Browser.pointer) { + // work around .type being readonly with MSPointer* events + var newTouch = { }, + prop; + + // jshint forin:false + for (var i in touch) { + prop = touch[i]; + if (typeof prop === 'function') { + newTouch[i] = prop.bind(touch); + } else { + newTouch[i] = prop; + } + } + touch = newTouch; + } + touch.type = 'dblclick'; + handler(touch); + last = null; + } + } + obj[pre + touchstart + id] = onTouchStart; + obj[pre + touchend + id] = onTouchEnd; + + // on pointer we need to listen on the document, otherwise a drag starting on the map and moving off screen + // will not come through to us, so we will lose track of how many touches are ongoing + var endElement = L.Browser.pointer ? document.documentElement : obj; + + obj.addEventListener(touchstart, onTouchStart, false); + endElement.addEventListener(touchend, onTouchEnd, false); + + if (L.Browser.pointer) { + endElement.addEventListener(L.DomEvent.POINTER_CANCEL, onTouchEnd, false); + } + + return this; + }, + + removeDoubleTapListener: function (obj, id) { + var pre = '_leaflet_'; + + obj.removeEventListener(this._touchstart, obj[pre + this._touchstart + id], false); + (L.Browser.pointer ? document.documentElement : obj).removeEventListener( + this._touchend, obj[pre + this._touchend + id], false); + + if (L.Browser.pointer) { + document.documentElement.removeEventListener(L.DomEvent.POINTER_CANCEL, obj[pre + this._touchend + id], + false); + } + + return this; + } +}); + + +/* + * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices. + */ + +L.extend(L.DomEvent, { + + //static + POINTER_DOWN: L.Browser.msPointer ? 'MSPointerDown' : 'pointerdown', + POINTER_MOVE: L.Browser.msPointer ? 'MSPointerMove' : 'pointermove', + POINTER_UP: L.Browser.msPointer ? 'MSPointerUp' : 'pointerup', + POINTER_CANCEL: L.Browser.msPointer ? 'MSPointerCancel' : 'pointercancel', + + _pointers: [], + _pointerDocumentListener: false, + + // Provides a touch events wrapper for (ms)pointer events. + // Based on changes by veproza https://github.com/CloudMade/Leaflet/pull/1019 + //ref http://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890 + + addPointerListener: function (obj, type, handler, id) { + + switch (type) { + case 'touchstart': + return this.addPointerListenerStart(obj, type, handler, id); + case 'touchend': + return this.addPointerListenerEnd(obj, type, handler, id); + case 'touchmove': + return this.addPointerListenerMove(obj, type, handler, id); + default: + throw 'Unknown touch event type'; + } + }, + + addPointerListenerStart: function (obj, type, handler, id) { + var pre = '_leaflet_', + pointers = this._pointers; + + var cb = function (e) { + + L.DomEvent.preventDefault(e); + + var alreadyInArray = false; + for (var i = 0; i < pointers.length; i++) { + if (pointers[i].pointerId === e.pointerId) { + alreadyInArray = true; + break; + } + } + if (!alreadyInArray) { + pointers.push(e); + } + + e.touches = pointers.slice(); + e.changedTouches = [e]; + + handler(e); + }; + + obj[pre + 'touchstart' + id] = cb; + obj.addEventListener(this.POINTER_DOWN, cb, false); + + // need to also listen for end events to keep the _pointers list accurate + // this needs to be on the body and never go away + if (!this._pointerDocumentListener) { + var internalCb = function (e) { + for (var i = 0; i < pointers.length; i++) { + if (pointers[i].pointerId === e.pointerId) { + pointers.splice(i, 1); + break; + } + } + }; + //We listen on the documentElement as any drags that end by moving the touch off the screen get fired there + document.documentElement.addEventListener(this.POINTER_UP, internalCb, false); + document.documentElement.addEventListener(this.POINTER_CANCEL, internalCb, false); + + this._pointerDocumentListener = true; + } + + return this; + }, + + addPointerListenerMove: function (obj, type, handler, id) { + var pre = '_leaflet_', + touches = this._pointers; + + function cb(e) { + + // don't fire touch moves when mouse isn't down + if ((e.pointerType === e.MSPOINTER_TYPE_MOUSE || e.pointerType === 'mouse') && e.buttons === 0) { return; } + + for (var i = 0; i < touches.length; i++) { + if (touches[i].pointerId === e.pointerId) { + touches[i] = e; + break; + } + } + + e.touches = touches.slice(); + e.changedTouches = [e]; + + handler(e); + } + + obj[pre + 'touchmove' + id] = cb; + obj.addEventListener(this.POINTER_MOVE, cb, false); + + return this; + }, + + addPointerListenerEnd: function (obj, type, handler, id) { + var pre = '_leaflet_', + touches = this._pointers; + + var cb = function (e) { + for (var i = 0; i < touches.length; i++) { + if (touches[i].pointerId === e.pointerId) { + touches.splice(i, 1); + break; + } + } + + e.touches = touches.slice(); + e.changedTouches = [e]; + + handler(e); + }; + + obj[pre + 'touchend' + id] = cb; + obj.addEventListener(this.POINTER_UP, cb, false); + obj.addEventListener(this.POINTER_CANCEL, cb, false); + + return this; + }, + + removePointerListener: function (obj, type, id) { + var pre = '_leaflet_', + cb = obj[pre + type + id]; + + switch (type) { + case 'touchstart': + obj.removeEventListener(this.POINTER_DOWN, cb, false); + break; + case 'touchmove': + obj.removeEventListener(this.POINTER_MOVE, cb, false); + break; + case 'touchend': + obj.removeEventListener(this.POINTER_UP, cb, false); + obj.removeEventListener(this.POINTER_CANCEL, cb, false); + break; + } + + return this; + } +}); + + +/* + * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers. + */ + +L.Map.mergeOptions({ + touchZoom: L.Browser.touch && !L.Browser.android23, + bounceAtZoomLimits: true +}); + +L.Map.TouchZoom = L.Handler.extend({ + addHooks: function () { + L.DomEvent.on(this._map._container, 'touchstart', this._onTouchStart, this); + }, + + removeHooks: function () { + L.DomEvent.off(this._map._container, 'touchstart', this._onTouchStart, this); + }, + + _onTouchStart: function (e) { + var map = this._map; + + if (!e.touches || e.touches.length !== 2 || map._animatingZoom || this._zooming) { return; } + + var p1 = map.mouseEventToLayerPoint(e.touches[0]), + p2 = map.mouseEventToLayerPoint(e.touches[1]), + viewCenter = map._getCenterLayerPoint(); + + this._startCenter = p1.add(p2)._divideBy(2); + this._startDist = p1.distanceTo(p2); + + this._moved = false; + this._zooming = true; + + this._centerOffset = viewCenter.subtract(this._startCenter); + + if (map._panAnim) { + map._panAnim.stop(); + } + + L.DomEvent + .on(document, 'touchmove', this._onTouchMove, this) + .on(document, 'touchend', this._onTouchEnd, this); + + L.DomEvent.preventDefault(e); + }, + + _onTouchMove: function (e) { + var map = this._map; + + if (!e.touches || e.touches.length !== 2 || !this._zooming) { return; } + + var p1 = map.mouseEventToLayerPoint(e.touches[0]), + p2 = map.mouseEventToLayerPoint(e.touches[1]); + + this._scale = p1.distanceTo(p2) / this._startDist; + this._delta = p1._add(p2)._divideBy(2)._subtract(this._startCenter); + + if (this._scale === 1) { return; } + + if (!map.options.bounceAtZoomLimits) { + if ((map.getZoom() === map.getMinZoom() && this._scale < 1) || + (map.getZoom() === map.getMaxZoom() && this._scale > 1)) { return; } + } + + if (!this._moved) { + L.DomUtil.addClass(map._mapPane, 'leaflet-touching'); + + map + .fire('movestart') + .fire('zoomstart'); + + this._moved = true; + } + + L.Util.cancelAnimFrame(this._animRequest); + this._animRequest = L.Util.requestAnimFrame( + this._updateOnMove, this, true, this._map._container); + + L.DomEvent.preventDefault(e); + }, + + _updateOnMove: function () { + var map = this._map, + origin = this._getScaleOrigin(), + center = map.layerPointToLatLng(origin), + zoom = map.getScaleZoom(this._scale); + + map._animateZoom(center, zoom, this._startCenter, this._scale, this._delta); + }, + + _onTouchEnd: function () { + if (!this._moved || !this._zooming) { + this._zooming = false; + return; + } + + var map = this._map; + + this._zooming = false; + L.DomUtil.removeClass(map._mapPane, 'leaflet-touching'); + L.Util.cancelAnimFrame(this._animRequest); + + L.DomEvent + .off(document, 'touchmove', this._onTouchMove) + .off(document, 'touchend', this._onTouchEnd); + + var origin = this._getScaleOrigin(), + center = map.layerPointToLatLng(origin), + + oldZoom = map.getZoom(), + floatZoomDelta = map.getScaleZoom(this._scale) - oldZoom, + roundZoomDelta = (floatZoomDelta > 0 ? + Math.ceil(floatZoomDelta) : Math.floor(floatZoomDelta)), + + zoom = map._limitZoom(oldZoom + roundZoomDelta), + scale = map.getZoomScale(zoom) / this._scale; + + map._animateZoom(center, zoom, origin, scale); + }, + + _getScaleOrigin: function () { + var centerOffset = this._centerOffset.subtract(this._delta).divideBy(this._scale); + return this._startCenter.add(centerOffset); + } +}); + +L.Map.addInitHook('addHandler', 'touchZoom', L.Map.TouchZoom); + + +/* + * L.Map.Tap is used to enable mobile hacks like quick taps and long hold. + */ + +L.Map.mergeOptions({ + tap: true, + tapTolerance: 15 +}); + +L.Map.Tap = L.Handler.extend({ + addHooks: function () { + L.DomEvent.on(this._map._container, 'touchstart', this._onDown, this); + }, + + removeHooks: function () { + L.DomEvent.off(this._map._container, 'touchstart', this._onDown, this); + }, + + _onDown: function (e) { + if (!e.touches) { return; } + + L.DomEvent.preventDefault(e); + + this._fireClick = true; + + // don't simulate click or track longpress if more than 1 touch + if (e.touches.length > 1) { + this._fireClick = false; + clearTimeout(this._holdTimeout); + return; + } + + var first = e.touches[0], + el = first.target; + + this._startPos = this._newPos = new L.Point(first.clientX, first.clientY); + + // if touching a link, highlight it + if (el.tagName && el.tagName.toLowerCase() === 'a') { + L.DomUtil.addClass(el, 'leaflet-active'); + } + + // simulate long hold but setting a timeout + this._holdTimeout = setTimeout(L.bind(function () { + if (this._isTapValid()) { + this._fireClick = false; + this._onUp(); + this._simulateEvent('contextmenu', first); + } + }, this), 1000); + + L.DomEvent + .on(document, 'touchmove', this._onMove, this) + .on(document, 'touchend', this._onUp, this); + }, + + _onUp: function (e) { + clearTimeout(this._holdTimeout); + + L.DomEvent + .off(document, 'touchmove', this._onMove, this) + .off(document, 'touchend', this._onUp, this); + + if (this._fireClick && e && e.changedTouches) { + + var first = e.changedTouches[0], + el = first.target; + + if (el && el.tagName && el.tagName.toLowerCase() === 'a') { + L.DomUtil.removeClass(el, 'leaflet-active'); + } + + // simulate click if the touch didn't move too much + if (this._isTapValid()) { + this._simulateEvent('click', first); + } + } + }, + + _isTapValid: function () { + return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance; + }, + + _onMove: function (e) { + var first = e.touches[0]; + this._newPos = new L.Point(first.clientX, first.clientY); + }, + + _simulateEvent: function (type, e) { + var simulatedEvent = document.createEvent('MouseEvents'); + + simulatedEvent._simulated = true; + e.target._simulatedClick = true; + + simulatedEvent.initMouseEvent( + type, true, true, window, 1, + e.screenX, e.screenY, + e.clientX, e.clientY, + false, false, false, false, 0, null); + + e.target.dispatchEvent(simulatedEvent); + } +}); + +if (L.Browser.touch && !L.Browser.pointer) { + L.Map.addInitHook('addHandler', 'tap', L.Map.Tap); +} + + +/* + * L.Handler.ShiftDragZoom is used to add shift-drag zoom interaction to the map + * (zoom to a selected bounding box), enabled by default. + */ + +L.Map.mergeOptions({ + boxZoom: true +}); + +L.Map.BoxZoom = L.Handler.extend({ + initialize: function (map) { + this._map = map; + this._container = map._container; + this._pane = map._panes.overlayPane; + this._moved = false; + }, + + addHooks: function () { + L.DomEvent.on(this._container, 'mousedown', this._onMouseDown, this); + }, + + removeHooks: function () { + L.DomEvent.off(this._container, 'mousedown', this._onMouseDown); + this._moved = false; + }, + + moved: function () { + return this._moved; + }, + + _onMouseDown: function (e) { + this._moved = false; + + if (!e.shiftKey || ((e.which !== 1) && (e.button !== 1))) { return false; } + + L.DomUtil.disableTextSelection(); + L.DomUtil.disableImageDrag(); + + this._startLayerPoint = this._map.mouseEventToLayerPoint(e); + + this._box = L.DomUtil.create('div', 'leaflet-zoom-box', this._pane); + L.DomUtil.setPosition(this._box, this._startLayerPoint); + + //TODO refactor: move cursor to styles + this._container.style.cursor = 'crosshair'; + + L.DomEvent + .on(document, 'mousemove', this._onMouseMove, this) + .on(document, 'mouseup', this._onMouseUp, this) + .on(document, 'keydown', this._onKeyDown, this); + + this._map.fire('boxzoomstart'); + }, + + _onMouseMove: function (e) { + var startPoint = this._startLayerPoint, + box = this._box, + + layerPoint = this._map.mouseEventToLayerPoint(e), + offset = layerPoint.subtract(startPoint), + + newPos = new L.Point( + Math.min(layerPoint.x, startPoint.x), + Math.min(layerPoint.y, startPoint.y)); + + L.DomUtil.setPosition(box, newPos); + + this._moved = true; + + // TODO refactor: remove hardcoded 4 pixels + box.style.width = (Math.max(0, Math.abs(offset.x) - 4)) + 'px'; + box.style.height = (Math.max(0, Math.abs(offset.y) - 4)) + 'px'; + }, + + _finish: function () { + this._pane.removeChild(this._box); + this._container.style.cursor = ''; + + L.DomUtil.enableTextSelection(); + L.DomUtil.enableImageDrag(); + + L.DomEvent + .off(document, 'mousemove', this._onMouseMove) + .off(document, 'mouseup', this._onMouseUp) + .off(document, 'keydown', this._onKeyDown); + }, + + _onMouseUp: function (e) { + + this._finish(); + + var map = this._map, + layerPoint = map.mouseEventToLayerPoint(e); + + if (this._startLayerPoint.equals(layerPoint)) { return; } + + var bounds = new L.LatLngBounds( + map.layerPointToLatLng(this._startLayerPoint), + map.layerPointToLatLng(layerPoint)); + + map.fitBounds(bounds); + + map.fire('boxzoomend', { + boxZoomBounds: bounds + }); + }, + + _onKeyDown: function (e) { + if (e.keyCode === 27) { + this._finish(); + } + } +}); + +L.Map.addInitHook('addHandler', 'boxZoom', L.Map.BoxZoom); + + +/* + * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default. + */ + +L.Map.mergeOptions({ + keyboard: true, + keyboardPanOffset: 80, + keyboardZoomOffset: 1 +}); + +L.Map.Keyboard = L.Handler.extend({ + + keyCodes: { + left: [37], + right: [39], + down: [40], + up: [38], + zoomIn: [187, 107, 61, 171], + zoomOut: [189, 109, 173] + }, + + initialize: function (map) { + this._map = map; + + this._setPanOffset(map.options.keyboardPanOffset); + this._setZoomOffset(map.options.keyboardZoomOffset); + }, + + addHooks: function () { + var container = this._map._container; + + // make the container focusable by tabbing + if (container.tabIndex === -1) { + container.tabIndex = '0'; + } + + L.DomEvent + .on(container, 'focus', this._onFocus, this) + .on(container, 'blur', this._onBlur, this) + .on(container, 'mousedown', this._onMouseDown, this); + + this._map + .on('focus', this._addHooks, this) + .on('blur', this._removeHooks, this); + }, + + removeHooks: function () { + this._removeHooks(); + + var container = this._map._container; + + L.DomEvent + .off(container, 'focus', this._onFocus, this) + .off(container, 'blur', this._onBlur, this) + .off(container, 'mousedown', this._onMouseDown, this); + + this._map + .off('focus', this._addHooks, this) + .off('blur', this._removeHooks, this); + }, + + _onMouseDown: function () { + if (this._focused) { return; } + + var body = document.body, + docEl = document.documentElement, + top = body.scrollTop || docEl.scrollTop, + left = body.scrollLeft || docEl.scrollLeft; + + this._map._container.focus(); + + window.scrollTo(left, top); + }, + + _onFocus: function () { + this._focused = true; + this._map.fire('focus'); + }, + + _onBlur: function () { + this._focused = false; + this._map.fire('blur'); + }, + + _setPanOffset: function (pan) { + var keys = this._panKeys = {}, + codes = this.keyCodes, + i, len; + + for (i = 0, len = codes.left.length; i < len; i++) { + keys[codes.left[i]] = [-1 * pan, 0]; + } + for (i = 0, len = codes.right.length; i < len; i++) { + keys[codes.right[i]] = [pan, 0]; + } + for (i = 0, len = codes.down.length; i < len; i++) { + keys[codes.down[i]] = [0, pan]; + } + for (i = 0, len = codes.up.length; i < len; i++) { + keys[codes.up[i]] = [0, -1 * pan]; + } + }, + + _setZoomOffset: function (zoom) { + var keys = this._zoomKeys = {}, + codes = this.keyCodes, + i, len; + + for (i = 0, len = codes.zoomIn.length; i < len; i++) { + keys[codes.zoomIn[i]] = zoom; + } + for (i = 0, len = codes.zoomOut.length; i < len; i++) { + keys[codes.zoomOut[i]] = -zoom; + } + }, + + _addHooks: function () { + L.DomEvent.on(document, 'keydown', this._onKeyDown, this); + }, + + _removeHooks: function () { + L.DomEvent.off(document, 'keydown', this._onKeyDown, this); + }, + + _onKeyDown: function (e) { + var key = e.keyCode, + map = this._map; + + if (key in this._panKeys) { + + if (map._panAnim && map._panAnim._inProgress) { return; } + + map.panBy(this._panKeys[key]); + + if (map.options.maxBounds) { + map.panInsideBounds(map.options.maxBounds); + } + + } else if (key in this._zoomKeys) { + map.setZoom(map.getZoom() + this._zoomKeys[key]); + + } else { + return; + } + + L.DomEvent.stop(e); + } +}); + +L.Map.addInitHook('addHandler', 'keyboard', L.Map.Keyboard); + + +/* + * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable. + */ + +L.Handler.MarkerDrag = L.Handler.extend({ + initialize: function (marker) { + this._marker = marker; + }, + + addHooks: function () { + var icon = this._marker._icon; + if (!this._draggable) { + this._draggable = new L.Draggable(icon, icon); + } + + this._draggable + .on('dragstart', this._onDragStart, this) + .on('drag', this._onDrag, this) + .on('dragend', this._onDragEnd, this); + this._draggable.enable(); + L.DomUtil.addClass(this._marker._icon, 'leaflet-marker-draggable'); + }, + + removeHooks: function () { + this._draggable + .off('dragstart', this._onDragStart, this) + .off('drag', this._onDrag, this) + .off('dragend', this._onDragEnd, this); + + this._draggable.disable(); + L.DomUtil.removeClass(this._marker._icon, 'leaflet-marker-draggable'); + }, + + moved: function () { + return this._draggable && this._draggable._moved; + }, + + _onDragStart: function () { + this._marker + .closePopup() + .fire('movestart') + .fire('dragstart'); + L.DomUtil.addClass(this._marker._icon, 'leaflet-marker-dragging'); + }, + + _onDrag: function () { + var marker = this._marker, + shadow = marker._shadow, + iconPos = L.DomUtil.getPosition(marker._icon), + latlng = marker._map.layerPointToLatLng(iconPos); + + // update shadow position + if (shadow) { + L.DomUtil.setPosition(shadow, iconPos); + } + + marker._latlng = latlng; + + marker + .fire('move', {latlng: latlng}) + .fire('drag'); + }, + + _onDragEnd: function () { + this._marker + .fire('moveend') + .fire('dragend'); + L.DomUtil.removeClass(this._marker._icon, 'leaflet-marker-dragging'); + } +}); + + +/* + * L.Control is a base class for implementing map controls. Handles positioning. + * All other controls extend from this class. + */ + +L.Control = L.Class.extend({ + options: { + position: 'topright' + }, + + initialize: function (options) { + L.setOptions(this, options); + }, + + getPosition: function () { + return this.options.position; + }, + + setPosition: function (position) { + var map = this._map; + + if (map) { + map.removeControl(this); + } + + this.options.position = position; + + if (map) { + map.addControl(this); + } + + return this; + }, + + getContainer: function () { + return this._container; + }, + + addTo: function (map) { + this._map = map; + + var container = this._container = this.onAdd(map), + pos = this.getPosition(), + corner = map._controlCorners[pos]; + + L.DomUtil.addClass(container, 'leaflet-control'); + + if (pos.indexOf('bottom') !== -1) { + corner.insertBefore(container, corner.firstChild); + } else { + corner.appendChild(container); + } + + return this; + }, + + removeFrom: function (map) { + var pos = this.getPosition(), + corner = map._controlCorners[pos]; + + corner.removeChild(this._container); + this._map = null; + + if (this.onRemove) { + this.onRemove(map); + } + + return this; + }, + + _refocusOnMap: function () { + if (this._map) { + this._map.getContainer().focus(); + } + } +}); + +L.control = function (options) { + return new L.Control(options); +}; + + +// adds control-related methods to L.Map + +L.Map.include({ + addControl: function (control) { + control.addTo(this); + return this; + }, + + removeControl: function (control) { + control.removeFrom(this); + return this; + }, + + _initControlPos: function () { + var corners = this._controlCorners = {}, + l = 'leaflet-', + container = this._controlContainer = + L.DomUtil.create('div', l + 'control-container', this._container); + + function createCorner(vSide, hSide) { + var className = l + vSide + ' ' + l + hSide; + + corners[vSide + hSide] = L.DomUtil.create('div', className, container); + } + + createCorner('top', 'left'); + createCorner('top', 'right'); + createCorner('bottom', 'left'); + createCorner('bottom', 'right'); + }, + + _clearControlPos: function () { + this._container.removeChild(this._controlContainer); + } +}); + + +/* + * L.Control.Zoom is used for the default zoom buttons on the map. + */ + +L.Control.Zoom = L.Control.extend({ + options: { + position: 'topleft', + zoomInText: '+', + zoomInTitle: 'Zoom in', + zoomOutText: '-', + zoomOutTitle: 'Zoom out' + }, + + onAdd: function (map) { + var zoomName = 'leaflet-control-zoom', + container = L.DomUtil.create('div', zoomName + ' leaflet-bar'); + + this._map = map; + + this._zoomInButton = this._createButton( + this.options.zoomInText, this.options.zoomInTitle, + zoomName + '-in', container, this._zoomIn, this); + this._zoomOutButton = this._createButton( + this.options.zoomOutText, this.options.zoomOutTitle, + zoomName + '-out', container, this._zoomOut, this); + + this._updateDisabled(); + map.on('zoomend zoomlevelschange', this._updateDisabled, this); + + return container; + }, + + onRemove: function (map) { + map.off('zoomend zoomlevelschange', this._updateDisabled, this); + }, + + _zoomIn: function (e) { + this._map.zoomIn(e.shiftKey ? 3 : 1); + }, + + _zoomOut: function (e) { + this._map.zoomOut(e.shiftKey ? 3 : 1); + }, + + _createButton: function (html, title, className, container, fn, context) { + var link = L.DomUtil.create('a', className, container); + link.innerHTML = html; + link.href = '#'; + link.title = title; + + var stop = L.DomEvent.stopPropagation; + + L.DomEvent + .on(link, 'click', stop) + .on(link, 'mousedown', stop) + .on(link, 'dblclick', stop) + .on(link, 'click', L.DomEvent.preventDefault) + .on(link, 'click', fn, context) + .on(link, 'click', this._refocusOnMap, context); + + return link; + }, + + _updateDisabled: function () { + var map = this._map, + className = 'leaflet-disabled'; + + L.DomUtil.removeClass(this._zoomInButton, className); + L.DomUtil.removeClass(this._zoomOutButton, className); + + if (map._zoom === map.getMinZoom()) { + L.DomUtil.addClass(this._zoomOutButton, className); + } + if (map._zoom === map.getMaxZoom()) { + L.DomUtil.addClass(this._zoomInButton, className); + } + } +}); + +L.Map.mergeOptions({ + zoomControl: true +}); + +L.Map.addInitHook(function () { + if (this.options.zoomControl) { + this.zoomControl = new L.Control.Zoom(); + this.addControl(this.zoomControl); + } +}); + +L.control.zoom = function (options) { + return new L.Control.Zoom(options); +}; + + + +/* + * L.Control.Attribution is used for displaying attribution on the map (added by default). + */ + +L.Control.Attribution = L.Control.extend({ + options: { + position: 'bottomright', + prefix: 'Leaflet' + }, + + initialize: function (options) { + L.setOptions(this, options); + + this._attributions = {}; + }, + + onAdd: function (map) { + this._container = L.DomUtil.create('div', 'leaflet-control-attribution'); + L.DomEvent.disableClickPropagation(this._container); + + map + .on('layeradd', this._onLayerAdd, this) + .on('layerremove', this._onLayerRemove, this); + + this._update(); + + return this._container; + }, + + onRemove: function (map) { + map + .off('layeradd', this._onLayerAdd) + .off('layerremove', this._onLayerRemove); + + }, + + setPrefix: function (prefix) { + this.options.prefix = prefix; + this._update(); + return this; + }, + + addAttribution: function (text) { + if (!text) { return; } + + if (!this._attributions[text]) { + this._attributions[text] = 0; + } + this._attributions[text]++; + + this._update(); + + return this; + }, + + removeAttribution: function (text) { + if (!text) { return; } + + if (this._attributions[text]) { + this._attributions[text]--; + this._update(); + } + + return this; + }, + + _update: function () { + if (!this._map) { return; } + + var attribs = []; + + for (var i in this._attributions) { + if (this._attributions[i]) { + attribs.push(i); + } + } + + var prefixAndAttribs = []; + + if (this.options.prefix) { + prefixAndAttribs.push(this.options.prefix); + } + if (attribs.length) { + prefixAndAttribs.push(attribs.join(', ')); + } + + this._container.innerHTML = prefixAndAttribs.join(' | '); + }, + + _onLayerAdd: function (e) { + if (e.layer.getAttribution) { + this.addAttribution(e.layer.getAttribution()); + } + }, + + _onLayerRemove: function (e) { + if (e.layer.getAttribution) { + this.removeAttribution(e.layer.getAttribution()); + } + } +}); + +L.Map.mergeOptions({ + attributionControl: true +}); + +L.Map.addInitHook(function () { + if (this.options.attributionControl) { + this.attributionControl = (new L.Control.Attribution()).addTo(this); + } +}); + +L.control.attribution = function (options) { + return new L.Control.Attribution(options); +}; + + +/* + * L.Control.Scale is used for displaying metric/imperial scale on the map. + */ + +L.Control.Scale = L.Control.extend({ + options: { + position: 'bottomleft', + maxWidth: 100, + metric: true, + imperial: true, + updateWhenIdle: false + }, + + onAdd: function (map) { + this._map = map; + + var className = 'leaflet-control-scale', + container = L.DomUtil.create('div', className), + options = this.options; + + this._addScales(options, className, container); + + map.on(options.updateWhenIdle ? 'moveend' : 'move', this._update, this); + map.whenReady(this._update, this); + + return container; + }, + + onRemove: function (map) { + map.off(this.options.updateWhenIdle ? 'moveend' : 'move', this._update, this); + }, + + _addScales: function (options, className, container) { + if (options.metric) { + this._mScale = L.DomUtil.create('div', className + '-line', container); + } + if (options.imperial) { + this._iScale = L.DomUtil.create('div', className + '-line', container); + } + }, + + _update: function () { + var bounds = this._map.getBounds(), + centerLat = bounds.getCenter().lat, + halfWorldMeters = 6378137 * Math.PI * Math.cos(centerLat * Math.PI / 180), + dist = halfWorldMeters * (bounds.getNorthEast().lng - bounds.getSouthWest().lng) / 180, + + size = this._map.getSize(), + options = this.options, + maxMeters = 0; + + if (size.x > 0) { + maxMeters = dist * (options.maxWidth / size.x); + } + + this._updateScales(options, maxMeters); + }, + + _updateScales: function (options, maxMeters) { + if (options.metric && maxMeters) { + this._updateMetric(maxMeters); + } + + if (options.imperial && maxMeters) { + this._updateImperial(maxMeters); + } + }, + + _updateMetric: function (maxMeters) { + var meters = this._getRoundNum(maxMeters); + + this._mScale.style.width = this._getScaleWidth(meters / maxMeters) + 'px'; + this._mScale.innerHTML = meters < 1000 ? meters + ' m' : (meters / 1000) + ' km'; + }, + + _updateImperial: function (maxMeters) { + var maxFeet = maxMeters * 3.2808399, + scale = this._iScale, + maxMiles, miles, feet; + + if (maxFeet > 5280) { + maxMiles = maxFeet / 5280; + miles = this._getRoundNum(maxMiles); + + scale.style.width = this._getScaleWidth(miles / maxMiles) + 'px'; + scale.innerHTML = miles + ' mi'; + + } else { + feet = this._getRoundNum(maxFeet); + + scale.style.width = this._getScaleWidth(feet / maxFeet) + 'px'; + scale.innerHTML = feet + ' ft'; + } + }, + + _getScaleWidth: function (ratio) { + return Math.round(this.options.maxWidth * ratio) - 10; + }, + + _getRoundNum: function (num) { + var pow10 = Math.pow(10, (Math.floor(num) + '').length - 1), + d = num / pow10; + + d = d >= 10 ? 10 : d >= 5 ? 5 : d >= 3 ? 3 : d >= 2 ? 2 : 1; + + return pow10 * d; + } +}); + +L.control.scale = function (options) { + return new L.Control.Scale(options); +}; + + +/* + * L.Control.Layers is a control to allow users to switch between different layers on the map. + */ + +L.Control.Layers = L.Control.extend({ + options: { + collapsed: true, + position: 'topright', + autoZIndex: true + }, + + initialize: function (baseLayers, overlays, options) { + L.setOptions(this, options); + + this._layers = {}; + this._lastZIndex = 0; + this._handlingClick = false; + + for (var i in baseLayers) { + this._addLayer(baseLayers[i], i); + } + + for (i in overlays) { + this._addLayer(overlays[i], i, true); + } + }, + + onAdd: function (map) { + this._initLayout(); + this._update(); + + map + .on('layeradd', this._onLayerChange, this) + .on('layerremove', this._onLayerChange, this); + + return this._container; + }, + + onRemove: function (map) { + map + .off('layeradd', this._onLayerChange) + .off('layerremove', this._onLayerChange); + }, + + addBaseLayer: function (layer, name) { + this._addLayer(layer, name); + this._update(); + return this; + }, + + addOverlay: function (layer, name) { + this._addLayer(layer, name, true); + this._update(); + return this; + }, + + removeLayer: function (layer) { + var id = L.stamp(layer); + delete this._layers[id]; + this._update(); + return this; + }, + + _initLayout: function () { + var className = 'leaflet-control-layers', + container = this._container = L.DomUtil.create('div', className); + + //Makes this work on IE10 Touch devices by stopping it from firing a mouseout event when the touch is released + container.setAttribute('aria-haspopup', true); + + if (!L.Browser.touch) { + L.DomEvent + .disableClickPropagation(container) + .disableScrollPropagation(container); + } else { + L.DomEvent.on(container, 'click', L.DomEvent.stopPropagation); + } + + var form = this._form = L.DomUtil.create('form', className + '-list'); + + if (this.options.collapsed) { + if (!L.Browser.android) { + L.DomEvent + .on(container, 'mouseover', this._expand, this) + .on(container, 'mouseout', this._collapse, this); + } + var link = this._layersLink = L.DomUtil.create('a', className + '-toggle', container); + link.href = '#'; + link.title = 'Layers'; + + if (L.Browser.touch) { + L.DomEvent + .on(link, 'click', L.DomEvent.stop) + .on(link, 'click', this._expand, this); + } + else { + L.DomEvent.on(link, 'focus', this._expand, this); + } + + this._map.on('click', this._collapse, this); + // TODO keyboard accessibility + } else { + this._expand(); + } + + this._baseLayersList = L.DomUtil.create('div', className + '-base', form); + this._separator = L.DomUtil.create('div', className + '-separator', form); + this._overlaysList = L.DomUtil.create('div', className + '-overlays', form); + + container.appendChild(form); + }, + + _addLayer: function (layer, name, overlay) { + var id = L.stamp(layer); + + this._layers[id] = { + layer: layer, + name: name, + overlay: overlay + }; + + if (this.options.autoZIndex && layer.setZIndex) { + this._lastZIndex++; + layer.setZIndex(this._lastZIndex); + } + }, + + _update: function () { + if (!this._container) { + return; + } + + this._baseLayersList.innerHTML = ''; + this._overlaysList.innerHTML = ''; + + var baseLayersPresent = false, + overlaysPresent = false, + i, obj; + + for (i in this._layers) { + obj = this._layers[i]; + this._addItem(obj); + overlaysPresent = overlaysPresent || obj.overlay; + baseLayersPresent = baseLayersPresent || !obj.overlay; + } + + this._separator.style.display = overlaysPresent && baseLayersPresent ? '' : 'none'; + }, + + _onLayerChange: function (e) { + var obj = this._layers[L.stamp(e.layer)]; + + if (!obj) { return; } + + if (!this._handlingClick) { + this._update(); + } + + var type = obj.overlay ? + (e.type === 'layeradd' ? 'overlayadd' : 'overlayremove') : + (e.type === 'layeradd' ? 'baselayerchange' : null); + + if (type) { + this._map.fire(type, obj); + } + }, + + // IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see http://bit.ly/PqYLBe) + _createRadioElement: function (name, checked) { + + var radioHtml = ' this.options.zoomAnimationThreshold) { return false; } + + // offset is the pixel coords of the zoom origin relative to the current center + var scale = this.getZoomScale(zoom), + offset = this._getCenterOffset(center)._divideBy(1 - 1 / scale), + origin = this._getCenterLayerPoint()._add(offset); + + // don't animate if the zoom origin isn't within one screen from the current center, unless forced + if (options.animate !== true && !this.getSize().contains(offset)) { return false; } + + this + .fire('movestart') + .fire('zoomstart'); + + this._animateZoom(center, zoom, origin, scale, null, true); + + return true; + }, + + _animateZoom: function (center, zoom, origin, scale, delta, backwards) { + + this._animatingZoom = true; + + // put transform transition on all layers with leaflet-zoom-animated class + L.DomUtil.addClass(this._mapPane, 'leaflet-zoom-anim'); + + // remember what center/zoom to set after animation + this._animateToCenter = center; + this._animateToZoom = zoom; + + // disable any dragging during animation + if (L.Draggable) { + L.Draggable._disabled = true; + } + + this.fire('zoomanim', { + center: center, + zoom: zoom, + origin: origin, + scale: scale, + delta: delta, + backwards: backwards + }); + }, + + _onZoomTransitionEnd: function () { + + this._animatingZoom = false; + + L.DomUtil.removeClass(this._mapPane, 'leaflet-zoom-anim'); + + this._resetView(this._animateToCenter, this._animateToZoom, true, true); + + if (L.Draggable) { + L.Draggable._disabled = false; + } + } +}); + + +/* + Zoom animation logic for L.TileLayer. +*/ + +L.TileLayer.include({ + _animateZoom: function (e) { + if (!this._animating) { + this._animating = true; + this._prepareBgBuffer(); + } + + var bg = this._bgBuffer, + transform = L.DomUtil.TRANSFORM, + initialTransform = e.delta ? L.DomUtil.getTranslateString(e.delta) : bg.style[transform], + scaleStr = L.DomUtil.getScaleString(e.scale, e.origin); + + bg.style[transform] = e.backwards ? + scaleStr + ' ' + initialTransform : + initialTransform + ' ' + scaleStr; + }, + + _endZoomAnim: function () { + var front = this._tileContainer, + bg = this._bgBuffer; + + front.style.visibility = ''; + front.parentNode.appendChild(front); // Bring to fore + + // force reflow + L.Util.falseFn(bg.offsetWidth); + + this._animating = false; + }, + + _clearBgBuffer: function () { + var map = this._map; + + if (map && !map._animatingZoom && !map.touchZoom._zooming) { + this._bgBuffer.innerHTML = ''; + this._bgBuffer.style[L.DomUtil.TRANSFORM] = ''; + } + }, + + _prepareBgBuffer: function () { + + var front = this._tileContainer, + bg = this._bgBuffer; + + // if foreground layer doesn't have many tiles but bg layer does, + // keep the existing bg layer and just zoom it some more + + var bgLoaded = this._getLoadedTilesPercentage(bg), + frontLoaded = this._getLoadedTilesPercentage(front); + + if (bg && bgLoaded > 0.5 && frontLoaded < 0.5) { + + front.style.visibility = 'hidden'; + this._stopLoadingImages(front); + return; + } + + // prepare the buffer to become the front tile pane + bg.style.visibility = 'hidden'; + bg.style[L.DomUtil.TRANSFORM] = ''; + + // switch out the current layer to be the new bg layer (and vice-versa) + this._tileContainer = bg; + bg = this._bgBuffer = front; + + this._stopLoadingImages(bg); + + //prevent bg buffer from clearing right after zoom + clearTimeout(this._clearBgBufferTimer); + }, + + _getLoadedTilesPercentage: function (container) { + var tiles = container.getElementsByTagName('img'), + i, len, count = 0; + + for (i = 0, len = tiles.length; i < len; i++) { + if (tiles[i].complete) { + count++; + } + } + return count / len; + }, + + // stops loading all tiles in the background layer + _stopLoadingImages: function (container) { + var tiles = Array.prototype.slice.call(container.getElementsByTagName('img')), + i, len, tile; + + for (i = 0, len = tiles.length; i < len; i++) { + tile = tiles[i]; + + if (!tile.complete) { + tile.onload = L.Util.falseFn; + tile.onerror = L.Util.falseFn; + tile.src = L.Util.emptyImageUrl; + + tile.parentNode.removeChild(tile); + } + } + } +}); + + +/* + * Provides L.Map with convenient shortcuts for using browser geolocation features. + */ + +L.Map.include({ + _defaultLocateOptions: { + watch: false, + setView: false, + maxZoom: Infinity, + timeout: 10000, + maximumAge: 0, + enableHighAccuracy: false + }, + + locate: function (/*Object*/ options) { + + options = this._locateOptions = L.extend(this._defaultLocateOptions, options); + + if (!navigator.geolocation) { + this._handleGeolocationError({ + code: 0, + message: 'Geolocation not supported.' + }); + return this; + } + + var onResponse = L.bind(this._handleGeolocationResponse, this), + onError = L.bind(this._handleGeolocationError, this); + + if (options.watch) { + this._locationWatchId = + navigator.geolocation.watchPosition(onResponse, onError, options); + } else { + navigator.geolocation.getCurrentPosition(onResponse, onError, options); + } + return this; + }, + + stopLocate: function () { + if (navigator.geolocation) { + navigator.geolocation.clearWatch(this._locationWatchId); + } + if (this._locateOptions) { + this._locateOptions.setView = false; + } + return this; + }, + + _handleGeolocationError: function (error) { + var c = error.code, + message = error.message || + (c === 1 ? 'permission denied' : + (c === 2 ? 'position unavailable' : 'timeout')); + + if (this._locateOptions.setView && !this._loaded) { + this.fitWorld(); + } + + this.fire('locationerror', { + code: c, + message: 'Geolocation error: ' + message + '.' + }); + }, + + _handleGeolocationResponse: function (pos) { + var lat = pos.coords.latitude, + lng = pos.coords.longitude, + latlng = new L.LatLng(lat, lng), + + latAccuracy = 180 * pos.coords.accuracy / 40075017, + lngAccuracy = latAccuracy / Math.cos(L.LatLng.DEG_TO_RAD * lat), + + bounds = L.latLngBounds( + [lat - latAccuracy, lng - lngAccuracy], + [lat + latAccuracy, lng + lngAccuracy]), + + options = this._locateOptions; + + if (options.setView) { + var zoom = Math.min(this.getBoundsZoom(bounds), options.maxZoom); + this.setView(latlng, zoom); + } + + var data = { + latlng: latlng, + bounds: bounds, + timestamp: pos.timestamp + }; + + for (var i in pos.coords) { + if (typeof pos.coords[i] === 'number') { + data[i] = pos.coords[i]; + } + } + + this.fire('locationfound', data); + } +}); + + +}(window, document)); \ No newline at end of file diff --git a/bower_components/Leaflet.label/libs/leaflet/leaflet.css b/bower_components/Leaflet.label/libs/leaflet/leaflet.css new file mode 100755 index 00000000..12325502 --- /dev/null +++ b/bower_components/Leaflet.label/libs/leaflet/leaflet.css @@ -0,0 +1,478 @@ +/* required styles */ + +.leaflet-map-pane, +.leaflet-tile, +.leaflet-marker-icon, +.leaflet-marker-shadow, +.leaflet-tile-pane, +.leaflet-tile-container, +.leaflet-overlay-pane, +.leaflet-shadow-pane, +.leaflet-marker-pane, +.leaflet-popup-pane, +.leaflet-overlay-pane svg, +.leaflet-zoom-box, +.leaflet-image-layer, +.leaflet-layer { + position: absolute; + left: 0; + top: 0; + } +.leaflet-container { + overflow: hidden; + -ms-touch-action: none; + } +.leaflet-tile, +.leaflet-marker-icon, +.leaflet-marker-shadow { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + -webkit-user-drag: none; + } +.leaflet-marker-icon, +.leaflet-marker-shadow { + display: block; + } +/* map is broken in FF if you have max-width: 100% on tiles */ +.leaflet-container img { + max-width: none !important; + } +/* stupid Android 2 doesn't understand "max-width: none" properly */ +.leaflet-container img.leaflet-image-layer { + max-width: 15000px !important; + } +.leaflet-tile { + filter: inherit; + visibility: hidden; + } +.leaflet-tile-loaded { + visibility: inherit; + } +.leaflet-zoom-box { + width: 0; + height: 0; + } +/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */ +.leaflet-overlay-pane svg { + -moz-user-select: none; + } + +.leaflet-tile-pane { z-index: 2; } +.leaflet-objects-pane { z-index: 3; } +.leaflet-overlay-pane { z-index: 4; } +.leaflet-shadow-pane { z-index: 5; } +.leaflet-marker-pane { z-index: 6; } +.leaflet-popup-pane { z-index: 7; } + +.leaflet-vml-shape { + width: 1px; + height: 1px; + } +.lvml { + behavior: url(#default#VML); + display: inline-block; + position: absolute; + } + + +/* control positioning */ + +.leaflet-control { + position: relative; + z-index: 7; + pointer-events: auto; + } +.leaflet-top, +.leaflet-bottom { + position: absolute; + z-index: 1000; + pointer-events: none; + } +.leaflet-top { + top: 0; + } +.leaflet-right { + right: 0; + } +.leaflet-bottom { + bottom: 0; + } +.leaflet-left { + left: 0; + } +.leaflet-control { + float: left; + clear: both; + } +.leaflet-right .leaflet-control { + float: right; + } +.leaflet-top .leaflet-control { + margin-top: 10px; + } +.leaflet-bottom .leaflet-control { + margin-bottom: 10px; + } +.leaflet-left .leaflet-control { + margin-left: 10px; + } +.leaflet-right .leaflet-control { + margin-right: 10px; + } + + +/* zoom and fade animations */ + +.leaflet-fade-anim .leaflet-tile, +.leaflet-fade-anim .leaflet-popup { + opacity: 0; + -webkit-transition: opacity 0.2s linear; + -moz-transition: opacity 0.2s linear; + -o-transition: opacity 0.2s linear; + transition: opacity 0.2s linear; + } +.leaflet-fade-anim .leaflet-tile-loaded, +.leaflet-fade-anim .leaflet-map-pane .leaflet-popup { + opacity: 1; + } + +.leaflet-zoom-anim .leaflet-zoom-animated { + -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1); + -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1); + -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1); + transition: transform 0.25s cubic-bezier(0,0,0.25,1); + } +.leaflet-zoom-anim .leaflet-tile, +.leaflet-pan-anim .leaflet-tile, +.leaflet-touching .leaflet-zoom-animated { + -webkit-transition: none; + -moz-transition: none; + -o-transition: none; + transition: none; + } + +.leaflet-zoom-anim .leaflet-zoom-hide { + visibility: hidden; + } + + +/* cursors */ + +.leaflet-clickable { + cursor: pointer; + } +.leaflet-container { + cursor: -webkit-grab; + cursor: -moz-grab; + } +.leaflet-popup-pane, +.leaflet-control { + cursor: auto; + } +.leaflet-dragging .leaflet-container, +.leaflet-dragging .leaflet-clickable { + cursor: move; + cursor: -webkit-grabbing; + cursor: -moz-grabbing; + } + + +/* visual tweaks */ + +.leaflet-container { + background: #ddd; + outline: 0; + } +.leaflet-container a { + color: #0078A8; + } +.leaflet-container a.leaflet-active { + outline: 2px solid orange; + } +.leaflet-zoom-box { + border: 2px dotted #38f; + background: rgba(255,255,255,0.5); + } + + +/* general typography */ +.leaflet-container { + font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; + } + + +/* general toolbar styles */ + +.leaflet-bar { + box-shadow: 0 1px 5px rgba(0,0,0,0.65); + border-radius: 4px; + } +.leaflet-bar a, +.leaflet-bar a:hover { + background-color: #fff; + border-bottom: 1px solid #ccc; + width: 26px; + height: 26px; + line-height: 26px; + display: block; + text-align: center; + text-decoration: none; + color: black; + } +.leaflet-bar a, +.leaflet-control-layers-toggle { + background-position: 50% 50%; + background-repeat: no-repeat; + display: block; + } +.leaflet-bar a:hover { + background-color: #f4f4f4; + } +.leaflet-bar a:first-child { + border-top-left-radius: 4px; + border-top-right-radius: 4px; + } +.leaflet-bar a:last-child { + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + border-bottom: none; + } +.leaflet-bar a.leaflet-disabled { + cursor: default; + background-color: #f4f4f4; + color: #bbb; + } + +.leaflet-touch .leaflet-bar a { + width: 30px; + height: 30px; + line-height: 30px; + } + + +/* zoom control */ + +.leaflet-control-zoom-in, +.leaflet-control-zoom-out { + font: bold 18px 'Lucida Console', Monaco, monospace; + text-indent: 1px; + } +.leaflet-control-zoom-out { + font-size: 20px; + } + +.leaflet-touch .leaflet-control-zoom-in { + font-size: 22px; + } +.leaflet-touch .leaflet-control-zoom-out { + font-size: 24px; + } + + +/* layers control */ + +.leaflet-control-layers { + box-shadow: 0 1px 5px rgba(0,0,0,0.4); + background: #fff; + border-radius: 5px; + } +.leaflet-control-layers-toggle { + background-image: url(images/layers.png); + width: 36px; + height: 36px; + } +.leaflet-retina .leaflet-control-layers-toggle { + background-image: url(images/layers-2x.png); + background-size: 26px 26px; + } +.leaflet-touch .leaflet-control-layers-toggle { + width: 44px; + height: 44px; + } +.leaflet-control-layers .leaflet-control-layers-list, +.leaflet-control-layers-expanded .leaflet-control-layers-toggle { + display: none; + } +.leaflet-control-layers-expanded .leaflet-control-layers-list { + display: block; + position: relative; + } +.leaflet-control-layers-expanded { + padding: 6px 10px 6px 6px; + color: #333; + background: #fff; + } +.leaflet-control-layers-selector { + margin-top: 2px; + position: relative; + top: 1px; + } +.leaflet-control-layers label { + display: block; + } +.leaflet-control-layers-separator { + height: 0; + border-top: 1px solid #ddd; + margin: 5px -10px 5px -6px; + } + + +/* attribution and scale controls */ + +.leaflet-container .leaflet-control-attribution { + background: #fff; + background: rgba(255, 255, 255, 0.7); + margin: 0; + } +.leaflet-control-attribution, +.leaflet-control-scale-line { + padding: 0 5px; + color: #333; + } +.leaflet-control-attribution a { + text-decoration: none; + } +.leaflet-control-attribution a:hover { + text-decoration: underline; + } +.leaflet-container .leaflet-control-attribution, +.leaflet-container .leaflet-control-scale { + font-size: 11px; + } +.leaflet-left .leaflet-control-scale { + margin-left: 5px; + } +.leaflet-bottom .leaflet-control-scale { + margin-bottom: 5px; + } +.leaflet-control-scale-line { + border: 2px solid #777; + border-top: none; + line-height: 1.1; + padding: 2px 5px 1px; + font-size: 11px; + white-space: nowrap; + overflow: hidden; + -moz-box-sizing: content-box; + box-sizing: content-box; + + background: #fff; + background: rgba(255, 255, 255, 0.5); + } +.leaflet-control-scale-line:not(:first-child) { + border-top: 2px solid #777; + border-bottom: none; + margin-top: -2px; + } +.leaflet-control-scale-line:not(:first-child):not(:last-child) { + border-bottom: 2px solid #777; + } + +.leaflet-touch .leaflet-control-attribution, +.leaflet-touch .leaflet-control-layers, +.leaflet-touch .leaflet-bar { + box-shadow: none; + } +.leaflet-touch .leaflet-control-layers, +.leaflet-touch .leaflet-bar { + border: 2px solid rgba(0,0,0,0.2); + background-clip: padding-box; + } + + +/* popup */ + +.leaflet-popup { + position: absolute; + text-align: center; + } +.leaflet-popup-content-wrapper { + padding: 1px; + text-align: left; + border-radius: 12px; + } +.leaflet-popup-content { + margin: 13px 19px; + line-height: 1.4; + } +.leaflet-popup-content p { + margin: 18px 0; + } +.leaflet-popup-tip-container { + margin: 0 auto; + width: 40px; + height: 20px; + position: relative; + overflow: hidden; + } +.leaflet-popup-tip { + width: 17px; + height: 17px; + padding: 1px; + + margin: -10px auto 0; + + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + transform: rotate(45deg); + } +.leaflet-popup-content-wrapper, +.leaflet-popup-tip { + background: white; + + box-shadow: 0 3px 14px rgba(0,0,0,0.4); + } +.leaflet-container a.leaflet-popup-close-button { + position: absolute; + top: 0; + right: 0; + padding: 4px 4px 0 0; + text-align: center; + width: 18px; + height: 14px; + font: 16px/14px Tahoma, Verdana, sans-serif; + color: #c3c3c3; + text-decoration: none; + font-weight: bold; + background: transparent; + } +.leaflet-container a.leaflet-popup-close-button:hover { + color: #999; + } +.leaflet-popup-scrolled { + overflow: auto; + border-bottom: 1px solid #ddd; + border-top: 1px solid #ddd; + } + +.leaflet-oldie .leaflet-popup-content-wrapper { + zoom: 1; + } +.leaflet-oldie .leaflet-popup-tip { + width: 24px; + margin: 0 auto; + + -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)"; + filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678); + } +.leaflet-oldie .leaflet-popup-tip-container { + margin-top: -1px; + } + +.leaflet-oldie .leaflet-control-zoom, +.leaflet-oldie .leaflet-control-layers, +.leaflet-oldie .leaflet-popup-content-wrapper, +.leaflet-oldie .leaflet-popup-tip { + border: 1px solid #999; + } + + +/* div icon */ + +.leaflet-div-icon { + background: #fff; + border: 1px solid #666; + } diff --git a/bower_components/Leaflet.label/libs/leaflet/leaflet.js b/bower_components/Leaflet.label/libs/leaflet/leaflet.js new file mode 100755 index 00000000..843a9713 --- /dev/null +++ b/bower_components/Leaflet.label/libs/leaflet/leaflet.js @@ -0,0 +1,9 @@ +/* + Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com + (c) 2010-2013, Vladimir Agafonkin + (c) 2010-2011, CloudMade +*/ +!function(t,e,i){var n=t.L,o={};o.version="0.7-dev","object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define(o),o.noConflict=function(){return t.L=n,this},t.L=o,o.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:function(){var t=0,e="_leaflet_id";return function(i){return i[e]=i[e]||++t,i[e]}}(),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){o=Array.prototype.slice.call(arguments,3);for(n in t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var a=arguments;return n?(o=!0,void 0):(n=!0,setTimeout(function(){n=!1,o&&(s.apply(i,a),o=!1)},e),t.apply(i,a),void 0)}},falseFn:function(){return!1},formatNum:function(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return o.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=o.extend({},t.options,e),t.options},getParamString:function(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")},compileTemplate:function(t,e){return t=t.replace(/"/g,'\\"'),t=t.replace(/\{ *([\w_]+) *\}/g,function(t,i){return'" + o["'+i+'"]'+("function"==typeof e[i]?"(o)":"")+' + "'}),new Function("o",'return "'+t+'";')},template:function(t,e){var i=o.Util._templateCache=o.Util._templateCache||{};return i[t]=i[t]||o.Util.compileTemplate(t,e),i[t](e)},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function e(e){var i,n,o=["webkit","moz","o","ms"];for(i=0;it;t++)n._initHooks[t].call(this)}},e},o.Class.include=function(t){o.extend(this.prototype,t)},o.Class.mergeOptions=function(t){o.extend(this.prototype.options,t)},o.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i)};var s="_leaflet_events";o.Mixin={},o.Mixin.Events={addEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,a,r,h,l,u,c,p=this[s]=this[s]||{},d=i&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)r={action:e,context:i||this},h=t[n],i?(l=h+"_idx",u=l+"_len",c=p[l]=p[l]||{},c[d]||(c[d]=[],p[u]=(p[u]||0)+1),c[d].push(r)):(p[h]=p[h]||[],p[h].push(r));return this},hasEventListeners:function(t){var e=this[s];return!!e&&(t in e&&e[t].length>0||t+"_idx"in e&&e[t+"_idx_len"]>0)},removeEventListener:function(t,e,i){if(!this[s])return this;if(!t)return this.clearAllEventListeners();if(o.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,a,r,h,l,u,c,p,d,_=this[s],m=i&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)if(r=t[n],u=r+"_idx",c=u+"_len",p=_[u],e){if(h=i&&p?p[m]:_[r]){for(l=h.length-1;l>=0;l--)h[l].action!==e||i&&h[l].context!==i||(d=h.splice(l,1),d[0].action=o.Util.falseFn);i&&p&&0===h.length&&(delete p[m],_[c]--)}}else delete _[r],delete _[u];return this},clearAllEventListeners:function(){return delete this[s],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,a,r,h,l=o.Util.extend({},e,{type:t,target:this}),u=this[s];if(u[t])for(i=u[t].slice(),n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context||this,l);r=u[t+"_idx"];for(h in r)if(i=r[h].slice())for(n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context||this,l);return this},addOneTimeEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=o.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)},this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},o.Mixin.Events.on=o.Mixin.Events.addEventListener,o.Mixin.Events.off=o.Mixin.Events.removeEventListener,o.Mixin.Events.once=o.Mixin.Events.addOneTimeEventListener,o.Mixin.Events.fire=o.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in t,s=n&&!t.XMLHttpRequest,a=n&&!e.querySelector,r=n&&!e.addEventListener,h=navigator.userAgent.toLowerCase(),l=-1!==h.indexOf("webkit"),u=-1!==h.indexOf("chrome"),c=-1!==h.indexOf("phantom"),p=-1!==h.indexOf("android"),d=-1!==h.search("android [23]"),_=-1!==h.indexOf("gecko"),m=typeof orientation!=i+"",f=t.navigator&&t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints&&!t.PointerEvent,g=t.PointerEvent&&t.navigator.pointerEnabled&&t.navigator.maxTouchPoints||f,v="devicePixelRatio"in t&&t.devicePixelRatio>1||"matchMedia"in t&&t.matchMedia("(min-resolution:144dpi)")&&t.matchMedia("(min-resolution:144dpi)").matches,y=e.documentElement,L=n&&"transition"in y.style,P="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix,x="MozPerspective"in y.style,w="OTransition"in y.style,T=!t.L_DISABLE_3D&&(L||P||x||w)&&!c,D=!t.L_NO_TOUCH&&!c&&function(){var t="ontouchstart";if(g||t in y)return!0;var i=e.createElement("div"),n=!1;return i.setAttribute?(i.setAttribute(t,"return;"),"function"==typeof i[t]&&(n=!0),i.removeAttribute(t),i=null,n):!1}();o.Browser={ie:n,ie6:s,ie7:a,ielt9:r,webkit:l,gecko:_&&!l&&!t.opera&&!n,android:p,android23:d,chrome:u,ie3d:L,webkit3d:P,gecko3d:x,opera3d:w,any3d:T,mobile:m,mobileWebkit:m&&l,mobileWebkit3d:m&&P,mobileOpera:m&&t.opera,touch:D,msPointer:f,pointer:g,retina:v}}(),o.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},o.Point.prototype={clone:function(){return new o.Point(this.x,this.y)},add:function(t){return this.clone()._add(o.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(o.point(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(t){t=o.point(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=o.point(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=o.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+o.Util.formatNum(this.x)+", "+o.Util.formatNum(this.y)+")"}},o.point=function(t,e,n){return t instanceof o.Point?t:o.Util.isArray(t)?new o.Point(t[0],t[1]):t===i||null===t?t:new o.Point(t,e,n)},o.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.Bounds.prototype={extend:function(t){return t=o.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new o.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new o.Point(this.min.x,this.max.y)},getTopRight:function(){return new o.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return t="number"==typeof t[0]||t instanceof o.Point?o.point(t):o.bounds(t),t instanceof o.Bounds?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=o.bounds(t);var e=this.min,i=this.max,n=t.min,s=t.max,a=s.x>=e.x&&n.x<=i.x,r=s.y>=e.y&&n.y<=i.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},o.bounds=function(t,e){return!t||t instanceof o.Bounds?t:new o.Bounds(t,e)},o.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},o.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new o.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},o.DomUtil={get:function(t){return"string"==typeof t?e.getElementById(t):t},getStyle:function(t,i){var n=t.style[i];if(!n&&t.currentStyle&&(n=t.currentStyle[i]),(!n||"auto"===n)&&e.defaultView){var o=e.defaultView.getComputedStyle(t,null);n=o?o[i]:null}return"auto"===n?null:n},getViewportOffset:function(t){var i,n=0,s=0,a=t,r=e.body,h=e.documentElement;do{if(n+=a.offsetTop||0,s+=a.offsetLeft||0,n+=parseInt(o.DomUtil.getStyle(a,"borderTopWidth"),10)||0,s+=parseInt(o.DomUtil.getStyle(a,"borderLeftWidth"),10)||0,i=o.DomUtil.getStyle(a,"position"),a.offsetParent===r&&"absolute"===i)break;if("fixed"===i){n+=r.scrollTop||h.scrollTop||0,s+=r.scrollLeft||h.scrollLeft||0;break}if("relative"===i&&!a.offsetLeft){var l=o.DomUtil.getStyle(a,"width"),u=o.DomUtil.getStyle(a,"max-width"),c=a.getBoundingClientRect();("none"!==l||"none"!==u)&&(s+=c.left+a.clientLeft),n+=c.top+(r.scrollTop||h.scrollTop||0);break}a=a.offsetParent}while(a);a=t;do{if(a===r)break;n-=a.scrollTop||0,s-=a.scrollLeft||0,a=a.parentNode}while(a);return new o.Point(s,n)},documentIsLtr:function(){return o.DomUtil._docIsLtrCached||(o.DomUtil._docIsLtrCached=!0,o.DomUtil._docIsLtr="ltr"===o.DomUtil.getStyle(e.body,"direction")),o.DomUtil._docIsLtr},create:function(t,i,n){var o=e.createElement(t);return o.className=i,n&&n.appendChild(o),o},hasClass:function(t,e){return t.className.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},addClass:function(t,e){o.DomUtil.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},removeClass:function(t,e){t.className=o.Util.trim((" "+t.className+" ").replace(" "+e+" "," "))},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}},testProp:function(t){for(var i=e.documentElement.style,n=0;ni||i===e?e:t),new o.LatLng(this.lat,i)}},o.latLng=function(t,e){return t instanceof o.LatLng?t:o.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new o.LatLng(t[0],t[1]):null:t===i||null===t?t:"object"==typeof t&&"lat"in t?new o.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===i?null:new o.LatLng(t,e)},o.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=o.latLng(t);return t=null!==e?e:o.latLngBounds(t),t instanceof o.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new o.LatLng(t.lat,t.lng),this._northEast=new o.LatLng(t.lat,t.lng)):t instanceof o.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new o.LatLngBounds(new o.LatLng(e.lat-n,e.lng-s),new o.LatLng(i.lat+n,i.lng+s))},getCenter:function(){return new o.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new o.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new o.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof o.LatLng?o.latLng(t):o.latLngBounds(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof o.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=o.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),a=s.lat>=e.lat&&n.lat<=i.lat,r=s.lng>=e.lng&&n.lng<=i.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return t?(t=o.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}},o.latLngBounds=function(t,e){return!t||t instanceof o.LatLngBounds?t:new o.LatLngBounds(t,e)},o.Projection={},o.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=t.lng*e,a=n*e;return a=Math.log(Math.tan(Math.PI/4+a/2)),new o.Point(s,a)},unproject:function(t){var e=o.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new o.LatLng(n,i)}},o.Projection.LonLat={project:function(t){return new o.Point(t.lng,t.lat)},unproject:function(t){return new o.LatLng(t.y,t.x)}},o.CRS={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)}},o.CRS.Simple=o.extend({},o.CRS,{projection:o.Projection.LonLat,transformation:new o.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),o.CRS.EPSG3857=o.extend({},o.CRS,{code:"EPSG:3857",projection:o.Projection.SphericalMercator,transformation:new o.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){var e=this.projection.project(t),i=6378137;return e.multiplyBy(i)}}),o.CRS.EPSG900913=o.extend({},o.CRS.EPSG3857,{code:"EPSG:900913"}),o.CRS.EPSG4326=o.extend({},o.CRS,{code:"EPSG:4326",projection:o.Projection.LonLat,transformation:new o.Transformation(1/360,.5,-1/360,.5)}),o.Map=o.Class.extend({includes:o.Mixin.Events,options:{crs:o.CRS.EPSG3857,fadeAnimation:o.DomUtil.TRANSITION&&!o.Browser.android23,trackResize:!0,markerZoomAnimation:o.DomUtil.TRANSITION&&o.Browser.any3d},initialize:function(t,e){e=o.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=o.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==i&&this.setView(o.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===i?this.getZoom():e,this._resetView(o.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),a=t instanceof o.Point?t:this.latLngToContainerPoint(t),r=a.subtract(s).multiplyBy(1-1/n),h=this.containerPointToLatLng(s.add(r));return this.setView(h,e,{zoom:i})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():o.latLngBounds(t);var i=o.point(e.paddingTopLeft||e.padding||[0,0]),n=o.point(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n)),a=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),s),h=this.project(t.getNorthEast(),s),l=this.unproject(r.add(h).divideBy(2).add(a),s);return s=e&&e.maxZoom?Math.min(e.maxZoom,s):s,this.setView(l,s,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t){return this.fire("movestart"),this._rawPanBy(o.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t,e){if(t=o.latLngBounds(t),this.options.maxBounds=t,!t)return this._boundsMinZoom=null,this.off("moveend",this._panInsideMaxBounds,this),this;var i=this.getBoundsZoom(t,!0);return this._boundsMinZoom=i,this._loaded&&(this._zooma.x&&(r=Math.floor(a.x-n.x)),i.y>s.y&&(h=Math.floor(s.y-i.y)),i.x=s);return u&&e?null:e?s:s-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new o.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new o.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===i?this._zoom:e,this.options.crs.latLngToPoint(o.latLng(t),e)},unproject:function(t,e){return e=e===i?this._zoom:e,this.options.crs.pointToLatLng(o.point(t),e)},layerPointToLatLng:function(t){var e=o.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(o.latLng(t))._round();return e._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return o.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return o.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(o.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(o.latLng(t)))},mouseEventToContainerPoint:function(t){return o.DomEvent.getMousePosition(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=o.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;o.DomUtil.addClass(t,"leaflet-container"+(o.Browser.touch?" leaflet-touch":"")+(o.Browser.retina?" leaflet-retina":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=o.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(o.DomUtil.addClass(t.markerPane,e),o.DomUtil.addClass(t.shadowPane,e),o.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return o.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){t=t?o.Util.isArray(t)?t:[t]:[];for(var e=0,i=t.length;i>e;e++)this.addLayer(t[e])},_resetView:function(t,e,i,n){var s=this._zoom!==e;n||(this.fire("movestart"),s&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):o.DomUtil.setPosition(this._mapPane,new o.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var a=!this._loaded;this._loaded=!0,a&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("viewreset",{hard:!i}),this.fire("move"),(s||n)&&this.fire("zoomend"),this.fire("moveend",{hard:!i})},_rawPanBy:function(t){o.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,o=this._getZoomSpan();for(t in this._zoomBoundLayers){var s=this._zoomBoundLayers[t];isNaN(s.options.minZoom)||(e=Math.min(e,s.options.minZoom)),isNaN(s.options.maxZoom)||(n=Math.max(n,s.options.maxZoom))}t===i?this._layersMaxZoom=this._layersMinZoom=i:(this._layersMaxZoom=n,this._layersMinZoom=e),o!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){if(o.DomEvent){e=e||"on",o.DomEvent[e](this._container,"click",this._onMouseClick,this);var i,n,s=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(i=0,n=s.length;n>i;i++)o.DomEvent[e](this._container,s[i],this._fireMouseEvent,this);this.options.trackResize&&o.DomEvent[e](t,"resize",this._onResize,this)}},_onResize:function(){o.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=o.Util.requestAnimFrame(this.invalidateSize,this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||o.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!o.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&o.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),s=this.layerPointToLatLng(n);this.fire(e,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var t=0,e=this._handlers.length;e>t;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return o.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewTopLeftPoint(i,e).add(this._getMapPanePos());return this.project(t,e)._subtract(n)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom();return Math.max(e,Math.min(i,t))}}),o.map=function(t,e){return new o.Map(t,e)},o.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=this.R_MAJOR,a=this.R_MINOR,r=t.lng*e*s,h=n*e,l=a/s,u=Math.sqrt(1-l*l),c=u*Math.sin(h);c=Math.pow((1-c)/(1+c),.5*u);var p=Math.tan(.5*(.5*Math.PI-h))/c;return h=-s*Math.log(p),new o.Point(r,h)},unproject:function(t){for(var e,i=o.LatLng.RAD_TO_DEG,n=this.R_MAJOR,s=this.R_MINOR,a=t.x*i/n,r=s/n,h=Math.sqrt(1-r*r),l=Math.exp(-t.y/n),u=Math.PI/2-2*Math.atan(l),c=15,p=1e-7,d=c,_=.1;Math.abs(_)>p&&--d>0;)e=h*Math.sin(u),_=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*h))-u,u+=_;return new o.LatLng(u*i,a)}},o.CRS.EPSG3395=o.extend({},o.CRS,{code:"EPSG:3395",projection:o.Projection.Mercator,transformation:function(){var t=o.Projection.Mercator,e=t.R_MAJOR,i=.5/(Math.PI*e);return new o.Transformation(i,.5,-i,.5)}()}),o.TileLayer=o.Class.extend({includes:o.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:o.Browser.mobile,updateWhenIdle:o.Browser.mobile},initialize:function(t,e){e=o.setOptions(this,e),e.detectRetina&&o.Browser.retina&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,e.minZoom>0&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=o.latLngBounds(e.bounds)),this._url=t; +var i=this.options.subdomains;"string"==typeof i&&(this.options.subdomains=i.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=o.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==i&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var i,n,o,s=t.children,a=-e(1/0,-1/0);for(n=0,o=s.length;o>n;n++)s[n]!==this._container&&(i=parseInt(s[n].style.zIndex,10),isNaN(i)||(a=e(a,i)));this.options.zIndex=this._container.style.zIndex=(isFinite(a)?a:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(o.Browser.ielt9)for(t in e)o.DomUtil.setOpacity(e[t],this.options.opacity);else o.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=o.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=o.DomUtil.create("div",e,this._container),this._tileContainer=o.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom(),i=this.options.maxNativeZoom,n=this.options.tileSize;return i&&e>i&&(n=Math.round(t.getZoomScale(e)/t.getZoomScale(i)*n)),n},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),i=t.getZoom(),n=this._getTileSize();if(!(i>this.options.maxZoom||in;n++)this._addTile(a[n],l);this._tileContainer.appendChild(l)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var i=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=i)||t.y<0||t.y>=i)return!1}if(e.bounds){var n=e.tileSize,o=t.multiplyBy(n),s=o.add([n,n]),a=this._map.unproject(o),r=this._map.unproject(s);if(e.continuousWorld||e.noWrap||(a=a.wrap(),r=r.wrap()),!e.bounds.intersects([a,r]))return!1}return!0},_removeOtherTiles:function(t){var e,i,n,o;for(o in this._tiles)e=o.split(":"),i=parseInt(e[0],10),n=parseInt(e[1],10),(it.max.x||nt.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(o.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),o.Browser.android||(e.onload=null,e.src=o.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var i=this._getTilePos(t),n=this._getTile();o.DomUtil.setPosition(n,i,o.Browser.chrome||o.Browser.android23),this._tiles[t.x+":"+t.y]=n,this._loadTile(n,t),n.parentNode!==this._tileContainer&&e.appendChild(n)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),i=this._getTileSize();return t.multiplyBy(i).subtract(e)},getTileUrl:function(t){return o.Util.template(this._url,o.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){return Math.pow(2,this._getZoomForUrl())},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e+e)%e),this.options.tms&&(t.y=e-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=o.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=o.Util.falseFn,o.Browser.ielt9&&this.options.opacity!==i&&o.DomUtil.setOpacity(t,this.options.opacity),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&o.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(o.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==o.Util.emptyImageUrl&&(o.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),o.tileLayer=function(t,e){return new o.TileLayer(t,e)},o.TileLayer.WMS=o.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var i=o.extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;i.width=i.height=e.detectRetina&&o.Browser.retina?2*n:n;for(var s in e)this.options.hasOwnProperty(s)||"crs"===s||(i[s]=e[s]);this.wmsParams=i,o.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,o.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),s=n.add([i,i]),a=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(s,t.z)),h=this._wmsVersion>=1.3&&this._crs===o.CRS.EPSG4326?[r.y,a.x,a.y,r.x].join(","):[a.x,r.y,r.x,a.y].join(","),l=o.Util.template(this._url,{s:this._getSubdomain(t)});return l+o.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+h},setParams:function(t,e){return o.extend(this.wmsParams,t),e||this.redraw(),this}}),o.tileLayer.wms=function(t,e){return new o.TileLayer.WMS(t,e)},o.TileLayer.Canvas=o.TileLayer.extend({options:{async:!1},initialize:function(t){o.setOptions(this,t)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var t in this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=o.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=o.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),o.tileLayer.canvas=function(t){return new o.TileLayer.Canvas(t)},o.ImageOverlay=o.Class.extend({includes:o.Mixin.Events,options:{opacity:1},initialize:function(t,e,i){this._url=t,this._bounds=o.latLngBounds(e),o.setOptions(this,i)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&o.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=o.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&o.Browser.any3d?o.DomUtil.addClass(this._image,"leaflet-zoom-animated"):o.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),o.extend(this._image,{galleryimg:"no",onselectstart:o.Util.falseFn,onmousemove:o.Util.falseFn,onload:o.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),s=this._bounds.getNorthWest(),a=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(s,t.zoom,t.center),h=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(r),l=r._add(h._multiplyBy(.5*(1-1/n)));i.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(l)+" scale("+n+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);o.DomUtil.setPosition(t,e),t.style.width=i.x+"px",t.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){o.DomUtil.setOpacity(this._image,this.options.opacity)}}),o.imageOverlay=function(t,e,i){return new o.ImageOverlay(t,e,i)},o.Icon=o.Class.extend({options:{className:""},initialize:function(t){o.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n;return n=e&&"IMG"===e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i,n=this.options,s=o.point(n[e+"Size"]);i="shadow"===e?o.point(n.shadowAnchor||n.iconAnchor):o.point(n.iconAnchor),!i&&s&&(i=s.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+n.className,i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,i){return o.Browser.ie6?(i||(i=e.createElement("div")),i.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+t+'")'):(i||(i=e.createElement("img")),i.src=t),i},_getIconUrl:function(t){return o.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),o.icon=function(t){return new o.Icon(t)},o.Icon.Default=o.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];o.Browser.retina&&"icon"===t&&(t+="-2x");var i=o.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i+"/marker-"+t+".png"}}),o.Icon.Default.imagePath=function(){var t,i,n,o,s,a=e.getElementsByTagName("script"),r=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,i=a.length;i>t;t++)if(n=a[t].src,o=n.match(r))return s=n.split(r)[0],(s?s+"/":"")+"images"}(),o.Marker=o.Class.extend({includes:o.Mixin.Events,options:{icon:new o.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){o.setOptions(this,e),this._latlng=o.latLng(t)},onAdd:function(t){this._map=t,t.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=o.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e=this._map,i=e.options.zoomAnimation&&e.options.markerZoomAnimation,n=i?"leaflet-zoom-animated":"leaflet-zoom-hide",s=t.icon.createIcon(this._icon),a=!1;s!==this._icon&&(this._icon&&this._removeIcon(),a=!0,t.title&&(s.title=t.title),t.alt&&(s.alt=t.alt)),o.DomUtil.addClass(s,n),t.keyboard&&(s.tabIndex="0"),this._icon=s,this._initInteraction(),t.riseOnHover&&o.DomEvent.on(s,"mouseover",this._bringToFront,this).on(s,"mouseout",this._resetZIndex,this);var r=t.icon.createShadow(this._shadow),h=!1;r!==this._shadow&&(this._removeShadow(),h=!0),r&&o.DomUtil.addClass(r,n),this._shadow=r,t.opacity<1&&this._updateOpacity();var l=this._map._panes;a&&l.markerPane.appendChild(this._icon),r&&h&&l.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&o.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){o.DomUtil.setPosition(this._icon,t),this._shadow&&o.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];o.DomUtil.addClass(t,"leaflet-clickable"),o.DomEvent.on(t,"click",this._onMouseClick,this),o.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;is?(e.height=s+"px",o.DomUtil.addClass(t,a)):o.DomUtil.removeClass(t,a),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=o.point(this.options.offset);e&&o.DomUtil.setPosition(this._container,t),this._containerBottom=-i.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+i.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);o.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new o.Point(this._containerLeft,-e-this._containerBottom);this._animated&&n._add(o.DomUtil.getPosition(this._container));var s=t.layerPointToContainerPoint(n),a=o.point(this.options.autoPanPadding),r=o.point(this.options.autoPanPaddingTopLeft||a),h=o.point(this.options.autoPanPaddingBottomRight||a),l=t.getSize(),u=0,c=0;s.x+i+h.x>l.x&&(u=s.x+i-l.x+h.x),s.x-u-r.x<0&&(u=s.x-r.x),s.y+e+h.y>l.y&&(c=s.y+e-l.y+h.y),s.y-c-r.y<0&&(c=s.y-r.y),(u||c)&&t.fire("autopanstart").panBy([u,c])}},_onCloseButtonClick:function(t){this._close(),o.DomEvent.stop(t)}}),o.popup=function(t,e){return new o.Popup(t,e)},o.Map.include({openPopup:function(t,e,i){if(this.closePopup(),!(t instanceof o.Popup)){var n=t;t=new o.Popup(i).setLatLng(e).setContent(n)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),o.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var i=o.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(o.Popup.prototype.options.offset),e&&e.offset&&(i=i.add(e.offset)),e=o.extend({offset:i},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof o.Popup?(o.setOptions(t,e),this._popup=t):this._popup=new o.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),o.LayerGroup=o.Class.extend({initialize:function(t){this._layers={};var e,i;if(t)for(e=0,i=t.length;i>e;e++)this.addLayer(t[e])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return t?t in this._layers||this.getLayerId(t)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)i=this._layers[e],i[t]&&i[t].apply(i,n);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o.stamp(t)}}),o.layerGroup=function(t){return new o.LayerGroup(t)},o.FeatureGroup=o.LayerGroup.extend({includes:o.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.off(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new o.LatLngBounds;return this.eachLayer(function(e){t.extend(e instanceof o.Marker?e.getLatLng():e.getBounds())}),t},_propagateEvent:function(t){t.layer||(t.layer=t.target),t.target=this,this.fire(t.type,t)}}),o.featureGroup=function(t){return new o.FeatureGroup(t)},o.Path=o.Class.extend({includes:[o.Mixin.Events],statics:{CLIP_PADDING:function(){var e=o.Browser.mobile?1280:2e3,i=(e/Math.max(t.outerWidth,t.outerHeight)-1)/2;return Math.max(0,Math.min(.5,i))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){o.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,o.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return o.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),o.Map.include({_updatePathViewport:function(){var t=o.Path.CLIP_PADDING,e=this.getSize(),i=o.DomUtil.getPosition(this._mapPane),n=i.multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),s=n.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new o.Bounds(n,s)}}),o.Path.SVG_NS="http://www.w3.org/2000/svg",o.Browser.svg=!(!e.createElementNS||!e.createElementNS(o.Path.SVG_NS,"svg").createSVGRect),o.Path=o.Path.extend({statics:{SVG:o.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,i=t.firstChild;return e&&i!==e&&t.insertBefore(e,i),this},getPathString:function(){},_createElement:function(t){return e.createElementNS(o.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t||(t="M0 0"),this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){(o.Browser.svg||!o.Browser.vml)&&this._path.setAttribute("class","leaflet-clickable"),o.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(n){return!1}}(),o.Path=o.Browser.svg||!o.Browser.vml?o.Path:o.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return e.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return e.createElement("')}}catch(t){return function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");o.DomUtil.addClass(t,"leaflet-vml-shape"),this.options.clickable&&o.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,i=this.options,n=this._container;n.stroked=i.stroke,n.filled=i.fill,i.stroke?(t||(t=this._stroke=this._createElement("stroke"),t.endcap="round",n.appendChild(t)),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,t.dashStyle=i.dashArray?o.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):"",i.lineCap&&(t.endcap=i.lineCap.replace("butt","flat")),i.lineJoin&&(t.joinstyle=i.lineJoin)):t&&(n.removeChild(t),this._stroke=null),i.fill?(e||(e=this._fill=this._createElement("fill"),n.appendChild(e)),e.color=i.fillColor||i.color,e.opacity=i.fillOpacity):e&&(n.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),o.Map.include(o.Browser.svg||!o.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=e.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),o.Browser.canvas=function(){return!!e.createElement("canvas").getContext}(),o.Path=o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?o.Path:o.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return o.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this._map=null},_requestUpdate:function(){this._map&&!o.Path._updateRequest&&(o.Path._updateRequest=o.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){o.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color)},_drawPath:function(){var t,e,i,n,s,a;for(this._ctx.beginPath(),t=0,i=this._parts.length;i>t;t++){for(e=0,n=this._parts[t].length;n>e;e++)s=this._parts[t][e],a=(0===e?"move":"line")+"To",this._ctx[a](s.x,s.y);this instanceof o.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill()),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onClick,this))},_onClick:function(t){this._containsPoint(t.layerPoint)&&this.fire("click",t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),o.Map.include(o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?{}:{_initPathRoot:function(){var t,i=this._pathRoot;i||(i=this._pathRoot=e.createElement("canvas"),i.style.position="absolute",t=this._canvasCtx=i.getContext("2d"),t.lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(i),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max.subtract(e),n=this._pathRoot;o.DomUtil.setPosition(n,e),n.width=i.x,n.height=i.y,n.getContext("2d").translate(-e.x,-e.y)}}}),o.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=this._reducePoints(t,i),t=this._simplifyDP(t,i)},pointToSegmentDistance:function(t,e,i){return Math.sqrt(this._sqClosestPointOnSegment(t,e,i,!0))},closestPointOnSegment:function(t,e,i){return this._sqClosestPointOnSegment(t,e,i)},_simplifyDP:function(t,e){var n=t.length,o=typeof Uint8Array!=i+""?Uint8Array:Array,s=new o(n);s[0]=s[n-1]=1,this._simplifyDPStep(t,s,e,0,n-1);var a,r=[];for(a=0;n>a;a++)s[a]&&r.push(t[a]);return r},_simplifyDPStep:function(t,e,i,n,o){var s,a,r,h=0;for(a=n+1;o-1>=a;a++)r=this._sqClosestPointOnSegment(t[a],t[n],t[o],!0),r>h&&(s=a,h=r);h>i&&(e[s]=1,this._simplifyDPStep(t,e,i,n,s),this._simplifyDPStep(t,e,i,s,o))},_reducePoints:function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;s>n;n++)this._sqDist(t[n],t[o])>e&&(i.push(t[n]),o=n);return s-1>o&&i.push(t[s-1]),i},clipSegment:function(t,e,i,n){var o,s,a,r=n?this._lastCode:this._getBitCode(t,i),h=this._getBitCode(e,i);for(this._lastCode=h;;){if(!(r|h))return[t,e];if(r&h)return!1;o=r||h,s=this._getEdgeIntersection(t,e,o,i),a=this._getBitCode(s,i),o===r?(t=s,r=a):(e=s,h=a)}},_getEdgeIntersection:function(t,e,i,n){var s=e.x-t.x,a=e.y-t.y,r=n.min,h=n.max;return 8&i?new o.Point(t.x+s*(h.y-t.y)/a,h.y):4&i?new o.Point(t.x+s*(r.y-t.y)/a,r.y):2&i?new o.Point(h.x,t.y+a*(h.x-t.x)/s):1&i?new o.Point(r.x,t.y+a*(r.x-t.x)/s):void 0},_getBitCode:function(t,e){var i=0;return t.xe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n},_sqClosestPointOnSegment:function(t,e,i,n){var s,a=e.x,r=e.y,h=i.x-a,l=i.y-r,u=h*h+l*l;return u>0&&(s=((t.x-a)*h+(t.y-r)*l)/u,s>1?(a=i.x,r=i.y):s>0&&(a+=h*s,r+=l*s)),h=t.x-a,l=t.y-r,n?h*h+l*l:new o.Point(a,r)}},o.Polyline=o.Path.extend({initialize:function(t,e){o.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;e>t;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,i="";e>t;t++)i+=this._getPathPartStr(this._parts[t]);return i},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(o.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,i,n=1/0,s=this._parts,a=null,r=0,h=s.length;h>r;r++)for(var l=s[r],u=1,c=l.length;c>u;u++){e=l[u-1],i=l[u];var p=o.LineUtil._sqClosestPointOnSegment(t,e,i,!0);n>p&&(n=p,a=o.LineUtil._sqClosestPointOnSegment(t,e,i))}return a&&(a.distance=Math.sqrt(n)),a},getBounds:function(){return new o.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var i,n,s=e?t:[];for(i=0,n=t.length;n>i;i++){if(o.Util.isArray(t[i])&&"number"!=typeof t[i][0])return;s[i]=o.latLng(t[i])}return s},_initEvents:function(){o.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,i=o.Path.VML,n=0,s=t.length,a="";s>n;n++)e=t[n],i&&e._round(),a+=(n?"L":"M")+e.x+" "+e.y;return a},_clipPoints:function(){var t,e,i,n=this._originalPoints,s=n.length;if(this.options.noClip)return this._parts=[n],void 0;this._parts=[];var a=this._parts,r=this._map._pathViewport,h=o.LineUtil;for(t=0,e=0;s-1>t;t++)i=h.clipSegment(n[t],n[t+1],r,t),i&&(a[e]=a[e]||[],a[e].push(i[0]),(i[1]!==n[t+1]||t===s-2)&&(a[e].push(i[1]),e++))},_simplifyPoints:function(){for(var t=this._parts,e=o.LineUtil,i=0,n=t.length;n>i;i++)t[i]=e.simplify(t[i],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),o.Path.prototype._updatePath.call(this))}}),o.polyline=function(t,e){return new o.Polyline(t,e)},o.PolyUtil={},o.PolyUtil.clipPolygon=function(t,e){var i,n,s,a,r,h,l,u,c,p=[1,4,2,8],d=o.LineUtil;for(n=0,l=t.length;l>n;n++)t[n]._code=d._getBitCode(t[n],e);for(a=0;4>a;a++){for(u=p[a],i=[],n=0,l=t.length,s=l-1;l>n;s=n++)r=t[n],h=t[s],r._code&u?h._code&u||(c=d._getEdgeIntersection(h,r,u,e),c._code=d._getBitCode(c,e),i.push(c)):(h._code&u&&(c=d._getEdgeIntersection(h,r,u,e),c._code=d._getBitCode(c,e),i.push(c)),i.push(r));t=i}return t},o.Polygon=o.Polyline.extend({options:{fill:!0},initialize:function(t,e){o.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,i,n;if(t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,i=this._holes.length;i>e;e++)n=this._holes[e]=this._convertLatLngs(this._holes[e]),n[0].equals(n[n.length-1])&&n.pop();t=this._latlngs,t.length>=2&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){if(o.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var t,e,i,n;for(t=0,i=this._holes.length;i>t;t++)for(this._holePoints[t]=[],e=0,n=this._holes[t].length;n>e;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])}},setLatLngs:function(t){return t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):o.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var i=0,n=this._parts.length;n>i;i++){var s=o.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);s.length&&e.push(s)}this._parts=e}},_getPathPartStr:function(t){var e=o.Polyline.prototype._getPathPartStr.call(this,t);return e+(o.Browser.svg?"z":"x")}}),o.polygon=function(t,e){return new o.Polygon(t,e)},function(){function t(t){return o.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var i=0,n=e.length;for(this.eachLayer(function(t){n>i?t.setLatLngs(e[i++]):this.removeLayer(t)},this);n>i;)this.addLayer(new t(e[i++],this._options));return this},getLatLngs:function(){var t=[];return this.eachLayer(function(e){t.push(e.getLatLngs())}),t}})}o.MultiPolyline=t(o.Polyline),o.MultiPolygon=t(o.Polygon),o.multiPolyline=function(t,e){return new o.MultiPolyline(t,e)},o.multiPolygon=function(t,e){return new o.MultiPolygon(t,e)}}(),o.Rectangle=o.Polygon.extend({initialize:function(t,e){o.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=o.latLngBounds(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),o.rectangle=function(t,e){return new o.Rectangle(t,e)},o.Circle=o.Path.extend({initialize:function(t,e,i){o.Path.prototype.initialize.call(this,i),this._latlng=o.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=o.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,i=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-i.x,1)},getBounds:function(){var t=this._getLngRadius(),e=360*(this._mRadius/40075017),i=this._latlng;return new o.LatLngBounds([i.lat-e,i.lng-t],[i.lat+e,i.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":o.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,"+23592600)},getRadius:function(){return this._mRadius},_getLatRadius:function(){return 360*(this._mRadius/40075017)},_getLngRadius:function(){return this._getLatRadius()/Math.cos(o.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,i=this._point;return i.x-e>t.max.x||i.y-e>t.max.y||i.x+ei;i++)for(l=this._parts[i],n=0,r=l.length,s=r-1;r>n;s=n++)if((e||0!==n)&&(h=o.LineUtil.pointToSegmentDistance(t,l[s],l[n]),u>=h))return!0;return!1}}:{}),o.Polygon.include(o.Path.CANVAS?{_containsPoint:function(t){var e,i,n,s,a,r,h,l,u=!1;if(o.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(s=0,h=this._parts.length;h>s;s++)for(e=this._parts[s],a=0,l=e.length,r=l-1;l>a;r=a++)i=e[a],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u}}:{}),o.Circle.include(o.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,i=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+i}}:{}),o.CircleMarker.include(o.Path.CANVAS?{_updateStyle:function(){o.Path.prototype._updateStyle.call(this)}}:{}),o.GeoJSON=o.FeatureGroup.extend({initialize:function(t,e){o.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=o.Util.isArray(t)?t:t.features;if(s){for(e=0,i=s.length;i>e;e++)n=s[e],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(s[e]);return this}var a=this.options;if(!a.filter||a.filter(t)){var r=o.GeoJSON.geometryToLayer(t,a.pointToLayer,a.coordsToLatLng,a);return r.feature=o.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(o.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(t){this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),o.extend(o.GeoJSON,{geometryToLayer:function(t,e,i,n){var s,a,r,h,l="Feature"===t.type?t.geometry:t,u=l.coordinates,c=[];switch(i=i||this.coordsToLatLng,l.type){case"Point":return s=i(u),e?e(t,s):new o.Marker(s);case"MultiPoint":for(r=0,h=u.length;h>r;r++)s=i(u[r]),c.push(e?e(t,s):new o.Marker(s));return new o.FeatureGroup(c);case"LineString":return a=this.coordsToLatLngs(u,0,i),new o.Polyline(a,n);case"Polygon":if(2===u.length&&!u[1].length)throw new Error("Invalid GeoJSON object.");return a=this.coordsToLatLngs(u,1,i),new o.Polygon(a,n);case"MultiLineString":return a=this.coordsToLatLngs(u,1,i),new o.MultiPolyline(a,n);case"MultiPolygon":return a=this.coordsToLatLngs(u,2,i),new o.MultiPolygon(a,n);case"GeometryCollection":for(r=0,h=l.geometries.length;h>r;r++)c.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new o.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new o.LatLng(t[1],t[0])},coordsToLatLngs:function(t,e,i){var n,o,s,a=[];for(o=0,s=t.length;s>o;o++)n=e?this.coordsToLatLngs(t[o],e-1,i):(i||this.coordsToLatLng)(t[o]),a.push(n);return a},latLngToCoords:function(t){return[t.lng,t.lat]},latLngsToCoords:function(t){for(var e=[],i=0,n=t.length;n>i;i++)e.push(o.GeoJSON.latLngToCoords(t[i]));return e},getFeature:function(t,e){return t.feature?o.extend({},t.feature,{geometry:e}):o.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var a={toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"Point",coordinates:o.GeoJSON.latLngToCoords(this.getLatLng())})}};o.Marker.include(a),o.Circle.include(a),o.CircleMarker.include(a),o.Polyline.include({toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"LineString",coordinates:o.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),o.Polygon.include({toGeoJSON:function(){var t,e,i,n=[o.GeoJSON.latLngsToCoords(this.getLatLngs())];if(n[0].push(n[0][0]),this._holes)for(t=0,e=this._holes.length;e>t;t++)i=o.GeoJSON.latLngsToCoords(this._holes[t]),i.push(i[0]),n.push(i);return o.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n})}}),function(){function t(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),o.GeoJSON.getFeature(this,{type:t,coordinates:e})}}o.MultiPolyline.include({toGeoJSON:t("MultiLineString")}),o.MultiPolygon.include({toGeoJSON:t("MultiPolygon")}),o.LayerGroup.include({toGeoJSON:function(){var e,i=this.feature&&this.feature.geometry,n=[];if(i&&"MultiPoint"===i.type)return t("MultiPoint").call(this);var s=i&&"GeometryCollection"===i.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(s?e.geometry:o.GeoJSON.asFeature(e)))}),s?o.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}})}(),o.geoJson=function(t,e){return new o.GeoJSON(t,e)},o.DomEvent={addListener:function(t,e,i,n){var s,a,r,h=o.stamp(i),l="_leaflet_"+e+h;return t[l]?this:(s=function(e){return i.call(n||t,e||o.DomEvent._getEvent())},o.Browser.pointer&&0===e.indexOf("touch")?this.addPointerListener(t,e,s,h):(o.Browser.touch&&"dblclick"===e&&this.addDoubleTapListener&&this.addDoubleTapListener(t,s,h),"addEventListener"in t?"mousewheel"===e?(t.addEventListener("DOMMouseScroll",s,!1),t.addEventListener(e,s,!1)):"mouseenter"===e||"mouseleave"===e?(a=s,r="mouseenter"===e?"mouseover":"mouseout",s=function(e){return o.DomEvent._checkMouse(t,e)?a(e):void 0},t.addEventListener(r,s,!1)):"click"===e&&o.Browser.android?(a=s,s=function(t){return o.DomEvent._filterClick(t,a)},t.addEventListener(e,s,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,s),t[l]=s,this))},removeListener:function(t,e,i){var n=o.stamp(i),s="_leaflet_"+e+n,a=t[s];return a?(o.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,n):o.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",a,!1),t.removeEventListener(e,a,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1):t.removeEventListener(e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[s]=null,this):this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,o.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=o.DomEvent.stopPropagation;return o.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=o.DomEvent.stopPropagation,i=o.Draggable.START.length-1;i>=0;i--)o.DomEvent.on(t,o.Draggable.START[i],e);return o.DomEvent.on(t,"click",o.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return o.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,i){var n=e.body,s=e.documentElement,a=o.DomUtil.documentIsLtr()?t.pageX?t.pageX-n.scrollLeft-s.scrollLeft:t.clientX:o.Browser.gecko?t.pageX-n.scrollLeft-s.scrollLeft:t.pageX?t.pageX-n.scrollLeft+s.scrollLeft:t.clientX,r=t.pageY?t.pageY-n.scrollTop-s.scrollTop:t.clientY,h=new o.Point(a,r);if(!i)return h;var l=i.getBoundingClientRect(),u=l.left-i.clientLeft,c=l.top-i.clientTop;return h._subtract(new o.Point(u,c))},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){o.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(n){return!1}return i!==t},_getEvent:function(){var e=t.event;if(!e)for(var i=arguments.callee.caller;i&&(e=i.arguments[0],!e||t.Event!==e.constructor);)i=i.caller;return e},_filterClick:function(t,e){var i=t.timeStamp||t.originalEvent.timeStamp,n=o.DomEvent._lastClick&&i-o.DomEvent._lastClick;return n&&n>100&&1e3>n||t.target._simulatedClick&&!t._simulated?(o.DomEvent.stop(t),void 0):(o.DomEvent._lastClick=i,e(t))}},o.DomEvent.on=o.DomEvent.addListener,o.DomEvent.off=o.DomEvent.removeListener,o.Draggable=o.Class.extend({includes:o.Mixin.Events,statics:{START:o.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.on(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.off(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!(t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(o.DomEvent.stopPropagation(t),o.Draggable._disabled||(o.DomUtil.disableImageDrag(),o.DomUtil.disableTextSelection(),this._moving)))){var i=t.touches?t.touches[0]:t;this._startPoint=new o.Point(i.clientX,i.clientY),this._startPos=this._newPos=o.DomUtil.getPosition(this._element),o.DomEvent.on(e,o.Draggable.MOVE[t.type],this._onMove,this).on(e,o.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&t.touches.length>1)return this._moved=!0,void 0;var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new o.Point(i.clientX,i.clientY),s=n.subtract(this._startPoint);(s.x||s.y)&&(o.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=o.DomUtil.getPosition(this._element).subtract(s),o.Browser.touch||o.DomUtil.addClass(e.body,"leaflet-dragging")),this._newPos=this._startPos.add(s),this._moving=!0,o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget))},_updatePosition:function(){this.fire("predrag"),o.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){o.Browser.touch||o.DomUtil.removeClass(e.body,"leaflet-dragging");for(var t in o.Draggable.MOVE)o.DomEvent.off(e,o.Draggable.MOVE[t],this._onMove).off(e,o.Draggable.END[t],this._onUp);o.DomUtil.enableImageDrag(),o.DomUtil.enableTextSelection(),this._moved&&(o.Util.cancelAnimFrame(this._animRequest),this.fire("dragend")),this._moving=!1}}),o.Handler=o.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),o.Map.mergeOptions({dragging:!0,inertia:!o.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:o.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),o.Map.Drag=o.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new o.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),t-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,a=Math.abs(o+i)e.inertiaThreshold||!this._positions[0];if(t.fire("dragend"),n)t.fire("moveend");else{var s=this._lastPos.subtract(this._positions[0]),a=(this._lastTime+i-this._times[0])/1e3,r=e.easeLinearity,h=s.multiplyBy(r/a),l=h.distanceTo([0,0]),u=Math.min(e.inertiaMaxSpeed,l),c=h.multiplyBy(u/l),p=u/(e.inertiaDeceleration*r),d=c.multiplyBy(-p/2).round();d.x&&d.y?o.Util.requestAnimFrame(function(){t.panBy(d,{duration:p,easeLinearity:r,noMoveStart:!0})}):t.fire("moveend")}}}),o.Map.addInitHook("addHandler","dragging",o.Map.Drag),o.Map.mergeOptions({doubleClickZoom:!0}),o.Map.DoubleClickZoom=o.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom()+1;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}}),o.Map.addInitHook("addHandler","doubleClickZoom",o.Map.DoubleClickZoom),o.Map.mergeOptions({scrollWheelZoom:!0}),o.Map.ScrollWheelZoom=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),o.DomEvent.on(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault),this._delta=0},removeHooks:function(){o.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),o.DomEvent.off(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=o.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o.bind(this._performZoom,this),i),o.DomEvent.preventDefault(t),o.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,i=t.getZoom();e=e>0?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(i+e)-i,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(i+e):t.setZoomAround(this._lastMousePos,i+e))}}),o.Map.addInitHook("addHandler","scrollWheelZoom",o.Map.ScrollWheelZoom),o.extend(o.DomEvent,{_touchstart:o.Browser.msPointer?"MSPointerDown":o.Browser.pointer?"pointerdown":"touchstart",_touchend:o.Browser.msPointer?"MSPointerUp":o.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,i,n){function s(t){var e;if(o.Browser.pointer?(_.push(t.pointerId),e=_.length):e=t.touches.length,!(e>1)){var i=Date.now(),n=i-(r||i);h=t.touches?t.touches[0]:t,l=n>0&&u>=n,r=i}}function a(t){if(o.Browser.pointer){var e=_.indexOf(t.pointerId);if(-1===e)return;_.splice(e,1)}if(l){if(o.Browser.pointer){var n,s={};for(var a in h)n=h[a],s[a]="function"==typeof n?n.bind(h):n;h=s}h.type="dblclick",i(h),r=null}}var r,h,l=!1,u=250,c="_leaflet_",p=this._touchstart,d=this._touchend,_=[];t[c+p+n]=s,t[c+d+n]=a;var m=o.Browser.pointer?e.documentElement:t;return t.addEventListener(p,s,!1),m.addEventListener(d,a,!1),o.Browser.pointer&&m.addEventListener(o.DomEvent.POINTER_CANCEL,a,!1),this},removeDoubleTapListener:function(t,i){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n+this._touchstart+i],!1),(o.Browser.pointer?e.documentElement:t).removeEventListener(this._touchend,t[n+this._touchend+i],!1),o.Browser.pointer&&e.documentElement.removeEventListener(o.DomEvent.POINTER_CANCEL,t[n+this._touchend+i],!1),this}}),o.extend(o.DomEvent,{POINTER_DOWN:o.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:o.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:o.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:o.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,i,n){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,i,n);case"touchend":return this.addPointerListenerEnd(t,e,i,n);case"touchmove":return this.addPointerListenerMove(t,e,i,n);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,i,n,s){var a="_leaflet_",r=this._pointers,h=function(t){o.DomEvent.preventDefault(t);for(var e=!1,i=0;i1))&&(this._moved||(o.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),o.DomEvent.preventDefault(t))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getScaleZoom(this._scale);t._animateZoom(i,n,this._startCenter,this._scale,this._delta)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return this._zooming=!1,void 0;var t=this._map;this._zooming=!1,o.DomUtil.removeClass(t._mapPane,"leaflet-touching"),o.Util.cancelAnimFrame(this._animRequest),o.DomEvent.off(e,"touchmove",this._onTouchMove).off(e,"touchend",this._onTouchEnd);var i=this._getScaleOrigin(),n=t.layerPointToLatLng(i),s=t.getZoom(),a=t.getScaleZoom(this._scale)-s,r=a>0?Math.ceil(a):Math.floor(a),h=t._limitZoom(s+r),l=t.getZoomScale(h)/this._scale;t._animateZoom(n,h,i,l)},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),o.Map.addInitHook("addHandler","touchZoom",o.Map.TouchZoom),o.Map.mergeOptions({tap:!0,tapTolerance:15}),o.Map.Tap=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){o.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(o.DomEvent.preventDefault(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,clearTimeout(this._holdTimeout),void 0;var i=t.touches[0],n=i.target;this._startPos=this._newPos=new o.Point(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(o.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),o.DomEvent.on(e,"touchmove",this._onMove,this).on(e,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),o.DomEvent.off(e,"touchmove",this._onMove,this).off(e,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],n=i.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new o.Point(e.clientX,e.clientY)},_simulateEvent:function(i,n){var o=e.createEvent("MouseEvents");o._simulated=!0,n.target._simulatedClick=!0,o.initMouseEvent(i,!0,!0,t,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(o)}}),o.Browser.touch&&!o.Browser.pointer&&o.Map.addInitHook("addHandler","tap",o.Map.Tap),o.Map.mergeOptions({boxZoom:!0}),o.Map.BoxZoom=o.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){o.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){o.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){return this._moved=!1,!t.shiftKey||1!==t.which&&1!==t.button?!1:(o.DomUtil.disableTextSelection(),o.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),this._box=o.DomUtil.create("div","leaflet-zoom-box",this._pane),o.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",o.DomEvent.on(e,"mousemove",this._onMouseMove,this).on(e,"mouseup",this._onMouseUp,this).on(e,"keydown",this._onKeyDown,this),this._map.fire("boxzoomstart"),void 0)},_onMouseMove:function(t){var e=this._startLayerPoint,i=this._box,n=this._map.mouseEventToLayerPoint(t),s=n.subtract(e),a=new o.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));o.DomUtil.setPosition(i,a),this._moved=!0,i.style.width=Math.max(0,Math.abs(s.x)-4)+"px",i.style.height=Math.max(0,Math.abs(s.y)-4)+"px"},_finish:function(){this._pane.removeChild(this._box),this._container.style.cursor="",o.DomUtil.enableTextSelection(),o.DomUtil.enableImageDrag(),o.DomEvent.off(e,"mousemove",this._onMouseMove).off(e,"mouseup",this._onMouseUp).off(e,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new o.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),o.Map.addInitHook("addHandler","boxZoom",o.Map.BoxZoom),o.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),o.Map.Keyboard=o.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),o.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;o.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var i=e.body,n=e.documentElement,o=i.scrollTop||n.scrollTop,s=i.scrollLeft||n.scrollLeft;this._map._container.focus(),t.scrollTo(s,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;i>e;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;i>e;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;i>e;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;i>e;e++)n[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;i>e;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;i>e;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){o.DomEvent.on(e,"keydown",this._onKeyDown,this)},_removeHooks:function(){o.DomEvent.off(e,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,i=this._map;if(e in this._panKeys){if(i._panAnim&&i._panAnim._inProgress)return;i.panBy(this._panKeys[e]),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds)}else{if(!(e in this._zoomKeys))return;i.setZoom(i.getZoom()+this._zoomKeys[e])}o.DomEvent.stop(t)}}),o.Map.addInitHook("addHandler","keyboard",o.Map.Keyboard),o.Handler.MarkerDrag=o.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new o.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),o.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),o.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart"),o.DomUtil.addClass(this._marker._icon,"leaflet-marker-dragging")},_onDrag:function(){var t=this._marker,e=t._shadow,i=o.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e&&o.DomUtil.setPosition(e,i),t._latlng=n,t.fire("move",{latlng:n}).fire("drag")},_onDragEnd:function(){this._marker.fire("moveend").fire("dragend"),o.DomUtil.removeClass(this._marker._icon,"leaflet-marker-dragging")}}),o.Control=o.Class.extend({options:{position:"topright"},initialize:function(t){o.setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return o.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},removeFrom:function(t){var e=this.getPosition(),i=t._controlCorners[e];return i.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),o.control=function(t){return new o.Control(t)},o.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,s){var a=i+t+" "+i+s;e[t+s]=o.DomUtil.create("div",a,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=o.DomUtil.create("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),o.Control.Zoom=o.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=o.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",i,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",i,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,i,n,s,a){var r=o.DomUtil.create("a",i,n);r.innerHTML=t,r.href="#",r.title=e;var h=o.DomEvent.stopPropagation;return o.DomEvent.on(r,"click",h).on(r,"mousedown",h).on(r,"dblclick",h).on(r,"click",o.DomEvent.preventDefault).on(r,"click",s,a).on(r,"click",this._refocusOnMap,a),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";o.DomUtil.removeClass(this._zoomInButton,e),o.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&o.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&o.DomUtil.addClass(this._zoomInButton,e)}}),o.Map.mergeOptions({zoomControl:!0}),o.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new o.Control.Zoom,this.addControl(this.zoomControl))}),o.control.zoom=function(t){return new o.Control.Zoom(t)},o.Control.Attribution=o.Control.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){o.setOptions(this,t),this._attributions={}},onAdd:function(t){return this._container=o.DomUtil.create("div","leaflet-control-attribution"),o.DomEvent.disableClickPropagation(this._container),t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),o.Map.mergeOptions({attributionControl:!0}),o.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new o.Control.Attribution).addTo(this))}),o.control.attribution=function(t){return new o.Control.Attribution(t)},o.Control.Scale=o.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",i=o.DomUtil.create("div",e),n=this.options;return this._addScales(n,e,i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=o.DomUtil.create("div",e+"-line",i)),t.imperial&&(this._iScale=o.DomUtil.create("div",e+"-line",i))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,i=6378137*Math.PI*Math.cos(e*Math.PI/180),n=i*(t.getNorthEast().lng-t.getSouthWest().lng)/180,o=this._map.getSize(),s=this.options,a=0;o.x>0&&(a=n*(s.maxWidth/o.x)),this._updateScales(s,a)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=1e3>e?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,i,n,o=3.2808399*t,s=this._iScale;o>5280?(e=o/5280,i=this._getRoundNum(e),s.style.width=this._getScaleWidth(i/e)+"px",s.innerHTML=i+" mi"):(n=this._getRoundNum(o),s.style.width=this._getScaleWidth(n/o)+"px",s.innerHTML=n+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),o.control.scale=function(t){return new o.Control.Scale(t)},o.Control.Layers=o.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,i){o.setOptions(this,i),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange).off("layerremove",this._onLayerChange)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=o.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=o.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),o.Browser.touch?o.DomEvent.on(e,"click",o.DomEvent.stopPropagation):o.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form=o.DomUtil.create("form",t+"-list");if(this.options.collapsed){o.Browser.android||o.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink=o.DomUtil.create("a",t+"-toggle",e);n.href="#",n.title="Layers",o.Browser.touch?o.DomEvent.on(n,"click",o.DomEvent.stop).on(n,"click",this._expand,this):o.DomEvent.on(n,"focus",this._expand,this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=o.DomUtil.create("div",t+"-base",i),this._separator=o.DomUtil.create("div",t+"-separator",i),this._overlaysList=o.DomUtil.create("div",t+"-overlays",i),e.appendChild(i)},_addLayer:function(t,e,i){var n=o.stamp(t);this._layers[n]={layer:t,name:e,overlay:i},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,i=!1,n=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),n=n||e.overlay,i=i||!e.overlay;this._separator.style.display=n&&i?"":"none"}},_onLayerChange:function(t){var e=this._layers[o.stamp(t.layer)];if(e){this._handlingClick||this._update();var i=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)}},_createRadioElement:function(t,i){var n='t;t++)e=n[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?this._map.addLayer(i.layer):!e.checked&&this._map.hasLayer(i.layer)&&this._map.removeLayer(i.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){o.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),o.control.layers=function(t,e,i){return new o.Control.Layers(t,e,i)},o.PosAnimation=o.Class.extend({includes:o.Mixin.Events,run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[o.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(n||.5)+",1)",o.DomEvent.on(t,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),o.DomUtil.setPosition(t,e),o.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(o.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(o.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),o.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();return t?(this._el._leaflet_pos=t,this.fire("step"),void 0):(this._onTransitionEnd(),void 0)},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var e,i,n,s=this._el,a=t.getComputedStyle(s);if(o.Browser.any3d){if(n=a[o.DomUtil.TRANSFORM].match(this._transformRe),!n)return;e=parseFloat(n[1]),i=parseFloat(n[2])}else e=parseFloat(a.left),i=parseFloat(a.top);return new o.Point(e,i,!0)},_onTransitionEnd:function(){o.DomEvent.off(this._el,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[o.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),o.Map.include({setView:function(t,e,n){if(e=e===i?this._zoom:this._limitZoom(e),t=o.latLng(t),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==i&&(n.zoom=o.extend({animate:n.animate},n.zoom),n.pan=o.extend({animate:n.animate},n.pan));var s=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(s)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},panBy:function(t,e){if(t=o.point(t).round(),e=e||{},!t.x&&!t.y)return this;if(this._panAnim||(this._panAnim=new o.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){o.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){o.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return(e&&e.animate)===!0||this.getSize().contains(i)?(this.panBy(i,e),!0):!1}}),o.PosAnimation=o.DomUtil.TRANSITION?o.PosAnimation:o.PosAnimation.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=o.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=o.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;e>t?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));o.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){o.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),o.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),o.DomUtil.TRANSITION&&o.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&o.DomUtil.TRANSITION&&o.Browser.any3d&&!o.Browser.android23&&!o.Browser.mobileOpera,this._zoomAnimated&&o.DomEvent.on(this._mapPane,o.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),o.Map.include(o.DomUtil.TRANSITION?{_catchTransitionEnd:function(){this._animatingZoom&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n),s=this._getCenterLayerPoint()._add(o);return i.animate===!0||this.getSize().contains(o)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0):!1},_animateZoom:function(t,e,i,n,s,a){this._animatingZoom=!0,o.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,o.Draggable&&(o.Draggable._disabled=!0),this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:s,backwards:a})},_onZoomTransitionEnd:function(){this._animatingZoom=!1,o.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),o.Draggable&&(o.Draggable._disabled=!1)}}:{}),o.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,i=o.DomUtil.TRANSFORM,n=t.delta?o.DomUtil.getTranslateString(t.delta):e.style[i],s=o.DomUtil.getScaleString(t.scale,t.origin);e.style[i]=t.backwards?s+" "+n:n+" "+s},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),o.Util.falseFn(e.offsetWidth),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[o.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);return e&&i>.5&&.5>n?(t.style.visibility="hidden",this._stopLoadingImages(t),void 0):(e.style.visibility="hidden",e.style[o.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),clearTimeout(this._clearBgBufferTimer),void 0)},_getLoadedTilesPercentage:function(t){var e,i,n=t.getElementsByTagName("img"),o=0;for(e=0,i=n.length;i>e;e++)n[e].complete&&o++;return o/i},_stopLoadingImages:function(t){var e,i,n,s=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,i=s.length;i>e;e++)n=s[e],n.complete||(n.onload=o.Util.falseFn,n.onerror=o.Util.falseFn,n.src=o.Util.emptyImageUrl,n.parentNode.removeChild(n))}}),o.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=o.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o.bind(this._handleGeolocationResponse,this),i=o.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new o.LatLng(e,i),s=180*t.coords.accuracy/40075017,a=s/Math.cos(o.LatLng.DEG_TO_RAD*e),r=o.latLngBounds([e-s,i-a],[e+s,i+a]),h=this._locateOptions;if(h.setView){var l=Math.min(this.getBoundsZoom(r),h.maxZoom);this.setView(n,l)}var u={latlng:n,bounds:r,timestamp:t.timestamp};for(var c in t.coords)"number"==typeof t.coords[c]&&(u[c]=t.coords[c]);this.fire("locationfound",u)}})}(window,document); \ No newline at end of file diff --git a/bower_components/Leaflet.label/package.json b/bower_components/Leaflet.label/package.json new file mode 100644 index 00000000..a74c9e0d --- /dev/null +++ b/bower_components/Leaflet.label/package.json @@ -0,0 +1,19 @@ +{ + "name": "leaflet.label", + "version": "0.2.1", + "description": "Labels for leaflet maps", + "devDependencies": { + "jshint": "~2.1.4", + "uglify-js": "~2.3.6" + }, + "main": "dist/leaflet.label.js", + "scripts": { + "test": "jake test", + "prepublish": "jake" + }, + "repository": { + "type": "git", + "url": "git://github.com/Leaflet/Leaflet.label.git" + }, + "keywords": ["gis", "map"] +} diff --git a/bower_components/Leaflet.label/src/BaseMarkerMethods.js b/bower_components/Leaflet.label/src/BaseMarkerMethods.js new file mode 100644 index 00000000..6b66d355 --- /dev/null +++ b/bower_components/Leaflet.label/src/BaseMarkerMethods.js @@ -0,0 +1,129 @@ +// This object is a mixin for L.Marker and L.CircleMarker. We declare it here as both need to include the contents. +L.BaseMarkerMethods = { + showLabel: function () { + if (this.label && this._map) { + this.label.setLatLng(this._latlng); + this._map.showLabel(this.label); + } + + return this; + }, + + hideLabel: function () { + if (this.label) { + this.label.close(); + } + return this; + }, + + setLabelNoHide: function (noHide) { + if (this._labelNoHide === noHide) { + return; + } + + this._labelNoHide = noHide; + + if (noHide) { + this._removeLabelRevealHandlers(); + this.showLabel(); + } else { + this._addLabelRevealHandlers(); + this.hideLabel(); + } + }, + + bindLabel: function (content, options) { + var labelAnchor = this.options.icon ? this.options.icon.options.labelAnchor : this.options.labelAnchor, + anchor = L.point(labelAnchor) || L.point(0, 0); + + anchor = anchor.add(L.Label.prototype.options.offset); + + if (options && options.offset) { + anchor = anchor.add(options.offset); + } + + options = L.Util.extend({offset: anchor}, options); + + this._labelNoHide = options.noHide; + + if (!this.label) { + if (!this._labelNoHide) { + this._addLabelRevealHandlers(); + } + + this + .on('remove', this.hideLabel, this) + .on('move', this._moveLabel, this) + .on('add', this._onMarkerAdd, this); + + this._hasLabelHandlers = true; + } + + this.label = new L.Label(options, this) + .setContent(content); + + return this; + }, + + unbindLabel: function () { + if (this.label) { + this.hideLabel(); + + this.label = null; + + if (this._hasLabelHandlers) { + if (!this._labelNoHide) { + this._removeLabelRevealHandlers(); + } + + this + .off('remove', this.hideLabel, this) + .off('move', this._moveLabel, this) + .off('add', this._onMarkerAdd, this); + } + + this._hasLabelHandlers = false; + } + return this; + }, + + updateLabelContent: function (content) { + if (this.label) { + this.label.setContent(content); + } + }, + + getLabel: function () { + return this.label; + }, + + _onMarkerAdd: function () { + if (this._labelNoHide) { + this.showLabel(); + } + }, + + _addLabelRevealHandlers: function () { + this + .on('mouseover', this.showLabel, this) + .on('mouseout', this.hideLabel, this); + + if (L.Browser.touch) { + this.on('click', this.showLabel, this); + } + }, + + _removeLabelRevealHandlers: function () { + this + .off('mouseover', this.showLabel, this) + .off('mouseout', this.hideLabel, this); + + if (L.Browser.touch) { + this.off('click', this.showLabel, this); + } + }, + + _moveLabel: function (e) { + this.label.setLatLng(e.latlng); + } +}; \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/CircleMarker.Label.js b/bower_components/Leaflet.label/src/CircleMarker.Label.js new file mode 100644 index 00000000..1833642b --- /dev/null +++ b/bower_components/Leaflet.label/src/CircleMarker.Label.js @@ -0,0 +1,7 @@ +// Add in an option to icon that is used to set where the label anchor is +L.CircleMarker.mergeOptions({ + labelAnchor: new L.Point(0, 0) +}); + + +L.CircleMarker.include(L.BaseMarkerMethods); \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/FeatureGroup.Label.js b/bower_components/Leaflet.label/src/FeatureGroup.Label.js new file mode 100644 index 00000000..4f342a17 --- /dev/null +++ b/bower_components/Leaflet.label/src/FeatureGroup.Label.js @@ -0,0 +1,20 @@ +L.FeatureGroup.include({ + // TODO: remove this when AOP is supported in Leaflet, need this as we cannot put code in removeLayer() + clearLayers: function () { + this.unbindLabel(); + this.eachLayer(this.removeLayer, this); + return this; + }, + + bindLabel: function (content, options) { + return this.invoke('bindLabel', content, options); + }, + + unbindLabel: function () { + return this.invoke('unbindLabel'); + }, + + updateLabelContent: function (content) { + this.invoke('updateLabelContent', content); + } +}); \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/Label.js b/bower_components/Leaflet.label/src/Label.js new file mode 100644 index 00000000..0b0436d2 --- /dev/null +++ b/bower_components/Leaflet.label/src/Label.js @@ -0,0 +1,247 @@ +L.Label = L.Class.extend({ + + includes: L.Mixin.Events, + + options: { + className: '', + clickable: false, + direction: 'right', + noHide: false, + offset: [12, -15], // 6 (width of the label triangle) + 6 (padding) + opacity: 1, + zoomAnimation: true + }, + + initialize: function (options, source) { + L.setOptions(this, options); + + this._source = source; + this._animated = L.Browser.any3d && this.options.zoomAnimation; + this._isOpen = false; + }, + + onAdd: function (map) { + this._map = map; + + this._pane = this._source instanceof L.Marker ? map._panes.markerPane : map._panes.popupPane; + + if (!this._container) { + this._initLayout(); + } + + this._pane.appendChild(this._container); + + this._initInteraction(); + + this._update(); + + this.setOpacity(this.options.opacity); + + map + .on('moveend', this._onMoveEnd, this) + .on('viewreset', this._onViewReset, this); + + if (this._animated) { + map.on('zoomanim', this._zoomAnimation, this); + } + + if (L.Browser.touch && !this.options.noHide) { + L.DomEvent.on(this._container, 'click', this.close, this); + } + }, + + onRemove: function (map) { + this._pane.removeChild(this._container); + + map.off({ + zoomanim: this._zoomAnimation, + moveend: this._onMoveEnd, + viewreset: this._onViewReset + }, this); + + this._removeInteraction(); + + this._map = null; + }, + + setLatLng: function (latlng) { + this._latlng = L.latLng(latlng); + if (this._map) { + this._updatePosition(); + } + return this; + }, + + setContent: function (content) { + // Backup previous content and store new content + this._previousContent = this._content; + this._content = content; + + this._updateContent(); + + return this; + }, + + close: function () { + var map = this._map; + + if (map) { + if (L.Browser.touch && !this.options.noHide) { + L.DomEvent.off(this._container, 'click', this.close); + } + + map.removeLayer(this); + } + }, + + updateZIndex: function (zIndex) { + this._zIndex = zIndex; + + if (this._container && this._zIndex) { + this._container.style.zIndex = zIndex; + } + }, + + setOpacity: function (opacity) { + this.options.opacity = opacity; + + if (this._container) { + L.DomUtil.setOpacity(this._container, opacity); + } + }, + + _initLayout: function () { + this._container = L.DomUtil.create('div', 'leaflet-label ' + this.options.className + ' leaflet-zoom-animated'); + this.updateZIndex(this._zIndex); + }, + + _update: function () { + if (!this._map) { return; } + + this._container.style.visibility = 'hidden'; + + this._updateContent(); + this._updatePosition(); + + this._container.style.visibility = ''; + }, + + _updateContent: function () { + if (!this._content || !this._map || this._prevContent === this._content) { + return; + } + + if (typeof this._content === 'string') { + this._container.innerHTML = this._content; + + this._prevContent = this._content; + + this._labelWidth = this._container.offsetWidth; + } + }, + + _updatePosition: function () { + var pos = this._map.latLngToLayerPoint(this._latlng); + + this._setPosition(pos); + }, + + _setPosition: function (pos) { + var map = this._map, + container = this._container, + centerPoint = map.latLngToContainerPoint(map.getCenter()), + labelPoint = map.layerPointToContainerPoint(pos), + direction = this.options.direction, + labelWidth = this._labelWidth, + offset = L.point(this.options.offset); + + // position to the right (right or auto & needs to) + if (direction === 'right' || direction === 'auto' && labelPoint.x < centerPoint.x) { + L.DomUtil.addClass(container, 'leaflet-label-right'); + L.DomUtil.removeClass(container, 'leaflet-label-left'); + + pos = pos.add(offset); + } else { // position to the left + L.DomUtil.addClass(container, 'leaflet-label-left'); + L.DomUtil.removeClass(container, 'leaflet-label-right'); + + pos = pos.add(L.point(-offset.x - labelWidth, offset.y)); + } + + L.DomUtil.setPosition(container, pos); + }, + + _zoomAnimation: function (opt) { + var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round(); + + this._setPosition(pos); + }, + + _onMoveEnd: function () { + if (!this._animated || this.options.direction === 'auto') { + this._updatePosition(); + } + }, + + _onViewReset: function (e) { + /* if map resets hard, we must update the label */ + if (e && e.hard) { + this._update(); + } + }, + + _initInteraction: function () { + if (!this.options.clickable) { return; } + + var container = this._container, + events = ['dblclick', 'mousedown', 'mouseover', 'mouseout', 'contextmenu']; + + L.DomUtil.addClass(container, 'leaflet-clickable'); + L.DomEvent.on(container, 'click', this._onMouseClick, this); + + for (var i = 0; i < events.length; i++) { + L.DomEvent.on(container, events[i], this._fireMouseEvent, this); + } + }, + + _removeInteraction: function () { + if (!this.options.clickable) { return; } + + var container = this._container, + events = ['dblclick', 'mousedown', 'mouseover', 'mouseout', 'contextmenu']; + + L.DomUtil.removeClass(container, 'leaflet-clickable'); + L.DomEvent.off(container, 'click', this._onMouseClick, this); + + for (var i = 0; i < events.length; i++) { + L.DomEvent.off(container, events[i], this._fireMouseEvent, this); + } + }, + + _onMouseClick: function (e) { + if (this.hasEventListeners(e.type)) { + L.DomEvent.stopPropagation(e); + } + + this.fire(e.type, { + originalEvent: e + }); + }, + + _fireMouseEvent: function (e) { + this.fire(e.type, { + originalEvent: e + }); + + // TODO proper custom event propagation + // this line will always be called if marker is in a FeatureGroup + if (e.type === 'contextmenu' && this.hasEventListeners(e.type)) { + L.DomEvent.preventDefault(e); + } + if (e.type !== 'mousedown') { + L.DomEvent.stopPropagation(e); + } else { + L.DomEvent.preventDefault(e); + } + } +}); diff --git a/bower_components/Leaflet.label/src/Leaflet.label.js b/bower_components/Leaflet.label/src/Leaflet.label.js new file mode 100644 index 00000000..1e2aa167 --- /dev/null +++ b/bower_components/Leaflet.label/src/Leaflet.label.js @@ -0,0 +1,5 @@ +/* + * Leaflet.label assumes that you have already included the Leaflet library. + */ + +L.labelVersion = '0.2.1'; \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/Map.Label.js b/bower_components/Leaflet.label/src/Map.Label.js new file mode 100644 index 00000000..7a892cd5 --- /dev/null +++ b/bower_components/Leaflet.label/src/Map.Label.js @@ -0,0 +1,5 @@ +L.Map.include({ + showLabel: function (label) { + return this.addLayer(label); + } +}); \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/Marker.Label.js b/bower_components/Leaflet.label/src/Marker.Label.js new file mode 100644 index 00000000..b8d91c27 --- /dev/null +++ b/bower_components/Leaflet.label/src/Marker.Label.js @@ -0,0 +1,55 @@ +// Add in an option to icon that is used to set where the label anchor is +L.Icon.Default.mergeOptions({ + labelAnchor: new L.Point(9, -20) +}); + +// Have to do this since Leaflet is loaded before this plugin and initializes +// L.Marker.options.icon therefore missing our mixin above. +L.Marker.mergeOptions({ + icon: new L.Icon.Default() +}); + +L.Marker.include(L.BaseMarkerMethods); +L.Marker.include({ + _originalUpdateZIndex: L.Marker.prototype._updateZIndex, + + _updateZIndex: function (offset) { + var zIndex = this._zIndex + offset; + + this._originalUpdateZIndex(offset); + + if (this.label) { + this.label.updateZIndex(zIndex); + } + }, + + _originalSetOpacity: L.Marker.prototype.setOpacity, + + setOpacity: function (opacity, labelHasSemiTransparency) { + this.options.labelHasSemiTransparency = labelHasSemiTransparency; + + this._originalSetOpacity(opacity); + }, + + _originalUpdateOpacity: L.Marker.prototype._updateOpacity, + + _updateOpacity: function () { + var absoluteOpacity = this.options.opacity === 0 ? 0 : 1; + + this._originalUpdateOpacity(); + + if (this.label) { + this.label.setOpacity(this.options.labelHasSemiTransparency ? this.options.opacity : absoluteOpacity); + } + }, + + _originalSetLatLng: L.Marker.prototype.setLatLng, + + setLatLng: function (latlng) { + if (this.label && !this._labelNoHide) { + this.hideLabel(); + } + + return this._originalSetLatLng(latlng); + } +}); \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/Path.Label.js b/bower_components/Leaflet.label/src/Path.Label.js new file mode 100644 index 00000000..02a50fee --- /dev/null +++ b/bower_components/Leaflet.label/src/Path.Label.js @@ -0,0 +1,55 @@ +L.Path.include({ + bindLabel: function (content, options) { + if (!this.label || this.label.options !== options) { + this.label = new L.Label(options, this); + } + + this.label.setContent(content); + + if (!this._showLabelAdded) { + this + .on('mouseover', this._showLabel, this) + .on('mousemove', this._moveLabel, this) + .on('mouseout remove', this._hideLabel, this); + + if (L.Browser.touch) { + this.on('click', this._showLabel, this); + } + this._showLabelAdded = true; + } + + return this; + }, + + unbindLabel: function () { + if (this.label) { + this._hideLabel(); + this.label = null; + this._showLabelAdded = false; + this + .off('mouseover', this._showLabel, this) + .off('mousemove', this._moveLabel, this) + .off('mouseout remove', this._hideLabel, this); + } + return this; + }, + + updateLabelContent: function (content) { + if (this.label) { + this.label.setContent(content); + } + }, + + _showLabel: function (e) { + this.label.setLatLng(e.latlng); + this._map.showLabel(this.label); + }, + + _moveLabel: function (e) { + this.label.setLatLng(e.latlng); + }, + + _hideLabel: function () { + this.label.close(); + } +}); \ No newline at end of file diff --git a/bower_components/Leaflet.label/src/copyright.js b/bower_components/Leaflet.label/src/copyright.js new file mode 100644 index 00000000..96c59642 --- /dev/null +++ b/bower_components/Leaflet.label/src/copyright.js @@ -0,0 +1,8 @@ +/* + Leaflet.label, a plugin that adds labels to markers and vectors for Leaflet powered maps. + (c) 2012-2013, Jacob Toye, Smartrak + + https://github.com/Leaflet/Leaflet.label + http://leafletjs.com + https://github.com/jacobtoye +*/ diff --git a/bower_components/Leaflet.utfgrid/.bower.json b/bower_components/Leaflet.utfgrid/.bower.json new file mode 100644 index 00000000..7b92f7f6 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/.bower.json @@ -0,0 +1,23 @@ +{ + "name": "Leaflet.utfgrid", + "main": "dist/leaflet.utfgrid.js", + "ignore": [ + "build", + "src", + ".gitignore", + "Jakefile.js" + ], + "dependencies": { + "leaflet": "~0.7.3" + }, + "homepage": "https://github.com/danzel/Leaflet.utfgrid", + "_release": "d9929a5dda", + "_resolution": { + "type": "branch", + "branch": "master", + "commit": "d9929a5dda6dc2758a0148f1f15cb2b2e9d853ef" + }, + "_source": "git://github.com/danzel/Leaflet.utfgrid.git", + "_target": "*", + "_originalSource": "danzel/Leaflet.utfgrid" +} \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/MIT-LICENCE.txt b/bower_components/Leaflet.utfgrid/MIT-LICENCE.txt new file mode 100644 index 00000000..19af0682 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/MIT-LICENCE.txt @@ -0,0 +1,20 @@ +Copyright 2012 David Leaver + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/bower_components/Leaflet.utfgrid/README.md b/bower_components/Leaflet.utfgrid/README.md new file mode 100644 index 00000000..1f30e801 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/README.md @@ -0,0 +1,83 @@ +Leaflet.utfgrid +=============== + +A UTFGrid interaction implementation for Leaflet that is super small. + +Example: http://danzel.github.com/Leaflet.utfgrid/example/map.html + +## Using the plugin + +See the included example for the plugin in action. + +### Usage + +Create a new L.UtfGrid, optionally specifying the resolution (The default is 4) +```javascript +var utfGrid = new L.UtfGrid('http://{s}.tiles.mapbox.com/v3/mapbox.geography-class/{z}/{x}/{y}.grid.json?callback={cb}', { + resolution: 2 +}); +``` +```?callback={cb}``` is required when using utfgrids in JSONP mode. + +Add event listeners to it +```javascript +utfGrid.on('click', function (e) { + //click events are fired with e.data==null if an area with no hit is clicked + if (e.data) { + alert('click: ' + e.data.admin); + } else { + alert('click: nothing'); + } +}); +utfGrid.on('mouseover', function (e) { + console.log('hover: ' + e.data.admin); +}); +utfGrid.on('mousemove', function (e) { + console.log('move: ' + e.data.admin); +}); +utfGrid.on('mouseout', function (e) { + console.log('unhover: ' + e.data.admin); +}); +``` + +The callback object in all cases is: +```javascript +{ + latlng: L.LatLng + data: Data object for the grid (whatever you are returning in the grid json) +} +``` + +We use JSONP by default which requires the query string part of the url to contain ```callback={cb}```. +To use an ajax query instead you need to set useJsonP:false in the L.UtfGrid options. +Your grid json provider must return raw json to support this functionality. + +```javascript +var utfGrid = new L.UtfGrid('http://myserver/amazingness/{z}/{x}/{y}.grid.json', { + useJsonP: false +}); +``` + +### Other options + +- pointerCursor: changes the mouse cursor to a pointer when hovering over an interactive part of the grid. (Default: true) +- maxRequests: Maximum number of requests sent at once to the utfgrid tile server. Increasing this will get more processing done at once, however it means your utfgrid tiles will get priority over your visual tiles (as browsers tend to prioritize javascript/json requests). Increasing this will also reduce the number of requests that may get dropped early when users pan the map. There is little point to have this higher than 8. (Default: 4) +- requestTimeout: number of milliseconds after which a request for a tile is considered to have timed out. (Default: 60000) + +### Turning interaction on and off + +You can add and remove the UtfGrid layer from your map as per normal, even within a layers control. + +Example: http://danzel.github.com/Leaflet.utfgrid/example/layers.html + +## Other examples of UTFGrid + +Spec: https://github.com/mapbox/utfgrid-spec + +OpenLayers: +* http://openlayers.org/dev/examples/utfgrid_twogrids.html +* https://github.com/perrygeo/openlayers/blob/utfgrid/lib/OpenLayers/Tile/UTFGrid.js + +Wax: +* http://mapbox.com/wax/interaction-leaf-native.html (Doesn't work correctly in webkit) +* https://github.com/mapbox/wax diff --git a/bower_components/Leaflet.utfgrid/bower.json b/bower_components/Leaflet.utfgrid/bower.json new file mode 100644 index 00000000..e2e94142 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/bower.json @@ -0,0 +1,13 @@ +{ + "name": "Leaflet.utfgrid", + "main": "dist/leaflet.utfgrid.js", + "ignore": [ + "build", + "src", + ".gitignore", + "Jakefile.js" + ], + "dependencies": { + "leaflet": "~0.7.3" + } +} diff --git a/bower_components/Leaflet.utfgrid/dist/leaflet.utfgrid-src.js b/bower_components/Leaflet.utfgrid/dist/leaflet.utfgrid-src.js new file mode 100644 index 00000000..db4fd4c8 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/dist/leaflet.utfgrid-src.js @@ -0,0 +1,414 @@ +/*! + * Copyright (c) 2012, Smartrak, David Leaver + * Leaflet.utfgrid is an open-source JavaScript library that provides utfgrid interaction on leaflet powered maps. + * https://github.com/danzel/Leaflet.utfgrid + * + * @license MIT + */ +(function (window, undefined) { + +L.Util.ajax = function (url, success, error) { + // the following is from JavaScript: The Definitive Guide + // and https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest_in_IE6 + if (window.XMLHttpRequest === undefined) { + window.XMLHttpRequest = function () { + /*global ActiveXObject:true */ + try { + return new ActiveXObject("Microsoft.XMLHTTP"); + } + catch (e) { + throw new Error("XMLHttpRequest is not supported"); + } + }; + } + var response, request = new XMLHttpRequest(); + request.open("GET", url); + request.onreadystatechange = function () { + /*jshint evil: true */ + if (request.readyState === 4) { + if (request.status === 200) { + if (window.JSON) { + response = JSON.parse(request.responseText); + } else { + response = eval("(" + request.responseText + ")"); + } + success(response); + } else if (request.status !== 0 && error !== undefined) { + error(request.status); + } + } + }; + request.ontimeout = function () { error('timeout'); }; + request.send(); + return request; +}; +L.UtfGrid = (L.Layer || L.Class).extend({ + includes: L.Mixin.Events, + options: { + subdomains: 'abc', + + minZoom: 0, + maxZoom: 18, + tileSize: 256, + + resolution: 4, + + useJsonP: true, + pointerCursor: true, + + maxRequests: 4, + requestTimeout: 60000 + }, + + //The thing the mouse is currently on + _mouseOn: null, + + initialize: function (url, options) { + L.Util.setOptions(this, options); + + // The requests + this._requests = {}; + this._request_queue = []; + this._requests_in_process = []; + + this._url = url; + this._cache = {}; + + //Find a unique id in window we can use for our callbacks + //Required for jsonP + var i = 0; + while (window['lu' + i]) { + i++; + } + this._windowKey = 'lu' + i; + window[this._windowKey] = {}; + + var subdomains = this.options.subdomains; + if (typeof this.options.subdomains === 'string') { + this.options.subdomains = subdomains.split(''); + } + }, + + onAdd: function (map) { + this._map = map; + this._container = this._map._container; + + this._update(); + + var zoom = this._map.getZoom(); + + if (zoom > this.options.maxZoom || zoom < this.options.minZoom) { + return; + } + + map.on('click', this._click, this); + map.on('mousemove', this._move, this); + map.on('moveend', this._update, this); + }, + + onRemove: function () { + var map = this._map; + map.off('click', this._click, this); + map.off('mousemove', this._move, this); + map.off('moveend', this._update, this); + if (this.options.pointerCursor) { + this._container.style.cursor = ''; + } + }, + + setUrl: function (url, noRedraw) { + this._url = url; + + if (!noRedraw) { + this.redraw(); + } + + return this; + }, + + redraw: function () { + // Clear cache to force all tiles to reload + this._request_queue = []; + for (var req_key in this._requests) { + if (this._requests.hasOwnProperty(req_key)) { + this._abort_request(req_key); + } + } + this._cache = {}; + this._update(); + }, + + _click: function (e) { + this.fire('click', this._objectForEvent(e)); + }, + _move: function (e) { + var on = this._objectForEvent(e); + + if (on.data !== this._mouseOn) { + if (this._mouseOn) { + this.fire('mouseout', { latlng: e.latlng, data: this._mouseOn }); + if (this.options.pointerCursor) { + this._container.style.cursor = ''; + } + } + if (on.data) { + this.fire('mouseover', on); + if (this.options.pointerCursor) { + this._container.style.cursor = 'pointer'; + } + } + + this._mouseOn = on.data; + } else if (on.data) { + this.fire('mousemove', on); + } + }, + + _objectForEvent: function (e) { + var map = this._map, + point = map.project(e.latlng), + tileSize = this.options.tileSize, + resolution = this.options.resolution, + x = Math.floor(point.x / tileSize), + y = Math.floor(point.y / tileSize), + gridX = Math.floor((point.x - (x * tileSize)) / resolution), + gridY = Math.floor((point.y - (y * tileSize)) / resolution), + max = map.options.crs.scale(map.getZoom()) / tileSize; + + x = (x + max) % max; + y = (y + max) % max; + + var data = this._cache[map.getZoom() + '_' + x + '_' + y]; + var result = null; + if (data && data.grid) { + var idx = this._utfDecode(data.grid[gridY].charCodeAt(gridX)), + key = data.keys[idx]; + + if (data.data.hasOwnProperty(key)) { + result = data.data[key]; + } + } + + return L.extend({ latlng: e.latlng, data: result }, e); + }, + + //Load up all required json grid files + //TODO: Load from center etc + _update: function () { + + var bounds = this._map.getPixelBounds(), + zoom = this._map.getZoom(), + tileSize = this.options.tileSize; + + if (zoom > this.options.maxZoom || zoom < this.options.minZoom) { + return; + } + + var nwTilePoint = new L.Point( + Math.floor(bounds.min.x / tileSize), + Math.floor(bounds.min.y / tileSize)), + seTilePoint = new L.Point( + Math.floor(bounds.max.x / tileSize), + Math.floor(bounds.max.y / tileSize)), + max = this._map.options.crs.scale(zoom) / tileSize; + + //Load all required ones + var visible_tiles = []; + for (var x = nwTilePoint.x; x <= seTilePoint.x; x++) { + for (var y = nwTilePoint.y; y <= seTilePoint.y; y++) { + + var xw = (x + max) % max, yw = (y + max) % max; + var key = zoom + '_' + xw + '_' + yw; + visible_tiles.push(key); + + if (!this._cache.hasOwnProperty(key)) { + this._cache[key] = null; + + if (this.options.useJsonP) { + this._loadTileP(zoom, xw, yw); + } else { + this._loadTile(zoom, xw, yw); + } + } + } + } + // If we still have requests for tiles that have now gone out of sight, attempt to abort them. + for (var req_key in this._requests) { + if (visible_tiles.indexOf(req_key) < 0) { + this._abort_request(req_key); + } + } + }, + + _loadTileP: function (zoom, x, y) { + var head = document.getElementsByTagName('head')[0], + key = zoom + '_' + x + '_' + y, + functionName = 'lu_' + key, + wk = this._windowKey, + self = this; + + var url = L.Util.template(this._url, L.Util.extend({ + s: L.TileLayer.prototype._getSubdomain.call(this, { x: x, y: y }), + z: zoom, + x: x, + y: y, + cb: wk + '.' + functionName + }, this.options)); + + var script = document.createElement('script'); + script.setAttribute("type", "text/javascript"); + script.setAttribute("src", url); + + window[wk][functionName] = function (data) { + self._cache[key] = data; + delete window[wk][functionName]; + head.removeChild(script); + self._finish_request(key); + }; + + this._queue_request(key, url, function () { + head.appendChild(script); + return { + abort: function () { + head.removeChild(script); + } + }; + }); + }, + + _loadTile: function (zoom, x, y) { + var url = L.Util.template(this._url, L.Util.extend({ + s: L.TileLayer.prototype._getSubdomain.call(this, { x: x, y: y }), + z: zoom, + x: x, + y: y + }, this.options)); + + var key = zoom + '_' + x + '_' + y; + this._queue_request(key, url, this._ajaxRequestFactory(key, url)); + }, + + _ajaxRequestFactory: function (key, url) { + var successCallback = this._successCallbackFactory(key); + var errorCallback = this._errorCallbackFactory(url); + return function () { + var request = L.Util.ajax(url, successCallback, errorCallback); + request.timeout = this.options.requestTimeout; + return request; + }.bind(this); + }, + + _successCallbackFactory: function (key) { + return function (data) { + this._cache[key] = data; + this._finish_request(key); + }.bind(this); + }, + + _errorCallbackFactory: function (tileurl) { + return function (statuscode) { + this.fire('tileerror', { + url: tileurl, + code: statuscode + }); + }.bind(this); + }, + + _queue_request: function (key, url, callback) { + this._requests[key] = { + callback: callback, + timeout: null, + handler: null, + url: url + }; + this._request_queue.push(key); + this._process_queued_requests(); + }, + + _finish_request: function (key) { + // Remove from requests in process + var pos = this._requests_in_process.indexOf(key); + if (pos >= 0) { + this._requests_in_process.splice(pos, 1); + } + // Remove from request queue + pos = this._request_queue.indexOf(key); + if (pos >= 0) { + this._request_queue.splice(pos, 1); + } + // Remove the request entry + if (this._requests[key]) { + if (this._requests[key].timeout) { + window.clearTimeout(this._requests[key].timeout); + } + delete this._requests[key]; + } + // Recurse + this._process_queued_requests(); + // Fire 'load' event if all tiles have been loaded + if (this._requests_in_process.length === 0) { + this.fire('load'); + } + }, + + _abort_request: function (key) { + // Abort the request if possible + if (this._requests[key] && this._requests[key].handler) { + if (typeof this._requests[key].handler.abort === 'function') { + this._requests[key].handler.abort(); + } + } + // Ensure we don't keep a false copy of the data in the cache + if (this._cache[key] === null) { + delete this._cache[key]; + } + // And remove the request + this._finish_request(key); + }, + + _process_queued_requests: function () { + while (this._request_queue.length > 0 && (this.options.maxRequests === 0 || + this._requests_in_process.length < this.options.maxRequests)) { + this._process_request(this._request_queue.pop()); + } + }, + + _process_request: function (key) { + this._requests_in_process.push(key); + // The callback might call _finish_request, so don't assume _requests[key] still exists. + var handler = this._requests[key].callback(); + if (this._requests[key]) { + this._requests[key].handler = handler; + if (handler.timeout === undefined) { + var timeoutCallback = this._timeoutCallbackFactory(key); + this._requests[key].timeout = window.setTimeout(timeoutCallback, this.options.requestTimeout); + } + } + }, + + _timeoutCallbackFactory: function (key) { + var tileurl = this._requests[key].url; + return function () { + this.fire('tileerror', { url: tileurl, code: 'timeout' }); + this._abort_request(key); + }.bind(this); + }, + + _utfDecode: function (c) { + if (c >= 93) { + c--; + } + if (c >= 35) { + c--; + } + return c - 32; + } +}); + +L.utfGrid = function (url, options) { + return new L.UtfGrid(url, options); +}; + + + +}(window)); \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/dist/leaflet.utfgrid.js b/bower_components/Leaflet.utfgrid/dist/leaflet.utfgrid.js new file mode 100644 index 00000000..3d1da4e5 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/dist/leaflet.utfgrid.js @@ -0,0 +1,8 @@ +/*! + * Copyright (c) 2012, Smartrak, David Leaver + * Leaflet.utfgrid is an open-source JavaScript library that provides utfgrid interaction on leaflet powered maps. + * https://github.com/danzel/Leaflet.utfgrid + * + * @license MIT + */ +(function(window,undefined){L.Util.ajax=function(url,success,error){window.XMLHttpRequest===undefined&&(window.XMLHttpRequest=function(){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){throw Error("XMLHttpRequest is not supported")}});var response,request=new XMLHttpRequest;return request.open("GET",url),request.onreadystatechange=function(){request.readyState===4&&(request.status===200?(window.JSON?response=JSON.parse(request.responseText):response=eval("("+request.responseText+")"),success(response)):request.status!==0&&error!==undefined&&error(request.status))},request.ontimeout=function(){error("timeout")},request.send(),request},L.UtfGrid=(L.Layer||L.Class).extend({includes:L.Mixin.Events,options:{subdomains:"abc",minZoom:0,maxZoom:18,tileSize:256,resolution:4,useJsonP:!0,pointerCursor:!0,maxRequests:4,requestTimeout:6e4},_mouseOn:null,initialize:function(e,t){L.Util.setOptions(this,t),this._requests={},this._request_queue=[],this._requests_in_process=[],this._url=e,this._cache={};var n=0;while(window["lu"+n])n++;this._windowKey="lu"+n,window[this._windowKey]={};var r=this.options.subdomains;typeof this.options.subdomains=="string"&&(this.options.subdomains=r.split(""))},onAdd:function(e){this._map=e,this._container=this._map._container,this._update();var t=this._map.getZoom();if(t>this.options.maxZoom||tthis.options.maxZoom||t=0&&this._requests_in_process.splice(t,1),t=this._request_queue.indexOf(e),t>=0&&this._request_queue.splice(t,1),this._requests[e]&&(this._requests[e].timeout&&window.clearTimeout(this._requests[e].timeout),delete this._requests[e]),this._process_queued_requests(),this._requests_in_process.length===0&&this.fire("load")},_abort_request:function(e){this._requests[e]&&this._requests[e].handler&&typeof this._requests[e].handler.abort=="function"&&this._requests[e].handler.abort(),this._cache[e]===null&&delete this._cache[e],this._finish_request(e)},_process_queued_requests:function(){while(this._request_queue.length>0&&(this.options.maxRequests===0||this._requests_in_process.length=93&&e--,e>=35&&e--,e-32}}),L.utfGrid=function(e,t){return new L.UtfGrid(e,t)}})(window); \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/example/layers.html b/bower_components/Leaflet.utfgrid/example/layers.html new file mode 100644 index 00000000..b08a930b --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/layers.html @@ -0,0 +1,75 @@ + + + + Leaflet debug page + + + + + + + + + + +
+ Use the layers dialog to turn interaction on and off. +
+
+ + + + diff --git a/bower_components/Leaflet.utfgrid/example/map-ajax.html b/bower_components/Leaflet.utfgrid/example/map-ajax.html new file mode 100644 index 00000000..d3e2f047 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/map-ajax.html @@ -0,0 +1,55 @@ + + + + Leaflet debug page + + + + + + + + + + +
+
+
+ + + + diff --git a/bower_components/Leaflet.utfgrid/example/map.html b/bower_components/Leaflet.utfgrid/example/map.html new file mode 100644 index 00000000..3759f2b7 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/map.html @@ -0,0 +1,53 @@ + + + + Leaflet debug page + + + + + + + + + + +
+
+
+ + + + diff --git a/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/0/0.json b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/0/0.json new file mode 100644 index 00000000..a903b7e4 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/0/0.json @@ -0,0 +1 @@ +{"grid":[" "," "," "," "," "," "," !!!!! "," #### !!!!!!!! "," ####### !!!!!!!!!! "," ########## !!!!!!!!!!!! "," ########## !!!!!!!!!!!!!!! "," ######### !!!!!!!!!!!!!!!!! "," ###########!!!!!!!!!!!!!!!!!!! "," ########## !!!!!!!!!!!!!!!!!! "," ######### !!!!!!!!!!!!!!!!! "," ######## !!!!!!!!!!!!!!!!! "," # ####### !!!!!!!!!!!!!!!!!! "," ## ###########!!!!!!!!!!!!!!!!!!! "," ### # # ####!!!!!!!!!!!!!!!!!!!! "," # # ##### ! !!!!!!!!!!!!!!!!! "," ### # # # ##### !!!!!!!!!!!!!!!!!!! "," ######### ## # ! !!!!!!!!!!!!!!! "," ############## !!!!!!!!!!!!!!! "," # # #### !!!!!!!!!!!!!! "," ### #### # !!!!!!!!!!!!! "," #### # #### #### !!!!!!!!!!!! "," ####### ### ###### !!!!!!!!!!!!! ","$ % ####### ## ####### !!!!!!!!!!!! "," %%%%% ###### ## ####### !!!!!!!!!! ! "," %%%%%%%%# ###### ######### # ##### !!!!!!!!!!! ","$ %%%%%%%%%########### # # ## ## #### !!!!!!!!!! ","$$ %%%%%%%%###################### ##### !!!!!!!! ","$$$$ % %%%%%%%##################### ##### !!!!!!! & & ","$ $ %%%%%%%%%##################### ##### !!!! &&&& "," %%%%%%%###################### #### !!!! &&& "," %%%%%%%%################## # ### !!!! "," %%%%%%%%%################# ## # !! "," %%%%%%% %%################ ### # ! "," %% %%############## ###### ' "," %% %%############### ###### ''"," %% %################ ###### ''"," % ################## ######## ( '"," % ############################ ( '"," ######################## # ''"," %%%%%%%%%%%%########## ### )"," %%%%%%%%%%%%%%#####%## *# "," %%%%%%%%%%%%%%%##%%%%## "," %%%%%%%%%%%%%%%#%%% +++"," %%%%%%%%%%%%%%%%%%% ,++"," %%%%%%%%%%%%%%%%%% , ,++"," %%%%%%%%%%%%%%%%% + "," %%%%%%%%%%%%%%%% --"," .%%%%%%%%%%%% --/"," ....%%%% % % +--//"," .....% %0 -12//"," . .... 00 1223/"," % .... ..4 4 0 112233"," ...... 5 67 8 222233"," ...9: ) ;;2223"," <== > ;;333?"," = @AAAAB CDD33E"," FF@AAAAAG HDIE"," @@@AAAGJ) KIE"," @@@@AALGJ)L "],"keys":["","89","40","185","228","107","79","104","74","201","68","180","137","142","64","27","187","152","145","53","55","97","63","233","90","95","191","197","162","231","23","49","232","220","85","83","82","171","92","196","44","204","126","34"],"data":{"23":{"admin":"Burkina Faso","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAACsklEQVR42u2cT0gUYRiHB+lSIBFEiZQSdmi3FS8lka4IbpCdIvCWN08pdBE2IuhUXvSW+QcSzYNWiOihoJAoqIzwIl3qEOFBxYMmURZJdPjtYZbZz751vwVn57k8LDP7veO++/D+vh0GvY2N06dqayF0S48WQMSCiAURi0ZAxIK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ncmFwaHktY2xhc3MvZmxhZ3MvRVNQLnN2ZwDs7RQAAAAASUVORK5CYII="},"74":{"admin":"France","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAABPklEQVR42u3cMRLBQBSA4Zc9CgqcALXC4bThBA5gNFyFM+wBVNFqjYTszpfi1Sm++bOv2ETEdNK2pc/T9ny977rCn+fx8rjtc7dMmybnxXy9KncGWGCBBRZYYIEFFlhggQUWWGCBBRZYYIE1/GzSLB0CLLAUCyywwAILLLDAAgsssGyFlcAqnJRiKRZYYIEFFlhggQUWWGDZCsFSLLDAAgsssP4DazQowVIssMACy1ZYG6wP30qxwFIssMACCyywwOr/HAYWWIplKwQLLLDAAgssZyywwAILLLDAqh6We4VgKZatECywFAsssMACCyywwAILLLBshWCBpVhggQUWWGCBBRZYYIFlKwQLLMUCCyywwAILLLBG+T8ZsMBSLFshWIoFFlhg/fp8BhZYigUWWGB9C+t9ggUWWGD5FA44XxBz7mcwZM9VAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDExLTA5LTAyVDIzOjI5OjIxLTA0OjAwcQbBWgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wMi0yOFQyMTo0ODozMS0wNTowMJkeu+wAAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWovQ29kZS90bS1tYXN0ZXIvZXhhbXBsZXMvZ2VvZ3JhcGh5LWNsYXNzL2ZsYWdzL0ZSQS5zdmen2JoeAAAAAElFTkSuQmCC"},"79":{"admin":"United Kingdom","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAAAyEAIAAAB1xzWqAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAG3ElEQVR42u1d34vVRRSfl5ICo+yhh8UH+0UIGW0E9WaQL4kk9BAk9lSICmFsRT1kgdCLmBghan/AIi0FrdSK4A+WjTZt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AAAUnRFWHRzdmc6YmFzZS11cmkAZmlsZTovLy9ob21lL2FqL0NvZGUvdG0tbWFzdGVyL2V4YW1wbGVzL2dlb2dyYXBoeS1jbGFzcy9mbGFncy9QUlQuc3ZnC9YrGAAAAABJRU5ErkJggg=="},"185":{"admin":"Russia","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAA20lEQVR42u3bwQmDMBSA4bziEi7iMO7XYVykbmFs01MPgg0RBb/vKJKExw96SeQiQVMPI0BYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAthISwQFhfVnbt9nvP8+yT66I9fZ//73zfrTrVn939XrjvPcfPZEuM0Tm7p0FqUPoWFfyyEhbBAWAgLYYGwEBbCAmEhLIQFwkJYCAuEhbAQFggLYXET71s6KT0Hg6BxWMvrc2fMIPApRFgIC4SFsBAWCAthISwQFsJCWCAshIWwQFgIC2GBsBAWwoJqK8XrMLz36KVyAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDExLTA5LTAyVDIzOjI5OjIwLTA0OjAw13HK7gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wMi0yOFQyMjozNTo0Ny0wNTowMJEEdTIAAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWovQ29kZS90bS1tYXN0ZXIvZXhhbXBsZXMvZ2VvZ3JhcGh5LWNsYXNzL2ZsYWdzL1JVUy5zdmczbNaZAAAAAElFTkSuQmCC"},"187":{"admin":"Western Sahara","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABkEAIAAACvEN5AAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAF8UlEQVR42u2dbWhVdRzHbxRMikoIezEqCDREgmssrJS9cIqDMbbIpYNFtGYKrkVzhulqkbnyoqZbo5pIK9O2ZJWm6TZ6otBNLV/ERnM+QLqVlY7QTIVqSd+9+I+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TQS5zdmc6ss/oAAAAAElFTkSuQmCC"},"231":{"admin":"Saint Vincent and the Grenadines","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAC5ElEQVR42u3cIUgEQRTG8TNcESwGjSeCYFBQMBhMctishxbRoIJB8LBY7Nq1CIKI4UyCQRDB5gkmEUFEk9FuEwzPsLDsMrszs/tm7182rHfj3syPj9nZt1Or1dpbD6/aju9v3eXx9u/o88dQnWPS8XP3aa2xNPx93lw+qfWdHq1uKzpqI9Xo7O9cXQLLHNbIwsVA6wdY3mG5RamZOLBILGABC1jAAhawgAUsYAELWMACFrCABSxgASvoRU5gkVjAAhawgAUsYAFL1zwPWMAisYAFLGABC1jAAhawgAUsYAFLHSz5L4/r3fGxA1dtSmvFXD+wlMLam7zpn/va6Fw351dctSmtScvA6jlY0r4MibyXZ59b0oJ0q7Ts+1cAKzMs6TLfWRXtCPvckhaibfrOLWApSqxoVkU7wia35FvxN5J95xawFMGKZ5V9bsWzqpjcApYKWJIr6cOQNbeSsqqY3AKWCljpWZUvt9KzynduAatkWFkHwCS3TLIqnltub0qAVTIs86wyzy3zrIoeD+u3i7NTwAoelk3XJ+VW1qzyN99if6zSYJ1t3g9OT9h0UDxj5IxNm3JVJFbAsJJWrcpNLFczLWA5g5UPXL6M8THHcntvCKzg7wqlhWjScFcILAfrWHIm6Xzx94PAUrRrsskwxLMqmkzpfy0yq4AV/LPCeCZlzS2eFfYErKQnhuZpZP5Jf1kFLKWFfib1WOk5ZPJ56rGoIM08czKZjVFBSs17znu9pO9S897TsOxXp0xWvIClGlYx1DSspwOrUi+s2jwBdPWeD7AqCMu+DuK4dfcyAyxgZa+IL76qnXqsiuzdkK/WlDkWsBwPle+1dWBVarcZ89wqK6uAFSQsk/lWWfMqYAW/P1Z6bpWbVcAKGJZ5HQSwgOUgtzRkFbCChxVdK9KTVcCqyB6kPvb+Axaw/odQ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aD2AiC734xidIEKJi2DHFXtu2F8+oZPrhtyr8w7OLFKX875ty5mMsocoAi4gYjZONamxJ7FUxmhPaKeeFXVACVJcl22uGxpe3s3xI4UjSU8KFmlLo5e+FqYYuShnmUiZ12UPoyJeerAGMVhgRL8KB1MDqZt5AwfIiCgKmUYmrcA4kjlQzsUa9rXq0kpO06IHa1AW7DiP+AEERCkcrNFLY5iuxEL1BVRssp8jdXGzYsQeTbuJ4wc0tELeOzuzkOlUtFY/CoQZyYAmAZzEPI2FmuawkDh34CraaIhkit07OHuUZTwaw2wpzMROayY9Hgtat8W0rt+7M/shI8YAh1ZFwfGMs6jSiIix/g2Td+HgaqWSwog9WtqzzaccmeF/pfdu8+rB8urB8urB8jfCqwfLqwfLqwfLq1cPltdBoP8CMpiEU5pFIl0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTEtMDktMDJUMjM6Mjk6MjEtMDQ6MDBxBsFaAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDExLTAyLTI4VDIyOjU5OjA5LTA1OjAwt/gqWAAAAFJ0RVh0c3ZnOmJhc2UtdXJpAGZpbGU6Ly8vaG9tZS9hai9Db2RlL3RtLW1hc3Rlci9leGFtcGxlcy9nZW9ncmFwaHktY2xhc3MvZmxhZ3MvVkdCLnN2Z9S97ygAAAAASUVORK5CYII="}}} \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/0/1.json b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/0/1.json new file mode 100644 index 00000000..e3665204 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/0/1.json @@ -0,0 +1 @@ +{"grid":[" ! !#$$%%%%%%%% "," & ####%%%%%%%%%%% "," ####%%%%%%%%%%%%% "," ' ###%%%%%%%%%%%%% "," & ###(%%%%%%%%%% "," ) ###(((%%%%%%%% ","* ' ' ##(((%%%%%%%% "," +((,,%%%%%% "," +((,,,%%%%% "," +---,,%%% "," + +---,,%% "," +----%%% "," +----.. "," +----. "," +----- "," +---- "," +--- "," +--- "," +-- "," +-- "," ++-- "," ++- "," ++ "," +- / "," + "," "," "," "," 0 "," 0 "," 00 "," 00 "," 00 "," 0 "," 000 "," 000000 "," 0 0000 000"," 000000 0000"," 00 00000 0 0000"," 0 000000 0 0 0000 000000"," 0 0 000000000000000 0 00000"," 000000000 00000000000000 000000"," 000000000000000000000000000000 00000000"," 00000000000000000000000000000 0000000000"," 00000000000000000000000000 00000000000"," 0000000000000000000000000000000 000000000000"," 0000000000000000000000000000 0 00 000000000000"," 0 0000000000000000000000000000 00 000 0000000000000"," 00 00000000000000000000000000 00 000 0000000000000"," 0 00000000000000000000000000 0 000 0 000000000"," 00000000000000000000000000 0 0000 00000000000"," 000000000000000000000000000 00 00 000000000000"," 0000000000000000000000000000000 00000000000000"," 000000000000000000000000000000000 000000000000000"," 00000000000000000000000000000000 00 000000000000000"," 000000000000000000000000000000000 0000000000000000000"," 000000000000000000000000000000000 00000000000000000000"," 0 0 00000000000000000000000000000000000 00000000000000000000"," 000 00000000000000000000000000000000000000000000000000000000"," 000000000000000000000000000000000000000000000000000000000000"," 0000000000000000000000000000000000000000000000000000000000"," 0000000000000000000000000000000000000000000000000000000000","0000 0000000000000000000000000000000000000000000000000000000000","000000 00000000000000000000000000000000000000000000000000000000"],"keys":["","65","173","49","34","119","182","33","239","72","42","181","10","227","193","13"],"data":{"10":{"admin":"Argentina","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAAA/EAIAAADJWSZ0AAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAADtUlEQVR42u2dT0gUURzHpyA61BIUgtEfNvBSRGHRuVOEdAksRPJsWOBBwouXoEzyEIFUUu6pKIpiIbMQkZAwiKVM+oebtpq0kZbChh0qtsCvh98y7vRcXSHmc/kwzHvzm5m3H37vzZs3rHeq9u6N1DCES0uPJoCIBRELhpVn3nd9GD+JWJCMBRELIhYNARELIhZELBoCIhZELIhYECIWRCyIWB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XBoeS1jbGFzcy9mbGFncy9BVEEuc3ZntCZHjQAAAABJRU5ErkJggg=="},"33":{"admin":"Bolivia","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABEEAIAAACovNt2AAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAABZ0lEQVR42u3aoU7DUBSA4eNQEzNVCFRxYDENjwFiz4CChOxVJnghMtkgCE+Aw0BmECCalJLbreva9TOfWG633tM/65I11uv5PM/Jbg0joLAoLArLICgsCovCIoVFYVFYpLAoLAqLFBaFRWGRwqKwKCxSWON3Nlvld1uubDo25T3TP3er9fF7wBitbpgDM95Oby7O7sluja/n8iQ75yDclC9Z1uTnR/mQXf+/poVtz6GyJuVMIn1jbH3BJjwHYe0zr0mHJQIKi8KisAyCwqKwKCxSWBQWB2fHfw0Ji76xKCxSWBTWFH/wCosUFoU1kKc6f258R3L7O9CDnDGJmFo+V360YfUYWdRHOV7rD/zXX6+OdZR7rOSyy0z2bdw+ra4uF2S3RsTja/E+ZpfLovjL9PWHOuf+59PnHhsvDLmLRkBhUVgUlkFQWBQWhUUKi8KisEhhUVgUFiksCovCIoVFYVFYpLA4TL8BaXQsNkZuXjAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTEtMDktMDJUMjM6Mjk6MjMtMDQ6MDDmmdBzAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDExLTAyLTI4VDE5OjI5OjAwLTA1OjAwkPPgcAAAAFJ0RVh0c3ZnOmJhc2UtdXJpAGZpbGU6Ly8vaG9tZS9hai9Db2RlL3RtLW1hc3Rlci9leGFtcGxlcy9nZW9ncmFwaHktY2xhc3MvZmxhZ3MvQk9MLnN2ZxRPa/kAAAAASUVORK5CYII="},"34":{"admin":"Brazil","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABGEAIAAADldHp9AAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAHTklEQVR42u1dXWwUVRjdGiQYfCiNsmmJl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3JhcGh5LWNsYXNzL2ZsYWdzL1dTTS5zdmdo3TPAAAAAAElFTkSuQmCC"}}} \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/1/0.json b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/1/0.json new file mode 100644 index 00000000..2ba6d609 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/1/0.json @@ -0,0 +1 @@ +{"grid":[" "," "," "," "," "," "," "," "," "," "," ! "," ! "," ! ! ! !!! "," !!!!!!! !! "," ### # !! !! !! "," ###### ! !!! "," #### !!! "," #### !! "," ## # ! "," ## # !!! "," # ! !!!! ! "," !! !!!!!!!! !! ! "," !!! ! !!!!!!!!! !!!!! "," !! !!!!!!!!! ! ! "," !! !!!!!!!!!! ! ! "," !! ! !!!!!!!!!!!!!!! !! "," ! ! !!!!!!!!!!!!!!!!!!! !!!! "," ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "," ### !! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "," ####$! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," ##%%$!!!! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," #%%%$$!!!! !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," #%%%$$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," #%%% $$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," #%%%$$$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," ###%% $$$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"," ###%% $$$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! "," ###%%&$ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! "," ##%%% ''!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! "," ( %% ))!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! "," ((% **+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! ",", --....*+!!!!!!!!!!!!///!!!!!!!!!!!!!!!!!!!!!!!! ! ",", 0--....++11!!!!!!!!!//////!!!!!!!!!!!!!!!22!!!!!! ! 3"," 4---5...11111!!!!///!///////!!!!!!66!!!!!!222!!!! ! ! ","444--5771111111!!//////////////6666666666622222!!! ","44489:;;<<<111!!!!/////////////26666666666622222!! ! ! ","44499=>??<< 1!!!! //@@///////222266666666222222!! ","44 499=??A B!! /@@@@//CCC22222666666222222D! EE ","F 9 99GHHIIIIIIJJ KKK@@@@@C22222222222222222DD E ","F HHHIIIIIILL KKKK@@MM222222222222222 2 D EE ","NNNO P HHH IIQRRLLLLLKSSSTT222222222222222 UU EE ","NNNO QQRRLLLLLSSSTTVV22222222222222 UEEE ","NNNOWW WWX XYZZRRRLLLLSSTTTVV222222222222222 E ","NNNNWWWWWXXXXZZZZ[LLLLTTTTTVV]2222V222222222 ","NNNNWWWWWXXXXZZZZZ LLLTTTVVVVV]]VV^^2222222 ","NNNNWWWWWXXXX ZZZZZ_` TTVVVVVVa^^^222222bbE ","cNNdddeeWfffffZZZZZZ`` VVVVVVVa^^^ghh22 ","ccddddeeefffff ZZZi`` VVVVV ^^jjh 2 k ","ccdddeeeefffffliiii VVVV ^jjjh k ","ddmdmeeefffffnnii VV V jjoh kk ","pqmmmreeeffffnnssst VV j hh k ","pmmmmreuuvvvnnnnnt w V j k "," mmrruxuxvvvnnntt y z zz "," {||xxxx}}~~tt yyzz zy "],"keys":["","185","165","71","207","7","69","62","134","132","30","79","59","177","115","164","226","43","228","74","58","149","205","41","109","18","98","184","96","28","202","229","25","80","117","179","113","68","6","87","222","19","217","105","216","64","221","146","211","106","3","170","121","101","127","66","108","188","123","166","147","9","169","24","223","145","159","213","189","124","235","240","215","174","67","161","70","118","214","22","45","199","200","39","190","130","46","99","156","86","47","225","116"],"data":{"3":{"admin":"Afghanistan","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAG70lEQVR42u2cX2iWVRzH3/fmzSgYi0V0sS66mUTscipm2FphRhbEfJUuwqK1wgZd6C5WrNFYrsz+YTlMsSB1A6ELXU2h2GbiZssczrXwzSnOWrVw6kAprDyfc/F7ObyrFOM97/vdxeHhPOc55xnnw/f3Pb9znjeRuDFx5S/ysqnzStnXnvwiWf/lZ4nSRCqukjdfs79qy9//RrLjvQIoBVY+ICWwIgArXrwEVpRg5TNwAkuh8CqhEVgCSx5LYGlVKLCiBut6IyuwtCoUWAIr/5RJHkuK9b9CKbBk3hUKpVgCS2AVLVjyWAJLiiWwBJbAknkXWAJLHktgXXPZ31VSWbKFPgd67uqYe2F/z21nbk1ej2M5AiuvwboWjIDm21tq5t73+khreuvycVuOtdWnnk0dObP0ySWXvzpRsfD29qG6+fOqMrQHO0CkFFgy7ykQoQSgTHnj4jXrLVKnHnijvH0rYFmkbBtK7oKpwCpSsFAaUAAaQOEaUEJ0whIQLVjUcC2PVURggRSqY7EAKe7Ojl3Yg707Xtn+clsD9f9GvQRWxOa974WyV27aa6GxmoRzsg6JNtZp2fDHXUbkKRDkLkhZTyawClaxhltf/PSRd050ba9o+fnwxfS91atGHqu7nH48l6JQDxwgZdHJZdItjkMlS2aqmo93b7rQWPt1W+2yBU8JrIJSLCb1ZF3ninWtlEw2pQWLa7vKo8YiZdvbNITtgZ6/37FxTkPqh9KPNzftAujBV2sO3X1OHit6xSIMMc0WKSYbDctStbKVi5dWnTzywf3ti6jJLGj7ae2lmaHjXaODM8cmnv+ue6z8pTfrDhBYaYmq2X6O7m5ckU4AE3h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2dyYXBoeS1jbGFzcy9mbGFncy9DT0Quc3ZngkgrjAAAAABJRU5ErkJggg=="},"47":{"admin":"Republic of the Congo","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAACrklEQVR42u3dv0tbYRTG8Qt1dCyCIBgkiKijtEgNhEaMOvUfEPwLSku3IrVbXRwUhWopLg4OLgpZBAlWEEUo0qEFKZrNoYg/IKW0JTi8S6D1F7nvveec97uc1SEfn/PkwL2Jos75xUKBme7sqC2NDfZsH3x+O7z+59fR4eiIxlltKo3ny6ezU1uPXkR8qBJIra3vPR7u0UvKTUfqqLv3YeY3sFKbLc8+rBa+WCL1/TDb2t7mJrBSTqm/ucrL0RVLpIBFSnkhBSxIxdClgKWelISleXNKAYuU8kgKWBwRYlt8wEoopVZGdl4XT5JHEO+6vG9KAYvF55EUsIyklITFByxSymNKAYuU8pJSwIKUR1LAgpQXUsAKiFT9GcI3KWCJIHXfy1Mjl6pkSAHLbEo5fMmnFLCCIOXm2fu54/5ckqSAZbaeO1LJpxSw+MYHrPBINVLP01p8wPoPqYXdT/niJEcEYMVGamai/LVY0E5KTkoFDYsu1ci8+9+KICUzh7R0qaBhsfiART1XnFJBwNKeUnpJmYVFSgELUgZJmYLF4gMWpG4hdTzd96rjh15S6mGRUsCiS107z6sfm59kLJFSDMtSPbex+BTD4hsfsEip4BafMliW6nk4pBTAghSw6FLXktJVz+P6B4hIKe0pJTMLI7oUKWUQliP1bn/zwVCNlAIWpEgpqbAgBSy6FKRkw9JOyj3UACkRsCx1qcuny98GTiElAhaLD1iQIqVkw4IUM6JLQUooLE6dTC+wbial5TePraaUyldFak8ph14yqeAeWPVHynfC1b9R2JGq1HJd2QuWV8qw9KbUv6ToUiJgsfiYMcOCFDNmWG9+bjwf2rRBii4lApalUyekRLzclnrOjC2x3PVc++IjpcTBskSKlBIBy0aXqjaVxvNlnpCRM68Am91UDENA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MAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTEtMDItMjhUMjM6MDI6MjEtMDU6MDCSE+1yAAAAUnRFWHRzdmc6YmFzZS11cmkAZmlsZTovLy9ob21lL2FqL0NvZGUvdG0tbWFzdGVyL2V4YW1wbGVzL2dlb2dyYXBoeS1jbGFzcy9mbGFncy9ZRU0uc3Zn7W2pGwAAAB10RVh0c3ZnOmRlc2NyaXB0aW9uAGZsYWcgb2YgWWVtZW5boPDjAAAAAElFTkSuQmCC"}}} \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/1/1.json b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/1/1.json new file mode 100644 index 00000000..9b66a6c4 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/1/1/1.json @@ -0,0 +1 @@ +{"grid":[" !!!#$$$$%%&&' ((( ((( (((( ) "," !#$$$$$***& (((((((( (((((++ + "," $$$$$$**** (( ( ( ( (++++ + "," ,,,$$--*** (((((. +++++ // "," ,,,,---0*1 22 / "," ,,,----011 3 2222 2 "," 4,,,--55111 33 22222222 6"," 44477551 33 2222222222 8 "," 44477951 33 2222222222222 : "," 44979991 3 22222222222222 "," 499999 22222222222222 "," 999999 22222222222222 "," 9999 22222 22222222 "," 9 22 222222 "," 2222 ; "," 2 ;;"," 2 ;; "," 2 ; "," ; "," "," < "," ; "," ; "," "," "," "," "," "," "," "," "," = "," ==== = ========== ======= = "," ========= ======================== "," = =========== ============================ "," ============= =============================== "," ====== = =============== ================================== ","========================= =================================== ","======================== ==================================== ","============================================================ ","=========================================================== ","=========================================================== ","========================================================== ","========================================================== ","========================================================== ","============================================================= ","============================================================ ","============================================================ ","========================================================== ","========================================================== ","========================================================= ","========================================================== ","========================================================== ","========================================================== ","=========================================================== ","========================================================== ","============================================================ ","============================================================ ","============================================================= ","============================================================== ","================================================================","================================================================","================================================================","================================================================"],"keys":["","77","47","46","225","116","200","99","119","224","176","4","242","218","195","155","151","17","140","157","243","72","38","236","241","158","168","15","13"],"data":{"4":{"admin":"Angola","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAAFP0lEQVR42u2bTWgdVRiGr1HTGmOav4YELWmT9EbiwkWQIooLQYlBwUpttI1iRZqqiNiq0FKVCmL9qVYFBQNabKRokaqLWFq0FYTSTbAUm2IhxoUYaKHGv4U0KtxnFt/l5Exmmrlw78m7ebmcOTMnzDy833u+meTGxhoa8nmpNFvN6RZIBZZUYEkFlm6EVGBJBZZUYEmlAksqsKQCSyoVWFKBJRVYUqnAkgosqcCSzq3X192Y31CkhfGTF7oHujbp/gisi1QAmthzf/fye/h9prPv9IpPpus/+7ftkakzOweu2cZIEYgCSxqvP383dKB95T/j4z+0dPx97fGZlmmUERTIIg8TWNIk+kvts2eXTVqMXAWs8f5V5zpmBJY0kU6+vmFf+4HzH+3ra/v9jx8PnW59wIcXRyma+BxQCixplJAoaicmGo/mX3EDO+ic/e3dl6++1y2LtmjymxwWXU1gLWSwQAf1lTZAYQ6l0OdkU2u/uWXpaNiFUmDN1VYo/MaN0DlQMA6HM80CVmFcpXBB96hAhLSEpt3ruXhRFotaEgIr7O4UwdyqxQIgGOEokZzfszRIDZq4ncWL+E/pDA8ygVUEFrs2XwD3RXLO8obxAl4kKt8ukkwWUpwXWLOo7aTHd6rSdtjje2DxmwOBFUjG4jH7XKoIgiQomLLo69RHmAqssMFy05Xbi/K9kE4b56PGaUCtB4HlbxYUuk1EbBISjsIIR1PsEGO9MGpkBPTSWmBFjU3brgQgXKQIHYMdR1MXL3N963+2FIbx+U3uxJq6kfw0NzdS34gdjz/Lzi/x9SM40q5o1L6QYcS+wIn/26KZvtU9fzMQu0nL9rdmuWaS+5P8Hmb7LJxzc0MPLd7c1LyQ9ciH22eWTvFovx167PvWJ0q94ranOt9seppi6m4O3t9792jzykq/q7lcW64lV7WQdf/gO2uWrL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cQbBWgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wMi0yOFQxOToyMzoxMS0wNTowMO0Me5MAAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWovQ29kZS90bS1tYXN0ZXIvZXhhbXBsZXMvZ2VvZ3JhcGh5LWNsYXNzL2ZsYWdzL0FVUy5zdmdlWlDKAAAAAElFTkSuQmCC"},"38":{"admin":"Botswana","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABDEAIAAAC1uevOAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfcAAABAklEQVR42u3bsalCQRCG0SnCRLAjYzvxpsaWYA2bGNqI2YIYGIlgaiBoAWIgzoByz79wIp88Ll+kawxDa72TuYZHQGFRWBSWB0FhUVgUFiksCovCIoVFYVFYpLAoLAqLFBaFRWGRwqKwKCzy27CW57bou1ff/UHW6z/1399/bP9PrKbb+2FG5hqn43V+u5C5xsOsYLFfO07+icnGcfJPmJmZmZmZmZmZmY12PiN2Sj55962WU/Jdoe/hreR2g5tDLLmP5a4jS26QuqvurnrF+/uVDv38i8KisDwICovCorA8CAqLwqKwSGFRWBQWKSwKi8IihUVhUViksCgsCosUFn/SJxiv5sAOieSHAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDExLTA5LTAyVDIzOjI5OjIwLTA0OjAw13HK7gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wMi0yOFQxOTozMDoyNC0wNTowMBsCNxQAAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWovQ29kZS90bS1tYXN0ZXIvZXhhbXBsZXMvZ2VvZ3JhcGh5LWNsYXNzL2ZsYWdzL0JXQS5zdmcDWi++AAAAAElFTkSuQmCC"},"46":{"admin":"Democratic Republic of the Congo","flag_png":"iVBORw0KGgoAAAANSUhEUgAAAGQAAABLEAIAAABZ6mmjAAAACXBIWXMAAABIAAAASABGyWs+AAAABmJLR0T///////8JWPfc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Z3JhcGh5LWNsYXNzL2ZsYWdzL1pXRS5zdmei61vXAAAAAElFTkSuQmCC"}}} \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/README.txt b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/README.txt new file mode 100644 index 00000000..8135e041 --- /dev/null +++ b/bower_components/Leaflet.utfgrid/example/mapbox.geography-class/README.txt @@ -0,0 +1,3 @@ +These tiles are from mapbox (http://mapbox.com/wax/interaction-leaf-native.html) and are included only for demonstration purposes. + +Thanks for their usage guys :-) \ No newline at end of file diff --git a/bower_components/Leaflet.utfgrid/package.json b/bower_components/Leaflet.utfgrid/package.json new file mode 100644 index 00000000..5e1af99e --- /dev/null +++ b/bower_components/Leaflet.utfgrid/package.json @@ -0,0 +1,34 @@ +{ + "name": "leaflet.utfgrid", + "version": "1.0.0", + "description": "Leaflet.utfgrid ===============", + "main": "dist/leaflet.utfgrid-src.js", + "directories": { + "example": "example" + }, + "scripts": { + "test": "jake" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/danzel/Leaflet.utfgrid.git" + }, + "keywords": [ + "leaflet", + "utf", + "grid", + "map" + ], + "author": "Calvin W. Metcalf ", + "license": "MIT", + "bugs": { + "url": "https://github.com/danzel/Leaflet.utfgrid/issues" + }, + "homepage": "https://github.com/danzel/Leaflet.utfgrid#readme", + "devDependencies": { + "jake": "^8.0.12", + "jshint": "^2.8.0", + "leaflet": "^1.0.0-beta.1", + "uglify-js": "^2.4.24" + } +} diff --git a/bower_components/angular-animate/.bower.json b/bower_components/angular-animate/.bower.json new file mode 100644 index 00000000..f3786088 --- /dev/null +++ b/bower_components/angular-animate/.bower.json @@ -0,0 +1,19 @@ +{ + "name": "angular-animate", + "version": "1.4.7", + "main": "./angular-animate.js", + "ignore": [], + "dependencies": { + "angular": "1.4.7" + }, + "homepage": "https://github.com/angular/bower-angular-animate", + "_release": "1.4.7", + "_resolution": { + "type": "version", + "tag": "v1.4.7", + "commit": "3e63136fc3d882828594f3ceb929784eb43aa944" + }, + "_source": "git://github.com/angular/bower-angular-animate.git", + "_target": "1.x", + "_originalSource": "angular-animate" +} \ No newline at end of file diff --git a/bower_components/angular-animate/README.md b/bower_components/angular-animate/README.md new file mode 100644 index 00000000..8313da67 --- /dev/null +++ b/bower_components/angular-animate/README.md @@ -0,0 +1,68 @@ +# packaged angular-animate + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngAnimate). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-animate +``` + +Then add `ngAnimate` as a dependency for your app: + +```javascript +angular.module('myApp', [require('angular-animate')]); +``` + +### bower + +```shell +bower install angular-animate +``` + +Then add a ` +``` + +Then add `ngAnimate` as a dependency for your app: + +```javascript +angular.module('myApp', ['ngAnimate']); +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/api/ngAnimate). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/bower_components/angular-animate/angular-animate.js b/bower_components/angular-animate/angular-animate.js new file mode 100644 index 00000000..19482981 --- /dev/null +++ b/bower_components/angular-animate/angular-animate.js @@ -0,0 +1,3928 @@ +/** + * @license AngularJS v1.4.7 + * (c) 2010-2015 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window, angular, undefined) {'use strict'; + +/* jshint ignore:start */ +var noop = angular.noop; +var extend = angular.extend; +var jqLite = angular.element; +var forEach = angular.forEach; +var isArray = angular.isArray; +var isString = angular.isString; +var isObject = angular.isObject; +var isUndefined = angular.isUndefined; +var isDefined = angular.isDefined; +var isFunction = angular.isFunction; +var isElement = angular.isElement; + +var ELEMENT_NODE = 1; +var COMMENT_NODE = 8; + +var ADD_CLASS_SUFFIX = '-add'; +var REMOVE_CLASS_SUFFIX = '-remove'; +var EVENT_CLASS_PREFIX = 'ng-'; +var ACTIVE_CLASS_SUFFIX = '-active'; + +var NG_ANIMATE_CLASSNAME = 'ng-animate'; +var NG_ANIMATE_CHILDREN_DATA = '$$ngAnimateChildren'; + +// Detect proper transitionend/animationend event names. +var CSS_PREFIX = '', TRANSITION_PROP, TRANSITIONEND_EVENT, ANIMATION_PROP, ANIMATIONEND_EVENT; + +// If unprefixed events are not supported but webkit-prefixed are, use the latter. +// Otherwise, just use W3C names, browsers not supporting them at all will just ignore them. +// Note: Chrome implements `window.onwebkitanimationend` and doesn't implement `window.onanimationend` +// but at the same time dispatches the `animationend` event and not `webkitAnimationEnd`. +// Register both events in case `window.onanimationend` is not supported because of that, +// do the same for `transitionend` as Safari is likely to exhibit similar behavior. +// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit +// therefore there is no reason to test anymore for other vendor prefixes: +// http://caniuse.com/#search=transition +if (isUndefined(window.ontransitionend) && isDefined(window.onwebkittransitionend)) { + CSS_PREFIX = '-webkit-'; + TRANSITION_PROP = 'WebkitTransition'; + TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend'; +} else { + TRANSITION_PROP = 'transition'; + TRANSITIONEND_EVENT = 'transitionend'; +} + +if (isUndefined(window.onanimationend) && isDefined(window.onwebkitanimationend)) { + CSS_PREFIX = '-webkit-'; + ANIMATION_PROP = 'WebkitAnimation'; + ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend'; +} else { + ANIMATION_PROP = 'animation'; + ANIMATIONEND_EVENT = 'animationend'; +} + +var DURATION_KEY = 'Duration'; +var PROPERTY_KEY = 'Property'; +var DELAY_KEY = 'Delay'; +var TIMING_KEY = 'TimingFunction'; +var ANIMATION_ITERATION_COUNT_KEY = 'IterationCount'; +var ANIMATION_PLAYSTATE_KEY = 'PlayState'; +var SAFE_FAST_FORWARD_DURATION_VALUE = 9999; + +var ANIMATION_DELAY_PROP = ANIMATION_PROP + DELAY_KEY; +var ANIMATION_DURATION_PROP = ANIMATION_PROP + DURATION_KEY; +var TRANSITION_DELAY_PROP = TRANSITION_PROP + DELAY_KEY; +var TRANSITION_DURATION_PROP = TRANSITION_PROP + DURATION_KEY; + +var isPromiseLike = function(p) { + return p && p.then ? true : false; +}; + +function assertArg(arg, name, reason) { + if (!arg) { + throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required")); + } + return arg; +} + +function mergeClasses(a,b) { + if (!a && !b) return ''; + if (!a) return b; + if (!b) return a; + if (isArray(a)) a = a.join(' '); + if (isArray(b)) b = b.join(' '); + return a + ' ' + b; +} + +function packageStyles(options) { + var styles = {}; + if (options && (options.to || options.from)) { + styles.to = options.to; + styles.from = options.from; + } + return styles; +} + +function pendClasses(classes, fix, isPrefix) { + var className = ''; + classes = isArray(classes) + ? classes + : classes && isString(classes) && classes.length + ? classes.split(/\s+/) + : []; + forEach(classes, function(klass, i) { + if (klass && klass.length > 0) { + className += (i > 0) ? ' ' : ''; + className += isPrefix ? fix + klass + : klass + fix; + } + }); + return className; +} + +function removeFromArray(arr, val) { + var index = arr.indexOf(val); + if (val >= 0) { + arr.splice(index, 1); + } +} + +function stripCommentsFromElement(element) { + if (element instanceof jqLite) { + switch (element.length) { + case 0: + return []; + break; + + case 1: + // there is no point of stripping anything if the element + // is the only element within the jqLite wrapper. + // (it's important that we retain the element instance.) + if (element[0].nodeType === ELEMENT_NODE) { + return element; + } + break; + + default: + return jqLite(extractElementNode(element)); + break; + } + } + + if (element.nodeType === ELEMENT_NODE) { + return jqLite(element); + } +} + +function extractElementNode(element) { + if (!element[0]) return element; + for (var i = 0; i < element.length; i++) { + var elm = element[i]; + if (elm.nodeType == ELEMENT_NODE) { + return elm; + } + } +} + +function $$addClass($$jqLite, element, className) { + forEach(element, function(elm) { + $$jqLite.addClass(elm, className); + }); +} + +function $$removeClass($$jqLite, element, className) { + forEach(element, function(elm) { + $$jqLite.removeClass(elm, className); + }); +} + +function applyAnimationClassesFactory($$jqLite) { + return function(element, options) { + if (options.addClass) { + $$addClass($$jqLite, element, options.addClass); + options.addClass = null; + } + if (options.removeClass) { + $$removeClass($$jqLite, element, options.removeClass); + options.removeClass = null; + } + } +} + +function prepareAnimationOptions(options) { + options = options || {}; + if (!options.$$prepared) { + var domOperation = options.domOperation || noop; + options.domOperation = function() { + options.$$domOperationFired = true; + domOperation(); + domOperation = noop; + }; + options.$$prepared = true; + } + return options; +} + +function applyAnimationStyles(element, options) { + applyAnimationFromStyles(element, options); + applyAnimationToStyles(element, options); +} + +function applyAnimationFromStyles(element, options) { + if (options.from) { + element.css(options.from); + options.from = null; + } +} + +function applyAnimationToStyles(element, options) { + if (options.to) { + element.css(options.to); + options.to = null; + } +} + +function mergeAnimationOptions(element, target, newOptions) { + var toAdd = (target.addClass || '') + ' ' + (newOptions.addClass || ''); + var toRemove = (target.removeClass || '') + ' ' + (newOptions.removeClass || ''); + var classes = resolveElementClasses(element.attr('class'), toAdd, toRemove); + + if (newOptions.preparationClasses) { + target.preparationClasses = concatWithSpace(newOptions.preparationClasses, target.preparationClasses); + delete newOptions.preparationClasses; + } + + // noop is basically when there is no callback; otherwise something has been set + var realDomOperation = target.domOperation !== noop ? target.domOperation : null; + + extend(target, newOptions); + + // TODO(matsko or sreeramu): proper fix is to maintain all animation callback in array and call at last,but now only leave has the callback so no issue with this. + if (realDomOperation) { + target.domOperation = realDomOperation; + } + + if (classes.addClass) { + target.addClass = classes.addClass; + } else { + target.addClass = null; + } + + if (classes.removeClass) { + target.removeClass = classes.removeClass; + } else { + target.removeClass = null; + } + + return target; +} + +function resolveElementClasses(existing, toAdd, toRemove) { + var ADD_CLASS = 1; + var REMOVE_CLASS = -1; + + var flags = {}; + existing = splitClassesToLookup(existing); + + toAdd = splitClassesToLookup(toAdd); + forEach(toAdd, function(value, key) { + flags[key] = ADD_CLASS; + }); + + toRemove = splitClassesToLookup(toRemove); + forEach(toRemove, function(value, key) { + flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS; + }); + + var classes = { + addClass: '', + removeClass: '' + }; + + forEach(flags, function(val, klass) { + var prop, allow; + if (val === ADD_CLASS) { + prop = 'addClass'; + allow = !existing[klass]; + } else if (val === REMOVE_CLASS) { + prop = 'removeClass'; + allow = existing[klass]; + } + if (allow) { + if (classes[prop].length) { + classes[prop] += ' '; + } + classes[prop] += klass; + } + }); + + function splitClassesToLookup(classes) { + if (isString(classes)) { + classes = classes.split(' '); + } + + var obj = {}; + forEach(classes, function(klass) { + // sometimes the split leaves empty string values + // incase extra spaces were applied to the options + if (klass.length) { + obj[klass] = true; + } + }); + return obj; + } + + return classes; +} + +function getDomNode(element) { + return (element instanceof angular.element) ? element[0] : element; +} + +function applyGeneratedPreparationClasses(element, event, options) { + var classes = ''; + if (event) { + classes = pendClasses(event, EVENT_CLASS_PREFIX, true); + } + if (options.addClass) { + classes = concatWithSpace(classes, pendClasses(options.addClass, ADD_CLASS_SUFFIX)); + } + if (options.removeClass) { + classes = concatWithSpace(classes, pendClasses(options.removeClass, REMOVE_CLASS_SUFFIX)); + } + if (classes.length) { + options.preparationClasses = classes; + element.addClass(classes); + } +} + +function clearGeneratedClasses(element, options) { + if (options.preparationClasses) { + element.removeClass(options.preparationClasses); + options.preparationClasses = null; + } + if (options.activeClasses) { + element.removeClass(options.activeClasses); + options.activeClasses = null; + } +} + +function blockTransitions(node, duration) { + // we use a negative delay value since it performs blocking + // yet it doesn't kill any existing transitions running on the + // same element which makes this safe for class-based animations + var value = duration ? '-' + duration + 's' : ''; + applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]); + return [TRANSITION_DELAY_PROP, value]; +} + +function blockKeyframeAnimations(node, applyBlock) { + var value = applyBlock ? 'paused' : ''; + var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY; + applyInlineStyle(node, [key, value]); + return [key, value]; +} + +function applyInlineStyle(node, styleTuple) { + var prop = styleTuple[0]; + var value = styleTuple[1]; + node.style[prop] = value; +} + +function concatWithSpace(a,b) { + if (!a) return b; + if (!b) return a; + return a + ' ' + b; +} + +var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) { + var queue, cancelFn; + + function scheduler(tasks) { + // we make a copy since RAFScheduler mutates the state + // of the passed in array variable and this would be difficult + // to track down on the outside code + queue = queue.concat(tasks); + nextTick(); + } + + queue = scheduler.queue = []; + + /* waitUntilQuiet does two things: + * 1. It will run the FINAL `fn` value only when an uncancelled RAF has passed through + * 2. It will delay the next wave of tasks from running until the quiet `fn` has run. + * + * The motivation here is that animation code can request more time from the scheduler + * before the next wave runs. This allows for certain DOM properties such as classes to + * be resolved in time for the next animation to run. + */ + scheduler.waitUntilQuiet = function(fn) { + if (cancelFn) cancelFn(); + + cancelFn = $$rAF(function() { + cancelFn = null; + fn(); + nextTick(); + }); + }; + + return scheduler; + + function nextTick() { + if (!queue.length) return; + + var items = queue.shift(); + for (var i = 0; i < items.length; i++) { + items[i](); + } + + if (!cancelFn) { + $$rAF(function() { + if (!cancelFn) nextTick(); + }); + } + } +}]; + +var $$AnimateChildrenDirective = [function() { + return function(scope, element, attrs) { + var val = attrs.ngAnimateChildren; + if (angular.isString(val) && val.length === 0) { //empty attribute + element.data(NG_ANIMATE_CHILDREN_DATA, true); + } else { + attrs.$observe('ngAnimateChildren', function(value) { + value = value === 'on' || value === 'true'; + element.data(NG_ANIMATE_CHILDREN_DATA, value); + }); + } + }; +}]; + +var ANIMATE_TIMER_KEY = '$$animateCss'; + +/** + * @ngdoc service + * @name $animateCss + * @kind object + * + * @description + * The `$animateCss` service is a useful utility to trigger customized CSS-based transitions/keyframes + * from a JavaScript-based animation or directly from a directive. The purpose of `$animateCss` is NOT + * to side-step how `$animate` and ngAnimate work, but the goal is to allow pre-existing animations or + * directives to create more complex animations that can be purely driven using CSS code. + * + * Note that only browsers that support CSS transitions and/or keyframe animations are capable of + * rendering animations triggered via `$animateCss` (bad news for IE9 and lower). + * + * ## Usage + * Once again, `$animateCss` is designed to be used inside of a registered JavaScript animation that + * is powered by ngAnimate. It is possible to use `$animateCss` directly inside of a directive, however, + * any automatic control over cancelling animations and/or preventing animations from being run on + * child elements will not be handled by Angular. For this to work as expected, please use `$animate` to + * trigger the animation and then setup a JavaScript animation that injects `$animateCss` to trigger + * the CSS animation. + * + * The example below shows how we can create a folding animation on an element using `ng-if`: + * + * ```html + * + *
+ * This element will go BOOM + *
+ * + * ``` + * + * Now we create the **JavaScript animation** that will trigger the CSS transition: + * + * ```js + * ngModule.animation('.fold-animation', ['$animateCss', function($animateCss) { + * return { + * enter: function(element, doneFn) { + * var height = element[0].offsetHeight; + * return $animateCss(element, { + * from: { height:'0px' }, + * to: { height:height + 'px' }, + * duration: 1 // one second + * }); + * } + * } + * }]); + * ``` + * + * ## More Advanced Uses + * + * `$animateCss` is the underlying code that ngAnimate uses to power **CSS-based animations** behind the scenes. Therefore CSS hooks + * like `.ng-EVENT`, `.ng-EVENT-active`, `.ng-EVENT-stagger` are all features that can be triggered using `$animateCss` via JavaScript code. + * + * This also means that just about any combination of adding classes, removing classes, setting styles, dynamically setting a keyframe animation, + * applying a hardcoded duration or delay value, changing the animation easing or applying a stagger animation are all options that work with + * `$animateCss`. The service itself is smart enough to figure out the combination of options and examine the element styling properties in order + * to provide a working animation that will run in CSS. + * + * The example below showcases a more advanced version of the `.fold-animation` from the example above: + * + * ```js + * ngModule.animation('.fold-animation', ['$animateCss', function($animateCss) { + * return { + * enter: function(element, doneFn) { + * var height = element[0].offsetHeight; + * return $animateCss(element, { + * addClass: 'red large-text pulse-twice', + * easing: 'ease-out', + * from: { height:'0px' }, + * to: { height:height + 'px' }, + * duration: 1 // one second + * }); + * } + * } + * }]); + * ``` + * + * Since we're adding/removing CSS classes then the CSS transition will also pick those up: + * + * ```css + * /* since a hardcoded duration value of 1 was provided in the JavaScript animation code, + * the CSS classes below will be transitioned despite them being defined as regular CSS classes */ + * .red { background:red; } + * .large-text { font-size:20px; } + * + * /* we can also use a keyframe animation and $animateCss will make it work alongside the transition */ + * .pulse-twice { + * animation: 0.5s pulse linear 2; + * -webkit-animation: 0.5s pulse linear 2; + * } + * + * @keyframes pulse { + * from { transform: scale(0.5); } + * to { transform: scale(1.5); } + * } + * + * @-webkit-keyframes pulse { + * from { -webkit-transform: scale(0.5); } + * to { -webkit-transform: scale(1.5); } + * } + * ``` + * + * Given this complex combination of CSS classes, styles and options, `$animateCss` will figure everything out and make the animation happen. + * + * ## How the Options are handled + * + * `$animateCss` is very versatile and intelligent when it comes to figuring out what configurations to apply to the element to ensure the animation + * works with the options provided. Say for example we were adding a class that contained a keyframe value and we wanted to also animate some inline + * styles using the `from` and `to` properties. + * + * ```js + * var animator = $animateCss(element, { + * from: { background:'red' }, + * to: { background:'blue' } + * }); + * animator.start(); + * ``` + * + * ```css + * .rotating-animation { + * animation:0.5s rotate linear; + * -webkit-animation:0.5s rotate linear; + * } + * + * @keyframes rotate { + * from { transform: rotate(0deg); } + * to { transform: rotate(360deg); } + * } + * + * @-webkit-keyframes rotate { + * from { -webkit-transform: rotate(0deg); } + * to { -webkit-transform: rotate(360deg); } + * } + * ``` + * + * The missing pieces here are that we do not have a transition set (within the CSS code nor within the `$animateCss` options) and the duration of the animation is + * going to be detected from what the keyframe styles on the CSS class are. In this event, `$animateCss` will automatically create an inline transition + * style matching the duration detected from the keyframe style (which is present in the CSS class that is being added) and then prepare both the transition + * and keyframe animations to run in parallel on the element. Then when the animation is underway the provided `from` and `to` CSS styles will be applied + * and spread across the transition and keyframe animation. + * + * ## What is returned + * + * `$animateCss` works in two stages: a preparation phase and an animation phase. Therefore when `$animateCss` is first called it will NOT actually + * start the animation. All that is going on here is that the element is being prepared for the animation (which means that the generated CSS classes are + * added and removed on the element). Once `$animateCss` is called it will return an object with the following properties: + * + * ```js + * var animator = $animateCss(element, { ... }); + * ``` + * + * Now what do the contents of our `animator` variable look like: + * + * ```js + * { + * // starts the animation + * start: Function, + * + * // ends (aborts) the animation + * end: Function + * } + * ``` + * + * To actually start the animation we need to run `animation.start()` which will then return a promise that we can hook into to detect when the animation ends. + * If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and stlyes may have been + * applied to the element during the preparation phase). Note that all other properties such as duration, delay, transitions and keyframes are just properties + * and that changing them will not reconfigure the parameters of the animation. + * + * ### runner.done() vs runner.then() + * It is documented that `animation.start()` will return a promise object and this is true, however, there is also an additional method available on the + * runner called `.done(callbackFn)`. The done method works the same as `.finally(callbackFn)`, however, it does **not trigger a digest to occur**. + * Therefore, for performance reasons, it's always best to use `runner.done(callback)` instead of `runner.then()`, `runner.catch()` or `runner.finally()` + * unless you really need a digest to kick off afterwards. + * + * Keep in mind that, to make this easier, ngAnimate has tweaked the JS animations API to recognize when a runner instance is returned from $animateCss + * (so there is no need to call `runner.done(doneFn)` inside of your JavaScript animation code). + * Check the {@link ngAnimate.$animateCss#usage animation code above} to see how this works. + * + * @param {DOMElement} element the element that will be animated + * @param {object} options the animation-related options that will be applied during the animation + * + * * `event` - The DOM event (e.g. enter, leave, move). When used, a generated CSS class of `ng-EVENT` and `ng-EVENT-active` will be applied + * to the element during the animation. Multiple events can be provided when spaces are used as a separator. (Note that this will not perform any DOM operation.) + * * `easing` - The CSS easing value that will be applied to the transition or keyframe animation (or both). + * * `transitionStyle` - The raw CSS transition style that will be used (e.g. `1s linear all`). + * * `keyframeStyle` - The raw CSS keyframe animation style that will be used (e.g. `1s my_animation linear`). + * * `from` - The starting CSS styles (a key/value object) that will be applied at the start of the animation. + * * `to` - The ending CSS styles (a key/value object) that will be applied across the animation via a CSS transition. + * * `addClass` - A space separated list of CSS classes that will be added to the element and spread across the animation. + * * `removeClass` - A space separated list of CSS classes that will be removed from the element and spread across the animation. + * * `duration` - A number value representing the total duration of the transition and/or keyframe (note that a value of 1 is 1000ms). If a value of `0` + * is provided then the animation will be skipped entirely. + * * `delay` - A number value representing the total delay of the transition and/or keyframe (note that a value of 1 is 1000ms). If a value of `true` is + * used then whatever delay value is detected from the CSS classes will be mirrored on the elements styles (e.g. by setting delay true then the style value + * of the element will be `transition-delay: DETECTED_VALUE`). Using `true` is useful when you want the CSS classes and inline styles to all share the same + * CSS delay value. + * * `stagger` - A numeric time value representing the delay between successively animated elements + * ({@link ngAnimate#css-staggering-animations Click here to learn how CSS-based staggering works in ngAnimate.}) + * * `staggerIndex` - The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item in the stagger; therefore when a + * * `stagger` option value of `0.1` is used then there will be a stagger delay of `600ms`) + * * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occuring on the classes being added and removed.) + * * `cleanupStyles` - Whether or not the provided `from` and `to` styles will be removed once + * the animation is closed. This is useful for when the styles are used purely for the sake of + * the animation and do not have a lasting visual effect on the element (e.g. a colapse and open animation). + * By default this value is set to `false`. + * + * @return {object} an object with start and end methods and details about the animation. + * + * * `start` - The method to start the animation. This will return a `Promise` when called. + * * `end` - This method will cancel the animation and remove all applied CSS classes and styles. + */ +var ONE_SECOND = 1000; +var BASE_TEN = 10; + +var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3; +var CLOSING_TIME_BUFFER = 1.5; + +var DETECT_CSS_PROPERTIES = { + transitionDuration: TRANSITION_DURATION_PROP, + transitionDelay: TRANSITION_DELAY_PROP, + transitionProperty: TRANSITION_PROP + PROPERTY_KEY, + animationDuration: ANIMATION_DURATION_PROP, + animationDelay: ANIMATION_DELAY_PROP, + animationIterationCount: ANIMATION_PROP + ANIMATION_ITERATION_COUNT_KEY +}; + +var DETECT_STAGGER_CSS_PROPERTIES = { + transitionDuration: TRANSITION_DURATION_PROP, + transitionDelay: TRANSITION_DELAY_PROP, + animationDuration: ANIMATION_DURATION_PROP, + animationDelay: ANIMATION_DELAY_PROP +}; + +function getCssKeyframeDurationStyle(duration) { + return [ANIMATION_DURATION_PROP, duration + 's']; +} + +function getCssDelayStyle(delay, isKeyframeAnimation) { + var prop = isKeyframeAnimation ? ANIMATION_DELAY_PROP : TRANSITION_DELAY_PROP; + return [prop, delay + 's']; +} + +function computeCssStyles($window, element, properties) { + var styles = Object.create(null); + var detectedStyles = $window.getComputedStyle(element) || {}; + forEach(properties, function(formalStyleName, actualStyleName) { + var val = detectedStyles[formalStyleName]; + if (val) { + var c = val.charAt(0); + + // only numerical-based values have a negative sign or digit as the first value + if (c === '-' || c === '+' || c >= 0) { + val = parseMaxTime(val); + } + + // by setting this to null in the event that the delay is not set or is set directly as 0 + // then we can still allow for zegative values to be used later on and not mistake this + // value for being greater than any other negative value. + if (val === 0) { + val = null; + } + styles[actualStyleName] = val; + } + }); + + return styles; +} + +function parseMaxTime(str) { + var maxValue = 0; + var values = str.split(/\s*,\s*/); + forEach(values, function(value) { + // it's always safe to consider only second values and omit `ms` values since + // getComputedStyle will always handle the conversion for us + if (value.charAt(value.length - 1) == 's') { + value = value.substring(0, value.length - 1); + } + value = parseFloat(value) || 0; + maxValue = maxValue ? Math.max(value, maxValue) : value; + }); + return maxValue; +} + +function truthyTimingValue(val) { + return val === 0 || val != null; +} + +function getCssTransitionDurationStyle(duration, applyOnlyDuration) { + var style = TRANSITION_PROP; + var value = duration + 's'; + if (applyOnlyDuration) { + style += DURATION_KEY; + } else { + value += ' linear all'; + } + return [style, value]; +} + +function createLocalCacheLookup() { + var cache = Object.create(null); + return { + flush: function() { + cache = Object.create(null); + }, + + count: function(key) { + var entry = cache[key]; + return entry ? entry.total : 0; + }, + + get: function(key) { + var entry = cache[key]; + return entry && entry.value; + }, + + put: function(key, value) { + if (!cache[key]) { + cache[key] = { total: 1, value: value }; + } else { + cache[key].total++; + } + } + }; +} + +// we do not reassign an already present style value since +// if we detect the style property value again we may be +// detecting styles that were added via the `from` styles. +// We make use of `isDefined` here since an empty string +// or null value (which is what getPropertyValue will return +// for a non-existing style) will still be marked as a valid +// value for the style (a falsy value implies that the style +// is to be removed at the end of the animation). If we had a simple +// "OR" statement then it would not be enough to catch that. +function registerRestorableStyles(backup, node, properties) { + forEach(properties, function(prop) { + backup[prop] = isDefined(backup[prop]) + ? backup[prop] + : node.style.getPropertyValue(prop); + }); +} + +var $AnimateCssProvider = ['$animateProvider', function($animateProvider) { + var gcsLookup = createLocalCacheLookup(); + var gcsStaggerLookup = createLocalCacheLookup(); + + this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', + '$$forceReflow', '$sniffer', '$$rAFScheduler', '$animate', + function($window, $$jqLite, $$AnimateRunner, $timeout, + $$forceReflow, $sniffer, $$rAFScheduler, $animate) { + + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + + var parentCounter = 0; + function gcsHashFn(node, extraClasses) { + var KEY = "$$ngAnimateParentKey"; + var parentNode = node.parentNode; + var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter); + return parentID + '-' + node.getAttribute('class') + '-' + extraClasses; + } + + function computeCachedCssStyles(node, className, cacheKey, properties) { + var timings = gcsLookup.get(cacheKey); + + if (!timings) { + timings = computeCssStyles($window, node, properties); + if (timings.animationIterationCount === 'infinite') { + timings.animationIterationCount = 1; + } + } + + // we keep putting this in multiple times even though the value and the cacheKey are the same + // because we're keeping an interal tally of how many duplicate animations are detected. + gcsLookup.put(cacheKey, timings); + return timings; + } + + function computeCachedCssStaggerStyles(node, className, cacheKey, properties) { + var stagger; + + // if we have one or more existing matches of matching elements + // containing the same parent + CSS styles (which is how cacheKey works) + // then staggering is possible + if (gcsLookup.count(cacheKey) > 0) { + stagger = gcsStaggerLookup.get(cacheKey); + + if (!stagger) { + var staggerClassName = pendClasses(className, '-stagger'); + + $$jqLite.addClass(node, staggerClassName); + + stagger = computeCssStyles($window, node, properties); + + // force the conversion of a null value to zero incase not set + stagger.animationDuration = Math.max(stagger.animationDuration, 0); + stagger.transitionDuration = Math.max(stagger.transitionDuration, 0); + + $$jqLite.removeClass(node, staggerClassName); + + gcsStaggerLookup.put(cacheKey, stagger); + } + } + + return stagger || {}; + } + + var cancelLastRAFRequest; + var rafWaitQueue = []; + function waitUntilQuiet(callback) { + rafWaitQueue.push(callback); + $$rAFScheduler.waitUntilQuiet(function() { + gcsLookup.flush(); + gcsStaggerLookup.flush(); + + // DO NOT REMOVE THIS LINE OR REFACTOR OUT THE `pageWidth` variable. + // PLEASE EXAMINE THE `$$forceReflow` service to understand why. + var pageWidth = $$forceReflow(); + + // we use a for loop to ensure that if the queue is changed + // during this looping then it will consider new requests + for (var i = 0; i < rafWaitQueue.length; i++) { + rafWaitQueue[i](pageWidth); + } + rafWaitQueue.length = 0; + }); + } + + function computeTimings(node, className, cacheKey) { + var timings = computeCachedCssStyles(node, className, cacheKey, DETECT_CSS_PROPERTIES); + var aD = timings.animationDelay; + var tD = timings.transitionDelay; + timings.maxDelay = aD && tD + ? Math.max(aD, tD) + : (aD || tD); + timings.maxDuration = Math.max( + timings.animationDuration * timings.animationIterationCount, + timings.transitionDuration); + + return timings; + } + + return function init(element, options) { + var restoreStyles = {}; + var node = getDomNode(element); + if (!node + || !node.parentNode + || !$animate.enabled()) { + return closeAndReturnNoopAnimator(); + } + + options = prepareAnimationOptions(options); + + var temporaryStyles = []; + var classes = element.attr('class'); + var styles = packageStyles(options); + var animationClosed; + var animationPaused; + var animationCompleted; + var runner; + var runnerHost; + var maxDelay; + var maxDelayTime; + var maxDuration; + var maxDurationTime; + + if (options.duration === 0 || (!$sniffer.animations && !$sniffer.transitions)) { + return closeAndReturnNoopAnimator(); + } + + var method = options.event && isArray(options.event) + ? options.event.join(' ') + : options.event; + + var isStructural = method && options.structural; + var structuralClassName = ''; + var addRemoveClassName = ''; + + if (isStructural) { + structuralClassName = pendClasses(method, EVENT_CLASS_PREFIX, true); + } else if (method) { + structuralClassName = method; + } + + if (options.addClass) { + addRemoveClassName += pendClasses(options.addClass, ADD_CLASS_SUFFIX); + } + + if (options.removeClass) { + if (addRemoveClassName.length) { + addRemoveClassName += ' '; + } + addRemoveClassName += pendClasses(options.removeClass, REMOVE_CLASS_SUFFIX); + } + + // there may be a situation where a structural animation is combined together + // with CSS classes that need to resolve before the animation is computed. + // However this means that there is no explicit CSS code to block the animation + // from happening (by setting 0s none in the class name). If this is the case + // we need to apply the classes before the first rAF so we know to continue if + // there actually is a detected transition or keyframe animation + if (options.applyClassesEarly && addRemoveClassName.length) { + applyAnimationClasses(element, options); + } + + var preparationClasses = [structuralClassName, addRemoveClassName].join(' ').trim(); + var fullClassName = classes + ' ' + preparationClasses; + var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX); + var hasToStyles = styles.to && Object.keys(styles.to).length > 0; + var containsKeyframeAnimation = (options.keyframeStyle || '').length > 0; + + // there is no way we can trigger an animation if no styles and + // no classes are being applied which would then trigger a transition, + // unless there a is raw keyframe value that is applied to the element. + if (!containsKeyframeAnimation + && !hasToStyles + && !preparationClasses) { + return closeAndReturnNoopAnimator(); + } + + var cacheKey, stagger; + if (options.stagger > 0) { + var staggerVal = parseFloat(options.stagger); + stagger = { + transitionDelay: staggerVal, + animationDelay: staggerVal, + transitionDuration: 0, + animationDuration: 0 + }; + } else { + cacheKey = gcsHashFn(node, fullClassName); + stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES); + } + + if (!options.$$skipPreparationClasses) { + $$jqLite.addClass(element, preparationClasses); + } + + var applyOnlyDuration; + + if (options.transitionStyle) { + var transitionStyle = [TRANSITION_PROP, options.transitionStyle]; + applyInlineStyle(node, transitionStyle); + temporaryStyles.push(transitionStyle); + } + + if (options.duration >= 0) { + applyOnlyDuration = node.style[TRANSITION_PROP].length > 0; + var durationStyle = getCssTransitionDurationStyle(options.duration, applyOnlyDuration); + + // we set the duration so that it will be picked up by getComputedStyle later + applyInlineStyle(node, durationStyle); + temporaryStyles.push(durationStyle); + } + + if (options.keyframeStyle) { + var keyframeStyle = [ANIMATION_PROP, options.keyframeStyle]; + applyInlineStyle(node, keyframeStyle); + temporaryStyles.push(keyframeStyle); + } + + var itemIndex = stagger + ? options.staggerIndex >= 0 + ? options.staggerIndex + : gcsLookup.count(cacheKey) + : 0; + + var isFirst = itemIndex === 0; + + // this is a pre-emptive way of forcing the setup classes to be added and applied INSTANTLY + // without causing any combination of transitions to kick in. By adding a negative delay value + // it forces the setup class' transition to end immediately. We later then remove the negative + // transition delay to allow for the transition to naturally do it's thing. The beauty here is + // that if there is no transition defined then nothing will happen and this will also allow + // other transitions to be stacked on top of each other without any chopping them out. + if (isFirst && !options.skipBlocking) { + blockTransitions(node, SAFE_FAST_FORWARD_DURATION_VALUE); + } + + var timings = computeTimings(node, fullClassName, cacheKey); + var relativeDelay = timings.maxDelay; + maxDelay = Math.max(relativeDelay, 0); + maxDuration = timings.maxDuration; + + var flags = {}; + flags.hasTransitions = timings.transitionDuration > 0; + flags.hasAnimations = timings.animationDuration > 0; + flags.hasTransitionAll = flags.hasTransitions && timings.transitionProperty == 'all'; + flags.applyTransitionDuration = hasToStyles && ( + (flags.hasTransitions && !flags.hasTransitionAll) + || (flags.hasAnimations && !flags.hasTransitions)); + flags.applyAnimationDuration = options.duration && flags.hasAnimations; + flags.applyTransitionDelay = truthyTimingValue(options.delay) && (flags.applyTransitionDuration || flags.hasTransitions); + flags.applyAnimationDelay = truthyTimingValue(options.delay) && flags.hasAnimations; + flags.recalculateTimingStyles = addRemoveClassName.length > 0; + + if (flags.applyTransitionDuration || flags.applyAnimationDuration) { + maxDuration = options.duration ? parseFloat(options.duration) : maxDuration; + + if (flags.applyTransitionDuration) { + flags.hasTransitions = true; + timings.transitionDuration = maxDuration; + applyOnlyDuration = node.style[TRANSITION_PROP + PROPERTY_KEY].length > 0; + temporaryStyles.push(getCssTransitionDurationStyle(maxDuration, applyOnlyDuration)); + } + + if (flags.applyAnimationDuration) { + flags.hasAnimations = true; + timings.animationDuration = maxDuration; + temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration)); + } + } + + if (maxDuration === 0 && !flags.recalculateTimingStyles) { + return closeAndReturnNoopAnimator(); + } + + if (options.delay != null) { + var delayStyle = parseFloat(options.delay); + + if (flags.applyTransitionDelay) { + temporaryStyles.push(getCssDelayStyle(delayStyle)); + } + + if (flags.applyAnimationDelay) { + temporaryStyles.push(getCssDelayStyle(delayStyle, true)); + } + } + + // we need to recalculate the delay value since we used a pre-emptive negative + // delay value and the delay value is required for the final event checking. This + // property will ensure that this will happen after the RAF phase has passed. + if (options.duration == null && timings.transitionDuration > 0) { + flags.recalculateTimingStyles = flags.recalculateTimingStyles || isFirst; + } + + maxDelayTime = maxDelay * ONE_SECOND; + maxDurationTime = maxDuration * ONE_SECOND; + if (!options.skipBlocking) { + flags.blockTransition = timings.transitionDuration > 0; + flags.blockKeyframeAnimation = timings.animationDuration > 0 && + stagger.animationDelay > 0 && + stagger.animationDuration === 0; + } + + if (options.from) { + if (options.cleanupStyles) { + registerRestorableStyles(restoreStyles, node, Object.keys(options.from)); + } + applyAnimationFromStyles(element, options); + } + + if (flags.blockTransition || flags.blockKeyframeAnimation) { + applyBlocking(maxDuration); + } else if (!options.skipBlocking) { + blockTransitions(node, false); + } + + // TODO(matsko): for 1.5 change this code to have an animator object for better debugging + return { + $$willAnimate: true, + end: endFn, + start: function() { + if (animationClosed) return; + + runnerHost = { + end: endFn, + cancel: cancelFn, + resume: null, //this will be set during the start() phase + pause: null + }; + + runner = new $$AnimateRunner(runnerHost); + + waitUntilQuiet(start); + + // we don't have access to pause/resume the animation + // since it hasn't run yet. AnimateRunner will therefore + // set noop functions for resume and pause and they will + // later be overridden once the animation is triggered + return runner; + } + }; + + function endFn() { + close(); + } + + function cancelFn() { + close(true); + } + + function close(rejected) { // jshint ignore:line + // if the promise has been called already then we shouldn't close + // the animation again + if (animationClosed || (animationCompleted && animationPaused)) return; + animationClosed = true; + animationPaused = false; + + if (!options.$$skipPreparationClasses) { + $$jqLite.removeClass(element, preparationClasses); + } + $$jqLite.removeClass(element, activeClasses); + + blockKeyframeAnimations(node, false); + blockTransitions(node, false); + + forEach(temporaryStyles, function(entry) { + // There is only one way to remove inline style properties entirely from elements. + // By using `removeProperty` this works, but we need to convert camel-cased CSS + // styles down to hyphenated values. + node.style[entry[0]] = ''; + }); + + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); + + if (Object.keys(restoreStyles).length) { + forEach(restoreStyles, function(value, prop) { + value ? node.style.setProperty(prop, value) + : node.style.removeProperty(prop); + }); + } + + // the reason why we have this option is to allow a synchronous closing callback + // that is fired as SOON as the animation ends (when the CSS is removed) or if + // the animation never takes off at all. A good example is a leave animation since + // the element must be removed just after the animation is over or else the element + // will appear on screen for one animation frame causing an overbearing flicker. + if (options.onDone) { + options.onDone(); + } + + // if the preparation function fails then the promise is not setup + if (runner) { + runner.complete(!rejected); + } + } + + function applyBlocking(duration) { + if (flags.blockTransition) { + blockTransitions(node, duration); + } + + if (flags.blockKeyframeAnimation) { + blockKeyframeAnimations(node, !!duration); + } + } + + function closeAndReturnNoopAnimator() { + runner = new $$AnimateRunner({ + end: endFn, + cancel: cancelFn + }); + + // should flush the cache animation + waitUntilQuiet(noop); + close(); + + return { + $$willAnimate: false, + start: function() { + return runner; + }, + end: endFn + }; + } + + function start() { + if (animationClosed) return; + if (!node.parentNode) { + close(); + return; + } + + var startTime, events = []; + + // even though we only pause keyframe animations here the pause flag + // will still happen when transitions are used. Only the transition will + // not be paused since that is not possible. If the animation ends when + // paused then it will not complete until unpaused or cancelled. + var playPause = function(playAnimation) { + if (!animationCompleted) { + animationPaused = !playAnimation; + if (timings.animationDuration) { + var value = blockKeyframeAnimations(node, animationPaused); + animationPaused + ? temporaryStyles.push(value) + : removeFromArray(temporaryStyles, value); + } + } else if (animationPaused && playAnimation) { + animationPaused = false; + close(); + } + }; + + // checking the stagger duration prevents an accidently cascade of the CSS delay style + // being inherited from the parent. If the transition duration is zero then we can safely + // rely that the delay value is an intential stagger delay style. + var maxStagger = itemIndex > 0 + && ((timings.transitionDuration && stagger.transitionDuration === 0) || + (timings.animationDuration && stagger.animationDuration === 0)) + && Math.max(stagger.animationDelay, stagger.transitionDelay); + if (maxStagger) { + $timeout(triggerAnimationStart, + Math.floor(maxStagger * itemIndex * ONE_SECOND), + false); + } else { + triggerAnimationStart(); + } + + // this will decorate the existing promise runner with pause/resume methods + runnerHost.resume = function() { + playPause(true); + }; + + runnerHost.pause = function() { + playPause(false); + }; + + function triggerAnimationStart() { + // just incase a stagger animation kicks in when the animation + // itself was cancelled entirely + if (animationClosed) return; + + applyBlocking(false); + + forEach(temporaryStyles, function(entry) { + var key = entry[0]; + var value = entry[1]; + node.style[key] = value; + }); + + applyAnimationClasses(element, options); + $$jqLite.addClass(element, activeClasses); + + if (flags.recalculateTimingStyles) { + fullClassName = node.className + ' ' + preparationClasses; + cacheKey = gcsHashFn(node, fullClassName); + + timings = computeTimings(node, fullClassName, cacheKey); + relativeDelay = timings.maxDelay; + maxDelay = Math.max(relativeDelay, 0); + maxDuration = timings.maxDuration; + + if (maxDuration === 0) { + close(); + return; + } + + flags.hasTransitions = timings.transitionDuration > 0; + flags.hasAnimations = timings.animationDuration > 0; + } + + if (flags.applyAnimationDelay) { + relativeDelay = typeof options.delay !== "boolean" && truthyTimingValue(options.delay) + ? parseFloat(options.delay) + : relativeDelay; + + maxDelay = Math.max(relativeDelay, 0); + timings.animationDelay = relativeDelay; + delayStyle = getCssDelayStyle(relativeDelay, true); + temporaryStyles.push(delayStyle); + node.style[delayStyle[0]] = delayStyle[1]; + } + + maxDelayTime = maxDelay * ONE_SECOND; + maxDurationTime = maxDuration * ONE_SECOND; + + if (options.easing) { + var easeProp, easeVal = options.easing; + if (flags.hasTransitions) { + easeProp = TRANSITION_PROP + TIMING_KEY; + temporaryStyles.push([easeProp, easeVal]); + node.style[easeProp] = easeVal; + } + if (flags.hasAnimations) { + easeProp = ANIMATION_PROP + TIMING_KEY; + temporaryStyles.push([easeProp, easeVal]); + node.style[easeProp] = easeVal; + } + } + + if (timings.transitionDuration) { + events.push(TRANSITIONEND_EVENT); + } + + if (timings.animationDuration) { + events.push(ANIMATIONEND_EVENT); + } + + startTime = Date.now(); + var timerTime = maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime; + var endTime = startTime + timerTime; + + var animationsData = element.data(ANIMATE_TIMER_KEY) || []; + var setupFallbackTimer = true; + if (animationsData.length) { + var currentTimerData = animationsData[0]; + setupFallbackTimer = endTime > currentTimerData.expectedEndTime; + if (setupFallbackTimer) { + $timeout.cancel(currentTimerData.timer); + } else { + animationsData.push(close); + } + } + + if (setupFallbackTimer) { + var timer = $timeout(onAnimationExpired, timerTime, false); + animationsData[0] = { + timer: timer, + expectedEndTime: endTime + }; + animationsData.push(close); + element.data(ANIMATE_TIMER_KEY, animationsData); + } + + element.on(events.join(' '), onAnimationProgress); + if (options.to) { + if (options.cleanupStyles) { + registerRestorableStyles(restoreStyles, node, Object.keys(options.to)); + } + applyAnimationToStyles(element, options); + } + } + + function onAnimationExpired() { + var animationsData = element.data(ANIMATE_TIMER_KEY); + + // this will be false in the event that the element was + // removed from the DOM (via a leave animation or something + // similar) + if (animationsData) { + for (var i = 1; i < animationsData.length; i++) { + animationsData[i](); + } + element.removeData(ANIMATE_TIMER_KEY); + } + } + + function onAnimationProgress(event) { + event.stopPropagation(); + var ev = event.originalEvent || event; + var timeStamp = ev.$manualTimeStamp || ev.timeStamp || Date.now(); + + /* Firefox (or possibly just Gecko) likes to not round values up + * when a ms measurement is used for the animation */ + var elapsedTime = parseFloat(ev.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES)); + + /* $manualTimeStamp is a mocked timeStamp value which is set + * within browserTrigger(). This is only here so that tests can + * mock animations properly. Real events fallback to event.timeStamp, + * or, if they don't, then a timeStamp is automatically created for them. + * We're checking to see if the timeStamp surpasses the expected delay, + * but we're using elapsedTime instead of the timeStamp on the 2nd + * pre-condition since animations sometimes close off early */ + if (Math.max(timeStamp - startTime, 0) >= maxDelayTime && elapsedTime >= maxDuration) { + // we set this flag to ensure that if the transition is paused then, when resumed, + // the animation will automatically close itself since transitions cannot be paused. + animationCompleted = true; + close(); + } + } + } + }; + }]; +}]; + +var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationProvider) { + $$animationProvider.drivers.push('$$animateCssDriver'); + + var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim'; + var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-anchor'; + + var NG_OUT_ANCHOR_CLASS_NAME = 'ng-anchor-out'; + var NG_IN_ANCHOR_CLASS_NAME = 'ng-anchor-in'; + + function isDocumentFragment(node) { + return node.parentNode && node.parentNode.nodeType === 11; + } + + this.$get = ['$animateCss', '$rootScope', '$$AnimateRunner', '$rootElement', '$sniffer', '$$jqLite', '$document', + function($animateCss, $rootScope, $$AnimateRunner, $rootElement, $sniffer, $$jqLite, $document) { + + // only browsers that support these properties can render animations + if (!$sniffer.animations && !$sniffer.transitions) return noop; + + var bodyNode = $document[0].body; + var rootNode = getDomNode($rootElement); + + var rootBodyElement = jqLite( + // this is to avoid using something that exists outside of the body + // we also special case the doc fragement case because our unit test code + // appends the $rootElement to the body after the app has been bootstrapped + isDocumentFragment(rootNode) || bodyNode.contains(rootNode) ? rootNode : bodyNode + ); + + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + + return function initDriverFn(animationDetails) { + return animationDetails.from && animationDetails.to + ? prepareFromToAnchorAnimation(animationDetails.from, + animationDetails.to, + animationDetails.classes, + animationDetails.anchors) + : prepareRegularAnimation(animationDetails); + }; + + function filterCssClasses(classes) { + //remove all the `ng-` stuff + return classes.replace(/\bng-\S+\b/g, ''); + } + + function getUniqueValues(a, b) { + if (isString(a)) a = a.split(' '); + if (isString(b)) b = b.split(' '); + return a.filter(function(val) { + return b.indexOf(val) === -1; + }).join(' '); + } + + function prepareAnchoredAnimation(classes, outAnchor, inAnchor) { + var clone = jqLite(getDomNode(outAnchor).cloneNode(true)); + var startingClasses = filterCssClasses(getClassVal(clone)); + + outAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME); + inAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME); + + clone.addClass(NG_ANIMATE_ANCHOR_CLASS_NAME); + + rootBodyElement.append(clone); + + var animatorIn, animatorOut = prepareOutAnimation(); + + // the user may not end up using the `out` animation and + // only making use of the `in` animation or vice-versa. + // In either case we should allow this and not assume the + // animation is over unless both animations are not used. + if (!animatorOut) { + animatorIn = prepareInAnimation(); + if (!animatorIn) { + return end(); + } + } + + var startingAnimator = animatorOut || animatorIn; + + return { + start: function() { + var runner; + + var currentAnimation = startingAnimator.start(); + currentAnimation.done(function() { + currentAnimation = null; + if (!animatorIn) { + animatorIn = prepareInAnimation(); + if (animatorIn) { + currentAnimation = animatorIn.start(); + currentAnimation.done(function() { + currentAnimation = null; + end(); + runner.complete(); + }); + return currentAnimation; + } + } + // in the event that there is no `in` animation + end(); + runner.complete(); + }); + + runner = new $$AnimateRunner({ + end: endFn, + cancel: endFn + }); + + return runner; + + function endFn() { + if (currentAnimation) { + currentAnimation.end(); + } + } + } + }; + + function calculateAnchorStyles(anchor) { + var styles = {}; + + var coords = getDomNode(anchor).getBoundingClientRect(); + + // we iterate directly since safari messes up and doesn't return + // all the keys for the coods object when iterated + forEach(['width','height','top','left'], function(key) { + var value = coords[key]; + switch (key) { + case 'top': + value += bodyNode.scrollTop; + break; + case 'left': + value += bodyNode.scrollLeft; + break; + } + styles[key] = Math.floor(value) + 'px'; + }); + return styles; + } + + function prepareOutAnimation() { + var animator = $animateCss(clone, { + addClass: NG_OUT_ANCHOR_CLASS_NAME, + delay: true, + from: calculateAnchorStyles(outAnchor) + }); + + // read the comment within `prepareRegularAnimation` to understand + // why this check is necessary + return animator.$$willAnimate ? animator : null; + } + + function getClassVal(element) { + return element.attr('class') || ''; + } + + function prepareInAnimation() { + var endingClasses = filterCssClasses(getClassVal(inAnchor)); + var toAdd = getUniqueValues(endingClasses, startingClasses); + var toRemove = getUniqueValues(startingClasses, endingClasses); + + var animator = $animateCss(clone, { + to: calculateAnchorStyles(inAnchor), + addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, + removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, + delay: true + }); + + // read the comment within `prepareRegularAnimation` to understand + // why this check is necessary + return animator.$$willAnimate ? animator : null; + } + + function end() { + clone.remove(); + outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + } + } + + function prepareFromToAnchorAnimation(from, to, classes, anchors) { + var fromAnimation = prepareRegularAnimation(from, noop); + var toAnimation = prepareRegularAnimation(to, noop); + + var anchorAnimations = []; + forEach(anchors, function(anchor) { + var outElement = anchor['out']; + var inElement = anchor['in']; + var animator = prepareAnchoredAnimation(classes, outElement, inElement); + if (animator) { + anchorAnimations.push(animator); + } + }); + + // no point in doing anything when there are no elements to animate + if (!fromAnimation && !toAnimation && anchorAnimations.length === 0) return; + + return { + start: function() { + var animationRunners = []; + + if (fromAnimation) { + animationRunners.push(fromAnimation.start()); + } + + if (toAnimation) { + animationRunners.push(toAnimation.start()); + } + + forEach(anchorAnimations, function(animation) { + animationRunners.push(animation.start()); + }); + + var runner = new $$AnimateRunner({ + end: endFn, + cancel: endFn // CSS-driven animations cannot be cancelled, only ended + }); + + $$AnimateRunner.all(animationRunners, function(status) { + runner.complete(status); + }); + + return runner; + + function endFn() { + forEach(animationRunners, function(runner) { + runner.end(); + }); + } + } + }; + } + + function prepareRegularAnimation(animationDetails) { + var element = animationDetails.element; + var options = animationDetails.options || {}; + + if (animationDetails.structural) { + options.event = animationDetails.event; + options.structural = true; + options.applyClassesEarly = true; + + // we special case the leave animation since we want to ensure that + // the element is removed as soon as the animation is over. Otherwise + // a flicker might appear or the element may not be removed at all + if (animationDetails.event === 'leave') { + options.onDone = options.domOperation; + } + } + + // We assign the preparationClasses as the actual animation event since + // the internals of $animateCss will just suffix the event token values + // with `-active` to trigger the animation. + if (options.preparationClasses) { + options.event = concatWithSpace(options.event, options.preparationClasses); + } + + var animator = $animateCss(element, options); + + // the driver lookup code inside of $$animation attempts to spawn a + // driver one by one until a driver returns a.$$willAnimate animator object. + // $animateCss will always return an object, however, it will pass in + // a flag as a hint as to whether an animation was detected or not + return animator.$$willAnimate ? animator : null; + } + }]; +}]; + +// TODO(matsko): use caching here to speed things up for detection +// TODO(matsko): add documentation +// by the time... + +var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) { + this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', + function($injector, $$AnimateRunner, $$jqLite) { + + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + // $animateJs(element, 'enter'); + return function(element, event, classes, options) { + // the `classes` argument is optional and if it is not used + // then the classes will be resolved from the element's className + // property as well as options.addClass/options.removeClass. + if (arguments.length === 3 && isObject(classes)) { + options = classes; + classes = null; + } + + options = prepareAnimationOptions(options); + if (!classes) { + classes = element.attr('class') || ''; + if (options.addClass) { + classes += ' ' + options.addClass; + } + if (options.removeClass) { + classes += ' ' + options.removeClass; + } + } + + var classesToAdd = options.addClass; + var classesToRemove = options.removeClass; + + // the lookupAnimations function returns a series of animation objects that are + // matched up with one or more of the CSS classes. These animation objects are + // defined via the module.animation factory function. If nothing is detected then + // we don't return anything which then makes $animation query the next driver. + var animations = lookupAnimations(classes); + var before, after; + if (animations.length) { + var afterFn, beforeFn; + if (event == 'leave') { + beforeFn = 'leave'; + afterFn = 'afterLeave'; // TODO(matsko): get rid of this + } else { + beforeFn = 'before' + event.charAt(0).toUpperCase() + event.substr(1); + afterFn = event; + } + + if (event !== 'enter' && event !== 'move') { + before = packageAnimations(element, event, options, animations, beforeFn); + } + after = packageAnimations(element, event, options, animations, afterFn); + } + + // no matching animations + if (!before && !after) return; + + function applyOptions() { + options.domOperation(); + applyAnimationClasses(element, options); + } + + return { + start: function() { + var closeActiveAnimations; + var chain = []; + + if (before) { + chain.push(function(fn) { + closeActiveAnimations = before(fn); + }); + } + + if (chain.length) { + chain.push(function(fn) { + applyOptions(); + fn(true); + }); + } else { + applyOptions(); + } + + if (after) { + chain.push(function(fn) { + closeActiveAnimations = after(fn); + }); + } + + var animationClosed = false; + var runner = new $$AnimateRunner({ + end: function() { + endAnimations(); + }, + cancel: function() { + endAnimations(true); + } + }); + + $$AnimateRunner.chain(chain, onComplete); + return runner; + + function onComplete(success) { + animationClosed = true; + applyOptions(); + applyAnimationStyles(element, options); + runner.complete(success); + } + + function endAnimations(cancelled) { + if (!animationClosed) { + (closeActiveAnimations || noop)(cancelled); + onComplete(cancelled); + } + } + } + }; + + function executeAnimationFn(fn, element, event, options, onDone) { + var args; + switch (event) { + case 'animate': + args = [element, options.from, options.to, onDone]; + break; + + case 'setClass': + args = [element, classesToAdd, classesToRemove, onDone]; + break; + + case 'addClass': + args = [element, classesToAdd, onDone]; + break; + + case 'removeClass': + args = [element, classesToRemove, onDone]; + break; + + default: + args = [element, onDone]; + break; + } + + args.push(options); + + var value = fn.apply(fn, args); + if (value) { + if (isFunction(value.start)) { + value = value.start(); + } + + if (value instanceof $$AnimateRunner) { + value.done(onDone); + } else if (isFunction(value)) { + // optional onEnd / onCancel callback + return value; + } + } + + return noop; + } + + function groupEventedAnimations(element, event, options, animations, fnName) { + var operations = []; + forEach(animations, function(ani) { + var animation = ani[fnName]; + if (!animation) return; + + // note that all of these animations will run in parallel + operations.push(function() { + var runner; + var endProgressCb; + + var resolved = false; + var onAnimationComplete = function(rejected) { + if (!resolved) { + resolved = true; + (endProgressCb || noop)(rejected); + runner.complete(!rejected); + } + }; + + runner = new $$AnimateRunner({ + end: function() { + onAnimationComplete(); + }, + cancel: function() { + onAnimationComplete(true); + } + }); + + endProgressCb = executeAnimationFn(animation, element, event, options, function(result) { + var cancelled = result === false; + onAnimationComplete(cancelled); + }); + + return runner; + }); + }); + + return operations; + } + + function packageAnimations(element, event, options, animations, fnName) { + var operations = groupEventedAnimations(element, event, options, animations, fnName); + if (operations.length === 0) { + var a,b; + if (fnName === 'beforeSetClass') { + a = groupEventedAnimations(element, 'removeClass', options, animations, 'beforeRemoveClass'); + b = groupEventedAnimations(element, 'addClass', options, animations, 'beforeAddClass'); + } else if (fnName === 'setClass') { + a = groupEventedAnimations(element, 'removeClass', options, animations, 'removeClass'); + b = groupEventedAnimations(element, 'addClass', options, animations, 'addClass'); + } + + if (a) { + operations = operations.concat(a); + } + if (b) { + operations = operations.concat(b); + } + } + + if (operations.length === 0) return; + + // TODO(matsko): add documentation + return function startAnimation(callback) { + var runners = []; + if (operations.length) { + forEach(operations, function(animateFn) { + runners.push(animateFn()); + }); + } + + runners.length ? $$AnimateRunner.all(runners, callback) : callback(); + + return function endFn(reject) { + forEach(runners, function(runner) { + reject ? runner.cancel() : runner.end(); + }); + }; + }; + } + }; + + function lookupAnimations(classes) { + classes = isArray(classes) ? classes : classes.split(' '); + var matches = [], flagMap = {}; + for (var i=0; i < classes.length; i++) { + var klass = classes[i], + animationFactory = $animateProvider.$$registeredAnimations[klass]; + if (animationFactory && !flagMap[klass]) { + matches.push($injector.get(animationFactory)); + flagMap[klass] = true; + } + } + return matches; + } + }]; +}]; + +var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) { + $$animationProvider.drivers.push('$$animateJsDriver'); + this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) { + return function initDriverFn(animationDetails) { + if (animationDetails.from && animationDetails.to) { + var fromAnimation = prepareAnimation(animationDetails.from); + var toAnimation = prepareAnimation(animationDetails.to); + if (!fromAnimation && !toAnimation) return; + + return { + start: function() { + var animationRunners = []; + + if (fromAnimation) { + animationRunners.push(fromAnimation.start()); + } + + if (toAnimation) { + animationRunners.push(toAnimation.start()); + } + + $$AnimateRunner.all(animationRunners, done); + + var runner = new $$AnimateRunner({ + end: endFnFactory(), + cancel: endFnFactory() + }); + + return runner; + + function endFnFactory() { + return function() { + forEach(animationRunners, function(runner) { + // at this point we cannot cancel animations for groups just yet. 1.5+ + runner.end(); + }); + }; + } + + function done(status) { + runner.complete(status); + } + } + }; + } else { + return prepareAnimation(animationDetails); + } + }; + + function prepareAnimation(animationDetails) { + // TODO(matsko): make sure to check for grouped animations and delegate down to normal animations + var element = animationDetails.element; + var event = animationDetails.event; + var options = animationDetails.options; + var classes = animationDetails.classes; + return $$animateJs(element, event, classes, options); + } + }]; +}]; + +var NG_ANIMATE_ATTR_NAME = 'data-ng-animate'; +var NG_ANIMATE_PIN_DATA = '$ngAnimatePin'; +var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) { + var PRE_DIGEST_STATE = 1; + var RUNNING_STATE = 2; + + var rules = this.rules = { + skip: [], + cancel: [], + join: [] + }; + + function isAllowed(ruleType, element, currentAnimation, previousAnimation) { + return rules[ruleType].some(function(fn) { + return fn(element, currentAnimation, previousAnimation); + }); + } + + function hasAnimationClasses(options, and) { + options = options || {}; + var a = (options.addClass || '').length > 0; + var b = (options.removeClass || '').length > 0; + return and ? a && b : a || b; + } + + rules.join.push(function(element, newAnimation, currentAnimation) { + // if the new animation is class-based then we can just tack that on + return !newAnimation.structural && hasAnimationClasses(newAnimation.options); + }); + + rules.skip.push(function(element, newAnimation, currentAnimation) { + // there is no need to animate anything if no classes are being added and + // there is no structural animation that will be triggered + return !newAnimation.structural && !hasAnimationClasses(newAnimation.options); + }); + + rules.skip.push(function(element, newAnimation, currentAnimation) { + // why should we trigger a new structural animation if the element will + // be removed from the DOM anyway? + return currentAnimation.event == 'leave' && newAnimation.structural; + }); + + rules.skip.push(function(element, newAnimation, currentAnimation) { + // if there is an ongoing current animation then don't even bother running the class-based animation + return currentAnimation.structural && currentAnimation.state === RUNNING_STATE && !newAnimation.structural; + }); + + rules.cancel.push(function(element, newAnimation, currentAnimation) { + // there can never be two structural animations running at the same time + return currentAnimation.structural && newAnimation.structural; + }); + + rules.cancel.push(function(element, newAnimation, currentAnimation) { + // if the previous animation is already running, but the new animation will + // be triggered, but the new animation is structural + return currentAnimation.state === RUNNING_STATE && newAnimation.structural; + }); + + rules.cancel.push(function(element, newAnimation, currentAnimation) { + var nO = newAnimation.options; + var cO = currentAnimation.options; + + // if the exact same CSS class is added/removed then it's safe to cancel it + return (nO.addClass && nO.addClass === cO.removeClass) || (nO.removeClass && nO.removeClass === cO.addClass); + }); + + this.$get = ['$$rAF', '$rootScope', '$rootElement', '$document', '$$HashMap', + '$$animation', '$$AnimateRunner', '$templateRequest', '$$jqLite', '$$forceReflow', + function($$rAF, $rootScope, $rootElement, $document, $$HashMap, + $$animation, $$AnimateRunner, $templateRequest, $$jqLite, $$forceReflow) { + + var activeAnimationsLookup = new $$HashMap(); + var disabledElementsLookup = new $$HashMap(); + var animationsEnabled = null; + + function postDigestTaskFactory() { + var postDigestCalled = false; + return function(fn) { + // we only issue a call to postDigest before + // it has first passed. This prevents any callbacks + // from not firing once the animation has completed + // since it will be out of the digest cycle. + if (postDigestCalled) { + fn(); + } else { + $rootScope.$$postDigest(function() { + postDigestCalled = true; + fn(); + }); + } + }; + } + + // Wait until all directive and route-related templates are downloaded and + // compiled. The $templateRequest.totalPendingRequests variable keeps track of + // all of the remote templates being currently downloaded. If there are no + // templates currently downloading then the watcher will still fire anyway. + var deregisterWatch = $rootScope.$watch( + function() { return $templateRequest.totalPendingRequests === 0; }, + function(isEmpty) { + if (!isEmpty) return; + deregisterWatch(); + + // Now that all templates have been downloaded, $animate will wait until + // the post digest queue is empty before enabling animations. By having two + // calls to $postDigest calls we can ensure that the flag is enabled at the + // very end of the post digest queue. Since all of the animations in $animate + // use $postDigest, it's important that the code below executes at the end. + // This basically means that the page is fully downloaded and compiled before + // any animations are triggered. + $rootScope.$$postDigest(function() { + $rootScope.$$postDigest(function() { + // we check for null directly in the event that the application already called + // .enabled() with whatever arguments that it provided it with + if (animationsEnabled === null) { + animationsEnabled = true; + } + }); + }); + } + ); + + var callbackRegistry = {}; + + // remember that the classNameFilter is set during the provider/config + // stage therefore we can optimize here and setup a helper function + var classNameFilter = $animateProvider.classNameFilter(); + var isAnimatableClassName = !classNameFilter + ? function() { return true; } + : function(className) { + return classNameFilter.test(className); + }; + + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + + function normalizeAnimationOptions(element, options) { + return mergeAnimationOptions(element, options, {}); + } + + function findCallbacks(element, event) { + var targetNode = getDomNode(element); + + var matches = []; + var entries = callbackRegistry[event]; + if (entries) { + forEach(entries, function(entry) { + if (entry.node.contains(targetNode)) { + matches.push(entry.callback); + } + }); + } + + return matches; + } + + return { + on: function(event, container, callback) { + var node = extractElementNode(container); + callbackRegistry[event] = callbackRegistry[event] || []; + callbackRegistry[event].push({ + node: node, + callback: callback + }); + }, + + off: function(event, container, callback) { + var entries = callbackRegistry[event]; + if (!entries) return; + + callbackRegistry[event] = arguments.length === 1 + ? null + : filterFromRegistry(entries, container, callback); + + function filterFromRegistry(list, matchContainer, matchCallback) { + var containerNode = extractElementNode(matchContainer); + return list.filter(function(entry) { + var isMatch = entry.node === containerNode && + (!matchCallback || entry.callback === matchCallback); + return !isMatch; + }); + } + }, + + pin: function(element, parentElement) { + assertArg(isElement(element), 'element', 'not an element'); + assertArg(isElement(parentElement), 'parentElement', 'not an element'); + element.data(NG_ANIMATE_PIN_DATA, parentElement); + }, + + push: function(element, event, options, domOperation) { + options = options || {}; + options.domOperation = domOperation; + return queueAnimation(element, event, options); + }, + + // this method has four signatures: + // () - global getter + // (bool) - global setter + // (element) - element getter + // (element, bool) - element setter + enabled: function(element, bool) { + var argCount = arguments.length; + + if (argCount === 0) { + // () - Global getter + bool = !!animationsEnabled; + } else { + var hasElement = isElement(element); + + if (!hasElement) { + // (bool) - Global setter + bool = animationsEnabled = !!element; + } else { + var node = getDomNode(element); + var recordExists = disabledElementsLookup.get(node); + + if (argCount === 1) { + // (element) - Element getter + bool = !recordExists; + } else { + // (element, bool) - Element setter + bool = !!bool; + if (!bool) { + disabledElementsLookup.put(node, true); + } else if (recordExists) { + disabledElementsLookup.remove(node); + } + } + } + } + + return bool; + } + }; + + function queueAnimation(element, event, options) { + var node, parent; + element = stripCommentsFromElement(element); + if (element) { + node = getDomNode(element); + parent = element.parent(); + } + + options = prepareAnimationOptions(options); + + // we create a fake runner with a working promise. + // These methods will become available after the digest has passed + var runner = new $$AnimateRunner(); + + // this is used to trigger callbacks in postDigest mode + var runInNextPostDigestOrNow = postDigestTaskFactory(); + + if (isArray(options.addClass)) { + options.addClass = options.addClass.join(' '); + } + + if (options.addClass && !isString(options.addClass)) { + options.addClass = null; + } + + if (isArray(options.removeClass)) { + options.removeClass = options.removeClass.join(' '); + } + + if (options.removeClass && !isString(options.removeClass)) { + options.removeClass = null; + } + + if (options.from && !isObject(options.from)) { + options.from = null; + } + + if (options.to && !isObject(options.to)) { + options.to = null; + } + + // there are situations where a directive issues an animation for + // a jqLite wrapper that contains only comment nodes... If this + // happens then there is no way we can perform an animation + if (!node) { + close(); + return runner; + } + + var className = [node.className, options.addClass, options.removeClass].join(' '); + if (!isAnimatableClassName(className)) { + close(); + return runner; + } + + var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0; + + // this is a hard disable of all animations for the application or on + // the element itself, therefore there is no need to continue further + // past this point if not enabled + var skipAnimations = !animationsEnabled || disabledElementsLookup.get(node); + var existingAnimation = (!skipAnimations && activeAnimationsLookup.get(node)) || {}; + var hasExistingAnimation = !!existingAnimation.state; + + // there is no point in traversing the same collection of parent ancestors if a followup + // animation will be run on the same element that already did all that checking work + if (!skipAnimations && (!hasExistingAnimation || existingAnimation.state != PRE_DIGEST_STATE)) { + skipAnimations = !areAnimationsAllowed(element, parent, event); + } + + if (skipAnimations) { + close(); + return runner; + } + + if (isStructural) { + closeChildAnimations(element); + } + + var newAnimation = { + structural: isStructural, + element: element, + event: event, + close: close, + options: options, + runner: runner + }; + + if (hasExistingAnimation) { + var skipAnimationFlag = isAllowed('skip', element, newAnimation, existingAnimation); + if (skipAnimationFlag) { + if (existingAnimation.state === RUNNING_STATE) { + close(); + return runner; + } else { + mergeAnimationOptions(element, existingAnimation.options, options); + return existingAnimation.runner; + } + } + + var cancelAnimationFlag = isAllowed('cancel', element, newAnimation, existingAnimation); + if (cancelAnimationFlag) { + if (existingAnimation.state === RUNNING_STATE) { + // this will end the animation right away and it is safe + // to do so since the animation is already running and the + // runner callback code will run in async + existingAnimation.runner.end(); + } else if (existingAnimation.structural) { + // this means that the animation is queued into a digest, but + // hasn't started yet. Therefore it is safe to run the close + // method which will call the runner methods in async. + existingAnimation.close(); + } else { + // this will merge the new animation options into existing animation options + mergeAnimationOptions(element, existingAnimation.options, newAnimation.options); + return existingAnimation.runner; + } + } else { + // a joined animation means that this animation will take over the existing one + // so an example would involve a leave animation taking over an enter. Then when + // the postDigest kicks in the enter will be ignored. + var joinAnimationFlag = isAllowed('join', element, newAnimation, existingAnimation); + if (joinAnimationFlag) { + if (existingAnimation.state === RUNNING_STATE) { + normalizeAnimationOptions(element, options); + } else { + applyGeneratedPreparationClasses(element, isStructural ? event : null, options); + + event = newAnimation.event = existingAnimation.event; + options = mergeAnimationOptions(element, existingAnimation.options, newAnimation.options); + + //we return the same runner since only the option values of this animation will + //be fed into the `existingAnimation`. + return existingAnimation.runner; + } + } + } + } else { + // normalization in this case means that it removes redundant CSS classes that + // already exist (addClass) or do not exist (removeClass) on the element + normalizeAnimationOptions(element, options); + } + + // when the options are merged and cleaned up we may end up not having to do + // an animation at all, therefore we should check this before issuing a post + // digest callback. Structural animations will always run no matter what. + var isValidAnimation = newAnimation.structural; + if (!isValidAnimation) { + // animate (from/to) can be quickly checked first, otherwise we check if any classes are present + isValidAnimation = (newAnimation.event === 'animate' && Object.keys(newAnimation.options.to || {}).length > 0) + || hasAnimationClasses(newAnimation.options); + } + + if (!isValidAnimation) { + close(); + clearElementAnimationState(element); + return runner; + } + + // the counter keeps track of cancelled animations + var counter = (existingAnimation.counter || 0) + 1; + newAnimation.counter = counter; + + markElementAnimationState(element, PRE_DIGEST_STATE, newAnimation); + + $rootScope.$$postDigest(function() { + var animationDetails = activeAnimationsLookup.get(node); + var animationCancelled = !animationDetails; + animationDetails = animationDetails || {}; + + // if addClass/removeClass is called before something like enter then the + // registered parent element may not be present. The code below will ensure + // that a final value for parent element is obtained + var parentElement = element.parent() || []; + + // animate/structural/class-based animations all have requirements. Otherwise there + // is no point in performing an animation. The parent node must also be set. + var isValidAnimation = parentElement.length > 0 + && (animationDetails.event === 'animate' + || animationDetails.structural + || hasAnimationClasses(animationDetails.options)); + + // this means that the previous animation was cancelled + // even if the follow-up animation is the same event + if (animationCancelled || animationDetails.counter !== counter || !isValidAnimation) { + // if another animation did not take over then we need + // to make sure that the domOperation and options are + // handled accordingly + if (animationCancelled) { + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); + } + + // if the event changed from something like enter to leave then we do + // it, otherwise if it's the same then the end result will be the same too + if (animationCancelled || (isStructural && animationDetails.event !== event)) { + options.domOperation(); + runner.end(); + } + + // in the event that the element animation was not cancelled or a follow-up animation + // isn't allowed to animate from here then we need to clear the state of the element + // so that any future animations won't read the expired animation data. + if (!isValidAnimation) { + clearElementAnimationState(element); + } + + return; + } + + // this combined multiple class to addClass / removeClass into a setClass event + // so long as a structural event did not take over the animation + event = !animationDetails.structural && hasAnimationClasses(animationDetails.options, true) + ? 'setClass' + : animationDetails.event; + + markElementAnimationState(element, RUNNING_STATE); + var realRunner = $$animation(element, event, animationDetails.options); + + realRunner.done(function(status) { + close(!status); + var animationDetails = activeAnimationsLookup.get(node); + if (animationDetails && animationDetails.counter === counter) { + clearElementAnimationState(getDomNode(element)); + } + notifyProgress(runner, event, 'close', {}); + }); + + // this will update the runner's flow-control events based on + // the `realRunner` object. + runner.setHost(realRunner); + notifyProgress(runner, event, 'start', {}); + }); + + return runner; + + function notifyProgress(runner, event, phase, data) { + runInNextPostDigestOrNow(function() { + var callbacks = findCallbacks(element, event); + if (callbacks.length) { + // do not optimize this call here to RAF because + // we don't know how heavy the callback code here will + // be and if this code is buffered then this can + // lead to a performance regression. + $$rAF(function() { + forEach(callbacks, function(callback) { + callback(element, phase, data); + }); + }); + } + }); + runner.progress(event, phase, data); + } + + function close(reject) { // jshint ignore:line + clearGeneratedClasses(element, options); + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); + options.domOperation(); + runner.complete(!reject); + } + } + + function closeChildAnimations(element) { + var node = getDomNode(element); + var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']'); + forEach(children, function(child) { + var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME)); + var animationDetails = activeAnimationsLookup.get(child); + switch (state) { + case RUNNING_STATE: + animationDetails.runner.end(); + /* falls through */ + case PRE_DIGEST_STATE: + if (animationDetails) { + activeAnimationsLookup.remove(child); + } + break; + } + }); + } + + function clearElementAnimationState(element) { + var node = getDomNode(element); + node.removeAttribute(NG_ANIMATE_ATTR_NAME); + activeAnimationsLookup.remove(node); + } + + function isMatchingElement(nodeOrElmA, nodeOrElmB) { + return getDomNode(nodeOrElmA) === getDomNode(nodeOrElmB); + } + + function areAnimationsAllowed(element, parentElement, event) { + var bodyElement = jqLite($document[0].body); + var bodyElementDetected = isMatchingElement(element, bodyElement) || element[0].nodeName === 'HTML'; + var rootElementDetected = isMatchingElement(element, $rootElement); + var parentAnimationDetected = false; + var animateChildren; + + var parentHost = element.data(NG_ANIMATE_PIN_DATA); + if (parentHost) { + parentElement = parentHost; + } + + while (parentElement && parentElement.length) { + if (!rootElementDetected) { + // angular doesn't want to attempt to animate elements outside of the application + // therefore we need to ensure that the rootElement is an ancestor of the current element + rootElementDetected = isMatchingElement(parentElement, $rootElement); + } + + var parentNode = parentElement[0]; + if (parentNode.nodeType !== ELEMENT_NODE) { + // no point in inspecting the #document element + break; + } + + var details = activeAnimationsLookup.get(parentNode) || {}; + // either an enter, leave or move animation will commence + // therefore we can't allow any animations to take place + // but if a parent animation is class-based then that's ok + if (!parentAnimationDetected) { + parentAnimationDetected = details.structural || disabledElementsLookup.get(parentNode); + } + + if (isUndefined(animateChildren) || animateChildren === true) { + var value = parentElement.data(NG_ANIMATE_CHILDREN_DATA); + if (isDefined(value)) { + animateChildren = value; + } + } + + // there is no need to continue traversing at this point + if (parentAnimationDetected && animateChildren === false) break; + + if (!rootElementDetected) { + // angular doesn't want to attempt to animate elements outside of the application + // therefore we need to ensure that the rootElement is an ancestor of the current element + rootElementDetected = isMatchingElement(parentElement, $rootElement); + if (!rootElementDetected) { + parentHost = parentElement.data(NG_ANIMATE_PIN_DATA); + if (parentHost) { + parentElement = parentHost; + } + } + } + + if (!bodyElementDetected) { + // we also need to ensure that the element is or will be apart of the body element + // otherwise it is pointless to even issue an animation to be rendered + bodyElementDetected = isMatchingElement(parentElement, bodyElement); + } + + parentElement = parentElement.parent(); + } + + var allowAnimation = !parentAnimationDetected || animateChildren; + return allowAnimation && rootElementDetected && bodyElementDetected; + } + + function markElementAnimationState(element, state, details) { + details = details || {}; + details.state = state; + + var node = getDomNode(element); + node.setAttribute(NG_ANIMATE_ATTR_NAME, state); + + var oldValue = activeAnimationsLookup.get(node); + var newValue = oldValue + ? extend(oldValue, details) + : details; + activeAnimationsLookup.put(node, newValue); + } + }]; +}]; + +var $$AnimateAsyncRunFactory = ['$$rAF', function($$rAF) { + var waitQueue = []; + + function waitForTick(fn) { + waitQueue.push(fn); + if (waitQueue.length > 1) return; + $$rAF(function() { + for (var i = 0; i < waitQueue.length; i++) { + waitQueue[i](); + } + waitQueue = []; + }); + } + + return function() { + var passed = false; + waitForTick(function() { + passed = true; + }); + return function(callback) { + passed ? callback() : waitForTick(callback); + }; + }; +}]; + +var $$AnimateRunnerFactory = ['$q', '$sniffer', '$$animateAsyncRun', + function($q, $sniffer, $$animateAsyncRun) { + + var INITIAL_STATE = 0; + var DONE_PENDING_STATE = 1; + var DONE_COMPLETE_STATE = 2; + + AnimateRunner.chain = function(chain, callback) { + var index = 0; + + next(); + function next() { + if (index === chain.length) { + callback(true); + return; + } + + chain[index](function(response) { + if (response === false) { + callback(false); + return; + } + index++; + next(); + }); + } + }; + + AnimateRunner.all = function(runners, callback) { + var count = 0; + var status = true; + forEach(runners, function(runner) { + runner.done(onProgress); + }); + + function onProgress(response) { + status = status && response; + if (++count === runners.length) { + callback(status); + } + } + }; + + function AnimateRunner(host) { + this.setHost(host); + + this._doneCallbacks = []; + this._runInAnimationFrame = $$animateAsyncRun(); + this._state = 0; + } + + AnimateRunner.prototype = { + setHost: function(host) { + this.host = host || {}; + }, + + done: function(fn) { + if (this._state === DONE_COMPLETE_STATE) { + fn(); + } else { + this._doneCallbacks.push(fn); + } + }, + + progress: noop, + + getPromise: function() { + if (!this.promise) { + var self = this; + this.promise = $q(function(resolve, reject) { + self.done(function(status) { + status === false ? reject() : resolve(); + }); + }); + } + return this.promise; + }, + + then: function(resolveHandler, rejectHandler) { + return this.getPromise().then(resolveHandler, rejectHandler); + }, + + 'catch': function(handler) { + return this.getPromise()['catch'](handler); + }, + + 'finally': function(handler) { + return this.getPromise()['finally'](handler); + }, + + pause: function() { + if (this.host.pause) { + this.host.pause(); + } + }, + + resume: function() { + if (this.host.resume) { + this.host.resume(); + } + }, + + end: function() { + if (this.host.end) { + this.host.end(); + } + this._resolve(true); + }, + + cancel: function() { + if (this.host.cancel) { + this.host.cancel(); + } + this._resolve(false); + }, + + complete: function(response) { + var self = this; + if (self._state === INITIAL_STATE) { + self._state = DONE_PENDING_STATE; + self._runInAnimationFrame(function() { + self._resolve(response); + }); + } + }, + + _resolve: function(response) { + if (this._state !== DONE_COMPLETE_STATE) { + forEach(this._doneCallbacks, function(fn) { + fn(response); + }); + this._doneCallbacks.length = 0; + this._state = DONE_COMPLETE_STATE; + } + } + }; + + return AnimateRunner; +}]; + +var $$AnimationProvider = ['$animateProvider', function($animateProvider) { + var NG_ANIMATE_REF_ATTR = 'ng-animate-ref'; + + var drivers = this.drivers = []; + + var RUNNER_STORAGE_KEY = '$$animationRunner'; + + function setRunner(element, runner) { + element.data(RUNNER_STORAGE_KEY, runner); + } + + function removeRunner(element) { + element.removeData(RUNNER_STORAGE_KEY); + } + + function getRunner(element) { + return element.data(RUNNER_STORAGE_KEY); + } + + this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$HashMap', '$$rAFScheduler', + function($$jqLite, $rootScope, $injector, $$AnimateRunner, $$HashMap, $$rAFScheduler) { + + var animationQueue = []; + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + + function sortAnimations(animations) { + var tree = { children: [] }; + var i, lookup = new $$HashMap(); + + // this is done first beforehand so that the hashmap + // is filled with a list of the elements that will be animated + for (i = 0; i < animations.length; i++) { + var animation = animations[i]; + lookup.put(animation.domNode, animations[i] = { + domNode: animation.domNode, + fn: animation.fn, + children: [] + }); + } + + for (i = 0; i < animations.length; i++) { + processNode(animations[i]); + } + + return flatten(tree); + + function processNode(entry) { + if (entry.processed) return entry; + entry.processed = true; + + var elementNode = entry.domNode; + var parentNode = elementNode.parentNode; + lookup.put(elementNode, entry); + + var parentEntry; + while (parentNode) { + parentEntry = lookup.get(parentNode); + if (parentEntry) { + if (!parentEntry.processed) { + parentEntry = processNode(parentEntry); + } + break; + } + parentNode = parentNode.parentNode; + } + + (parentEntry || tree).children.push(entry); + return entry; + } + + function flatten(tree) { + var result = []; + var queue = []; + var i; + + for (i = 0; i < tree.children.length; i++) { + queue.push(tree.children[i]); + } + + var remainingLevelEntries = queue.length; + var nextLevelEntries = 0; + var row = []; + + for (i = 0; i < queue.length; i++) { + var entry = queue[i]; + if (remainingLevelEntries <= 0) { + remainingLevelEntries = nextLevelEntries; + nextLevelEntries = 0; + result.push(row); + row = []; + } + row.push(entry.fn); + entry.children.forEach(function(childEntry) { + nextLevelEntries++; + queue.push(childEntry); + }); + remainingLevelEntries--; + } + + if (row.length) { + result.push(row); + } + + return result; + } + } + + // TODO(matsko): document the signature in a better way + return function(element, event, options) { + options = prepareAnimationOptions(options); + var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0; + + // there is no animation at the current moment, however + // these runner methods will get later updated with the + // methods leading into the driver's end/cancel methods + // for now they just stop the animation from starting + var runner = new $$AnimateRunner({ + end: function() { close(); }, + cancel: function() { close(true); } + }); + + if (!drivers.length) { + close(); + return runner; + } + + setRunner(element, runner); + + var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass)); + var tempClasses = options.tempClasses; + if (tempClasses) { + classes += ' ' + tempClasses; + options.tempClasses = null; + } + + animationQueue.push({ + // this data is used by the postDigest code and passed into + // the driver step function + element: element, + classes: classes, + event: event, + structural: isStructural, + options: options, + beforeStart: beforeStart, + close: close + }); + + element.on('$destroy', handleDestroyedElement); + + // we only want there to be one function called within the post digest + // block. This way we can group animations for all the animations that + // were apart of the same postDigest flush call. + if (animationQueue.length > 1) return runner; + + $rootScope.$$postDigest(function() { + var animations = []; + forEach(animationQueue, function(entry) { + // the element was destroyed early on which removed the runner + // form its storage. This means we can't animate this element + // at all and it already has been closed due to destruction. + if (getRunner(entry.element)) { + animations.push(entry); + } else { + entry.close(); + } + }); + + // now any future animations will be in another postDigest + animationQueue.length = 0; + + var groupedAnimations = groupAnimations(animations); + var toBeSortedAnimations = []; + + forEach(groupedAnimations, function(animationEntry) { + toBeSortedAnimations.push({ + domNode: getDomNode(animationEntry.from ? animationEntry.from.element : animationEntry.element), + fn: function triggerAnimationStart() { + // it's important that we apply the `ng-animate` CSS class and the + // temporary classes before we do any driver invoking since these + // CSS classes may be required for proper CSS detection. + animationEntry.beforeStart(); + + var startAnimationFn, closeFn = animationEntry.close; + + // in the event that the element was removed before the digest runs or + // during the RAF sequencing then we should not trigger the animation. + var targetElement = animationEntry.anchors + ? (animationEntry.from.element || animationEntry.to.element) + : animationEntry.element; + + if (getRunner(targetElement)) { + var operation = invokeFirstDriver(animationEntry); + if (operation) { + startAnimationFn = operation.start; + } + } + + if (!startAnimationFn) { + closeFn(); + } else { + var animationRunner = startAnimationFn(); + animationRunner.done(function(status) { + closeFn(!status); + }); + updateAnimationRunners(animationEntry, animationRunner); + } + } + }); + }); + + // we need to sort each of the animations in order of parent to child + // relationships. This ensures that the child classes are applied at the + // right time. + $$rAFScheduler(sortAnimations(toBeSortedAnimations)); + }); + + return runner; + + // TODO(matsko): change to reference nodes + function getAnchorNodes(node) { + var SELECTOR = '[' + NG_ANIMATE_REF_ATTR + ']'; + var items = node.hasAttribute(NG_ANIMATE_REF_ATTR) + ? [node] + : node.querySelectorAll(SELECTOR); + var anchors = []; + forEach(items, function(node) { + var attr = node.getAttribute(NG_ANIMATE_REF_ATTR); + if (attr && attr.length) { + anchors.push(node); + } + }); + return anchors; + } + + function groupAnimations(animations) { + var preparedAnimations = []; + var refLookup = {}; + forEach(animations, function(animation, index) { + var element = animation.element; + var node = getDomNode(element); + var event = animation.event; + var enterOrMove = ['enter', 'move'].indexOf(event) >= 0; + var anchorNodes = animation.structural ? getAnchorNodes(node) : []; + + if (anchorNodes.length) { + var direction = enterOrMove ? 'to' : 'from'; + + forEach(anchorNodes, function(anchor) { + var key = anchor.getAttribute(NG_ANIMATE_REF_ATTR); + refLookup[key] = refLookup[key] || {}; + refLookup[key][direction] = { + animationID: index, + element: jqLite(anchor) + }; + }); + } else { + preparedAnimations.push(animation); + } + }); + + var usedIndicesLookup = {}; + var anchorGroups = {}; + forEach(refLookup, function(operations, key) { + var from = operations.from; + var to = operations.to; + + if (!from || !to) { + // only one of these is set therefore we can't have an + // anchor animation since all three pieces are required + var index = from ? from.animationID : to.animationID; + var indexKey = index.toString(); + if (!usedIndicesLookup[indexKey]) { + usedIndicesLookup[indexKey] = true; + preparedAnimations.push(animations[index]); + } + return; + } + + var fromAnimation = animations[from.animationID]; + var toAnimation = animations[to.animationID]; + var lookupKey = from.animationID.toString(); + if (!anchorGroups[lookupKey]) { + var group = anchorGroups[lookupKey] = { + structural: true, + beforeStart: function() { + fromAnimation.beforeStart(); + toAnimation.beforeStart(); + }, + close: function() { + fromAnimation.close(); + toAnimation.close(); + }, + classes: cssClassesIntersection(fromAnimation.classes, toAnimation.classes), + from: fromAnimation, + to: toAnimation, + anchors: [] // TODO(matsko): change to reference nodes + }; + + // the anchor animations require that the from and to elements both have at least + // one shared CSS class which effictively marries the two elements together to use + // the same animation driver and to properly sequence the anchor animation. + if (group.classes.length) { + preparedAnimations.push(group); + } else { + preparedAnimations.push(fromAnimation); + preparedAnimations.push(toAnimation); + } + } + + anchorGroups[lookupKey].anchors.push({ + 'out': from.element, 'in': to.element + }); + }); + + return preparedAnimations; + } + + function cssClassesIntersection(a,b) { + a = a.split(' '); + b = b.split(' '); + var matches = []; + + for (var i = 0; i < a.length; i++) { + var aa = a[i]; + if (aa.substring(0,3) === 'ng-') continue; + + for (var j = 0; j < b.length; j++) { + if (aa === b[j]) { + matches.push(aa); + break; + } + } + } + + return matches.join(' '); + } + + function invokeFirstDriver(animationDetails) { + // we loop in reverse order since the more general drivers (like CSS and JS) + // may attempt more elements, but custom drivers are more particular + for (var i = drivers.length - 1; i >= 0; i--) { + var driverName = drivers[i]; + if (!$injector.has(driverName)) continue; // TODO(matsko): remove this check + + var factory = $injector.get(driverName); + var driver = factory(animationDetails); + if (driver) { + return driver; + } + } + } + + function beforeStart() { + element.addClass(NG_ANIMATE_CLASSNAME); + if (tempClasses) { + $$jqLite.addClass(element, tempClasses); + } + } + + function updateAnimationRunners(animation, newRunner) { + if (animation.from && animation.to) { + update(animation.from.element); + update(animation.to.element); + } else { + update(animation.element); + } + + function update(element) { + getRunner(element).setHost(newRunner); + } + } + + function handleDestroyedElement() { + var runner = getRunner(element); + if (runner && (event !== 'leave' || !options.$$domOperationFired)) { + runner.end(); + } + } + + function close(rejected) { // jshint ignore:line + element.off('$destroy', handleDestroyedElement); + removeRunner(element); + + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); + options.domOperation(); + + if (tempClasses) { + $$jqLite.removeClass(element, tempClasses); + } + + element.removeClass(NG_ANIMATE_CLASSNAME); + runner.complete(!rejected); + } + }; + }]; +}]; + +/* global angularAnimateModule: true, + + $$AnimateAsyncRunFactory, + $$rAFSchedulerFactory, + $$AnimateChildrenDirective, + $$AnimateRunnerFactory, + $$AnimateQueueProvider, + $$AnimationProvider, + $AnimateCssProvider, + $$AnimateCssDriverProvider, + $$AnimateJsProvider, + $$AnimateJsDriverProvider, +*/ + +/** + * @ngdoc module + * @name ngAnimate + * @description + * + * The `ngAnimate` module provides support for CSS-based animations (keyframes and transitions) as well as JavaScript-based animations via + * callback hooks. Animations are not enabled by default, however, by including `ngAnimate` the animation hooks are enabled for an Angular app. + * + *
+ * + * # Usage + * Simply put, there are two ways to make use of animations when ngAnimate is used: by using **CSS** and **JavaScript**. The former works purely based + * using CSS (by using matching CSS selectors/styles) and the latter triggers animations that are registered via `module.animation()`. For + * both CSS and JS animations the sole requirement is to have a matching `CSS class` that exists both in the registered animation and within + * the HTML element that the animation will be triggered on. + * + * ## Directive Support + * The following directives are "animation aware": + * + * | Directive | Supported Animations | + * |----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------| + * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move | + * | {@link ngRoute.directive:ngView#animations ngView} | enter and leave | + * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave | + * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave | + * | {@link ng.directive:ngIf#animations ngIf} | enter and leave | + * | {@link ng.directive:ngClass#animations ngClass} | add and remove (the CSS class(es) present) | + * | {@link ng.directive:ngShow#animations ngShow} & {@link ng.directive:ngHide#animations ngHide} | add and remove (the ng-hide class value) | + * | {@link ng.directive:form#animation-hooks form} & {@link ng.directive:ngModel#animation-hooks ngModel} | add and remove (dirty, pristine, valid, invalid & all other validations) | + * | {@link module:ngMessages#animations ngMessages} | add and remove (ng-active & ng-inactive) | + * | {@link module:ngMessages#animations ngMessage} | enter and leave | + * + * (More information can be found by visiting each the documentation associated with each directive.) + * + * ## CSS-based Animations + * + * CSS-based animations with ngAnimate are unique since they require no JavaScript code at all. By using a CSS class that we reference between our HTML + * and CSS code we can create an animation that will be picked up by Angular when an the underlying directive performs an operation. + * + * The example below shows how an `enter` animation can be made possible on an element using `ng-if`: + * + * ```html + *
+ * Fade me in out + *
+ * + * + * ``` + * + * Notice the CSS class **fade**? We can now create the CSS transition code that references this class: + * + * ```css + * /* The starting CSS styles for the enter animation */ + * .fade.ng-enter { + * transition:0.5s linear all; + * opacity:0; + * } + * + * /* The finishing CSS styles for the enter animation */ + * .fade.ng-enter.ng-enter-active { + * opacity:1; + * } + * ``` + * + * The key thing to remember here is that, depending on the animation event (which each of the directives above trigger depending on what's going on) two + * generated CSS classes will be applied to the element; in the example above we have `.ng-enter` and `.ng-enter-active`. For CSS transitions, the transition + * code **must** be defined within the starting CSS class (in this case `.ng-enter`). The destination class is what the transition will animate towards. + * + * If for example we wanted to create animations for `leave` and `move` (ngRepeat triggers move) then we can do so using the same CSS naming conventions: + * + * ```css + * /* now the element will fade out before it is removed from the DOM */ + * .fade.ng-leave { + * transition:0.5s linear all; + * opacity:1; + * } + * .fade.ng-leave.ng-leave-active { + * opacity:0; + * } + * ``` + * + * We can also make use of **CSS Keyframes** by referencing the keyframe animation within the starting CSS class: + * + * ```css + * /* there is no need to define anything inside of the destination + * CSS class since the keyframe will take charge of the animation */ + * .fade.ng-leave { + * animation: my_fade_animation 0.5s linear; + * -webkit-animation: my_fade_animation 0.5s linear; + * } + * + * @keyframes my_fade_animation { + * from { opacity:1; } + * to { opacity:0; } + * } + * + * @-webkit-keyframes my_fade_animation { + * from { opacity:1; } + * to { opacity:0; } + * } + * ``` + * + * Feel free also mix transitions and keyframes together as well as any other CSS classes on the same element. + * + * ### CSS Class-based Animations + * + * Class-based animations (animations that are triggered via `ngClass`, `ngShow`, `ngHide` and some other directives) have a slightly different + * naming convention. Class-based animations are basic enough that a standard transition or keyframe can be referenced on the class being added + * and removed. + * + * For example if we wanted to do a CSS animation for `ngHide` then we place an animation on the `.ng-hide` CSS class: + * + * ```html + *
+ * Show and hide me + *
+ * + * + * + * ``` + * + * All that is going on here with ngShow/ngHide behind the scenes is the `.ng-hide` class is added/removed (when the hidden state is valid). Since + * ngShow and ngHide are animation aware then we can match up a transition and ngAnimate handles the rest. + * + * In addition the addition and removal of the CSS class, ngAnimate also provides two helper methods that we can use to further decorate the animation + * with CSS styles. + * + * ```html + *
+ * Highlight this box + *
+ * + * + * + * ``` + * + * We can also make use of CSS keyframes by placing them within the CSS classes. + * + * + * ### CSS Staggering Animations + * A Staggering animation is a collection of animations that are issued with a slight delay in between each successive operation resulting in a + * curtain-like effect. The ngAnimate module (versions >=1.2) supports staggering animations and the stagger effect can be + * performed by creating a **ng-EVENT-stagger** CSS class and attaching that class to the base CSS class used for + * the animation. The style property expected within the stagger class can either be a **transition-delay** or an + * **animation-delay** property (or both if your animation contains both transitions and keyframe animations). + * + * ```css + * .my-animation.ng-enter { + * /* standard transition code */ + * transition: 1s linear all; + * opacity:0; + * } + * .my-animation.ng-enter-stagger { + * /* this will have a 100ms delay between each successive leave animation */ + * transition-delay: 0.1s; + * + * /* As of 1.4.4, this must always be set: it signals ngAnimate + * to not accidentally inherit a delay property from another CSS class */ + * transition-duration: 0s; + * } + * .my-animation.ng-enter.ng-enter-active { + * /* standard transition styles */ + * opacity:1; + * } + * ``` + * + * Staggering animations work by default in ngRepeat (so long as the CSS class is defined). Outside of ngRepeat, to use staggering animations + * on your own, they can be triggered by firing multiple calls to the same event on $animate. However, the restrictions surrounding this + * are that each of the elements must have the same CSS className value as well as the same parent element. A stagger operation + * will also be reset if one or more animation frames have passed since the multiple calls to `$animate` were fired. + * + * The following code will issue the **ng-leave-stagger** event on the element provided: + * + * ```js + * var kids = parent.children(); + * + * $animate.leave(kids[0]); //stagger index=0 + * $animate.leave(kids[1]); //stagger index=1 + * $animate.leave(kids[2]); //stagger index=2 + * $animate.leave(kids[3]); //stagger index=3 + * $animate.leave(kids[4]); //stagger index=4 + * + * window.requestAnimationFrame(function() { + * //stagger has reset itself + * $animate.leave(kids[5]); //stagger index=0 + * $animate.leave(kids[6]); //stagger index=1 + * + * $scope.$digest(); + * }); + * ``` + * + * Stagger animations are currently only supported within CSS-defined animations. + * + * ### The `ng-animate` CSS class + * + * When ngAnimate is animating an element it will apply the `ng-animate` CSS class to the element for the duration of the animation. + * This is a temporary CSS class and it will be removed once the animation is over (for both JavaScript and CSS-based animations). + * + * Therefore, animations can be applied to an element using this temporary class directly via CSS. + * + * ```css + * .zipper.ng-animate { + * transition:0.5s linear all; + * } + * .zipper.ng-enter { + * opacity:0; + * } + * .zipper.ng-enter.ng-enter-active { + * opacity:1; + * } + * .zipper.ng-leave { + * opacity:1; + * } + * .zipper.ng-leave.ng-leave-active { + * opacity:0; + * } + * ``` + * + * (Note that the `ng-animate` CSS class is reserved and it cannot be applied on an element directly since ngAnimate will always remove + * the CSS class once an animation has completed.) + * + * + * ## JavaScript-based Animations + * + * ngAnimate also allows for animations to be consumed by JavaScript code. The approach is similar to CSS-based animations (where there is a shared + * CSS class that is referenced in our HTML code) but in addition we need to register the JavaScript animation on the module. By making use of the + * `module.animation()` module function we can register the ainmation. + * + * Let's see an example of a enter/leave animation using `ngRepeat`: + * + * ```html + *
+ * {{ item }} + *
+ * ``` + * + * See the **slide** CSS class? Let's use that class to define an animation that we'll structure in our module code by using `module.animation`: + * + * ```js + * myModule.animation('.slide', [function() { + * return { + * // make note that other events (like addClass/removeClass) + * // have different function input parameters + * enter: function(element, doneFn) { + * jQuery(element).fadeIn(1000, doneFn); + * + * // remember to call doneFn so that angular + * // knows that the animation has concluded + * }, + * + * move: function(element, doneFn) { + * jQuery(element).fadeIn(1000, doneFn); + * }, + * + * leave: function(element, doneFn) { + * jQuery(element).fadeOut(1000, doneFn); + * } + * } + * }] + * ``` + * + * The nice thing about JS-based animations is that we can inject other services and make use of advanced animation libraries such as + * greensock.js and velocity.js. + * + * If our animation code class-based (meaning that something like `ngClass`, `ngHide` and `ngShow` triggers it) then we can still define + * our animations inside of the same registered animation, however, the function input arguments are a bit different: + * + * ```html + *
+ * this box is moody + *
+ * + * + * + * ``` + * + * ```js + * myModule.animation('.colorful', [function() { + * return { + * addClass: function(element, className, doneFn) { + * // do some cool animation and call the doneFn + * }, + * removeClass: function(element, className, doneFn) { + * // do some cool animation and call the doneFn + * }, + * setClass: function(element, addedClass, removedClass, doneFn) { + * // do some cool animation and call the doneFn + * } + * } + * }] + * ``` + * + * ## CSS + JS Animations Together + * + * AngularJS 1.4 and higher has taken steps to make the amalgamation of CSS and JS animations more flexible. However, unlike earlier versions of Angular, + * defining CSS and JS animations to work off of the same CSS class will not work anymore. Therefore the example below will only result in **JS animations taking + * charge of the animation**: + * + * ```html + *
+ * Slide in and out + *
+ * ``` + * + * ```js + * myModule.animation('.slide', [function() { + * return { + * enter: function(element, doneFn) { + * jQuery(element).slideIn(1000, doneFn); + * } + * } + * }] + * ``` + * + * ```css + * .slide.ng-enter { + * transition:0.5s linear all; + * transform:translateY(-100px); + * } + * .slide.ng-enter.ng-enter-active { + * transform:translateY(0); + * } + * ``` + * + * Does this mean that CSS and JS animations cannot be used together? Do JS-based animations always have higher priority? We can make up for the + * lack of CSS animations by using the `$animateCss` service to trigger our own tweaked-out, CSS-based animations directly from + * our own JS-based animation code: + * + * ```js + * myModule.animation('.slide', ['$animateCss', function($animateCss) { + * return { + * enter: function(element, doneFn) { +* // this will trigger `.slide.ng-enter` and `.slide.ng-enter-active`. + * var runner = $animateCss(element, { + * event: 'enter', + * structural: true + * }).start(); +* runner.done(doneFn); + * } + * } + * }] + * ``` + * + * The nice thing here is that we can save bandwidth by sticking to our CSS-based animation code and we don't need to rely on a 3rd-party animation framework. + * + * The `$animateCss` service is very powerful since we can feed in all kinds of extra properties that will be evaluated and fed into a CSS transition or + * keyframe animation. For example if we wanted to animate the height of an element while adding and removing classes then we can do so by providing that + * data into `$animateCss` directly: + * + * ```js + * myModule.animation('.slide', ['$animateCss', function($animateCss) { + * return { + * enter: function(element, doneFn) { + * var runner = $animateCss(element, { + * event: 'enter', + * structural: true, + * addClass: 'maroon-setting', + * from: { height:0 }, + * to: { height: 200 } + * }).start(); + * + * runner.done(doneFn); + * } + * } + * }] + * ``` + * + * Now we can fill in the rest via our transition CSS code: + * + * ```css + * /* the transition tells ngAnimate to make the animation happen */ + * .slide.ng-enter { transition:0.5s linear all; } + * + * /* this extra CSS class will be absorbed into the transition + * since the $animateCss code is adding the class */ + * .maroon-setting { background:red; } + * ``` + * + * And `$animateCss` will figure out the rest. Just make sure to have the `done()` callback fire the `doneFn` function to signal when the animation is over. + * + * To learn more about what's possible be sure to visit the {@link ngAnimate.$animateCss $animateCss service}. + * + * ## Animation Anchoring (via `ng-animate-ref`) + * + * ngAnimate in AngularJS 1.4 comes packed with the ability to cross-animate elements between + * structural areas of an application (like views) by pairing up elements using an attribute + * called `ng-animate-ref`. + * + * Let's say for example we have two views that are managed by `ng-view` and we want to show + * that there is a relationship between two components situated in within these views. By using the + * `ng-animate-ref` attribute we can identify that the two components are paired together and we + * can then attach an animation, which is triggered when the view changes. + * + * Say for example we have the following template code: + * + * ```html + * + *
+ *
+ * + * + * + * + * + * + * + * + * ``` + * + * Now, when the view changes (once the link is clicked), ngAnimate will examine the + * HTML contents to see if there is a match reference between any components in the view + * that is leaving and the view that is entering. It will scan both the view which is being + * removed (leave) and inserted (enter) to see if there are any paired DOM elements that + * contain a matching ref value. + * + * The two images match since they share the same ref value. ngAnimate will now create a + * transport element (which is a clone of the first image element) and it will then attempt + * to animate to the position of the second image element in the next view. For the animation to + * work a special CSS class called `ng-anchor` will be added to the transported element. + * + * We can now attach a transition onto the `.banner.ng-anchor` CSS class and then + * ngAnimate will handle the entire transition for us as well as the addition and removal of + * any changes of CSS classes between the elements: + * + * ```css + * .banner.ng-anchor { + * /* this animation will last for 1 second since there are + * two phases to the animation (an `in` and an `out` phase) */ + * transition:0.5s linear all; + * } + * ``` + * + * We also **must** include animations for the views that are being entered and removed + * (otherwise anchoring wouldn't be possible since the new view would be inserted right away). + * + * ```css + * .view-animation.ng-enter, .view-animation.ng-leave { + * transition:0.5s linear all; + * position:fixed; + * left:0; + * top:0; + * width:100%; + * } + * .view-animation.ng-enter { + * transform:translateX(100%); + * } + * .view-animation.ng-leave, + * .view-animation.ng-enter.ng-enter-active { + * transform:translateX(0%); + * } + * .view-animation.ng-leave.ng-leave-active { + * transform:translateX(-100%); + * } + * ``` + * + * Now we can jump back to the anchor animation. When the animation happens, there are two stages that occur: + * an `out` and an `in` stage. The `out` stage happens first and that is when the element is animated away + * from its origin. Once that animation is over then the `in` stage occurs which animates the + * element to its destination. The reason why there are two animations is to give enough time + * for the enter animation on the new element to be ready. + * + * The example above sets up a transition for both the in and out phases, but we can also target the out or + * in phases directly via `ng-anchor-out` and `ng-anchor-in`. + * + * ```css + * .banner.ng-anchor-out { + * transition: 0.5s linear all; + * + * /* the scale will be applied during the out animation, + * but will be animated away when the in animation runs */ + * transform: scale(1.2); + * } + * + * .banner.ng-anchor-in { + * transition: 1s linear all; + * } + * ``` + * + * + * + * + * ### Anchoring Demo + * + + + Home +
+
+
+
+
+ + angular.module('anchoringExample', ['ngAnimate', 'ngRoute']) + .config(['$routeProvider', function($routeProvider) { + $routeProvider.when('/', { + templateUrl: 'home.html', + controller: 'HomeController as home' + }); + $routeProvider.when('/profile/:id', { + templateUrl: 'profile.html', + controller: 'ProfileController as profile' + }); + }]) + .run(['$rootScope', function($rootScope) { + $rootScope.records = [ + { id:1, title: "Miss Beulah Roob" }, + { id:2, title: "Trent Morissette" }, + { id:3, title: "Miss Ava Pouros" }, + { id:4, title: "Rod Pouros" }, + { id:5, title: "Abdul Rice" }, + { id:6, title: "Laurie Rutherford Sr." }, + { id:7, title: "Nakia McLaughlin" }, + { id:8, title: "Jordon Blanda DVM" }, + { id:9, title: "Rhoda Hand" }, + { id:10, title: "Alexandrea Sauer" } + ]; + }]) + .controller('HomeController', [function() { + //empty + }]) + .controller('ProfileController', ['$rootScope', '$routeParams', function($rootScope, $routeParams) { + var index = parseInt($routeParams.id, 10); + var record = $rootScope.records[index - 1]; + + this.title = record.title; + this.id = record.id; + }]); + + +

Welcome to the home page

+

Please click on an element

+ + {{ record.title }} + +
+ +
+ {{ profile.title }} +
+
+ + .record { + display:block; + font-size:20px; + } + .profile { + background:black; + color:white; + font-size:100px; + } + .view-container { + position:relative; + } + .view-container > .view.ng-animate { + position:absolute; + top:0; + left:0; + width:100%; + min-height:500px; + } + .view.ng-enter, .view.ng-leave, + .record.ng-anchor { + transition:0.5s linear all; + } + .view.ng-enter { + transform:translateX(100%); + } + .view.ng-enter.ng-enter-active, .view.ng-leave { + transform:translateX(0%); + } + .view.ng-leave.ng-leave-active { + transform:translateX(-100%); + } + .record.ng-anchor-out { + background:red; + } + +
+ * + * ### How is the element transported? + * + * When an anchor animation occurs, ngAnimate will clone the starting element and position it exactly where the starting + * element is located on screen via absolute positioning. The cloned element will be placed inside of the root element + * of the application (where ng-app was defined) and all of the CSS classes of the starting element will be applied. The + * element will then animate into the `out` and `in` animations and will eventually reach the coordinates and match + * the dimensions of the destination element. During the entire animation a CSS class of `.ng-animate-shim` will be applied + * to both the starting and destination elements in order to hide them from being visible (the CSS styling for the class + * is: `visibility:hidden`). Once the anchor reaches its destination then it will be removed and the destination element + * will become visible since the shim class will be removed. + * + * ### How is the morphing handled? + * + * CSS Anchoring relies on transitions and keyframes and the internal code is intelligent enough to figure out + * what CSS classes differ between the starting element and the destination element. These different CSS classes + * will be added/removed on the anchor element and a transition will be applied (the transition that is provided + * in the anchor class). Long story short, ngAnimate will figure out what classes to add and remove which will + * make the transition of the element as smooth and automatic as possible. Be sure to use simple CSS classes that + * do not rely on DOM nesting structure so that the anchor element appears the same as the starting element (since + * the cloned element is placed inside of root element which is likely close to the body element). + * + * Note that if the root element is on the `` element then the cloned node will be placed inside of body. + * + * + * ## Using $animate in your directive code + * + * So far we've explored how to feed in animations into an Angular application, but how do we trigger animations within our own directives in our application? + * By injecting the `$animate` service into our directive code, we can trigger structural and class-based hooks which can then be consumed by animations. Let's + * imagine we have a greeting box that shows and hides itself when the data changes + * + * ```html + * Hi there + * ``` + * + * ```js + * ngModule.directive('greetingBox', ['$animate', function($animate) { + * return function(scope, element, attrs) { + * attrs.$observe('active', function(value) { + * value ? $animate.addClass(element, 'on') : $animate.removeClass(element, 'on'); + * }); + * }); + * }]); + * ``` + * + * Now the `on` CSS class is added and removed on the greeting box component. Now if we add a CSS class on top of the greeting box element + * in our HTML code then we can trigger a CSS or JS animation to happen. + * + * ```css + * /* normally we would create a CSS class to reference on the element */ + * greeting-box.on { transition:0.5s linear all; background:green; color:white; } + * ``` + * + * The `$animate` service contains a variety of other methods like `enter`, `leave`, `animate` and `setClass`. To learn more about what's + * possible be sure to visit the {@link ng.$animate $animate service API page}. + * + * + * ### Preventing Collisions With Third Party Libraries + * + * Some third-party frameworks place animation duration defaults across many element or className + * selectors in order to make their code small and reuseable. This can lead to issues with ngAnimate, which + * is expecting actual animations on these elements and has to wait for their completion. + * + * You can prevent this unwanted behavior by using a prefix on all your animation classes: + * + * ```css + * /* prefixed with animate- */ + * .animate-fade-add.animate-fade-add-active { + * transition:1s linear all; + * opacity:0; + * } + * ``` + * + * You then configure `$animate` to enforce this prefix: + * + * ```js + * $animateProvider.classNameFilter(/animate-/); + * ``` + * + * This also may provide your application with a speed boost since only specific elements containing CSS class prefix + * will be evaluated for animation when any DOM changes occur in the application. + * + * ## Callbacks and Promises + * + * When `$animate` is called it returns a promise that can be used to capture when the animation has ended. Therefore if we were to trigger + * an animation (within our directive code) then we can continue performing directive and scope related activities after the animation has + * ended by chaining onto the returned promise that animation method returns. + * + * ```js + * // somewhere within the depths of the directive + * $animate.enter(element, parent).then(function() { + * //the animation has completed + * }); + * ``` + * + * (Note that earlier versions of Angular prior to v1.4 required the promise code to be wrapped using `$scope.$apply(...)`. This is not the case + * anymore.) + * + * In addition to the animation promise, we can also make use of animation-related callbacks within our directives and controller code by registering + * an event listener using the `$animate` service. Let's say for example that an animation was triggered on our view + * routing controller to hook into that: + * + * ```js + * ngModule.controller('HomePageController', ['$animate', function($animate) { + * $animate.on('enter', ngViewElement, function(element) { + * // the animation for this route has completed + * }]); + * }]) + * ``` + * + * (Note that you will need to trigger a digest within the callback to get angular to notice any scope-related changes.) + */ + +/** + * @ngdoc service + * @name $animate + * @kind object + * + * @description + * The ngAnimate `$animate` service documentation is the same for the core `$animate` service. + * + * Click here {@link ng.$animate to learn more about animations with `$animate`}. + */ +angular.module('ngAnimate', []) + .directive('ngAnimateChildren', $$AnimateChildrenDirective) + .factory('$$rAFScheduler', $$rAFSchedulerFactory) + + .factory('$$AnimateRunner', $$AnimateRunnerFactory) + .factory('$$animateAsyncRun', $$AnimateAsyncRunFactory) + + .provider('$$animateQueue', $$AnimateQueueProvider) + .provider('$$animation', $$AnimationProvider) + + .provider('$animateCss', $AnimateCssProvider) + .provider('$$animateCssDriver', $$AnimateCssDriverProvider) + + .provider('$$animateJs', $$AnimateJsProvider) + .provider('$$animateJsDriver', $$AnimateJsDriverProvider); + + +})(window, window.angular); diff --git a/bower_components/angular-animate/angular-animate.min.js b/bower_components/angular-animate/angular-animate.min.js new file mode 100644 index 00000000..c24d9e06 --- /dev/null +++ b/bower_components/angular-animate/angular-animate.min.js @@ -0,0 +1,56 @@ +/* + AngularJS v1.4.7 + (c) 2010-2015 Google, Inc. http://angularjs.org + License: MIT +*/ +(function(G,t,Ra){'use strict';function va(a,b,c){if(!a)throw ngMinErr("areq",b||"?",c||"required");return a}function wa(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;W(a)&&(a=a.join(" "));W(b)&&(b=b.join(" "));return a+" "+b}function Ha(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function S(a,b,c){var d="";a=W(a)?a:a&&M(a)&&a.length?a.split(/\s+/):[];q(a,function(a,u){a&&0=a&&(a=m,m=0,b.push(f),f=[]);f.push(g.fn);g.children.forEach(function(a){m++;c.push(a)});a--}f.length&&b.push(f);return b}(c)}var $=[],t=P(a);return function(h,x,A){function Y(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];q(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function E(a){var b=[], +c={};q(a,function(a,e){var d=H(a.element),v=0<=["enter","move"].indexOf(a.event),d=a.structural?Y(d):[];if(d.length){var m=v?"to":"from";q(d,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{};c[b][m]={animationID:e,element:J(a)}})}else b.push(a)});var e={},d={};q(c,function(c,m){var f=c.from,y=c.to;if(f&&y){var g=a[f.animationID],r=a[y.animationID],s=f.animationID.toString();if(!d[s]){var h=d[s]={structural:!0,beforeStart:function(){g.beforeStart();r.beforeStart()},close:function(){g.close(); +r.close()},classes:w(g.classes,r.classes),from:g,to:r,anchors:[]};h.classes.length?b.push(h):(b.push(g),b.push(r))}d[s].anchors.push({out:f.element,"in":y.element})}else f=f?f.animationID:y.animationID,y=f.toString(),e[y]||(e[y]=!0,b.push(a[f]))});return b}function w(a,b){a=a.split(" ");b=b.split(" ");for(var c=[],e=0;eF.expectedEndTime)?z.cancel(F.timer):k.push(m)}x&&(l=z(d,l,!1),k[0]={timer:l,expectedEndTime:s},k.push(m),a.data("$$animateCss",k));a.on(h.join(" "),f);c.to&&(c.cleanupStyles&&Da(v,n,Object.keys(c.to)),ya(a,c))}}function d(){var b=a.data("$$animateCss");if(b){for(var c=1;c=M&&b>=K&&(ua=!0,m())}if(!E)if(n.parentNode){var r,h=[],s=function(a){if(ua)l&&a&&(l=!1,m());else if(l=!a,B.animationDuration)if(a=ma(n,l),l)w.push(a);else{var b=w,c=b.indexOf(a);0<=a&&b.splice(c,1)}},k=0", + "license": "MIT", + "bugs": { + "url": "https://github.com/angular/angular.js/issues" + }, + "homepage": "http://angularjs.org" +} diff --git a/bower_components/angular-highlightjs/.bower.json b/bower_components/angular-highlightjs/.bower.json new file mode 100644 index 00000000..2813e9a0 --- /dev/null +++ b/bower_components/angular-highlightjs/.bower.json @@ -0,0 +1,32 @@ +{ + "name": "angular-highlightjs", + "version": "0.4.3", + "description": "AngularJS directive for syntax highlighting with highlight.js.", + "main": "./build/angular-highlightjs.js", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "example", + "with-browserify", + "plunk-source", + "Gruntfile.js", + "package.json", + "test", + "tests" + ], + "dependencies": { + "angular": ">1.0.8" + }, + "devDependencies": {}, + "homepage": "https://github.com/pc035860/angular-highlightjs", + "_release": "0.4.3", + "_resolution": { + "type": "version", + "tag": "v0.4.3", + "commit": "36d4681465ec8bf2d1fdcd758fe9f842b73aaed2" + }, + "_source": "git://github.com/pc035860/angular-highlightjs.git", + "_target": "*", + "_originalSource": "angular-highlightjs" +} \ No newline at end of file diff --git a/bower_components/angular-highlightjs/LICENSE b/bower_components/angular-highlightjs/LICENSE new file mode 100644 index 00000000..153e8663 --- /dev/null +++ b/bower_components/angular-highlightjs/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 Robin Fan + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/bower_components/angular-highlightjs/README.md b/bower_components/angular-highlightjs/README.md new file mode 100644 index 00000000..e6f43405 --- /dev/null +++ b/bower_components/angular-highlightjs/README.md @@ -0,0 +1,167 @@ +# angular-highlightjs + +AngularJS directive for syntax highlighting with [highlight.js](http://highlightjs.org/). + +#### Demos + +* [Self-highlight plunk](http://plnkr.co/edit/OPxzDu?p=preview) +* [JSON pretty print](http://plnkr.co/edit/WCmBTQ?p=preview) + +## Requirements + +* Highlight.js (.js & .css) +* AngularJS v1.0.1+ + + +## Getting started + +Follow the instructions [here](http://softwaremaniacs.org/soft/highlight/en/download/) to setup highlight.js. + +Using a prebuilt version of highlight.js hosted at Yandex here. +```html + + + +``` + +Include `angular-highlightjs` module script with AngularJS script on your page. +```html + + +``` + +Add `hljs` to your app module's dependency. +```js +angular.module('myApp', ['hljs']); +``` + +## Install with npm + +```sh +npm install angular-highlightjs +``` + +## Install with Bower + +```sh +# install angular-highlightjs & highlightjs +bower install angular-highlightjs +``` + +## Configuration + +**Configuration works with highlight.js >= 8.0** + +In configuration phase, call `hljsServiceProvider.setOptions()` to configure with [highlight.js options](http://highlightjs.readthedocs.org/en/latest/api.html#configure-options). + +```js +myApp.config(function (hljsServiceProvider) { + hljsServiceProvider.setOptions({ + // replace tab with 4 spaces + tabReplace: ' ' + }); +}); +``` + +## Directive usage + +### hljs +This is a required directive. Without any other supportive directives, it provides basic inline highlight function. For better understanding, some notes about using it are specified in the live example page. + +The directive automatically escapes its content HTML entities by default. Can be turned off with explicitly configuration `escape="{expression evaled to false}"` or `no-escape`, and **they're only applicable for "just-`hljs`" usage**. + +[Live example](http://pc035860.github.io/angular-highlightjs/example/#/hljs) + +```html + +
+ +
+ + + +
+<!-- put your codes here --> +
+``` + +#### source (optional) +Type: `expression` +Default: `undefined` + +If `source` is presented, the `hljs` directive will evaluate the expression and highlight the result string. This is pretty useful for dynamically changed content. + +[Live example](http://pc035860.github.io/angular-highlightjs/example/#/hljs-source) + +Dynamically changed content. +```html + + + +
+
+ +
+
+``` + +The expression. Beware of single-quotes. +```html + +
+``` + +#### include (optional) +Type: `expression` +Default: `undefined` + +Works as the built-in `ng-include` directive, utilizes `$templateCache` and `$http` to retrieve content from `text/ng-template` scripts or from XHR. + +[Live example](http://pc035860.github.io/angular-highlightjs/example/#/hljs-include) + +From `text/ng-template` script `localOne`. Beware of single-quotes in the expression. +```html + +
+``` + +From `partials/lang-perl` XHR. Again, beware of single-quotes. +```html + +
+``` + +#### language (optional) +Type: `string` +Default: `undefined` + +Tells the highlight.js which language syntax should be used to highlight the codes. If not specified, highlight.js will highlight with built-in language detection. + +[Live example](http://pc035860.github.io/angular-highlightjs/example/#/hljs-language) + +```html + +
+ + +
+``` + + +#### compile (optional) +Type: `expression` +Default: `undefined` + +Compiles the highlighted code and links it with current scope. The expression will be evaluated after every actual highlight action. + +The attribute works with all methhods of highlighting: `hljs`, `hljs source` and `hljs include`. + +[Live example](http://pc035860.github.io/angular-highlightjs/example/#/hljs-compile) + +```html +
+``` + +### Happy highlighting!!! diff --git a/bower_components/angular-highlightjs/angular-highlightjs.js b/bower_components/angular-highlightjs/angular-highlightjs.js new file mode 100644 index 00000000..03f5d6fd --- /dev/null +++ b/bower_components/angular-highlightjs/angular-highlightjs.js @@ -0,0 +1,385 @@ +/*! angular-highlightjs +version: 0.4.3 +build date: 2015-07-28 +author: Chih-Hsuan Fan +https://github.com/pc035860/angular-highlightjs.git */ + +(function (root, factory) { + if (typeof define === "function" && define.amd) { + define(["angular", "highlight.js"], factory); + } else if (typeof module === "object" && module.exports) { + module.exports = factory(require("angular"), require("highlight.js")); + } else { + root.returnExports = factory(root.angular, root.hljs); + } +}(this, function (angular, hljs) { + +/*global angular, hljs*/ + +function shouldHighlightStatics(attrs) { + var should = true; + angular.forEach([ + 'source', 'include' + ], function (name) { + if (attrs[name]) { + should = false; + } + }); + return should; +} + +var ngModule = angular.module('hljs', []); + +/** + * hljsService service + */ +ngModule.provider('hljsService', function () { + var _hljsOptions = {}; + + return { + setOptions: function (options) { + angular.extend(_hljsOptions, options); + }, + getOptions: function () { + return angular.copy(_hljsOptions); + }, + $get: function () { + (hljs.configure || angular.noop)(_hljsOptions); + return hljs; + } + }; +}); + +/** + * hljsCache service + */ +ngModule.factory('hljsCache', [ + '$cacheFactory', +function ($cacheFactory) { + return $cacheFactory('hljsCache'); +}]); + +/** + * HljsCtrl controller + */ +ngModule.controller('HljsCtrl', [ + 'hljsCache', 'hljsService', +function HljsCtrl (hljsCache, hljsService) { + var ctrl = this; + + var _elm = null, + _lang = null, + _code = null, + _hlCb = null; + + ctrl.init = function (codeElm) { + _elm = codeElm; + }; + + ctrl.setLanguage = function (lang) { + _lang = lang; + + if (_code) { + ctrl.highlight(_code); + } + }; + + ctrl.highlightCallback = function (cb) { + _hlCb = cb; + }; + + ctrl.highlight = function (code) { + if (!_elm) { + return; + } + + var res, cacheKey; + + _code = code; + + if (_lang) { + // language specified + cacheKey = ctrl._cacheKey(_lang, _code); + res = hljsCache.get(cacheKey); + + if (!res) { + res = hljsService.highlight(_lang, hljsService.fixMarkup(_code), true); + hljsCache.put(cacheKey, res); + } + } + else { + // language auto-detect + cacheKey = ctrl._cacheKey(_code); + res = hljsCache.get(cacheKey); + + if (!res) { + res = hljsService.highlightAuto(hljsService.fixMarkup(_code)); + hljsCache.put(cacheKey, res); + } + } + + _elm.html(res.value); + // language as class on the tag + _elm.addClass(res.language); + + if (_hlCb !== null && angular.isFunction(_hlCb)) { + _hlCb(); + } + }; + + ctrl.clear = function () { + if (!_elm) { + return; + } + _code = null; + _elm.text(''); + }; + + ctrl.release = function () { + _elm = null; + }; + + ctrl._cacheKey = function () { + var args = Array.prototype.slice.call(arguments), + glue = "!angular-highlightjs!"; + return args.join(glue); + }; +}]); + + +var hljsDir, languageDirFactory, sourceDirFactory, includeDirFactory; + +/** + * hljs directive + */ +hljsDir = ['$compile', '$parse', function ($compile, $parse) { + return { + restrict: 'EA', + controller: 'HljsCtrl', + compile: function(tElm, tAttrs, transclude) { + // get static code + // strip the starting "new line" character + var staticHTML = tElm[0].innerHTML.replace(/^(\r\n|\r|\n)/m, ''), + staticText = tElm[0].textContent.replace(/^(\r\n|\r|\n)/m, ''); + + // put template + tElm.html('
'); + + return function postLink(scope, iElm, iAttrs, ctrl) { + var compileCheck, escapeCheck; + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + if (angular.isDefined(iAttrs.escape)) { + escapeCheck = $parse(iAttrs.escape); + } else if (angular.isDefined(iAttrs.noEscape)) { + escapeCheck = $parse('false'); + } + + ctrl.init(iElm.find('code')); + + if (iAttrs.onhighlight) { + ctrl.highlightCallback(function () { + scope.$eval(iAttrs.onhighlight); + }); + } + + if ((staticHTML || staticText) && shouldHighlightStatics(iAttrs)) { + + var code; + + // Auto-escape check + // default to "true" + if (escapeCheck && !escapeCheck(scope)) { + code = staticText; + } + else { + code = staticHTML; + } + + ctrl.highlight(code); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + } + + scope.$on('$destroy', function () { + ctrl.release(); + }); + }; + } + }; +}]; + +/** + * language directive + */ +languageDirFactory = function (dirName) { + return [function () { + return { + require: '?hljs', + restrict: 'A', + link: function (scope, iElm, iAttrs, ctrl) { + if (!ctrl) { + return; + } + iAttrs.$observe(dirName, function (lang) { + if (angular.isDefined(lang)) { + ctrl.setLanguage(lang); + } + }); + } + }; + }]; +}; + +/** + * source directive + */ +sourceDirFactory = function (dirName) { + return ['$compile', '$parse', function ($compile, $parse) { + return { + require: '?hljs', + restrict: 'A', + link: function(scope, iElm, iAttrs, ctrl) { + var compileCheck; + + if (!ctrl) { + return; + } + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + scope.$watch(iAttrs[dirName], function (newCode, oldCode) { + if (newCode) { + ctrl.highlight(newCode); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + } + else { + ctrl.clear(); + } + }); + } + }; + }]; +}; + +/** + * include directive + */ +includeDirFactory = function (dirName) { + return [ + '$http', '$templateCache', '$q', '$compile', '$parse', + function ($http, $templateCache, $q, $compile, $parse) { + return { + require: '?hljs', + restrict: 'A', + compile: function(tElm, tAttrs, transclude) { + var srcExpr = tAttrs[dirName]; + + return function postLink(scope, iElm, iAttrs, ctrl) { + var changeCounter = 0, compileCheck; + + if (!ctrl) { + return; + } + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + scope.$watch(srcExpr, function (src) { + var thisChangeId = ++changeCounter; + + if (src && angular.isString(src)) { + var templateCachePromise, dfd; + + templateCachePromise = $templateCache.get(src); + if (!templateCachePromise) { + dfd = $q.defer(); + $http.get(src, { + cache: $templateCache, + transformResponse: function(data, headersGetter) { + // Return the raw string, so $http doesn't parse it + // if it's json. + return data; + } + }).success(function (code) { + if (thisChangeId !== changeCounter) { + return; + } + dfd.resolve(code); + }).error(function() { + if (thisChangeId === changeCounter) { + ctrl.clear(); + } + dfd.resolve(); + }); + templateCachePromise = dfd.promise; + } + + $q.when(templateCachePromise) + .then(function (code) { + if (!code) { + return; + } + + // $templateCache from $http + if (angular.isArray(code)) { + // 1.1.5 + code = code[1]; + } + else if (angular.isObject(code)) { + // 1.0.7 + code = code.data; + } + + code = code.replace(/^(\r\n|\r|\n)/m, ''); + ctrl.highlight(code); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + }); + } + else { + ctrl.clear(); + } + }); + }; + } + }; + }]; +}; + +/** + * Add directives + */ +ngModule +.directive('hljs', hljsDir) +.directive('language', languageDirFactory('language')) +.directive('source', sourceDirFactory('source')) +.directive('include', includeDirFactory('include')); + + return "hljs"; +})); \ No newline at end of file diff --git a/bower_components/angular-highlightjs/angular-highlightjs.min.js b/bower_components/angular-highlightjs/angular-highlightjs.min.js new file mode 100644 index 00000000..56c65fd3 --- /dev/null +++ b/bower_components/angular-highlightjs/angular-highlightjs.min.js @@ -0,0 +1,6 @@ +/*! angular-highlightjs +version: 0.4.3 +build date: 2015-07-28 +author: Chih-Hsuan Fan +https://github.com/pc035860/angular-highlightjs.git */ +!function(a,b){"function"==typeof define&&define.amd?define(["angular","highlight.js"],b):"object"==typeof module&&module.exports?module.exports=b(require("angular"),require("highlight.js")):a.returnExports=b(a.angular,a.hljs)}(this,function(a,b){function c(b){var c=!0;return a.forEach(["source","include"],function(a){b[a]&&(c=!1)}),c}var d=a.module("hljs",[]);d.provider("hljsService",function(){var c={};return{setOptions:function(b){a.extend(c,b)},getOptions:function(){return a.copy(c)},$get:function(){return(b.configure||a.noop)(c),b}}}),d.factory("hljsCache",["$cacheFactory",function(a){return a("hljsCache")}]),d.controller("HljsCtrl",["hljsCache","hljsService",function(b,c){var d=this,e=null,f=null,g=null,h=null;d.init=function(a){e=a},d.setLanguage=function(a){f=a,g&&d.highlight(g)},d.highlightCallback=function(a){h=a},d.highlight=function(i){if(e){var j,k;g=i,f?(k=d._cacheKey(f,g),j=b.get(k),j||(j=c.highlight(f,c.fixMarkup(g),!0),b.put(k,j))):(k=d._cacheKey(g),j=b.get(k),j||(j=c.highlightAuto(c.fixMarkup(g)),b.put(k,j))),e.html(j.value),e.addClass(j.language),null!==h&&a.isFunction(h)&&h()}},d.clear=function(){e&&(g=null,e.text(""))},d.release=function(){e=null},d._cacheKey=function(){var a=Array.prototype.slice.call(arguments),b="!angular-highlightjs!";return a.join(b)}}]);var e,f,g,h;return e=["$compile","$parse",function(b,d){return{restrict:"EA",controller:"HljsCtrl",compile:function(e,f,g){var h=e[0].innerHTML.replace(/^(\r\n|\r|\n)/m,""),i=e[0].textContent.replace(/^(\r\n|\r|\n)/m,"");return e.html('
'),function(e,f,g,j){var k,l;if(a.isDefined(g.compile)&&(k=d(g.compile)),a.isDefined(g.escape)?l=d(g.escape):a.isDefined(g.noEscape)&&(l=d("false")),j.init(f.find("code")),g.onhighlight&&j.highlightCallback(function(){e.$eval(g.onhighlight)}),(h||i)&&c(g)){var m;m=l&&!l(e)?i:h,j.highlight(m),k&&k(e)&&b(f.find("code").contents())(e)}e.$on("$destroy",function(){j.release()})}}}}],f=function(b){return[function(){return{require:"?hljs",restrict:"A",link:function(c,d,e,f){f&&e.$observe(b,function(b){a.isDefined(b)&&f.setLanguage(b)})}}}]},g=function(b){return["$compile","$parse",function(c,d){return{require:"?hljs",restrict:"A",link:function(e,f,g,h){var i;h&&(a.isDefined(g.compile)&&(i=d(g.compile)),e.$watch(g[b],function(a,b){a?(h.highlight(a),i&&i(e)&&c(f.find("code").contents())(e)):h.clear()}))}}}]},h=function(b){return["$http","$templateCache","$q","$compile","$parse",function(c,d,e,f,g){return{require:"?hljs",restrict:"A",compile:function(h,i,j){var k=i[b];return function(b,h,i,j){var l,m=0;j&&(a.isDefined(i.compile)&&(l=g(i.compile)),b.$watch(k,function(g){var i=++m;if(g&&a.isString(g)){var k,n;k=d.get(g),k||(n=e.defer(),c.get(g,{cache:d,transformResponse:function(a,b){return a}}).success(function(a){i===m&&n.resolve(a)}).error(function(){i===m&&j.clear(),n.resolve()}),k=n.promise),e.when(k).then(function(c){c&&(a.isArray(c)?c=c[1]:a.isObject(c)&&(c=c.data),c=c.replace(/^(\r\n|\r|\n)/m,""),j.highlight(c),l&&l(b)&&f(h.find("code").contents())(b))})}else j.clear()}))}}}}]},d.directive("hljs",e).directive("language",f("language")).directive("source",g("source")).directive("include",h("include")),"hljs"}); \ No newline at end of file diff --git a/bower_components/angular-highlightjs/bower.json b/bower_components/angular-highlightjs/bower.json new file mode 100644 index 00000000..11089f64 --- /dev/null +++ b/bower_components/angular-highlightjs/bower.json @@ -0,0 +1,22 @@ +{ + "name": "angular-highlightjs", + "version": "0.4.3", + "description": "AngularJS directive for syntax highlighting with highlight.js.", + "main": "./build/angular-highlightjs.js", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "example", + "with-browserify", + "plunk-source", + "Gruntfile.js", + "package.json", + "test", + "tests" + ], + "dependencies": { + "angular" : ">1.0.8" + }, + "devDependencies": {} +} diff --git a/bower_components/angular-highlightjs/build/angular-highlightjs.js b/bower_components/angular-highlightjs/build/angular-highlightjs.js new file mode 100644 index 00000000..03f5d6fd --- /dev/null +++ b/bower_components/angular-highlightjs/build/angular-highlightjs.js @@ -0,0 +1,385 @@ +/*! angular-highlightjs +version: 0.4.3 +build date: 2015-07-28 +author: Chih-Hsuan Fan +https://github.com/pc035860/angular-highlightjs.git */ + +(function (root, factory) { + if (typeof define === "function" && define.amd) { + define(["angular", "highlight.js"], factory); + } else if (typeof module === "object" && module.exports) { + module.exports = factory(require("angular"), require("highlight.js")); + } else { + root.returnExports = factory(root.angular, root.hljs); + } +}(this, function (angular, hljs) { + +/*global angular, hljs*/ + +function shouldHighlightStatics(attrs) { + var should = true; + angular.forEach([ + 'source', 'include' + ], function (name) { + if (attrs[name]) { + should = false; + } + }); + return should; +} + +var ngModule = angular.module('hljs', []); + +/** + * hljsService service + */ +ngModule.provider('hljsService', function () { + var _hljsOptions = {}; + + return { + setOptions: function (options) { + angular.extend(_hljsOptions, options); + }, + getOptions: function () { + return angular.copy(_hljsOptions); + }, + $get: function () { + (hljs.configure || angular.noop)(_hljsOptions); + return hljs; + } + }; +}); + +/** + * hljsCache service + */ +ngModule.factory('hljsCache', [ + '$cacheFactory', +function ($cacheFactory) { + return $cacheFactory('hljsCache'); +}]); + +/** + * HljsCtrl controller + */ +ngModule.controller('HljsCtrl', [ + 'hljsCache', 'hljsService', +function HljsCtrl (hljsCache, hljsService) { + var ctrl = this; + + var _elm = null, + _lang = null, + _code = null, + _hlCb = null; + + ctrl.init = function (codeElm) { + _elm = codeElm; + }; + + ctrl.setLanguage = function (lang) { + _lang = lang; + + if (_code) { + ctrl.highlight(_code); + } + }; + + ctrl.highlightCallback = function (cb) { + _hlCb = cb; + }; + + ctrl.highlight = function (code) { + if (!_elm) { + return; + } + + var res, cacheKey; + + _code = code; + + if (_lang) { + // language specified + cacheKey = ctrl._cacheKey(_lang, _code); + res = hljsCache.get(cacheKey); + + if (!res) { + res = hljsService.highlight(_lang, hljsService.fixMarkup(_code), true); + hljsCache.put(cacheKey, res); + } + } + else { + // language auto-detect + cacheKey = ctrl._cacheKey(_code); + res = hljsCache.get(cacheKey); + + if (!res) { + res = hljsService.highlightAuto(hljsService.fixMarkup(_code)); + hljsCache.put(cacheKey, res); + } + } + + _elm.html(res.value); + // language as class on the tag + _elm.addClass(res.language); + + if (_hlCb !== null && angular.isFunction(_hlCb)) { + _hlCb(); + } + }; + + ctrl.clear = function () { + if (!_elm) { + return; + } + _code = null; + _elm.text(''); + }; + + ctrl.release = function () { + _elm = null; + }; + + ctrl._cacheKey = function () { + var args = Array.prototype.slice.call(arguments), + glue = "!angular-highlightjs!"; + return args.join(glue); + }; +}]); + + +var hljsDir, languageDirFactory, sourceDirFactory, includeDirFactory; + +/** + * hljs directive + */ +hljsDir = ['$compile', '$parse', function ($compile, $parse) { + return { + restrict: 'EA', + controller: 'HljsCtrl', + compile: function(tElm, tAttrs, transclude) { + // get static code + // strip the starting "new line" character + var staticHTML = tElm[0].innerHTML.replace(/^(\r\n|\r|\n)/m, ''), + staticText = tElm[0].textContent.replace(/^(\r\n|\r|\n)/m, ''); + + // put template + tElm.html('
'); + + return function postLink(scope, iElm, iAttrs, ctrl) { + var compileCheck, escapeCheck; + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + if (angular.isDefined(iAttrs.escape)) { + escapeCheck = $parse(iAttrs.escape); + } else if (angular.isDefined(iAttrs.noEscape)) { + escapeCheck = $parse('false'); + } + + ctrl.init(iElm.find('code')); + + if (iAttrs.onhighlight) { + ctrl.highlightCallback(function () { + scope.$eval(iAttrs.onhighlight); + }); + } + + if ((staticHTML || staticText) && shouldHighlightStatics(iAttrs)) { + + var code; + + // Auto-escape check + // default to "true" + if (escapeCheck && !escapeCheck(scope)) { + code = staticText; + } + else { + code = staticHTML; + } + + ctrl.highlight(code); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + } + + scope.$on('$destroy', function () { + ctrl.release(); + }); + }; + } + }; +}]; + +/** + * language directive + */ +languageDirFactory = function (dirName) { + return [function () { + return { + require: '?hljs', + restrict: 'A', + link: function (scope, iElm, iAttrs, ctrl) { + if (!ctrl) { + return; + } + iAttrs.$observe(dirName, function (lang) { + if (angular.isDefined(lang)) { + ctrl.setLanguage(lang); + } + }); + } + }; + }]; +}; + +/** + * source directive + */ +sourceDirFactory = function (dirName) { + return ['$compile', '$parse', function ($compile, $parse) { + return { + require: '?hljs', + restrict: 'A', + link: function(scope, iElm, iAttrs, ctrl) { + var compileCheck; + + if (!ctrl) { + return; + } + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + scope.$watch(iAttrs[dirName], function (newCode, oldCode) { + if (newCode) { + ctrl.highlight(newCode); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + } + else { + ctrl.clear(); + } + }); + } + }; + }]; +}; + +/** + * include directive + */ +includeDirFactory = function (dirName) { + return [ + '$http', '$templateCache', '$q', '$compile', '$parse', + function ($http, $templateCache, $q, $compile, $parse) { + return { + require: '?hljs', + restrict: 'A', + compile: function(tElm, tAttrs, transclude) { + var srcExpr = tAttrs[dirName]; + + return function postLink(scope, iElm, iAttrs, ctrl) { + var changeCounter = 0, compileCheck; + + if (!ctrl) { + return; + } + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + scope.$watch(srcExpr, function (src) { + var thisChangeId = ++changeCounter; + + if (src && angular.isString(src)) { + var templateCachePromise, dfd; + + templateCachePromise = $templateCache.get(src); + if (!templateCachePromise) { + dfd = $q.defer(); + $http.get(src, { + cache: $templateCache, + transformResponse: function(data, headersGetter) { + // Return the raw string, so $http doesn't parse it + // if it's json. + return data; + } + }).success(function (code) { + if (thisChangeId !== changeCounter) { + return; + } + dfd.resolve(code); + }).error(function() { + if (thisChangeId === changeCounter) { + ctrl.clear(); + } + dfd.resolve(); + }); + templateCachePromise = dfd.promise; + } + + $q.when(templateCachePromise) + .then(function (code) { + if (!code) { + return; + } + + // $templateCache from $http + if (angular.isArray(code)) { + // 1.1.5 + code = code[1]; + } + else if (angular.isObject(code)) { + // 1.0.7 + code = code.data; + } + + code = code.replace(/^(\r\n|\r|\n)/m, ''); + ctrl.highlight(code); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + }); + } + else { + ctrl.clear(); + } + }); + }; + } + }; + }]; +}; + +/** + * Add directives + */ +ngModule +.directive('hljs', hljsDir) +.directive('language', languageDirFactory('language')) +.directive('source', sourceDirFactory('source')) +.directive('include', includeDirFactory('include')); + + return "hljs"; +})); \ No newline at end of file diff --git a/bower_components/angular-highlightjs/build/angular-highlightjs.min.js b/bower_components/angular-highlightjs/build/angular-highlightjs.min.js new file mode 100644 index 00000000..56c65fd3 --- /dev/null +++ b/bower_components/angular-highlightjs/build/angular-highlightjs.min.js @@ -0,0 +1,6 @@ +/*! angular-highlightjs +version: 0.4.3 +build date: 2015-07-28 +author: Chih-Hsuan Fan +https://github.com/pc035860/angular-highlightjs.git */ +!function(a,b){"function"==typeof define&&define.amd?define(["angular","highlight.js"],b):"object"==typeof module&&module.exports?module.exports=b(require("angular"),require("highlight.js")):a.returnExports=b(a.angular,a.hljs)}(this,function(a,b){function c(b){var c=!0;return a.forEach(["source","include"],function(a){b[a]&&(c=!1)}),c}var d=a.module("hljs",[]);d.provider("hljsService",function(){var c={};return{setOptions:function(b){a.extend(c,b)},getOptions:function(){return a.copy(c)},$get:function(){return(b.configure||a.noop)(c),b}}}),d.factory("hljsCache",["$cacheFactory",function(a){return a("hljsCache")}]),d.controller("HljsCtrl",["hljsCache","hljsService",function(b,c){var d=this,e=null,f=null,g=null,h=null;d.init=function(a){e=a},d.setLanguage=function(a){f=a,g&&d.highlight(g)},d.highlightCallback=function(a){h=a},d.highlight=function(i){if(e){var j,k;g=i,f?(k=d._cacheKey(f,g),j=b.get(k),j||(j=c.highlight(f,c.fixMarkup(g),!0),b.put(k,j))):(k=d._cacheKey(g),j=b.get(k),j||(j=c.highlightAuto(c.fixMarkup(g)),b.put(k,j))),e.html(j.value),e.addClass(j.language),null!==h&&a.isFunction(h)&&h()}},d.clear=function(){e&&(g=null,e.text(""))},d.release=function(){e=null},d._cacheKey=function(){var a=Array.prototype.slice.call(arguments),b="!angular-highlightjs!";return a.join(b)}}]);var e,f,g,h;return e=["$compile","$parse",function(b,d){return{restrict:"EA",controller:"HljsCtrl",compile:function(e,f,g){var h=e[0].innerHTML.replace(/^(\r\n|\r|\n)/m,""),i=e[0].textContent.replace(/^(\r\n|\r|\n)/m,"");return e.html('
'),function(e,f,g,j){var k,l;if(a.isDefined(g.compile)&&(k=d(g.compile)),a.isDefined(g.escape)?l=d(g.escape):a.isDefined(g.noEscape)&&(l=d("false")),j.init(f.find("code")),g.onhighlight&&j.highlightCallback(function(){e.$eval(g.onhighlight)}),(h||i)&&c(g)){var m;m=l&&!l(e)?i:h,j.highlight(m),k&&k(e)&&b(f.find("code").contents())(e)}e.$on("$destroy",function(){j.release()})}}}}],f=function(b){return[function(){return{require:"?hljs",restrict:"A",link:function(c,d,e,f){f&&e.$observe(b,function(b){a.isDefined(b)&&f.setLanguage(b)})}}}]},g=function(b){return["$compile","$parse",function(c,d){return{require:"?hljs",restrict:"A",link:function(e,f,g,h){var i;h&&(a.isDefined(g.compile)&&(i=d(g.compile)),e.$watch(g[b],function(a,b){a?(h.highlight(a),i&&i(e)&&c(f.find("code").contents())(e)):h.clear()}))}}}]},h=function(b){return["$http","$templateCache","$q","$compile","$parse",function(c,d,e,f,g){return{require:"?hljs",restrict:"A",compile:function(h,i,j){var k=i[b];return function(b,h,i,j){var l,m=0;j&&(a.isDefined(i.compile)&&(l=g(i.compile)),b.$watch(k,function(g){var i=++m;if(g&&a.isString(g)){var k,n;k=d.get(g),k||(n=e.defer(),c.get(g,{cache:d,transformResponse:function(a,b){return a}}).success(function(a){i===m&&n.resolve(a)}).error(function(){i===m&&j.clear(),n.resolve()}),k=n.promise),e.when(k).then(function(c){c&&(a.isArray(c)?c=c[1]:a.isObject(c)&&(c=c.data),c=c.replace(/^(\r\n|\r|\n)/m,""),j.highlight(c),l&&l(b)&&f(h.find("code").contents())(b))})}else j.clear()}))}}}}]},d.directive("hljs",e).directive("language",f("language")).directive("source",g("source")).directive("include",h("include")),"hljs"}); \ No newline at end of file diff --git a/bower_components/angular-highlightjs/src/angular-highlightjs.js b/bower_components/angular-highlightjs/src/angular-highlightjs.js new file mode 100644 index 00000000..702253ad --- /dev/null +++ b/bower_components/angular-highlightjs/src/angular-highlightjs.js @@ -0,0 +1,366 @@ +/*global angular, hljs*/ + +function shouldHighlightStatics(attrs) { + var should = true; + angular.forEach([ + 'source', 'include' + ], function (name) { + if (attrs[name]) { + should = false; + } + }); + return should; +} + +var ngModule = angular.module('hljs', []); + +/** + * hljsService service + */ +ngModule.provider('hljsService', function () { + var _hljsOptions = {}; + + return { + setOptions: function (options) { + angular.extend(_hljsOptions, options); + }, + getOptions: function () { + return angular.copy(_hljsOptions); + }, + $get: function () { + (hljs.configure || angular.noop)(_hljsOptions); + return hljs; + } + }; +}); + +/** + * hljsCache service + */ +ngModule.factory('hljsCache', [ + '$cacheFactory', +function ($cacheFactory) { + return $cacheFactory('hljsCache'); +}]); + +/** + * HljsCtrl controller + */ +ngModule.controller('HljsCtrl', [ + 'hljsCache', 'hljsService', +function HljsCtrl (hljsCache, hljsService) { + var ctrl = this; + + var _elm = null, + _lang = null, + _code = null, + _hlCb = null; + + ctrl.init = function (codeElm) { + _elm = codeElm; + }; + + ctrl.setLanguage = function (lang) { + _lang = lang; + + if (_code) { + ctrl.highlight(_code); + } + }; + + ctrl.highlightCallback = function (cb) { + _hlCb = cb; + }; + + ctrl.highlight = function (code) { + if (!_elm) { + return; + } + + var res, cacheKey; + + _code = code; + + if (_lang) { + // language specified + cacheKey = ctrl._cacheKey(_lang, _code); + res = hljsCache.get(cacheKey); + + if (!res) { + res = hljsService.highlight(_lang, hljsService.fixMarkup(_code), true); + hljsCache.put(cacheKey, res); + } + } + else { + // language auto-detect + cacheKey = ctrl._cacheKey(_code); + res = hljsCache.get(cacheKey); + + if (!res) { + res = hljsService.highlightAuto(hljsService.fixMarkup(_code)); + hljsCache.put(cacheKey, res); + } + } + + _elm.html(res.value); + // language as class on the tag + _elm.addClass(res.language); + + if (_hlCb !== null && angular.isFunction(_hlCb)) { + _hlCb(); + } + }; + + ctrl.clear = function () { + if (!_elm) { + return; + } + _code = null; + _elm.text(''); + }; + + ctrl.release = function () { + _elm = null; + }; + + ctrl._cacheKey = function () { + var args = Array.prototype.slice.call(arguments), + glue = "!angular-highlightjs!"; + return args.join(glue); + }; +}]); + + +var hljsDir, languageDirFactory, sourceDirFactory, includeDirFactory; + +/** + * hljs directive + */ +hljsDir = ['$compile', '$parse', function ($compile, $parse) { + return { + restrict: 'EA', + controller: 'HljsCtrl', + compile: function(tElm, tAttrs, transclude) { + // get static code + // strip the starting "new line" character + var staticHTML = tElm[0].innerHTML.replace(/^(\r\n|\r|\n)/m, ''), + staticText = tElm[0].textContent.replace(/^(\r\n|\r|\n)/m, ''); + + // put template + tElm.html('
'); + + return function postLink(scope, iElm, iAttrs, ctrl) { + var compileCheck, escapeCheck; + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + if (angular.isDefined(iAttrs.escape)) { + escapeCheck = $parse(iAttrs.escape); + } else if (angular.isDefined(iAttrs.noEscape)) { + escapeCheck = $parse('false'); + } + + ctrl.init(iElm.find('code')); + + if (iAttrs.onhighlight) { + ctrl.highlightCallback(function () { + scope.$eval(iAttrs.onhighlight); + }); + } + + if ((staticHTML || staticText) && shouldHighlightStatics(iAttrs)) { + + var code; + + // Auto-escape check + // default to "true" + if (escapeCheck && !escapeCheck(scope)) { + code = staticText; + } + else { + code = staticHTML; + } + + ctrl.highlight(code); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + } + + scope.$on('$destroy', function () { + ctrl.release(); + }); + }; + } + }; +}]; + +/** + * language directive + */ +languageDirFactory = function (dirName) { + return [function () { + return { + require: '?hljs', + restrict: 'A', + link: function (scope, iElm, iAttrs, ctrl) { + if (!ctrl) { + return; + } + iAttrs.$observe(dirName, function (lang) { + if (angular.isDefined(lang)) { + ctrl.setLanguage(lang); + } + }); + } + }; + }]; +}; + +/** + * source directive + */ +sourceDirFactory = function (dirName) { + return ['$compile', '$parse', function ($compile, $parse) { + return { + require: '?hljs', + restrict: 'A', + link: function(scope, iElm, iAttrs, ctrl) { + var compileCheck; + + if (!ctrl) { + return; + } + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + scope.$watch(iAttrs[dirName], function (newCode, oldCode) { + if (newCode) { + ctrl.highlight(newCode); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + } + else { + ctrl.clear(); + } + }); + } + }; + }]; +}; + +/** + * include directive + */ +includeDirFactory = function (dirName) { + return [ + '$http', '$templateCache', '$q', '$compile', '$parse', + function ($http, $templateCache, $q, $compile, $parse) { + return { + require: '?hljs', + restrict: 'A', + compile: function(tElm, tAttrs, transclude) { + var srcExpr = tAttrs[dirName]; + + return function postLink(scope, iElm, iAttrs, ctrl) { + var changeCounter = 0, compileCheck; + + if (!ctrl) { + return; + } + + if (angular.isDefined(iAttrs.compile)) { + compileCheck = $parse(iAttrs.compile); + } + + scope.$watch(srcExpr, function (src) { + var thisChangeId = ++changeCounter; + + if (src && angular.isString(src)) { + var templateCachePromise, dfd; + + templateCachePromise = $templateCache.get(src); + if (!templateCachePromise) { + dfd = $q.defer(); + $http.get(src, { + cache: $templateCache, + transformResponse: function(data, headersGetter) { + // Return the raw string, so $http doesn't parse it + // if it's json. + return data; + } + }).success(function (code) { + if (thisChangeId !== changeCounter) { + return; + } + dfd.resolve(code); + }).error(function() { + if (thisChangeId === changeCounter) { + ctrl.clear(); + } + dfd.resolve(); + }); + templateCachePromise = dfd.promise; + } + + $q.when(templateCachePromise) + .then(function (code) { + if (!code) { + return; + } + + // $templateCache from $http + if (angular.isArray(code)) { + // 1.1.5 + code = code[1]; + } + else if (angular.isObject(code)) { + // 1.0.7 + code = code.data; + } + + code = code.replace(/^(\r\n|\r|\n)/m, ''); + ctrl.highlight(code); + + // Check if the highlight result needs to be compiled + if (compileCheck && compileCheck(scope)) { + // compile the new DOM and link it to the current scope. + // NOTE: we only compile .childNodes so that + // we don't get into infinite loop compiling ourselves + $compile(iElm.find('code').contents())(scope); + } + }); + } + else { + ctrl.clear(); + } + }); + }; + } + }; + }]; +}; + +/** + * Add directives + */ +ngModule +.directive('hljs', hljsDir) +.directive('language', languageDirFactory('language')) +.directive('source', sourceDirFactory('source')) +.directive('include', includeDirFactory('include')); \ No newline at end of file diff --git a/bower_components/angular-mocks/.bower.json b/bower_components/angular-mocks/.bower.json new file mode 100644 index 00000000..18273248 --- /dev/null +++ b/bower_components/angular-mocks/.bower.json @@ -0,0 +1,19 @@ +{ + "name": "angular-mocks", + "version": "1.4.7", + "main": "./angular-mocks.js", + "ignore": [], + "dependencies": { + "angular": "1.4.7" + }, + "homepage": "https://github.com/angular/bower-angular-mocks", + "_release": "1.4.7", + "_resolution": { + "type": "version", + "tag": "v1.4.7", + "commit": "74c65a6a54f39516be40b0afdd99efb461595fd9" + }, + "_source": "git://github.com/angular/bower-angular-mocks.git", + "_target": "1.x", + "_originalSource": "angular-mocks" +} \ No newline at end of file diff --git a/bower_components/angular-mocks/README.md b/bower_components/angular-mocks/README.md new file mode 100644 index 00000000..440cce9b --- /dev/null +++ b/bower_components/angular-mocks/README.md @@ -0,0 +1,63 @@ +# packaged angular-mocks + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngMock). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-mocks +``` + +You can `require` ngMock modules: + +```js +var angular = require('angular'); +angular.module('myMod', [ + require('angular-animate'), + require('angular-mocks/ngMock') + require('angular-mocks/ngAnimateMock') +]); +``` + +### bower + +```shell +bower install angular-mocks +``` + +The mocks are then available at `bower_components/angular-mocks/angular-mocks.js`. + +## Documentation + +Documentation is available on the +[AngularJS docs site](https://docs.angularjs.org/guide/unit-testing). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/bower_components/angular-mocks/angular-mocks.js b/bower_components/angular-mocks/angular-mocks.js new file mode 100644 index 00000000..febfd0d6 --- /dev/null +++ b/bower_components/angular-mocks/angular-mocks.js @@ -0,0 +1,2470 @@ +/** + * @license AngularJS v1.4.7 + * (c) 2010-2015 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window, angular, undefined) { + +'use strict'; + +/** + * @ngdoc object + * @name angular.mock + * @description + * + * Namespace from 'angular-mocks.js' which contains testing related code. + */ +angular.mock = {}; + +/** + * ! This is a private undocumented service ! + * + * @name $browser + * + * @description + * This service is a mock implementation of {@link ng.$browser}. It provides fake + * implementation for commonly used browser apis that are hard to test, e.g. setTimeout, xhr, + * cookies, etc... + * + * The api of this service is the same as that of the real {@link ng.$browser $browser}, except + * that there are several helper methods available which can be used in tests. + */ +angular.mock.$BrowserProvider = function() { + this.$get = function() { + return new angular.mock.$Browser(); + }; +}; + +angular.mock.$Browser = function() { + var self = this; + + this.isMock = true; + self.$$url = "http://server/"; + self.$$lastUrl = self.$$url; // used by url polling fn + self.pollFns = []; + + // TODO(vojta): remove this temporary api + self.$$completeOutstandingRequest = angular.noop; + self.$$incOutstandingRequestCount = angular.noop; + + + // register url polling fn + + self.onUrlChange = function(listener) { + self.pollFns.push( + function() { + if (self.$$lastUrl !== self.$$url || self.$$state !== self.$$lastState) { + self.$$lastUrl = self.$$url; + self.$$lastState = self.$$state; + listener(self.$$url, self.$$state); + } + } + ); + + return listener; + }; + + self.$$applicationDestroyed = angular.noop; + self.$$checkUrlChange = angular.noop; + + self.deferredFns = []; + self.deferredNextId = 0; + + self.defer = function(fn, delay) { + delay = delay || 0; + self.deferredFns.push({time:(self.defer.now + delay), fn:fn, id: self.deferredNextId}); + self.deferredFns.sort(function(a, b) { return a.time - b.time;}); + return self.deferredNextId++; + }; + + + /** + * @name $browser#defer.now + * + * @description + * Current milliseconds mock time. + */ + self.defer.now = 0; + + + self.defer.cancel = function(deferId) { + var fnIndex; + + angular.forEach(self.deferredFns, function(fn, index) { + if (fn.id === deferId) fnIndex = index; + }); + + if (angular.isDefined(fnIndex)) { + self.deferredFns.splice(fnIndex, 1); + return true; + } + + return false; + }; + + + /** + * @name $browser#defer.flush + * + * @description + * Flushes all pending requests and executes the defer callbacks. + * + * @param {number=} number of milliseconds to flush. See {@link #defer.now} + */ + self.defer.flush = function(delay) { + if (angular.isDefined(delay)) { + self.defer.now += delay; + } else { + if (self.deferredFns.length) { + self.defer.now = self.deferredFns[self.deferredFns.length - 1].time; + } else { + throw new Error('No deferred tasks to be flushed'); + } + } + + while (self.deferredFns.length && self.deferredFns[0].time <= self.defer.now) { + self.deferredFns.shift().fn(); + } + }; + + self.$$baseHref = '/'; + self.baseHref = function() { + return this.$$baseHref; + }; +}; +angular.mock.$Browser.prototype = { + +/** + * @name $browser#poll + * + * @description + * run all fns in pollFns + */ + poll: function poll() { + angular.forEach(this.pollFns, function(pollFn) { + pollFn(); + }); + }, + + url: function(url, replace, state) { + if (angular.isUndefined(state)) { + state = null; + } + if (url) { + this.$$url = url; + // Native pushState serializes & copies the object; simulate it. + this.$$state = angular.copy(state); + return this; + } + + return this.$$url; + }, + + state: function() { + return this.$$state; + }, + + notifyWhenNoOutstandingRequests: function(fn) { + fn(); + } +}; + + +/** + * @ngdoc provider + * @name $exceptionHandlerProvider + * + * @description + * Configures the mock implementation of {@link ng.$exceptionHandler} to rethrow or to log errors + * passed to the `$exceptionHandler`. + */ + +/** + * @ngdoc service + * @name $exceptionHandler + * + * @description + * Mock implementation of {@link ng.$exceptionHandler} that rethrows or logs errors passed + * to it. See {@link ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration + * information. + * + * + * ```js + * describe('$exceptionHandlerProvider', function() { + * + * it('should capture log messages and exceptions', function() { + * + * module(function($exceptionHandlerProvider) { + * $exceptionHandlerProvider.mode('log'); + * }); + * + * inject(function($log, $exceptionHandler, $timeout) { + * $timeout(function() { $log.log(1); }); + * $timeout(function() { $log.log(2); throw 'banana peel'; }); + * $timeout(function() { $log.log(3); }); + * expect($exceptionHandler.errors).toEqual([]); + * expect($log.assertEmpty()); + * $timeout.flush(); + * expect($exceptionHandler.errors).toEqual(['banana peel']); + * expect($log.log.logs).toEqual([[1], [2], [3]]); + * }); + * }); + * }); + * ``` + */ + +angular.mock.$ExceptionHandlerProvider = function() { + var handler; + + /** + * @ngdoc method + * @name $exceptionHandlerProvider#mode + * + * @description + * Sets the logging mode. + * + * @param {string} mode Mode of operation, defaults to `rethrow`. + * + * - `log`: Sometimes it is desirable to test that an error is thrown, for this case the `log` + * mode stores an array of errors in `$exceptionHandler.errors`, to allow later + * assertion of them. See {@link ngMock.$log#assertEmpty assertEmpty()} and + * {@link ngMock.$log#reset reset()} + * - `rethrow`: If any errors are passed to the handler in tests, it typically means that there + * is a bug in the application or test, so this mock will make these tests fail. + * For any implementations that expect exceptions to be thrown, the `rethrow` mode + * will also maintain a log of thrown errors. + */ + this.mode = function(mode) { + + switch (mode) { + case 'log': + case 'rethrow': + var errors = []; + handler = function(e) { + if (arguments.length == 1) { + errors.push(e); + } else { + errors.push([].slice.call(arguments, 0)); + } + if (mode === "rethrow") { + throw e; + } + }; + handler.errors = errors; + break; + default: + throw new Error("Unknown mode '" + mode + "', only 'log'/'rethrow' modes are allowed!"); + } + }; + + this.$get = function() { + return handler; + }; + + this.mode('rethrow'); +}; + + +/** + * @ngdoc service + * @name $log + * + * @description + * Mock implementation of {@link ng.$log} that gathers all logged messages in arrays + * (one array per logging level). These arrays are exposed as `logs` property of each of the + * level-specific log function, e.g. for level `error` the array is exposed as `$log.error.logs`. + * + */ +angular.mock.$LogProvider = function() { + var debug = true; + + function concat(array1, array2, index) { + return array1.concat(Array.prototype.slice.call(array2, index)); + } + + this.debugEnabled = function(flag) { + if (angular.isDefined(flag)) { + debug = flag; + return this; + } else { + return debug; + } + }; + + this.$get = function() { + var $log = { + log: function() { $log.log.logs.push(concat([], arguments, 0)); }, + warn: function() { $log.warn.logs.push(concat([], arguments, 0)); }, + info: function() { $log.info.logs.push(concat([], arguments, 0)); }, + error: function() { $log.error.logs.push(concat([], arguments, 0)); }, + debug: function() { + if (debug) { + $log.debug.logs.push(concat([], arguments, 0)); + } + } + }; + + /** + * @ngdoc method + * @name $log#reset + * + * @description + * Reset all of the logging arrays to empty. + */ + $log.reset = function() { + /** + * @ngdoc property + * @name $log#log.logs + * + * @description + * Array of messages logged using {@link ng.$log#log `log()`}. + * + * @example + * ```js + * $log.log('Some Log'); + * var first = $log.log.logs.unshift(); + * ``` + */ + $log.log.logs = []; + /** + * @ngdoc property + * @name $log#info.logs + * + * @description + * Array of messages logged using {@link ng.$log#info `info()`}. + * + * @example + * ```js + * $log.info('Some Info'); + * var first = $log.info.logs.unshift(); + * ``` + */ + $log.info.logs = []; + /** + * @ngdoc property + * @name $log#warn.logs + * + * @description + * Array of messages logged using {@link ng.$log#warn `warn()`}. + * + * @example + * ```js + * $log.warn('Some Warning'); + * var first = $log.warn.logs.unshift(); + * ``` + */ + $log.warn.logs = []; + /** + * @ngdoc property + * @name $log#error.logs + * + * @description + * Array of messages logged using {@link ng.$log#error `error()`}. + * + * @example + * ```js + * $log.error('Some Error'); + * var first = $log.error.logs.unshift(); + * ``` + */ + $log.error.logs = []; + /** + * @ngdoc property + * @name $log#debug.logs + * + * @description + * Array of messages logged using {@link ng.$log#debug `debug()`}. + * + * @example + * ```js + * $log.debug('Some Error'); + * var first = $log.debug.logs.unshift(); + * ``` + */ + $log.debug.logs = []; + }; + + /** + * @ngdoc method + * @name $log#assertEmpty + * + * @description + * Assert that all of the logging methods have no logged messages. If any messages are present, + * an exception is thrown. + */ + $log.assertEmpty = function() { + var errors = []; + angular.forEach(['error', 'warn', 'info', 'log', 'debug'], function(logLevel) { + angular.forEach($log[logLevel].logs, function(log) { + angular.forEach(log, function(logItem) { + errors.push('MOCK $log (' + logLevel + '): ' + String(logItem) + '\n' + + (logItem.stack || '')); + }); + }); + }); + if (errors.length) { + errors.unshift("Expected $log to be empty! Either a message was logged unexpectedly, or " + + "an expected log message was not checked and removed:"); + errors.push(''); + throw new Error(errors.join('\n---------\n')); + } + }; + + $log.reset(); + return $log; + }; +}; + + +/** + * @ngdoc service + * @name $interval + * + * @description + * Mock implementation of the $interval service. + * + * Use {@link ngMock.$interval#flush `$interval.flush(millis)`} to + * move forward by `millis` milliseconds and trigger any functions scheduled to run in that + * time. + * + * @param {function()} fn A function that should be called repeatedly. + * @param {number} delay Number of milliseconds between each function call. + * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat + * indefinitely. + * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise + * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block. + * @param {...*=} Pass additional parameters to the executed function. + * @returns {promise} A promise which will be notified on each iteration. + */ +angular.mock.$IntervalProvider = function() { + this.$get = ['$browser', '$rootScope', '$q', '$$q', + function($browser, $rootScope, $q, $$q) { + var repeatFns = [], + nextRepeatId = 0, + now = 0; + + var $interval = function(fn, delay, count, invokeApply) { + var hasParams = arguments.length > 4, + args = hasParams ? Array.prototype.slice.call(arguments, 4) : [], + iteration = 0, + skipApply = (angular.isDefined(invokeApply) && !invokeApply), + deferred = (skipApply ? $$q : $q).defer(), + promise = deferred.promise; + + count = (angular.isDefined(count)) ? count : 0; + promise.then(null, null, (!hasParams) ? fn : function() { + fn.apply(null, args); + }); + + promise.$$intervalId = nextRepeatId; + + function tick() { + deferred.notify(iteration++); + + if (count > 0 && iteration >= count) { + var fnIndex; + deferred.resolve(iteration); + + angular.forEach(repeatFns, function(fn, index) { + if (fn.id === promise.$$intervalId) fnIndex = index; + }); + + if (angular.isDefined(fnIndex)) { + repeatFns.splice(fnIndex, 1); + } + } + + if (skipApply) { + $browser.defer.flush(); + } else { + $rootScope.$apply(); + } + } + + repeatFns.push({ + nextTime:(now + delay), + delay: delay, + fn: tick, + id: nextRepeatId, + deferred: deferred + }); + repeatFns.sort(function(a, b) { return a.nextTime - b.nextTime;}); + + nextRepeatId++; + return promise; + }; + /** + * @ngdoc method + * @name $interval#cancel + * + * @description + * Cancels a task associated with the `promise`. + * + * @param {promise} promise A promise from calling the `$interval` function. + * @returns {boolean} Returns `true` if the task was successfully cancelled. + */ + $interval.cancel = function(promise) { + if (!promise) return false; + var fnIndex; + + angular.forEach(repeatFns, function(fn, index) { + if (fn.id === promise.$$intervalId) fnIndex = index; + }); + + if (angular.isDefined(fnIndex)) { + repeatFns[fnIndex].deferred.reject('canceled'); + repeatFns.splice(fnIndex, 1); + return true; + } + + return false; + }; + + /** + * @ngdoc method + * @name $interval#flush + * @description + * + * Runs interval tasks scheduled to be run in the next `millis` milliseconds. + * + * @param {number=} millis maximum timeout amount to flush up until. + * + * @return {number} The amount of time moved forward. + */ + $interval.flush = function(millis) { + now += millis; + while (repeatFns.length && repeatFns[0].nextTime <= now) { + var task = repeatFns[0]; + task.fn(); + task.nextTime += task.delay; + repeatFns.sort(function(a, b) { return a.nextTime - b.nextTime;}); + } + return millis; + }; + + return $interval; + }]; +}; + + +/* jshint -W101 */ +/* The R_ISO8061_STR regex is never going to fit into the 100 char limit! + * This directive should go inside the anonymous function but a bug in JSHint means that it would + * not be enacted early enough to prevent the warning. + */ +var R_ISO8061_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/; + +function jsonStringToDate(string) { + var match; + if (match = string.match(R_ISO8061_STR)) { + var date = new Date(0), + tzHour = 0, + tzMin = 0; + if (match[9]) { + tzHour = toInt(match[9] + match[10]); + tzMin = toInt(match[9] + match[11]); + } + date.setUTCFullYear(toInt(match[1]), toInt(match[2]) - 1, toInt(match[3])); + date.setUTCHours(toInt(match[4] || 0) - tzHour, + toInt(match[5] || 0) - tzMin, + toInt(match[6] || 0), + toInt(match[7] || 0)); + return date; + } + return string; +} + +function toInt(str) { + return parseInt(str, 10); +} + +function padNumber(num, digits, trim) { + var neg = ''; + if (num < 0) { + neg = '-'; + num = -num; + } + num = '' + num; + while (num.length < digits) num = '0' + num; + if (trim) { + num = num.substr(num.length - digits); + } + return neg + num; +} + + +/** + * @ngdoc type + * @name angular.mock.TzDate + * @description + * + * *NOTE*: this is not an injectable instance, just a globally available mock class of `Date`. + * + * Mock of the Date type which has its timezone specified via constructor arg. + * + * The main purpose is to create Date-like instances with timezone fixed to the specified timezone + * offset, so that we can test code that depends on local timezone settings without dependency on + * the time zone settings of the machine where the code is running. + * + * @param {number} offset Offset of the *desired* timezone in hours (fractions will be honored) + * @param {(number|string)} timestamp Timestamp representing the desired time in *UTC* + * + * @example + * !!!! WARNING !!!!! + * This is not a complete Date object so only methods that were implemented can be called safely. + * To make matters worse, TzDate instances inherit stuff from Date via a prototype. + * + * We do our best to intercept calls to "unimplemented" methods, but since the list of methods is + * incomplete we might be missing some non-standard methods. This can result in errors like: + * "Date.prototype.foo called on incompatible Object". + * + * ```js + * var newYearInBratislava = new TzDate(-1, '2009-12-31T23:00:00Z'); + * newYearInBratislava.getTimezoneOffset() => -60; + * newYearInBratislava.getFullYear() => 2010; + * newYearInBratislava.getMonth() => 0; + * newYearInBratislava.getDate() => 1; + * newYearInBratislava.getHours() => 0; + * newYearInBratislava.getMinutes() => 0; + * newYearInBratislava.getSeconds() => 0; + * ``` + * + */ +angular.mock.TzDate = function(offset, timestamp) { + var self = new Date(0); + if (angular.isString(timestamp)) { + var tsStr = timestamp; + + self.origDate = jsonStringToDate(timestamp); + + timestamp = self.origDate.getTime(); + if (isNaN(timestamp)) { + throw { + name: "Illegal Argument", + message: "Arg '" + tsStr + "' passed into TzDate constructor is not a valid date string" + }; + } + } else { + self.origDate = new Date(timestamp); + } + + var localOffset = new Date(timestamp).getTimezoneOffset(); + self.offsetDiff = localOffset * 60 * 1000 - offset * 1000 * 60 * 60; + self.date = new Date(timestamp + self.offsetDiff); + + self.getTime = function() { + return self.date.getTime() - self.offsetDiff; + }; + + self.toLocaleDateString = function() { + return self.date.toLocaleDateString(); + }; + + self.getFullYear = function() { + return self.date.getFullYear(); + }; + + self.getMonth = function() { + return self.date.getMonth(); + }; + + self.getDate = function() { + return self.date.getDate(); + }; + + self.getHours = function() { + return self.date.getHours(); + }; + + self.getMinutes = function() { + return self.date.getMinutes(); + }; + + self.getSeconds = function() { + return self.date.getSeconds(); + }; + + self.getMilliseconds = function() { + return self.date.getMilliseconds(); + }; + + self.getTimezoneOffset = function() { + return offset * 60; + }; + + self.getUTCFullYear = function() { + return self.origDate.getUTCFullYear(); + }; + + self.getUTCMonth = function() { + return self.origDate.getUTCMonth(); + }; + + self.getUTCDate = function() { + return self.origDate.getUTCDate(); + }; + + self.getUTCHours = function() { + return self.origDate.getUTCHours(); + }; + + self.getUTCMinutes = function() { + return self.origDate.getUTCMinutes(); + }; + + self.getUTCSeconds = function() { + return self.origDate.getUTCSeconds(); + }; + + self.getUTCMilliseconds = function() { + return self.origDate.getUTCMilliseconds(); + }; + + self.getDay = function() { + return self.date.getDay(); + }; + + // provide this method only on browsers that already have it + if (self.toISOString) { + self.toISOString = function() { + return padNumber(self.origDate.getUTCFullYear(), 4) + '-' + + padNumber(self.origDate.getUTCMonth() + 1, 2) + '-' + + padNumber(self.origDate.getUTCDate(), 2) + 'T' + + padNumber(self.origDate.getUTCHours(), 2) + ':' + + padNumber(self.origDate.getUTCMinutes(), 2) + ':' + + padNumber(self.origDate.getUTCSeconds(), 2) + '.' + + padNumber(self.origDate.getUTCMilliseconds(), 3) + 'Z'; + }; + } + + //hide all methods not implemented in this mock that the Date prototype exposes + var unimplementedMethods = ['getUTCDay', + 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMilliseconds', + 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear', + 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', + 'setYear', 'toDateString', 'toGMTString', 'toJSON', 'toLocaleFormat', 'toLocaleString', + 'toLocaleTimeString', 'toSource', 'toString', 'toTimeString', 'toUTCString', 'valueOf']; + + angular.forEach(unimplementedMethods, function(methodName) { + self[methodName] = function() { + throw new Error("Method '" + methodName + "' is not implemented in the TzDate mock"); + }; + }); + + return self; +}; + +//make "tzDateInstance instanceof Date" return true +angular.mock.TzDate.prototype = Date.prototype; +/* jshint +W101 */ + +angular.mock.animate = angular.module('ngAnimateMock', ['ng']) + + .config(['$provide', function($provide) { + + $provide.factory('$$forceReflow', function() { + function reflowFn() { + reflowFn.totalReflows++; + } + reflowFn.totalReflows = 0; + return reflowFn; + }); + + $provide.factory('$$animateAsyncRun', function() { + var queue = []; + var queueFn = function() { + return function(fn) { + queue.push(fn); + }; + }; + queueFn.flush = function() { + if (queue.length === 0) return false; + + for (var i = 0; i < queue.length; i++) { + queue[i](); + } + queue = []; + + return true; + }; + return queueFn; + }); + + $provide.decorator('$animate', ['$delegate', '$timeout', '$browser', '$$rAF', + '$$forceReflow', '$$animateAsyncRun', '$rootScope', + function($delegate, $timeout, $browser, $$rAF, + $$forceReflow, $$animateAsyncRun, $rootScope) { + var animate = { + queue: [], + cancel: $delegate.cancel, + on: $delegate.on, + off: $delegate.off, + pin: $delegate.pin, + get reflows() { + return $$forceReflow.totalReflows; + }, + enabled: $delegate.enabled, + flush: function() { + $rootScope.$digest(); + + var doNextRun, somethingFlushed = false; + do { + doNextRun = false; + + if ($$rAF.queue.length) { + $$rAF.flush(); + doNextRun = somethingFlushed = true; + } + + if ($$animateAsyncRun.flush()) { + doNextRun = somethingFlushed = true; + } + } while (doNextRun); + + if (!somethingFlushed) { + throw new Error('No pending animations ready to be closed or flushed'); + } + + $rootScope.$digest(); + } + }; + + angular.forEach( + ['animate','enter','leave','move','addClass','removeClass','setClass'], function(method) { + animate[method] = function() { + animate.queue.push({ + event: method, + element: arguments[0], + options: arguments[arguments.length - 1], + args: arguments + }); + return $delegate[method].apply($delegate, arguments); + }; + }); + + return animate; + }]); + + }]); + + +/** + * @ngdoc function + * @name angular.mock.dump + * @description + * + * *NOTE*: this is not an injectable instance, just a globally available function. + * + * Method for serializing common angular objects (scope, elements, etc..) into strings, useful for + * debugging. + * + * This method is also available on window, where it can be used to display objects on debug + * console. + * + * @param {*} object - any object to turn into string. + * @return {string} a serialized string of the argument + */ +angular.mock.dump = function(object) { + return serialize(object); + + function serialize(object) { + var out; + + if (angular.isElement(object)) { + object = angular.element(object); + out = angular.element('
'); + angular.forEach(object, function(element) { + out.append(angular.element(element).clone()); + }); + out = out.html(); + } else if (angular.isArray(object)) { + out = []; + angular.forEach(object, function(o) { + out.push(serialize(o)); + }); + out = '[ ' + out.join(', ') + ' ]'; + } else if (angular.isObject(object)) { + if (angular.isFunction(object.$eval) && angular.isFunction(object.$apply)) { + out = serializeScope(object); + } else if (object instanceof Error) { + out = object.stack || ('' + object.name + ': ' + object.message); + } else { + // TODO(i): this prevents methods being logged, + // we should have a better way to serialize objects + out = angular.toJson(object, true); + } + } else { + out = String(object); + } + + return out; + } + + function serializeScope(scope, offset) { + offset = offset || ' '; + var log = [offset + 'Scope(' + scope.$id + '): {']; + for (var key in scope) { + if (Object.prototype.hasOwnProperty.call(scope, key) && !key.match(/^(\$|this)/)) { + log.push(' ' + key + ': ' + angular.toJson(scope[key])); + } + } + var child = scope.$$childHead; + while (child) { + log.push(serializeScope(child, offset + ' ')); + child = child.$$nextSibling; + } + log.push('}'); + return log.join('\n' + offset); + } +}; + +/** + * @ngdoc service + * @name $httpBackend + * @description + * Fake HTTP backend implementation suitable for unit testing applications that use the + * {@link ng.$http $http service}. + * + * *Note*: For fake HTTP backend implementation suitable for end-to-end testing or backend-less + * development please see {@link ngMockE2E.$httpBackend e2e $httpBackend mock}. + * + * During unit testing, we want our unit tests to run quickly and have no external dependencies so + * we don’t want to send [XHR](https://developer.mozilla.org/en/xmlhttprequest) or + * [JSONP](http://en.wikipedia.org/wiki/JSONP) requests to a real server. All we really need is + * to verify whether a certain request has been sent or not, or alternatively just let the + * application make requests, respond with pre-trained responses and assert that the end result is + * what we expect it to be. + * + * This mock implementation can be used to respond with static or dynamic responses via the + * `expect` and `when` apis and their shortcuts (`expectGET`, `whenPOST`, etc). + * + * When an Angular application needs some data from a server, it calls the $http service, which + * sends the request to a real server using $httpBackend service. With dependency injection, it is + * easy to inject $httpBackend mock (which has the same API as $httpBackend) and use it to verify + * the requests and respond with some testing data without sending a request to a real server. + * + * There are two ways to specify what test data should be returned as http responses by the mock + * backend when the code under test makes http requests: + * + * - `$httpBackend.expect` - specifies a request expectation + * - `$httpBackend.when` - specifies a backend definition + * + * + * # Request Expectations vs Backend Definitions + * + * Request expectations provide a way to make assertions about requests made by the application and + * to define responses for those requests. The test will fail if the expected requests are not made + * or they are made in the wrong order. + * + * Backend definitions allow you to define a fake backend for your application which doesn't assert + * if a particular request was made or not, it just returns a trained response if a request is made. + * The test will pass whether or not the request gets made during testing. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Request expectationsBackend definitions
Syntax.expect(...).respond(...).when(...).respond(...)
Typical usagestrict unit testsloose (black-box) unit testing
Fulfills multiple requestsNOYES
Order of requests mattersYESNO
Request requiredYESNO
Response requiredoptional (see below)YES
+ * + * In cases where both backend definitions and request expectations are specified during unit + * testing, the request expectations are evaluated first. + * + * If a request expectation has no response specified, the algorithm will search your backend + * definitions for an appropriate response. + * + * If a request didn't match any expectation or if the expectation doesn't have the response + * defined, the backend definitions are evaluated in sequential order to see if any of them match + * the request. The response from the first matched definition is returned. + * + * + * # Flushing HTTP requests + * + * The $httpBackend used in production always responds to requests asynchronously. If we preserved + * this behavior in unit testing, we'd have to create async unit tests, which are hard to write, + * to follow and to maintain. But neither can the testing mock respond synchronously; that would + * change the execution of the code under test. For this reason, the mock $httpBackend has a + * `flush()` method, which allows the test to explicitly flush pending requests. This preserves + * the async api of the backend, while allowing the test to execute synchronously. + * + * + * # Unit testing with mock $httpBackend + * The following code shows how to setup and use the mock backend when unit testing a controller. + * First we create the controller under test: + * + ```js + // The module code + angular + .module('MyApp', []) + .controller('MyController', MyController); + + // The controller code + function MyController($scope, $http) { + var authToken; + + $http.get('/auth.py').success(function(data, status, headers) { + authToken = headers('A-Token'); + $scope.user = data; + }); + + $scope.saveMessage = function(message) { + var headers = { 'Authorization': authToken }; + $scope.status = 'Saving...'; + + $http.post('/add-msg.py', message, { headers: headers } ).success(function(response) { + $scope.status = ''; + }).error(function() { + $scope.status = 'Failed...'; + }); + }; + } + ``` + * + * Now we setup the mock backend and create the test specs: + * + ```js + // testing controller + describe('MyController', function() { + var $httpBackend, $rootScope, createController, authRequestHandler; + + // Set up the module + beforeEach(module('MyApp')); + + beforeEach(inject(function($injector) { + // Set up the mock http service responses + $httpBackend = $injector.get('$httpBackend'); + // backend definition common for all tests + authRequestHandler = $httpBackend.when('GET', '/auth.py') + .respond({userId: 'userX'}, {'A-Token': 'xxx'}); + + // Get hold of a scope (i.e. the root scope) + $rootScope = $injector.get('$rootScope'); + // The $controller service is used to create instances of controllers + var $controller = $injector.get('$controller'); + + createController = function() { + return $controller('MyController', {'$scope' : $rootScope }); + }; + })); + + + afterEach(function() { + $httpBackend.verifyNoOutstandingExpectation(); + $httpBackend.verifyNoOutstandingRequest(); + }); + + + it('should fetch authentication token', function() { + $httpBackend.expectGET('/auth.py'); + var controller = createController(); + $httpBackend.flush(); + }); + + + it('should fail authentication', function() { + + // Notice how you can change the response even after it was set + authRequestHandler.respond(401, ''); + + $httpBackend.expectGET('/auth.py'); + var controller = createController(); + $httpBackend.flush(); + expect($rootScope.status).toBe('Failed...'); + }); + + + it('should send msg to server', function() { + var controller = createController(); + $httpBackend.flush(); + + // now you don’t care about the authentication, but + // the controller will still send the request and + // $httpBackend will respond without you having to + // specify the expectation and response for this request + + $httpBackend.expectPOST('/add-msg.py', 'message content').respond(201, ''); + $rootScope.saveMessage('message content'); + expect($rootScope.status).toBe('Saving...'); + $httpBackend.flush(); + expect($rootScope.status).toBe(''); + }); + + + it('should send auth header', function() { + var controller = createController(); + $httpBackend.flush(); + + $httpBackend.expectPOST('/add-msg.py', undefined, function(headers) { + // check if the header was sent, if it wasn't the expectation won't + // match the request and the test will fail + return headers['Authorization'] == 'xxx'; + }).respond(201, ''); + + $rootScope.saveMessage('whatever'); + $httpBackend.flush(); + }); + }); + ``` + */ +angular.mock.$HttpBackendProvider = function() { + this.$get = ['$rootScope', '$timeout', createHttpBackendMock]; +}; + +/** + * General factory function for $httpBackend mock. + * Returns instance for unit testing (when no arguments specified): + * - passing through is disabled + * - auto flushing is disabled + * + * Returns instance for e2e testing (when `$delegate` and `$browser` specified): + * - passing through (delegating request to real backend) is enabled + * - auto flushing is enabled + * + * @param {Object=} $delegate Real $httpBackend instance (allow passing through if specified) + * @param {Object=} $browser Auto-flushing enabled if specified + * @return {Object} Instance of $httpBackend mock + */ +function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) { + var definitions = [], + expectations = [], + responses = [], + responsesPush = angular.bind(responses, responses.push), + copy = angular.copy; + + function createResponse(status, data, headers, statusText) { + if (angular.isFunction(status)) return status; + + return function() { + return angular.isNumber(status) + ? [status, data, headers, statusText] + : [200, status, data, headers]; + }; + } + + // TODO(vojta): change params to: method, url, data, headers, callback + function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) { + var xhr = new MockXhr(), + expectation = expectations[0], + wasExpected = false; + + function prettyPrint(data) { + return (angular.isString(data) || angular.isFunction(data) || data instanceof RegExp) + ? data + : angular.toJson(data); + } + + function wrapResponse(wrapped) { + if (!$browser && timeout) { + timeout.then ? timeout.then(handleTimeout) : $timeout(handleTimeout, timeout); + } + + return handleResponse; + + function handleResponse() { + var response = wrapped.response(method, url, data, headers); + xhr.$$respHeaders = response[2]; + callback(copy(response[0]), copy(response[1]), xhr.getAllResponseHeaders(), + copy(response[3] || '')); + } + + function handleTimeout() { + for (var i = 0, ii = responses.length; i < ii; i++) { + if (responses[i] === handleResponse) { + responses.splice(i, 1); + callback(-1, undefined, ''); + break; + } + } + } + } + + if (expectation && expectation.match(method, url)) { + if (!expectation.matchData(data)) { + throw new Error('Expected ' + expectation + ' with different data\n' + + 'EXPECTED: ' + prettyPrint(expectation.data) + '\nGOT: ' + data); + } + + if (!expectation.matchHeaders(headers)) { + throw new Error('Expected ' + expectation + ' with different headers\n' + + 'EXPECTED: ' + prettyPrint(expectation.headers) + '\nGOT: ' + + prettyPrint(headers)); + } + + expectations.shift(); + + if (expectation.response) { + responses.push(wrapResponse(expectation)); + return; + } + wasExpected = true; + } + + var i = -1, definition; + while ((definition = definitions[++i])) { + if (definition.match(method, url, data, headers || {})) { + if (definition.response) { + // if $browser specified, we do auto flush all requests + ($browser ? $browser.defer : responsesPush)(wrapResponse(definition)); + } else if (definition.passThrough) { + $delegate(method, url, data, callback, headers, timeout, withCredentials); + } else throw new Error('No response defined !'); + return; + } + } + throw wasExpected ? + new Error('No response defined !') : + new Error('Unexpected request: ' + method + ' ' + url + '\n' + + (expectation ? 'Expected ' + expectation : 'No more request expected')); + } + + /** + * @ngdoc method + * @name $httpBackend#when + * @description + * Creates a new backend definition. + * + * @param {string} method HTTP method. + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives + * data string and returns true if the data is as expected. + * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header + * object and returns true if the headers match the current definition. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + * + * - respond – + * `{function([status,] data[, headers, statusText]) + * | function(function(method, url, data, headers)}` + * – The respond method takes a set of static data to be returned or a function that can + * return an array containing response status (number), response data (string), response + * headers (Object), and the text for the status (string). The respond method returns the + * `requestHandler` object for possible overrides. + */ + $httpBackend.when = function(method, url, data, headers) { + var definition = new MockHttpExpectation(method, url, data, headers), + chain = { + respond: function(status, data, headers, statusText) { + definition.passThrough = undefined; + definition.response = createResponse(status, data, headers, statusText); + return chain; + } + }; + + if ($browser) { + chain.passThrough = function() { + definition.response = undefined; + definition.passThrough = true; + return chain; + }; + } + + definitions.push(definition); + return chain; + }; + + /** + * @ngdoc method + * @name $httpBackend#whenGET + * @description + * Creates a new backend definition for GET requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#whenHEAD + * @description + * Creates a new backend definition for HEAD requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#whenDELETE + * @description + * Creates a new backend definition for DELETE requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#whenPOST + * @description + * Creates a new backend definition for POST requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives + * data string and returns true if the data is as expected. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#whenPUT + * @description + * Creates a new backend definition for PUT requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives + * data string and returns true if the data is as expected. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#whenJSONP + * @description + * Creates a new backend definition for JSONP requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + createShortMethods('when'); + + + /** + * @ngdoc method + * @name $httpBackend#expect + * @description + * Creates a new request expectation. + * + * @param {string} method HTTP method. + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that + * receives data string and returns true if the data is as expected, or Object if request body + * is in JSON format. + * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header + * object and returns true if the headers match the current expectation. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + * + * - respond – + * `{function([status,] data[, headers, statusText]) + * | function(function(method, url, data, headers)}` + * – The respond method takes a set of static data to be returned or a function that can + * return an array containing response status (number), response data (string), response + * headers (Object), and the text for the status (string). The respond method returns the + * `requestHandler` object for possible overrides. + */ + $httpBackend.expect = function(method, url, data, headers) { + var expectation = new MockHttpExpectation(method, url, data, headers), + chain = { + respond: function(status, data, headers, statusText) { + expectation.response = createResponse(status, data, headers, statusText); + return chain; + } + }; + + expectations.push(expectation); + return chain; + }; + + + /** + * @ngdoc method + * @name $httpBackend#expectGET + * @description + * Creates a new request expectation for GET requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {Object=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. See #expect for more info. + */ + + /** + * @ngdoc method + * @name $httpBackend#expectHEAD + * @description + * Creates a new request expectation for HEAD requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {Object=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#expectDELETE + * @description + * Creates a new request expectation for DELETE requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {Object=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#expectPOST + * @description + * Creates a new request expectation for POST requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that + * receives data string and returns true if the data is as expected, or Object if request body + * is in JSON format. + * @param {Object=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#expectPUT + * @description + * Creates a new request expectation for PUT requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that + * receives data string and returns true if the data is as expected, or Object if request body + * is in JSON format. + * @param {Object=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#expectPATCH + * @description + * Creates a new request expectation for PATCH requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that + * receives data string and returns true if the data is as expected, or Object if request body + * is in JSON format. + * @param {Object=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + + /** + * @ngdoc method + * @name $httpBackend#expectJSONP + * @description + * Creates a new request expectation for JSONP requests. For more info see `expect()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives an url + * and returns true if the url matches the current definition. + * @returns {requestHandler} Returns an object with `respond` method that controls how a matched + * request is handled. You can save this object for later use and invoke `respond` again in + * order to change how a matched request is handled. + */ + createShortMethods('expect'); + + + /** + * @ngdoc method + * @name $httpBackend#flush + * @description + * Flushes all pending requests using the trained responses. + * + * @param {number=} count Number of responses to flush (in the order they arrived). If undefined, + * all pending requests will be flushed. If there are no pending requests when the flush method + * is called an exception is thrown (as this typically a sign of programming error). + */ + $httpBackend.flush = function(count, digest) { + if (digest !== false) $rootScope.$digest(); + if (!responses.length) throw new Error('No pending request to flush !'); + + if (angular.isDefined(count) && count !== null) { + while (count--) { + if (!responses.length) throw new Error('No more pending request to flush !'); + responses.shift()(); + } + } else { + while (responses.length) { + responses.shift()(); + } + } + $httpBackend.verifyNoOutstandingExpectation(digest); + }; + + + /** + * @ngdoc method + * @name $httpBackend#verifyNoOutstandingExpectation + * @description + * Verifies that all of the requests defined via the `expect` api were made. If any of the + * requests were not made, verifyNoOutstandingExpectation throws an exception. + * + * Typically, you would call this method following each test case that asserts requests using an + * "afterEach" clause. + * + * ```js + * afterEach($httpBackend.verifyNoOutstandingExpectation); + * ``` + */ + $httpBackend.verifyNoOutstandingExpectation = function(digest) { + if (digest !== false) $rootScope.$digest(); + if (expectations.length) { + throw new Error('Unsatisfied requests: ' + expectations.join(', ')); + } + }; + + + /** + * @ngdoc method + * @name $httpBackend#verifyNoOutstandingRequest + * @description + * Verifies that there are no outstanding requests that need to be flushed. + * + * Typically, you would call this method following each test case that asserts requests using an + * "afterEach" clause. + * + * ```js + * afterEach($httpBackend.verifyNoOutstandingRequest); + * ``` + */ + $httpBackend.verifyNoOutstandingRequest = function() { + if (responses.length) { + throw new Error('Unflushed requests: ' + responses.length); + } + }; + + + /** + * @ngdoc method + * @name $httpBackend#resetExpectations + * @description + * Resets all request expectations, but preserves all backend definitions. Typically, you would + * call resetExpectations during a multiple-phase test when you want to reuse the same instance of + * $httpBackend mock. + */ + $httpBackend.resetExpectations = function() { + expectations.length = 0; + responses.length = 0; + }; + + return $httpBackend; + + + function createShortMethods(prefix) { + angular.forEach(['GET', 'DELETE', 'JSONP', 'HEAD'], function(method) { + $httpBackend[prefix + method] = function(url, headers) { + return $httpBackend[prefix](method, url, undefined, headers); + }; + }); + + angular.forEach(['PUT', 'POST', 'PATCH'], function(method) { + $httpBackend[prefix + method] = function(url, data, headers) { + return $httpBackend[prefix](method, url, data, headers); + }; + }); + } +} + +function MockHttpExpectation(method, url, data, headers) { + + this.data = data; + this.headers = headers; + + this.match = function(m, u, d, h) { + if (method != m) return false; + if (!this.matchUrl(u)) return false; + if (angular.isDefined(d) && !this.matchData(d)) return false; + if (angular.isDefined(h) && !this.matchHeaders(h)) return false; + return true; + }; + + this.matchUrl = function(u) { + if (!url) return true; + if (angular.isFunction(url.test)) return url.test(u); + if (angular.isFunction(url)) return url(u); + return url == u; + }; + + this.matchHeaders = function(h) { + if (angular.isUndefined(headers)) return true; + if (angular.isFunction(headers)) return headers(h); + return angular.equals(headers, h); + }; + + this.matchData = function(d) { + if (angular.isUndefined(data)) return true; + if (data && angular.isFunction(data.test)) return data.test(d); + if (data && angular.isFunction(data)) return data(d); + if (data && !angular.isString(data)) { + return angular.equals(angular.fromJson(angular.toJson(data)), angular.fromJson(d)); + } + return data == d; + }; + + this.toString = function() { + return method + ' ' + url; + }; +} + +function createMockXhr() { + return new MockXhr(); +} + +function MockXhr() { + + // hack for testing $http, $httpBackend + MockXhr.$$lastInstance = this; + + this.open = function(method, url, async) { + this.$$method = method; + this.$$url = url; + this.$$async = async; + this.$$reqHeaders = {}; + this.$$respHeaders = {}; + }; + + this.send = function(data) { + this.$$data = data; + }; + + this.setRequestHeader = function(key, value) { + this.$$reqHeaders[key] = value; + }; + + this.getResponseHeader = function(name) { + // the lookup must be case insensitive, + // that's why we try two quick lookups first and full scan last + var header = this.$$respHeaders[name]; + if (header) return header; + + name = angular.lowercase(name); + header = this.$$respHeaders[name]; + if (header) return header; + + header = undefined; + angular.forEach(this.$$respHeaders, function(headerVal, headerName) { + if (!header && angular.lowercase(headerName) == name) header = headerVal; + }); + return header; + }; + + this.getAllResponseHeaders = function() { + var lines = []; + + angular.forEach(this.$$respHeaders, function(value, key) { + lines.push(key + ': ' + value); + }); + return lines.join('\n'); + }; + + this.abort = angular.noop; +} + + +/** + * @ngdoc service + * @name $timeout + * @description + * + * This service is just a simple decorator for {@link ng.$timeout $timeout} service + * that adds a "flush" and "verifyNoPendingTasks" methods. + */ + +angular.mock.$TimeoutDecorator = ['$delegate', '$browser', function($delegate, $browser) { + + /** + * @ngdoc method + * @name $timeout#flush + * @description + * + * Flushes the queue of pending tasks. + * + * @param {number=} delay maximum timeout amount to flush up until + */ + $delegate.flush = function(delay) { + $browser.defer.flush(delay); + }; + + /** + * @ngdoc method + * @name $timeout#verifyNoPendingTasks + * @description + * + * Verifies that there are no pending tasks that need to be flushed. + */ + $delegate.verifyNoPendingTasks = function() { + if ($browser.deferredFns.length) { + throw new Error('Deferred tasks to flush (' + $browser.deferredFns.length + '): ' + + formatPendingTasksAsString($browser.deferredFns)); + } + }; + + function formatPendingTasksAsString(tasks) { + var result = []; + angular.forEach(tasks, function(task) { + result.push('{id: ' + task.id + ', ' + 'time: ' + task.time + '}'); + }); + + return result.join(', '); + } + + return $delegate; +}]; + +angular.mock.$RAFDecorator = ['$delegate', function($delegate) { + var rafFn = function(fn) { + var index = rafFn.queue.length; + rafFn.queue.push(fn); + return function() { + rafFn.queue.splice(index, 1); + }; + }; + + rafFn.queue = []; + rafFn.supported = $delegate.supported; + + rafFn.flush = function() { + if (rafFn.queue.length === 0) { + throw new Error('No rAF callbacks present'); + } + + var length = rafFn.queue.length; + for (var i = 0; i < length; i++) { + rafFn.queue[i](); + } + + rafFn.queue = rafFn.queue.slice(i); + }; + + return rafFn; +}]; + +/** + * + */ +angular.mock.$RootElementProvider = function() { + this.$get = function() { + return angular.element('
'); + }; +}; + +/** + * @ngdoc service + * @name $controller + * @description + * A decorator for {@link ng.$controller} with additional `bindings` parameter, useful when testing + * controllers of directives that use {@link $compile#-bindtocontroller- `bindToController`}. + * + * + * ## Example + * + * ```js + * + * // Directive definition ... + * + * myMod.directive('myDirective', { + * controller: 'MyDirectiveController', + * bindToController: { + * name: '@' + * } + * }); + * + * + * // Controller definition ... + * + * myMod.controller('MyDirectiveController', ['log', function($log) { + * $log.info(this.name); + * })]; + * + * + * // In a test ... + * + * describe('myDirectiveController', function() { + * it('should write the bound name to the log', inject(function($controller, $log) { + * var ctrl = $controller('MyDirectiveController', { /* no locals */ }, { name: 'Clark Kent' }); + * expect(ctrl.name).toEqual('Clark Kent'); + * expect($log.info.logs).toEqual(['Clark Kent']); + * }); + * }); + * + * ``` + * + * @param {Function|string} constructor If called with a function then it's considered to be the + * controller constructor function. Otherwise it's considered to be a string which is used + * to retrieve the controller constructor using the following steps: + * + * * check if a controller with given name is registered via `$controllerProvider` + * * check if evaluating the string on the current scope returns a constructor + * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global + * `window` object (not recommended) + * + * The string can use the `controller as property` syntax, where the controller instance is published + * as the specified property on the `scope`; the `scope` must be injected into `locals` param for this + * to work correctly. + * + * @param {Object} locals Injection locals for Controller. + * @param {Object=} bindings Properties to add to the controller before invoking the constructor. This is used + * to simulate the `bindToController` feature and simplify certain kinds of tests. + * @return {Object} Instance of given controller. + */ +angular.mock.$ControllerDecorator = ['$delegate', function($delegate) { + return function(expression, locals, later, ident) { + if (later && typeof later === 'object') { + var create = $delegate(expression, locals, true, ident); + angular.extend(create.instance, later); + return create(); + } + return $delegate(expression, locals, later, ident); + }; +}]; + + +/** + * @ngdoc module + * @name ngMock + * @packageName angular-mocks + * @description + * + * # ngMock + * + * The `ngMock` module provides support to inject and mock Angular services into unit tests. + * In addition, ngMock also extends various core ng services such that they can be + * inspected and controlled in a synchronous manner within test code. + * + * + *
+ * + */ +angular.module('ngMock', ['ng']).provider({ + $browser: angular.mock.$BrowserProvider, + $exceptionHandler: angular.mock.$ExceptionHandlerProvider, + $log: angular.mock.$LogProvider, + $interval: angular.mock.$IntervalProvider, + $httpBackend: angular.mock.$HttpBackendProvider, + $rootElement: angular.mock.$RootElementProvider +}).config(['$provide', function($provide) { + $provide.decorator('$timeout', angular.mock.$TimeoutDecorator); + $provide.decorator('$$rAF', angular.mock.$RAFDecorator); + $provide.decorator('$rootScope', angular.mock.$RootScopeDecorator); + $provide.decorator('$controller', angular.mock.$ControllerDecorator); +}]); + +/** + * @ngdoc module + * @name ngMockE2E + * @module ngMockE2E + * @packageName angular-mocks + * @description + * + * The `ngMockE2E` is an angular module which contains mocks suitable for end-to-end testing. + * Currently there is only one mock present in this module - + * the {@link ngMockE2E.$httpBackend e2e $httpBackend} mock. + */ +angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) { + $provide.decorator('$httpBackend', angular.mock.e2e.$httpBackendDecorator); +}]); + +/** + * @ngdoc service + * @name $httpBackend + * @module ngMockE2E + * @description + * Fake HTTP backend implementation suitable for end-to-end testing or backend-less development of + * applications that use the {@link ng.$http $http service}. + * + * *Note*: For fake http backend implementation suitable for unit testing please see + * {@link ngMock.$httpBackend unit-testing $httpBackend mock}. + * + * This implementation can be used to respond with static or dynamic responses via the `when` api + * and its shortcuts (`whenGET`, `whenPOST`, etc) and optionally pass through requests to the + * real $httpBackend for specific requests (e.g. to interact with certain remote apis or to fetch + * templates from a webserver). + * + * As opposed to unit-testing, in an end-to-end testing scenario or in scenario when an application + * is being developed with the real backend api replaced with a mock, it is often desirable for + * certain category of requests to bypass the mock and issue a real http request (e.g. to fetch + * templates or static files from the webserver). To configure the backend with this behavior + * use the `passThrough` request handler of `when` instead of `respond`. + * + * Additionally, we don't want to manually have to flush mocked out requests like we do during unit + * testing. For this reason the e2e $httpBackend flushes mocked out requests + * automatically, closely simulating the behavior of the XMLHttpRequest object. + * + * To setup the application to run with this http backend, you have to create a module that depends + * on the `ngMockE2E` and your application modules and defines the fake backend: + * + * ```js + * myAppDev = angular.module('myAppDev', ['myApp', 'ngMockE2E']); + * myAppDev.run(function($httpBackend) { + * phones = [{name: 'phone1'}, {name: 'phone2'}]; + * + * // returns the current list of phones + * $httpBackend.whenGET('/phones').respond(phones); + * + * // adds a new phone to the phones array + * $httpBackend.whenPOST('/phones').respond(function(method, url, data) { + * var phone = angular.fromJson(data); + * phones.push(phone); + * return [200, phone, {}]; + * }); + * $httpBackend.whenGET(/^\/templates\//).passThrough(); + * //... + * }); + * ``` + * + * Afterwards, bootstrap your app with this new module. + */ + +/** + * @ngdoc method + * @name $httpBackend#when + * @module ngMockE2E + * @description + * Creates a new backend definition. + * + * @param {string} method HTTP method. + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp)=} data HTTP request body. + * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header + * object and returns true if the headers match the current definition. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + * + * - respond – + * `{function([status,] data[, headers, statusText]) + * | function(function(method, url, data, headers)}` + * – The respond method takes a set of static data to be returned or a function that can return + * an array containing response status (number), response data (string), response headers + * (Object), and the text for the status (string). + * - passThrough – `{function()}` – Any request matching a backend definition with + * `passThrough` handler will be passed through to the real backend (an XHR request will be made + * to the server.) + * - Both methods return the `requestHandler` object for possible overrides. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenGET + * @module ngMockE2E + * @description + * Creates a new backend definition for GET requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenHEAD + * @module ngMockE2E + * @description + * Creates a new backend definition for HEAD requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenDELETE + * @module ngMockE2E + * @description + * Creates a new backend definition for DELETE requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenPOST + * @module ngMockE2E + * @description + * Creates a new backend definition for POST requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp)=} data HTTP request body. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenPUT + * @module ngMockE2E + * @description + * Creates a new backend definition for PUT requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp)=} data HTTP request body. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenPATCH + * @module ngMockE2E + * @description + * Creates a new backend definition for PATCH requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @param {(string|RegExp)=} data HTTP request body. + * @param {(Object|function(Object))=} headers HTTP headers. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ + +/** + * @ngdoc method + * @name $httpBackend#whenJSONP + * @module ngMockE2E + * @description + * Creates a new backend definition for JSONP requests. For more info see `when()`. + * + * @param {string|RegExp|function(string)} url HTTP url or function that receives a url + * and returns true if the url matches the current definition. + * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that + * control how a matched request is handled. You can save this object for later use and invoke + * `respond` or `passThrough` again in order to change how a matched request is handled. + */ +angular.mock.e2e = {}; +angular.mock.e2e.$httpBackendDecorator = + ['$rootScope', '$timeout', '$delegate', '$browser', createHttpBackendMock]; + + +/** + * @ngdoc type + * @name $rootScope.Scope + * @module ngMock + * @description + * {@link ng.$rootScope.Scope Scope} type decorated with helper methods useful for testing. These + * methods are automatically available on any {@link ng.$rootScope.Scope Scope} instance when + * `ngMock` module is loaded. + * + * In addition to all the regular `Scope` methods, the following helper methods are available: + */ +angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) { + + var $rootScopePrototype = Object.getPrototypeOf($delegate); + + $rootScopePrototype.$countChildScopes = countChildScopes; + $rootScopePrototype.$countWatchers = countWatchers; + + return $delegate; + + // ------------------------------------------------------------------------------------------ // + + /** + * @ngdoc method + * @name $rootScope.Scope#$countChildScopes + * @module ngMock + * @description + * Counts all the direct and indirect child scopes of the current scope. + * + * The current scope is excluded from the count. The count includes all isolate child scopes. + * + * @returns {number} Total number of child scopes. + */ + function countChildScopes() { + // jshint validthis: true + var count = 0; // exclude the current scope + var pendingChildHeads = [this.$$childHead]; + var currentScope; + + while (pendingChildHeads.length) { + currentScope = pendingChildHeads.shift(); + + while (currentScope) { + count += 1; + pendingChildHeads.push(currentScope.$$childHead); + currentScope = currentScope.$$nextSibling; + } + } + + return count; + } + + + /** + * @ngdoc method + * @name $rootScope.Scope#$countWatchers + * @module ngMock + * @description + * Counts all the watchers of direct and indirect child scopes of the current scope. + * + * The watchers of the current scope are included in the count and so are all the watchers of + * isolate child scopes. + * + * @returns {number} Total number of watchers. + */ + function countWatchers() { + // jshint validthis: true + var count = this.$$watchers ? this.$$watchers.length : 0; // include the current scope + var pendingChildHeads = [this.$$childHead]; + var currentScope; + + while (pendingChildHeads.length) { + currentScope = pendingChildHeads.shift(); + + while (currentScope) { + count += currentScope.$$watchers ? currentScope.$$watchers.length : 0; + pendingChildHeads.push(currentScope.$$childHead); + currentScope = currentScope.$$nextSibling; + } + } + + return count; + } +}]; + + +if (window.jasmine || window.mocha) { + + var currentSpec = null, + annotatedFunctions = [], + isSpecRunning = function() { + return !!currentSpec; + }; + + angular.mock.$$annotate = angular.injector.$$annotate; + angular.injector.$$annotate = function(fn) { + if (typeof fn === 'function' && !fn.$inject) { + annotatedFunctions.push(fn); + } + return angular.mock.$$annotate.apply(this, arguments); + }; + + + (window.beforeEach || window.setup)(function() { + annotatedFunctions = []; + currentSpec = this; + }); + + (window.afterEach || window.teardown)(function() { + var injector = currentSpec.$injector; + + annotatedFunctions.forEach(function(fn) { + delete fn.$inject; + }); + + angular.forEach(currentSpec.$modules, function(module) { + if (module && module.$$hashKey) { + module.$$hashKey = undefined; + } + }); + + currentSpec.$injector = null; + currentSpec.$modules = null; + currentSpec = null; + + if (injector) { + injector.get('$rootElement').off(); + } + + // clean up jquery's fragment cache + angular.forEach(angular.element.fragments, function(val, key) { + delete angular.element.fragments[key]; + }); + + MockXhr.$$lastInstance = null; + + angular.forEach(angular.callbacks, function(val, key) { + delete angular.callbacks[key]; + }); + angular.callbacks.counter = 0; + }); + + /** + * @ngdoc function + * @name angular.mock.module + * @description + * + * *NOTE*: This function is also published on window for easy access.
+ * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha + * + * This function registers a module configuration code. It collects the configuration information + * which will be used when the injector is created by {@link angular.mock.inject inject}. + * + * See {@link angular.mock.inject inject} for usage example + * + * @param {...(string|Function|Object)} fns any number of modules which are represented as string + * aliases or as anonymous module initialization functions. The modules are used to + * configure the injector. The 'ng' and 'ngMock' modules are automatically loaded. If an + * object literal is passed they will be registered as values in the module, the key being + * the module name and the value being what is returned. + */ + window.module = angular.mock.module = function() { + var moduleFns = Array.prototype.slice.call(arguments, 0); + return isSpecRunning() ? workFn() : workFn; + ///////////////////// + function workFn() { + if (currentSpec.$injector) { + throw new Error('Injector already created, can not register a module!'); + } else { + var modules = currentSpec.$modules || (currentSpec.$modules = []); + angular.forEach(moduleFns, function(module) { + if (angular.isObject(module) && !angular.isArray(module)) { + modules.push(function($provide) { + angular.forEach(module, function(value, key) { + $provide.value(key, value); + }); + }); + } else { + modules.push(module); + } + }); + } + } + }; + + /** + * @ngdoc function + * @name angular.mock.inject + * @description + * + * *NOTE*: This function is also published on window for easy access.
+ * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha + * + * The inject function wraps a function into an injectable function. The inject() creates new + * instance of {@link auto.$injector $injector} per test, which is then used for + * resolving references. + * + * + * ## Resolving References (Underscore Wrapping) + * Often, we would like to inject a reference once, in a `beforeEach()` block and reuse this + * in multiple `it()` clauses. To be able to do this we must assign the reference to a variable + * that is declared in the scope of the `describe()` block. Since we would, most likely, want + * the variable to have the same name of the reference we have a problem, since the parameter + * to the `inject()` function would hide the outer variable. + * + * To help with this, the injected parameters can, optionally, be enclosed with underscores. + * These are ignored by the injector when the reference name is resolved. + * + * For example, the parameter `_myService_` would be resolved as the reference `myService`. + * Since it is available in the function body as _myService_, we can then assign it to a variable + * defined in an outer scope. + * + * ``` + * // Defined out reference variable outside + * var myService; + * + * // Wrap the parameter in underscores + * beforeEach( inject( function(_myService_){ + * myService = _myService_; + * })); + * + * // Use myService in a series of tests. + * it('makes use of myService', function() { + * myService.doStuff(); + * }); + * + * ``` + * + * See also {@link angular.mock.module angular.mock.module} + * + * ## Example + * Example of what a typical jasmine tests looks like with the inject method. + * ```js + * + * angular.module('myApplicationModule', []) + * .value('mode', 'app') + * .value('version', 'v1.0.1'); + * + * + * describe('MyApp', function() { + * + * // You need to load modules that you want to test, + * // it loads only the "ng" module by default. + * beforeEach(module('myApplicationModule')); + * + * + * // inject() is used to inject arguments of all given functions + * it('should provide a version', inject(function(mode, version) { + * expect(version).toEqual('v1.0.1'); + * expect(mode).toEqual('app'); + * })); + * + * + * // The inject and module method can also be used inside of the it or beforeEach + * it('should override a version and test the new version is injected', function() { + * // module() takes functions or strings (module aliases) + * module(function($provide) { + * $provide.value('version', 'overridden'); // override version here + * }); + * + * inject(function(version) { + * expect(version).toEqual('overridden'); + * }); + * }); + * }); + * + * ``` + * + * @param {...Function} fns any number of functions which will be injected using the injector. + */ + + + + var ErrorAddingDeclarationLocationStack = function(e, errorForStack) { + this.message = e.message; + this.name = e.name; + if (e.line) this.line = e.line; + if (e.sourceId) this.sourceId = e.sourceId; + if (e.stack && errorForStack) + this.stack = e.stack + '\n' + errorForStack.stack; + if (e.stackArray) this.stackArray = e.stackArray; + }; + ErrorAddingDeclarationLocationStack.prototype.toString = Error.prototype.toString; + + window.inject = angular.mock.inject = function() { + var blockFns = Array.prototype.slice.call(arguments, 0); + var errorForStack = new Error('Declaration Location'); + return isSpecRunning() ? workFn.call(currentSpec) : workFn; + ///////////////////// + function workFn() { + var modules = currentSpec.$modules || []; + var strictDi = !!currentSpec.$injectorStrict; + modules.unshift('ngMock'); + modules.unshift('ng'); + var injector = currentSpec.$injector; + if (!injector) { + if (strictDi) { + // If strictDi is enabled, annotate the providerInjector blocks + angular.forEach(modules, function(moduleFn) { + if (typeof moduleFn === "function") { + angular.injector.$$annotate(moduleFn); + } + }); + } + injector = currentSpec.$injector = angular.injector(modules, strictDi); + currentSpec.$injectorStrict = strictDi; + } + for (var i = 0, ii = blockFns.length; i < ii; i++) { + if (currentSpec.$injectorStrict) { + // If the injector is strict / strictDi, and the spec wants to inject using automatic + // annotation, then annotate the function here. + injector.annotate(blockFns[i]); + } + try { + /* jshint -W040 *//* Jasmine explicitly provides a `this` object when calling functions */ + injector.invoke(blockFns[i] || angular.noop, this); + /* jshint +W040 */ + } catch (e) { + if (e.stack && errorForStack) { + throw new ErrorAddingDeclarationLocationStack(e, errorForStack); + } + throw e; + } finally { + errorForStack = null; + } + } + } + }; + + + angular.mock.inject.strictDi = function(value) { + value = arguments.length ? !!value : true; + return isSpecRunning() ? workFn() : workFn; + + function workFn() { + if (value !== currentSpec.$injectorStrict) { + if (currentSpec.$injector) { + throw new Error('Injector already created, can not modify strict annotations'); + } else { + currentSpec.$injectorStrict = value; + } + } + } + }; +} + + +})(window, window.angular); diff --git a/bower_components/angular-mocks/bower.json b/bower_components/angular-mocks/bower.json new file mode 100644 index 00000000..1158b54c --- /dev/null +++ b/bower_components/angular-mocks/bower.json @@ -0,0 +1,9 @@ +{ + "name": "angular-mocks", + "version": "1.4.7", + "main": "./angular-mocks.js", + "ignore": [], + "dependencies": { + "angular": "1.4.7" + } +} diff --git a/bower_components/angular-mocks/ngAnimateMock.js b/bower_components/angular-mocks/ngAnimateMock.js new file mode 100644 index 00000000..6f99e62e --- /dev/null +++ b/bower_components/angular-mocks/ngAnimateMock.js @@ -0,0 +1,2 @@ +require('./angular-mocks'); +module.exports = 'ngAnimateMock'; diff --git a/bower_components/angular-mocks/ngMock.js b/bower_components/angular-mocks/ngMock.js new file mode 100644 index 00000000..7944de7d --- /dev/null +++ b/bower_components/angular-mocks/ngMock.js @@ -0,0 +1,2 @@ +require('./angular-mocks'); +module.exports = 'ngMock'; diff --git a/bower_components/angular-mocks/ngMockE2E.js b/bower_components/angular-mocks/ngMockE2E.js new file mode 100644 index 00000000..fc2e539d --- /dev/null +++ b/bower_components/angular-mocks/ngMockE2E.js @@ -0,0 +1,2 @@ +require('./angular-mocks'); +module.exports = 'ngMockE2E'; diff --git a/bower_components/angular-mocks/package.json b/bower_components/angular-mocks/package.json new file mode 100644 index 00000000..4369e173 --- /dev/null +++ b/bower_components/angular-mocks/package.json @@ -0,0 +1,27 @@ +{ + "name": "angular-mocks", + "version": "1.4.7", + "description": "AngularJS mocks for testing", + "main": "angular-mocks.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/angular/angular.js.git" + }, + "keywords": [ + "angular", + "framework", + "browser", + "mocks", + "testing", + "client-side" + ], + "author": "Angular Core Team ", + "license": "MIT", + "bugs": { + "url": "https://github.com/angular/angular.js/issues" + }, + "homepage": "http://angularjs.org" +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.bower.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.bower.json new file mode 100644 index 00000000..cb3c8245 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.bower.json @@ -0,0 +1,15 @@ +{ + "name": "angular-new-router-amilcar", + "homepage": "https://github.com/amilcar-calles/router", + "version": "0.5.3", + "_release": "0.5.3", + "_resolution": { + "type": "version", + "tag": "v0.5.3", + "commit": "c7b6b498c551754cc07d4b56a74fd951cbe2a483" + }, + "_source": "git://github.com/amilcar-calles/router.git", + "_target": "~0.5.3", + "_originalSource": "angular-new-router-amilcar", + "_direct": true +} \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.bowerrc b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.bowerrc new file mode 100644 index 00000000..5e6701af --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory" : "bower_components" +} \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.editorconfig b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.editorconfig new file mode 100644 index 00000000..74bf86bc --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.editorconfig @@ -0,0 +1,14 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# 2 space indentation +[**.*] +indent_style = space +indent_size = 2 diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.gitignore b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.gitignore new file mode 100644 index 00000000..f2123d4f --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.gitignore @@ -0,0 +1,9 @@ +node_modules +bower_components +compiled +dist +sauce_connect.log +.idea +.DS_STORE +temp +npm-debug.log diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.npmignore b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.npmignore new file mode 100644 index 00000000..543b18ea --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.npmignore @@ -0,0 +1,11 @@ +.DS_STORE +.idea +bower_components +chromedriver +examples +scripts +compiled +node_modules +npm-debug.log +sauce_connect.log +temp diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.travis.yml b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.travis.yml new file mode 100644 index 00000000..73ab8795 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/.travis.yml @@ -0,0 +1,21 @@ +language: node_js +node_js: + - 0.10 +env: + global: + - BROWSER_PROVIDER_READY_FILE=/tmp/sauce-connect-ready + - LOGS_DIR=/tmp/angular-router-build/logs + - SAUCE_USERNAME=angular-ci + - SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987 + - secure: cVw9xEN22lkUElPhE41ESL+4D/fVS7uTrYEre8zvH8TlnigaYvfc3SWuMCrsywUJnR86xC4/OClDVxoTCIVWWINJILfs0MJl+/ZhdxJwoqhWC/oenHyPRAK8OGxNhW0dXTbqTaQpiOeuT+d0D244sxPSvXhfziDUg/nPc357dqk= +install: + - mkdir -p $LOGS_DIR + - ./scripts/sauce_connect_setup.sh + - npm install -g npm + - npm install -g gulp karma-cli protractor + - npm install + - ./scripts/wait_for_browser_provider.sh +script: + - ./scripts/test_on_sauce.sh +after_success: + - ./scripts/deploy_docs_to_gh_pages.sh diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/ARCHITECTURE.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/ARCHITECTURE.md new file mode 100644 index 00000000..9adbfba4 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/ARCHITECTURE.md @@ -0,0 +1,60 @@ +# Architecture + +This is a rough WIP notes doc. + + +## Child Routers + +* useful for "settings" +* enterprise apps + + + +## Pipeline + +- kinda like middleware + +1. select controller + - ask current controller if it can +1. select view +1. activate instruction + - can do scaffolding (maybe) + +redirects: +- how do we handle circular requests? + + + +## "Screen Activator" + +The router understands the notion of "screen activation" for components, enabling them to allow/reject navigation into or out of a component. + +- prevent to/from a "screen" (view/viewport) +- "separate query from command" (can I versus how do I navigate) +- helpful abstraction for heirarchies + - think "master->detail" + - 3 levels of routers + +* Lifecycle hooks include: `canActivate`, `activate`, `canDeactivate` and `deactivate`. +* These hooks understand promises, as well as a few other "primitives" (for instance a `Redirect` command object). +* You can "teach" the activation mechanism about new primitives. +* The router uses the activator mechanism to pass parameters to a component. The `canActivate` and `activate` callbacks recieve the route parameters, parsed query string parameters and route config which they can use to control navigation or load model data. + + +## Implementation Details + +* Uses the [route-recognizer.js](https://github.com/tildeio/route-recognizer) library to match routes. This allows for static routes, named parameters, splats and query strings. + +* Uses a consistent async programming model with promises. + +* The async pipeline pulls from an internal instruction queue which handles "overlapping" route requests common in async scenarios. There are hooks provided to tap into the internal instruction data and control what the router is doing. + +* Fully integrated with DI. In particular, this helps set up child router scenarios. + +* Supports manipulating history for replacing, with or without triggering a route activation. + + + + +[screen conductor]: http://caliburnmicro.codeplex.com/wikipage?title=Screens%2c%20Conductors%20and%20Composition&referringTitle=Documentation +[screen activator]: http://codebetter.com/jeremymiller/2009/09/07/screen-activator-pattern/ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/CHANGELOG.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/CHANGELOG.md new file mode 100644 index 00000000..85b81954 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/CHANGELOG.md @@ -0,0 +1,22 @@ + +### v0.5.3 magnificent-fortitude (2015-03-30) + +#### Bug Fixes + +* **build:** add missing files from dist ([10e7174c](https://github.com/angular/router/commit/10e7174c)) (oops!!) + + + +### v0.5.2 extraterrestrial-illusion (2015-03-30) + + +#### Features + +* Include minified files in build + + +#### Bug Fixes + +* Inject `$scope` into activate hook ([2136ca8a](https://github.com/angular/router/commit/2136ca8a), closes [#192](https://github.com/angular/router/issues/192)) +* **wizard example:** fix annotation and link ([e9a6e26c](https://github.com/angular/router/commit/e9a6e26c)) +* Handle anchor elts with no href ([dbdd5f39](https://github.com/angular/router/commit/dbdd5f39), closes [#206](https://github.com/angular/router/issues/206)) diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/CONTRIBUTING.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/CONTRIBUTING.md new file mode 100644 index 00000000..912fd0e3 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/CONTRIBUTING.md @@ -0,0 +1,59 @@ +# Contributing + +This doc explains how The New Router is developed, and how you can help improve it. + +## Methodology + +You can see daily progress and goals in the [progress doc](https://docs.google.com/document/d/1-DBXTHaeec6XH5qx2tKVrgrjiILy76_lSrjgJv95RJ4/edit#). +Individual tasks are mostly tracked as issues on GitHub. + +### Giving Feedback + +Please check existing issues and PRs (including ones that have already been closed) before filing new ones. +That being said, all forms of feedback are welcome: bug reports, feature requests, use cases, and questions. + +### GitHub Labels +Most of the use cases are self-explanatory, so they are omitted. + +* [pair](https://github.com/angular/router/labels/pair) - issues that @btford wants to use or pairing with other Angular Core team members to get feedback. +* [`type: use case`](https://github.com/angular/router/labels/type%3A%20use%20case) - issues that describe a common usage scenario. + Should be closed by adding an example to `examples/angular-1/`, complete with docs and an e2e test. + +### GitHub Milestones +* v0.x.y - This is the list of tasks that I'm aiming to get done this week. I'll be closing these and cutting releases on Fridays. +* [pre ng-conf](https://github.com/angular/router/issues?q=milestone%3Apre-ng-conf+) - these tasks need to be taken care of before the beginning of March. +* [post ng-conf](https://github.com/angular/router/issues?q=milestone%3A%22post+ng-conf%22) - these tasks need to be taken care of eventually. + +After ng-conf, I'll likely reorganize these labels. + + +## Releases + +Releases of this module live in the `dist` directory. Releases (tagged `vx.y.z`) of this module published on npm +or will have up-to-date build artifacts checked in. + + +## Development + +This section explains how to build the router module yourself. + +### Setup + +This doc explains how to build the router module yourself. + +1. Install [NodeJS](http://nodejs.org/) +2. Install [Gulp](http://gulpjs.com/) with `npm install -g gulp` +3. Clone and `cd` into this repo. +4. Install dependencies with `npm install` and `bower install` + +### Running the Examples + +1. Start the development server with `gulp build watch serve` +2. Open a browser and navigate to [http://localhost:8000/examples/angular-1/hello](http://localhost:8000/examples/angular-1/hello) + +### Running the Tests + +1. Install [Karma](http://karma-runner.github.io/) with `npm install -g karma` +2. Install the CLI for [Karma](http://karma-runner.github.io/) with `npm install -g karma-cli` +3. Start karma with `karma start` +4. Add new tests to the `test` folder. Be sure to give them an extension of `.spec.js`. diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/DOCUMENTATION.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/DOCUMENTATION.md new file mode 100644 index 00000000..d0639b88 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/DOCUMENTATION.md @@ -0,0 +1,84 @@ +# Documentation + +This document describes the process that automatically generates the documentation using Travis CI. + +## How it works + +Here's a general overview of how things work: + +1. A commit is pushed to the repository +2. Travis CI starts a build +3. Main script runs (run unit tests) +4. If main script fails, build exits +5. `./scripts/deploy_docs_to_gh_pages.sh` script is run +6. If commit message does not contain the string `[build-docs]`, build exits +7. Output of `gulp dgeni` is committed to gh-pages branch +8. `docs/*.css` are added to `gh-pages` branch as well +9. `gh-pages` branch is pushed back to GitHub +10. GitHub updates statically hosted documentation on `angular.github.io`. + +## Configuration + +To provide Travis CI with rights to deploy the newly generated documentation to GitHub, we need to provide it with a GitHub token that represents an account that has sufficient rights to push to the repository. + +#### Step 1: create a GitHub token + +To generate a new personal access token in GitHub, go to *Personal settings / Applications* and click on *Generate new token* in the *Personal access tokens* section of the page. + +Give it an appropriate description such as "Documentation deployment token for router" so you can later identify the token again in case you no longer need it and want to remove it. + +Finally copy the generated token that GitHub presents on your screen. It is important to copy it right now because it is only shown once and you'll have to regenerate a new one if you forget it. + +#### Step 2: tell Travis to use the token + +Travis offers a really convenient feature where it lets you define environment variables to customize the build process. + +What's more is that it even lets you encrypt these variables so you can add sensitive information to `.travis.yml` without having to worry about others seeing the file. + +To add encryped environment variables to your `.travis.yml` file, you can: + +```sh +$ gem install travis +$ cd +$ travis encrypt GITHUB_TOKEN= --add +``` + +> On Mac OS X, if `gem install travis` fails, you may have to install the latest version of Ruby first by running: `brew install ruby`. + +This will add a line to the `.travis.yml` file that looks like this: + +```sh +secure: +``` + +When Travis runs the deployment script, it will decrypt the encrypted value and make it available as a regular environment variable so we can conveniently access the original GITHUB_TOKEN again from within the deployment script. + +That's it! Save and commit the updated `.travis.yml` file. + +## Deploying manually + +If required, the documentation can also be generated and deployed to GitHub pages from your local machine. + +You need to specify the GITHUB_TOKEN manually like this: + +```sh +$ GITHUB_TOKEN= ./scripts/deploy_docs_to_gh_pages.sh +``` + +> **Attention**: It is not recommended to run the deployment script locally if you don't know what you are doing. The scripts is written to run on Travis CI in a VM where code can be deleted without repercussions. Make sure you don't have unsaved work that has not been committed and pushed to GitHub to prevent unwanted code loss in case something goes wrong. + +## Change log + +#### 2015-03-15 + +- added support for commit message filtering +- updated documentation + +#### 2015-03-14 + +- added dgeni exception handler +- updated documentation + +#### 2015-03-13 + +- initial version diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/LICENSE b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/LICENSE new file mode 100644 index 00000000..a7d6cc9c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/LICENSE @@ -0,0 +1,13 @@ +Copyright 2014-2015 Google, Inc. http://angularjs.org + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/README.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/README.md new file mode 100644 index 00000000..fd32549b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/README.md @@ -0,0 +1,60 @@ +# The New Angular Router +[![Build Status](https://travis-ci.org/angular/router.svg?branch=master)](https://travis-ci.org/angular/router) + +A work-in-progress new router for Angular 1.3 and 2.0, written with +[AtScript](https://docs.google.com/document/d/11YUzC-1d0V1-Q3V0fQ7KSit97HnZoKVygDxpWzEYW0U/). + + +## State of this project + +Currently, the router is usable in Angular 1, but still missing many of the planned features. +APIs will rapidly change, so I do not recommend using this in an important production app quite yet. + +See the [Progress Document](https://docs.google.com/document/d/1-DBXTHaeec6XH5qx2tKVrgrjiILy76_lSrjgJv95RJ4/edit#) +for standup-style updates + +### Trying the router + +You can install the router via `npm`: + +```shell +npm install angular-new-router +``` + +The documentation is pretty sparse. See the `examples/` directory in this repo for now. + +### Helping out + +For now, the best way for you to help with the new router is to try it out and file GitHub issues +with questions or feedback. Please also [check out existing discussions](https://github.com/angular/router/labels/type%3A%20use%20case). + +## Goals + +This router aims to fulfill the requirements mentioned in the [Angular 2.0 router design document](https://docs.google.com/document/d/1I3UC0RrgCh9CKrLxeE4sxwmNSBl3oSXQGt9g3KZnTJI). + +Below is a short summary of these goals: + +* Have sensible conventions and defaults +* Be customizable at almost every point +* Support sibling "viewports" (like `ng-view`s in Angular 1.x's ngRoute) +* Support nested routers + * Allow components to encapsulate entire parts of an application +* Expose a "navigation model" which can be used to generate a navigation UI (like menus) + * Expose which route in the model is active (useful in styling/highlighting links in the menu) +* Generate `href`s based on router hierarchies +* Lazy-load components +* Be able to reuse component instances +* Use either push state or hash change mode +* Handle updating the document title + + +## Prior Art + +* [Durandal Router](http://durandaljs.com/documentation/Using-The-Router.html) +* [ngRoute from Angular 1.x](https://docs.angularjs.org/api/ngRoute) +* [Route Recognizer](https://github.com/tildeio/route-recognizer) + + + +## License +Apache 2 diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/README b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/README new file mode 100644 index 00000000..c9a7391b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/README @@ -0,0 +1,24 @@ +Instructions: + 1) Apply selenium_shadow_dom.patch to selenium. + + $ cd + $ git apply /selenium_shadow_dom.patch + $ ./go //javascript/chrome-driver:atoms + + 2) Copy the output to chromedriver. + + $ cp build/javascript/chrome-driver/atoms.* \ + /src/third_party/webdriver/ + + 3) Apply the chromedriver_shadow_dom.patch to chromedriver. + + $ cd + $ git apply /chromedriver_shadow_dom.patch + + 4) Build chromedriver. + + $ ninja -C out/Release chromedriver + + 5) Copy the new version of chromedriver to this directory + + $ cp /src/out/Release/chromedriver / diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_linux.zip b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_linux.zip new file mode 100644 index 00000000..1596cb29 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_linux.zip differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_mac.zip b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_mac.zip new file mode 100644 index 00000000..30d8c69e Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_mac.zip differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_shadow_dom.patch b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_shadow_dom.patch new file mode 100644 index 00000000..2924127c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/chromedriver_shadow_dom.patch @@ -0,0 +1,157 @@ +From 29859b18c82760e13304ab8d74fee5ac1a0eda73 Mon Sep 17 00:00:00 2001 +From: Vojta Jina +Date: Tue, 22 Apr 2014 17:01:38 -0700 +Subject: [PATCH] Allow shadom DOM, using both prefixed and unprefixed + +--- + chrome/test/chromedriver/js/call_function.js | 77 +++++++++++++++++++++------- + chrome/test/chromedriver/js/focus.js | 15 +++++- + 2 files changed, 72 insertions(+), 20 deletions(-) + +diff --git a/chrome/test/chromedriver/js/call_function.js b/chrome/test/chromedriver/js/call_function.js +index f31f95f..aa2ef93 100644 +--- a/chrome/test/chromedriver/js/call_function.js ++++ b/chrome/test/chromedriver/js/call_function.js +@@ -32,7 +32,18 @@ var ELEMENT_KEY = 'ELEMENT'; + * @const + * @type {boolean} + */ +-var SHADOW_DOM_ENABLED = typeof ShadowRoot === 'function'; ++var SHADOW_DOM_ENABLED = false; ++var ShadowRootCls = null; ++var SHADOW_ROOT_PROPERTY = null; ++if (typeof ShadowRoot === 'function') { ++ ShadowRootCls = ShadowRoot; ++ SHADOW_ROOT_PROPERTY = 'shadowRoot'; ++ SHADOW_DOM_ENABLED = true; ++} else if (typeof WebKitShadowRoot === 'function') { ++ ShadowRootCls = WebKitShadowRoot; ++ SHADOW_ROOT_PROPERTY = 'webkitShadowRoot'; ++ SHADOW_DOM_ENABLED = true; ++} + + /** + * A cache which maps IDs <-> cached objects for the purpose of identifying +@@ -97,12 +108,44 @@ Cache.prototype = { + * @return {boolean} If the nodes is reachable. + */ + isNodeReachable_: function(node) { +- var nodeRoot = getNodeRoot(node); +- if (nodeRoot == document) +- return true; +- else if (SHADOW_DOM_ENABLED && nodeRoot instanceof ShadowRoot) ++ while (node) { ++ if (node == document) ++ return true; ++ ++ // WC3 spec states "The parentNode and parentElement attributes of the ++ // shadow root object must always return null." Use alternate approach to ++ // determine if it is reachable. ++ if (SHADOW_DOM_ENABLED && node instanceof ShadowRootCls) ++ return this.isShadowRootReachable_(node); ++ ++ node = node.parentNode; ++ } ++ return false; ++ }, ++ ++ /** ++ * @private ++ * @param {!WebKitShadowRoot} shadow_root ++ * @param {Node} [node=document] ++ */ ++ isShadowRootReachable_: function(shadow_root, node) { ++ if (node == null) ++ node = document; ++ ++ if (node == shadow_root) { + return true; ++ } + ++ if (node[SHADOW_ROOT_PROPERTY] ++ && this.isShadowRootReachable_(shadow_root, node[SHADOW_ROOT_PROPERTY])) { ++ return true; ++ } ++ var children = node.childNodes; ++ for (var i = 0; i < children.length; i++) { ++ var child = children[i]; ++ if (this.isShadowRootReachable_(shadow_root, child)) ++ return true; ++ } + return false; + } + }; +@@ -144,11 +187,9 @@ function getPageCache(opt_doc) { + function wrap(value) { + if (typeof(value) == 'object' && value != null) { + var nodeType = value['nodeType']; +- if (nodeType == NodeType.ELEMENT || nodeType == NodeType.DOCUMENT +- || (SHADOW_DOM_ENABLED && value instanceof ShadowRoot)) { ++ if (nodeType == NodeType.ELEMENT || nodeType == NodeType.DOCUMENT) { + var wrapped = {}; +- var root = getNodeRoot(value); +- wrapped[ELEMENT_KEY] = getPageCache(root).storeItem(value); ++ wrapped[ELEMENT_KEY] = getPageCache(value.ownerDocument).storeItem(value); + return wrapped; + } + +@@ -204,15 +245,15 @@ function unwrap(value, cache) { + function callFunction(shadowHostIds, func, args, opt_unwrappedReturn) { + var cache = getPageCache(); + cache.clearStale(); +- if (shadowHostIds && SHADOW_DOM_ENABLED) { +- for (var i = 0; i < shadowHostIds.length; i++) { +- var host = cache.retrieveItem(shadowHostIds[i]); +- // TODO(zachconrad): Use the olderShadowRoot API when available to check +- // all of the shadow roots. +- cache = getPageCache(host.webkitShadowRoot); +- cache.clearStale(); +- } +- } ++// if (shadowHostIds && SHADOW_DOM_ENABLED) { ++// for (var i = 0; i < shadowHostIds.length; i++) { ++// var host = cache.retrieveItem(shadowHostIds[i]); ++// // TODO(zachconrad): Use the olderShadowRoot API when available to check ++// // all of the shadow roots. ++// cache = getPageCache(host.webkitShadowRoot); ++// cache.clearStale(); ++// } ++// } + + if (opt_unwrappedReturn) + return func.apply(null, unwrap(args, cache)); +diff --git a/chrome/test/chromedriver/js/focus.js b/chrome/test/chromedriver/js/focus.js +index 2945a34..0243d80 100644 +--- a/chrome/test/chromedriver/js/focus.js ++++ b/chrome/test/chromedriver/js/focus.js +@@ -24,7 +24,7 @@ function focus(element) { + // input, which still have setSelectionRange defined. For chrome 29+, V8 + // throws a DOMException with code InvalidStateError. + var doc = element.ownerDocument || element; +- var prevActiveElement = doc.activeElement; ++ var prevActiveElement = getActiveElement(doc); + if (element != prevActiveElement && prevActiveElement) + prevActiveElement.blur(); + element.focus(); +@@ -38,6 +38,17 @@ function focus(element) { + throw error; + } + } +- if (element != doc.activeElement) ++ if (element != getActiveElement(doc)) + throw new Error('cannot focus element'); + } ++ ++function getActiveElement(doc) { ++ var activeElement = doc.activeElement; ++ var shadowRootProperty = activeElement.hasOwnProperty('shadowRoot') ? 'shadowRoot' : 'webkitShadowRoot'; ++ ++ while (activeElement[shadowRootProperty] ++ && activeElement[shadowRootProperty].activeElement) { ++ activeElement = activeElement[shadowRootProperty].activeElement; ++ } ++ return activeElement; ++} +-- +1.9.0 + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/selenium_shadow_dom.patch b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/selenium_shadow_dom.patch new file mode 100644 index 00000000..977ebab7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/chromedriver/selenium_shadow_dom.patch @@ -0,0 +1,280 @@ +From 912d7168543e44c2af64cfeb93ce100ac188552c Mon Sep 17 00:00:00 2001 +From: Vojta Jina +Date: Tue, 22 Apr 2014 16:53:47 -0700 +Subject: [PATCH] Use both prefixed and non-prefixed + +--- + javascript/atoms/dom.js | 136 +++++++++++++++++++++++++++++++----- + javascript/chrome-driver/atoms.js | 15 +++- + javascript/chrome-driver/build.desc | 6 ++ + 3 files changed, 138 insertions(+), 19 deletions(-) + +diff --git a/javascript/atoms/dom.js b/javascript/atoms/dom.js +index 1d2495a..8ec0b79 100644 +--- a/javascript/atoms/dom.js ++++ b/javascript/atoms/dom.js +@@ -36,6 +36,9 @@ goog.require('goog.style'); + goog.require('goog.userAgent'); + + ++var div = document.createElement('div'); ++var shadowRootProperty = div.hasOwnProperty('shadowRoot') ? 'shadowRoot' : (div.hasOwnProperty('webkitShadowRoot') ? 'webkitShadowRoot' : null); ++ + /** + * Retrieves the active element for a node's owner document. + * @param {!(Node|Window)} nodeOrWindow The node whose owner document to get +@@ -473,6 +476,67 @@ bot.dom.getParentElement = function(node) { + return /** @type {Element} */ (bot.dom.isElement(elem) ? elem : null); + }; + ++/** ++ * @param {!Node} node ++ * @return {Element} ++ */ ++bot.dom.getEffectiveParentElement = function(node) { ++ // If the parent node has a shadow root, then the effective parent is the ++ // parent of the node in the shadow DOM. ++ var parentElement = bot.dom.getParentElement(node); ++ if (parentElement && parentElement[shadowRootProperty]) { ++ var contentNode = parentElement[shadowRootProperty].querySelector('content'); ++ if (contentNode) { ++ parentElement = bot.dom.getParentElement(contentNode); ++ } ++ } ++ // If parentElement is null, the node might be in the shadow DOM. The ++ // effective parent is the host of the shadow DOM. ++ if (parentElement == null) { ++ var shadowRoot = bot.dom.getShadowRoot(node); ++ if (shadowRoot) { ++ parentElement = bot.dom.getShadowHost(node); ++ } ++ } ++ return parentElement; ++} ++ ++/** ++ * @param {!Node} node ++ * @return {DocumentFragment} ++ */ ++bot.dom.getShadowRoot = function(node) { ++ var n = node; ++ while (n.parentNode) { ++ n = n.parentNode ++ } ++ return /** @type {DocumentFragment} */ ((n.constructor.name == 'ShadowRoot' || n.constructor.name == 'WebKitShadowRoot') ? n : null); ++} ++ ++/** ++ * @param {!Node} node ++ * @return {Element} ++ */ ++bot.dom.getShadowHost = function(node) { ++ var shadowRoot = bot.dom.getShadowRoot(node); ++ if (!shadowRoot) { ++ return null; ++ } ++ function dfs(elem) { ++ if (elem[shadowRootProperty] == shadowRoot) { ++ return elem; ++ } ++ var children = elem.childNodes; ++ for (var i = 0; i < children.length; ++i) { ++ var child = children[i]; ++ var result = dfs(child); ++ if (result) return result; ++ } ++ return null; ++ } ++ ++ return /** @type {Element} */ (dfs(node.ownerDocument)); ++} + + /** + * Retrieves an explicitly-set, inline style value of an element. This returns +@@ -537,6 +601,12 @@ bot.dom.getCascadedStyle_ = function(elem, styleName) { + return goog.isDef(value) ? value : null; + } + var parent = bot.dom.getParentElement(elem); ++// if (parent == null) { ++// var shadowRoot = bot.dom.getShadowRoot(elem); ++// if (shadowRoot && !shadowRoot['resetStyleInheritance']) { ++// parent = bot.dom.getShadowHost(elem); ++// } ++// } + return parent ? bot.dom.getCascadedStyle_(parent, styleName) : null; + }; + +@@ -600,7 +670,7 @@ bot.dom.isShown = function(elem, opt_ignoreOpacity) { + if (bot.dom.getEffectiveStyle(e, 'display') == 'none') { + return false; + } +- var parent = bot.dom.getParentElement(e); ++ var parent = bot.dom.getEffectiveParentElement(e); + return !parent || displayed(parent); + } + if (!displayed(elem)) { +@@ -624,14 +694,25 @@ bot.dom.isShown = function(elem, opt_ignoreOpacity) { + var strokeWidth = bot.dom.getEffectiveStyle(e, 'stroke-width'); + return !!strokeWidth && (parseInt(strokeWidth, 10) > 0); + } ++ function checkChildSize(n) { ++ if (n.nodeType == goog.dom.NodeType.TEXT) { ++ return true; ++ } ++ var shadowHost; ++ if (bot.dom.isElement(n, 'CONTENT') ++ && (shadowHost = bot.dom.getShadowHost(n))) { ++ return goog.array.some(shadowHost.childNodes, checkChildSize); ++ } ++ return bot.dom.isElement(n) && positiveSize(n); ++ } + // Zero-sized elements should still be considered to have positive size + // if they have a child element or text node with positive size, unless + // the element has an 'overflow' style of 'hidden'. ++ var childNodes = e[shadowRootProperty] ++ ? e[shadowRootProperty].childNodes ++ : e.childNodes; + return bot.dom.getEffectiveStyle(e, 'overflow') != 'hidden' && +- goog.array.some(e.childNodes, function(n) { +- return n.nodeType == goog.dom.NodeType.TEXT || +- (bot.dom.isElement(n) && positiveSize(n)); +- }); ++ goog.array.some(childNodes, checkChildSize); + } + if (!positiveSize(elem)) { + return false; +@@ -639,10 +720,19 @@ bot.dom.isShown = function(elem, opt_ignoreOpacity) { + + // Elements that are hidden by overflow are not shown. + function hiddenByOverflow(e) { ++ function checkChildHidden(n) { ++ var shadowHost; ++ if (bot.dom.isElement(n, 'CONTENT') ++ && (shadowHost = bot.dom.getShadowHost(n))) { ++ return goog.array.every(shadowHost.childNodes, checkChildHidden); ++ } ++ return !bot.dom.isElement(n) || hiddenByOverflow(n); ++ } ++ var childNodes = e[shadowRootProperty] ++ ? e[shadowRootProperty].childNodes ++ : e.childNodes; + return bot.dom.getOverflowState(e) == bot.dom.OverflowState.HIDDEN && +- goog.array.every(e.childNodes, function(n) { +- return !bot.dom.isElement(n) || hiddenByOverflow(n); +- }); ++ goog.array.every(childNodes, checkChildHidden); + } + return !hiddenByOverflow(elem); + }; +@@ -1093,6 +1183,22 @@ bot.dom.appendVisibleTextLinesFromElement_ = function(elem, lines) { + function currLine() { + return /** @type {string|undefined} */ (goog.array.peek(lines)) || ''; + } ++ function processNode(shown, node) { ++ var shadowHost; ++ if (node.nodeType == goog.dom.NodeType.TEXT && shown) { ++ var textNode = /** @type {!Text} */ (node); ++ bot.dom.appendVisibleTextLinesFromTextNode_(textNode, lines, ++ whitespace, textTransform); ++ } else if (bot.dom.isElement(node, 'CONTENT') ++ && (shadowHost = bot.dom.getShadowHost(node))) { ++ // If in the shadow DOM, tags embed the content of the host of ++ // the shadow DOM. ++ goog.array.forEach(shadowHost.childNodes, goog.partial(processNode, shown)); ++ } else if (bot.dom.isElement(node)) { ++ var castElem = /** @type {!Element} */ (node); ++ bot.dom.appendVisibleTextLinesFromElement_(castElem, lines); ++ } ++ } + + // TODO: Add case here for textual form elements. + if (bot.dom.isElement(elem, goog.dom.TagName.BR)) { +@@ -1136,16 +1242,10 @@ bot.dom.appendVisibleTextLinesFromElement_ = function(elem, lines) { + textTransform = bot.dom.getEffectiveStyle(elem, 'text-transform'); + } + +- goog.array.forEach(elem.childNodes, function(node) { +- if (node.nodeType == goog.dom.NodeType.TEXT && shown) { +- var textNode = /** @type {!Text} */ (node); +- bot.dom.appendVisibleTextLinesFromTextNode_(textNode, lines, +- whitespace, textTransform); +- } else if (bot.dom.isElement(node)) { +- var castElem = /** @type {!Element} */ (node); +- bot.dom.appendVisibleTextLinesFromElement_(castElem, lines); +- } +- }); ++ var childNodes = elem[shadowRootProperty] ++ ? elem[shadowRootProperty].childNodes ++ : elem.childNodes; ++ goog.array.forEach(childNodes, goog.partial(processNode, shown)); + + var line = currLine(); + +diff --git a/javascript/chrome-driver/atoms.js b/javascript/chrome-driver/atoms.js +index 969f5ba..088b308 100644 +--- a/javascript/chrome-driver/atoms.js ++++ b/javascript/chrome-driver/atoms.js +@@ -20,6 +20,7 @@ + + goog.provide('webdriver.chrome'); + ++goog.require('bot.userAgent'); + goog.require('goog.dom'); + goog.require('goog.math.Coordinate'); + goog.require('goog.math.Rect'); +@@ -124,7 +125,13 @@ webdriver.chrome.scrollIntoView_ = function(elem, region, center) { + + offset = goog.style.getClientPosition(elem); + var windowSize = goog.dom.getDomHelper(elem).getViewportSize(); +- scrollHelper(doc.body, windowSize, offset, region, center); ++ // From Chrome 32+, setting scrollTop/Left properties of both ++ // document.documentElement and document.body differs according to the HTML ++ // mode used (strict or quirks). ++ if (bot.userAgent.isProductVersion(32) && doc.compatMode == "CSS1Compat") ++ scrollHelper(doc.documentElement, windowSize, offset, region, center); ++ else ++ scrollHelper(doc.body, windowSize, offset, region, center); + }; + + +@@ -206,7 +213,13 @@ webdriver.chrome.isElementClickable = function(elem, coord) { + return dict; + } + ++ var shadowRootProperty = elem.hasOwnProperty('shadowRoot') ? 'shadowRoot' : 'webkitShadowRoot'; ++ + var elemAtPoint = elem.ownerDocument.elementFromPoint(coord.x, coord.y); ++ while (elemAtPoint && elemAtPoint[shadowRootProperty]) { ++ elemAtPoint = elemAtPoint[shadowRootProperty]; ++ elemAtPoint = elemAtPoint.elementFromPoint(coord.x, coord.y); ++ } + if (elemAtPoint == elem) + return makeResult(true); + +diff --git a/javascript/chrome-driver/build.desc b/javascript/chrome-driver/build.desc +index 546ffd5..e707db6 100644 +--- a/javascript/chrome-driver/build.desc ++++ b/javascript/chrome-driver/build.desc +@@ -24,6 +24,11 @@ js_fragment(name = "get_page_zoom", + function = "webdriver.chrome.getPageZoom", + deps = [ ":deps" ]) + ++js_fragment(name = "touch_single_tap", ++ module = "bot.action", ++ function = "bot.action.tap", ++ deps = [ "//javascript/atoms:deps" ]) ++ + js_test(name = "test", + srcs = [ "test/*_test.html" ], + deps = [ +@@ -53,6 +58,7 @@ js_fragment_cpp(name = "atoms", + "//javascript/chrome-driver:get_location_in_view:chrome", + "//javascript/chrome-driver:get_page_zoom:chrome", + "//javascript/chrome-driver:is_element_clickable:chrome", ++ "//javascript/chrome-driver:touch_single_tap:chrome", + "//javascript/webdriver/atoms/fragments:clear_local_storage:chrome", + "//javascript/webdriver/atoms/fragments:clear_session_storage:chrome", + "//javascript/webdriver/atoms/fragments:get_appcache_status:chrome", +-- +1.9.0 + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config.json new file mode 100644 index 00000000..e8ca30b3 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config.json @@ -0,0 +1,19 @@ +{ + "build": { + "dir": "dist" + }, + "traceur": { + "modules": "amd", + "script": false, + "asyncFunctions": true, + "types": true, + "typeAssertions": true, + "typeAssertionModule": "assert", + "annotations": true, + "sourceMaps": true + }, + "server": { + "host": "0.0.0.0", + "port": 8000 + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config/karma.sauce.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config/karma.sauce.conf.js new file mode 100644 index 00000000..764c969e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config/karma.sauce.conf.js @@ -0,0 +1,38 @@ +/* + * karma.conf.js and karma.es5.conf.js optionally load this + */ + +var CUSTOM_LAUNCHERS = { + 'SL_Chrome': { + base: 'SauceLabs', + browserName: 'chrome', + version: '39' + }, + 'SL_Firefox': { + base: 'SauceLabs', + browserName: 'firefox', + version: '26' + }, + 'SL_Safari': { + base: 'SauceLabs', + browserName: 'safari', + platform: 'OS X 10.9', + version: '7' + }, + 'W7_InternetExplorer': { + base: 'SauceLabs', + browserName: 'internet explorer', + platform: 'Windows 7', + version: '11' + } +}; + +module.exports = function(options) { + options.sauceLabs = { + testName: 'Angular Router Unit Tests', + startConnect: true + }; + options.customLaunchers = CUSTOM_LAUNCHERS; + options.browsers = Object.keys(CUSTOM_LAUNCHERS); + options.reporters = ['dots', 'saucelabs']; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config/karma.travis.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config/karma.travis.conf.js new file mode 100644 index 00000000..b1ca12e6 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/config/karma.travis.conf.js @@ -0,0 +1,24 @@ +/* + * karma.conf.js and karma.es5.conf.js optionally load this + */ + +module.exports = function(options) { + if (!isTravis()) { + return; + } else if (!options.sauceLabs) { + throw new Error('This should be loaded after karma.sauce config'); + } + options.sauceLabs.build = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')'; + options.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER; + options.sauceLabs.startConnect = false; + + // TODO(vojta): remove once SauceLabs supports websockets. + // This speeds up the capturing a bit, as browsers don't even try to use websocket. + options.transports = ['xhr-polling']; + + options.singleRun = true; +}; + +function isTravis() { + return !!process.env.TRAVIS; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/configuration.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/configuration.md new file mode 100644 index 00000000..6392e7bb --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/configuration.md @@ -0,0 +1,105 @@ +# Configuring the Router + +This guide shows the many ways to map URLs to components. + +A router takes an array of pairings like this: + +```js +MyController.$routeConfig = [ + { path: '/user', component: 'user' } +]; +``` + +## Sibling Viewports + +You can configure multiple viewports on the same path like this: + +```js +MyController.$routeConfig = [ + { path: '/user', + components: { + master: 'userList', + detail: 'user' + } } +]; +``` + +```html +
+
+``` + +You can link to any sibling just as you normally would: + +```html +

These both link to the same view:

+link to userList +link to user component +``` + +Or, you can explicitly link to a viewport-component pair link this: + + +```html +

These both link to the same view:

+link to userList +link to user component +``` + +## redirectTo + +Useful for migrating to a new URL scheme and setting up default routes. + +With the following configuration: + +```js +MyController.$routeConfig = [ + { path: '/', redirectTo: '/user' }, + { path: '/user', component: 'user' } +]; +``` + +A navigation to `/` will result in the URL changing to `/user` and the viewport at that level loading the `user` component. + +## Aliases + +Consider the following route configuration: + +```js +MyController.$routeConfig = [ + { path: '/', component: 'user' } +]; +``` + +When linking to a route, you normally use the name of the component: + +```html +link to user component +``` + +If you want to refer to it differently... + + +```js +MyController.$routeConfig = [ + { path: '/', component: 'user', as: 'myUser' } +]; +``` + +```html +link to user component +``` + +This can be useful in cases where you have sibling components, but want to refer to that entire level of routing: + +```js +MyController.$routeConfig = [ + { path: '/', + components: { + master: 'userList', + detail: 'user' + }, + as: 'myUser' + } +]; +``` diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/getting-started.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/getting-started.md new file mode 100644 index 00000000..29f4c15e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/getting-started.md @@ -0,0 +1,198 @@ +# Getting Started + +These are instuctions for starting a new app with the New Router with AngularJS 1.4. + +## Project Structure + +Make a new directory and `cd` into it. + +We'll use `npm init` to setup a new project: + +``` +npm init +``` + +You can answer the prompts however you like. + +Then we'll install Angular and the New Router: + +``` +npm install angular angular-new-router +``` + +Let's make a few other files to get started: + +``` +touch index.html app.js +``` + +Your directory should look something like this: + +``` +app.js +index.html +package.json +node_modules/ +└── ... +``` + + +Let's start with the contents of `index.html`: + +```html + + + + + + My app + + +
+ + + + + + +``` + +This is a pretty typical angular app, except the `ng-viewport` directive. +`ng-viewport` is like `ng-view`; it's a placeholder for part of your app loaded +dynamically based on the route configuration. + +So how do we configure the app? Let's open `app.js` and find out. Add this to the file: + +```js +angular.module('app', ['ngNewRouter']) + .controller('AppController', ['$router', AppController]); + +AppController.$routeConfig([ + {path: '/', component: 'home' } +]); +function AppController ($router) {} +``` + +The `ngNewRouter` module provides a new service, `$router`. You notice in the configuration that +we map paths to components. What's a component? Let's talk about that for a bit. + + +## Components + +In Angular 1, a "routable component" is a template, plus a controller, plus a router. +You can configure how to map component names to controllers and templates in the [$componentLoader]($componentLoaderProvider) service. + + + +A component's template can have "viewports," which are holes in the DOM for loading parts of your app based on the route configuration and its controller can have a router. +A component's router tells the component what to put inside the viewports based on URL. +The configuration maps routes to components for each viewport. + +Let's make a `home` component that our app can route to. + +``` +mkdir -p components/home +touch components/home/home.html components/home/home.js +``` + +This creates our component directory and it's corresponding files, which is a template and a JavaScript component. + +Let's open `home.html` and add some content: + +```html +

Hello {{home.name}}!

+``` + +Components use the "controller as" syntax, so if we want to access property `name` of the controller, we write the binding as `home.name`. + +Then, let's make a controller: + +```js +angular.module('app.home', []) + .controller('HomeController', [function () { + this.name = 'Friend'; + }]); +``` + +To wire this up, We need to add a ` +``` + +And add the controller's module as a dependency to our main module in `app.js`: + +```js +angular.module('app', ['ngNewRouter', 'app.home']) + .controller('AppController', ['$router', AppController]); +// ... +``` + +If you load up the app, you should see `Hello Friend!` + + +## Linking to routes + +Let's add another route and then link to it. This route will have a route parameter, `id`. + +In app.js: + +```js +angular.module('app', ['ngNewRouter']) + .controller('AppController', ['$router', AppController]); + +AppController.$routeConfig = [ + { path: '/', component: 'home' }, + { path: '/detail/:id', component: 'detail' } +]; +function AppController ($router) {} +``` + +We can link to our `detail` component using the `ng-link` directive. +Add this to `index.html`: + +```html + + link to detail + ... +``` + +This directive will handle generating an `href` and updating the URL of the browser. + +We should also implement this component. Let's make these new files: + +``` +mkdir components/detail +touch components/detail/detail.html components/detail/detail.js +``` + +In `detail.js`, we can implement a controller that uses the `id` route parameter: + +```js +angular.module('app.detail', ['ngNewRouter']) + .controller('DetailController', ['$routeParams', DetailController]); + +function DetailController ($routeParams) { + this.id = $routeParams.id; +} +``` + +We can display the id in the template by adding this to `detail.html`: + +```html +

detail {{detail.id}}

+``` + +Then we'd have to wire up the controller by adding a script tag and making out `app` module depend on `app.detail`. + + +## Additional reading + +See the `examples/` directory for common recipes. diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/lifecycle.md b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/lifecycle.md new file mode 100644 index 00000000..9ffe25c8 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/content/lifecycle.md @@ -0,0 +1,245 @@ +# Component Lifecycle Hooks + +Lifecycle hooks let you control each stage of a route navigation. +There are four main lifecycle hooks: [`canActivate`](#can-activate), [`activate`](#activate), and [`canDeactivate`](#can-deactivate), and [`deactivate`](#deactivate). +A component can make use of these hooks by having its controller implement any number or combination of them. + +To understand how this works, let's step through a simple case where a component wants to navigate from one route to another. + + + +## Controller Constructor + +Before a component can fire any lifecycle hooks, Angular needs to instantiate it. +In this phase of routing, Angular [injects the controller's dependencies](https://docs.angularjs.org/guide/di#controllers). + + +If the controller can't be instantiated (the constructor throws), the router cancels navigation. +However, you should avoid control flow logic by means of throwing exceptions. +If you have logic that determines whether or not to perform a navigation, use the `canActivate` hook instead. + + +Constructors should be lightweight. +If you need to do a lot of work to setup a controller, consider using the [`activate`](#activate) lifecycle hook. + +## canActivate + +Before switching to a new component, this hook runs for each active component in the app. +If any of them return `false`, a rejected promise, or a promise that resolves to `false`, +the navigation is cancelled. + +This hook is useful for authentication. + +### Example + +```js +angular.module('app', []) + .controller('MyController', ['user', '$http', MyController]); + +function MyController(user, $http) { + this.user = user; + this.$http = $http; +} + +MyController.prototype.canActivate = function() { + return this.user.isAdmin; +}; +``` + +## activate + +This hook fires just before the nagivation finishes. + +This hook is useful for cases where you want your component to do some intensive work. + +### Example + +```js +angular.module('app', []) + .controller('MyController', ['user', '$http', MyController]); + +function MyController(user, $http) { + this.user = user; + this.$http = $http; +} + +MyController.prototype.canActivate = function() { + return this.user.isAdmin; +}; + +MyController.prototype.activate = function() { + return this.bigFiles = this.$http.downloadBigFiles(); +}; +``` + +## canDeactivate + +This hook fires for each component that is removed as part of navigation. +`canDeactivate` fires before any new components are instantiated. +If any of them return `false`, a rejected promise, or a promise that resolves to `false`, +the navigation is cancelled. + +`canDeactivate` is useful for making sure that data is properly persisted before navigating away. + +### Example + +In this example, we show a dialog asking a user whether or not to save their work +before continuing. + +```js +angular.module('app.save', []) + .controller('SaveController', ['$q', SaveController]); + +function SaveController($q) { + this.$q = $q; +} + +/* + * return a promise that is resolved based on the user's + * choice in a dialog box + */ +SaveController.prototype.canDeactivate = function() { + this.deferred = this.$q.defer(); + this.showSaveDialog = true; + return this.deferred.promise(); +}; +``` + +```html +
+
+

Would you like to save your work?

+ + +
+
+``` + +## deactivate + +This hook fires for each component that is removed as part of navigation. +`deactivate` is useful for doing cleanup work. + +This hook fires after the `canActivate` of the new component and `canDeactivate` of the component to be removed, but before `activate` of the new component. + +## An example + +In this example, we have a component that prevents navigation until a user saves + +```js +angular.module('app.my', []) + .controller('MyController', ['user', '$http', MyController]); + +function MyController(user, $http) { + this.user = user; + this.$http = $http; + this.userDataPersisted = true; +} + +MyController.prototype.updateUserName = function(newName) { + var self = this; + this.userDataPersisted = false; + return this.user.setName(newName).then(function () { + self.userDataPersisted = true; + }); +}; + +MyController.prototype.canActivate = function() { + return this.user.isAdmin; +}; + +MyController.prototype.activate = function() { + this.user.downloadBigFiles(); +}; + +MyController.prototype.canDeactivate = function() { + return this.userDataPersisted; +}; +``` + + + +## Overview + +This is the basic logic that the router uses when determining whether or not to perform a navigation. + +```dot +digraph G { + node [shape=box, width=3, fontsize="12px", style=filled, peripheries=0]; + splines=ortho; + nodesep=0.50; + + { + node[fontname="Helvetica", fillcolor=grey90]; + "complete navigation"; + "cancel navigation"; + "begin navigation"; + } + + { + node [fontname="Courier"]; + "oldCtrl.canReuse()" [fillcolor=lightgrey]; + "oldCtrl.reuse()" [fillcolor=lightgrey]; + "oldCtrl.canDeactivate()" [fillcolor=lightblue]; + "newCtrl = new Ctrl()" [fillcolor=lightsalmon]; + "newCtrl.canActivate()" [fillcolor=lightsalmon]; + "oldCtrl.deactivate()" [fillcolor=lightblue]; + "newCtrl.activate()" [fillcolor=lightsalmon]; + } + + "begin navigation" -> "oldCtrl.canReuse()"; + "oldCtrl.canReuse()" -> "oldCtrl.reuse()" [label=true]; + "oldCtrl.canReuse()" -> "oldCtrl.canDeactivate()"; + "oldCtrl.canDeactivate()" -> "newCtrl = new Ctrl()" [label="true", weight=10, fontcolor=darkgreen]; + "oldCtrl.canDeactivate()" -> "cancel navigation" [fontcolor=red]; + + "newCtrl = new Ctrl()" -> "newCtrl.canActivate()" [label="ok", weight=10, fontcolor=darkgreen]; + "newCtrl = new Ctrl()" -> "cancel navigation" [fontcolor=red]; + + "newCtrl.canActivate()" -> "oldCtrl.deactivate()" [label="true", weight=10, fontcolor=darkgreen]; + "newCtrl.canActivate()" -> "cancel navigation" [fontcolor=red]; + + "oldCtrl.deactivate()" -> "newCtrl.activate()" [label="ok", weight=10, fontcolor=darkgreen]; + "oldCtrl.deactivate()" -> "cancel navigation"; + + "newCtrl.activate()" -> "complete navigation" [weight=10]; + "newCtrl.activate()" -> "cancel navigation"; + + { rank=same; "complete navigation"; "cancel navigation"; "oldCtrl.reuse()" } +} +``` + + + + + + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/dgeni.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/dgeni.conf.js new file mode 100644 index 00000000..d5c333d7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/dgeni.conf.js @@ -0,0 +1,87 @@ +// Canonical path provides a consistent path (i.e. always forward slashes) across different OSes +var path = require('canonical-path'); + +var Package = require('dgeni').Package; + +// Create and export a new Dgeni package called dgeni-example. This package depends upon +// the jsdoc and nunjucks packages defined in the dgeni-packages npm module. +var package = new Package('router', [ + require('dgeni-packages/jsdoc'), + require('dgeni-packages/nunjucks'), + require('./traceur-package') +]); + +package.processor(require('./processors/markdown.js')); +package.processor(require('./processors/generateIndexPage.js')); +package.processor(require('./processors/addMethodsToService.js')); + +package.factory(require('./file-readers/markdown')); + +// Configure our dgeni-example package. We can ask the Dgeni dependency injector +// to provide us with access to services and processors that we wish to configure +package.config(function(log, readFilesProcessor, templateFinder, templateEngine, writeFilesProcessor, markdownFileReader) { + + // Set logging level + log.level = 'info'; + + // Specify the base path used when resolving relative paths to source and output files + readFilesProcessor.basePath = path.resolve(__dirname, '..'); + readFilesProcessor.fileReaders.push(markdownFileReader); + + // Specify collections of source files that should contain the documentation to extract + readFilesProcessor.sourceFiles = [ + { include: 'src/**/*.js', basePath: 'src' }, + { include: 'docs/content/**/*.md', basePath: 'docs/content' }, + { include: 'src/**/*.ats', basePath: 'src' } + ]; + + + // Nunjucks and Angular conflict in their template bindings so change the Nunjucks + templateEngine.config.tags = { + variableStart: '{$', + variableEnd: '$}' + }; + + templateEngine.filters.push(require('./rendering/relativeLinkInlineTag')); + templateEngine.filters.push(require('./rendering/docTypeLabel')); + + // Add a folder to search for our own templates to use when rendering docs + templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates')); + + // Specify how to match docs to templates. + // In this case we just use the same static template for all docs + templateFinder.templatePatterns = [ + '${ doc.template }', + '${ doc.id }.${ doc.docType }.template.html', + '${ doc.id }.template.html', + '${ doc.docType }.template.html', + 'common.template.html' + ]; + + // Specify where the writeFilesProcessor will write our generated doc files + writeFilesProcessor.outputFolder = 'dist/docs'; +}). +config(function(computeIdsProcessor) { + computeIdsProcessor.idTemplates.push({ + docTypes: ['markdown'], + getId: function(doc) { + docPath = path.dirname(doc.fileInfo.relativePath); + if ( doc.fileInfo.baseName !== 'index' ) { + docPath = path.join(docPath, doc.fileInfo.baseName); + } + return docPath; + }, + getAliases: function(doc) { + return [doc.id]; + } + }); +}). +config(function(computePathsProcessor) { + computePathsProcessor.pathTemplates.push({ + docTypes: ['markdown'], + pathTemplate: '${id}', + outputPathTemplate: '${path}.html' + }); +}); + +module.exports = package; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/file-readers/markdown.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/file-readers/markdown.js new file mode 100644 index 00000000..bd0fab75 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/file-readers/markdown.js @@ -0,0 +1,11 @@ +module.exports = function markdownFileReader(log) { + return { + name: 'markdownFileReader', + defaultPattern: /\.md$/, + getDocs: function(fileInfo) { + return [{ + docType: 'markdownFile' + }]; + } + }; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/highlight.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/highlight.css new file mode 100644 index 00000000..3a80cd56 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/highlight.css @@ -0,0 +1,117 @@ + +/* from google code prettify */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +.pln { + color: white; +} + +/* plain text */ +@media screen { + .str, + .string, + .value { + color: #e6db74; + } + + /* a keyword */ + .kwd, + .keyword { + color: #66D9EF; + } + + /* a comment */ + .com, + .comment, + .line-comment, + .block-comment { + color: #75715E; + } + + .param { + color: #FD971F; + font-style: italic; + } + + .typ, + .lang-html .attribute { + color: #a6e22e; + } + + /* a type name */ + .lit, + .number, + .numeric, + .boolean { + color: #ae81ff; + } + + /* a literal value */ + /* punctuation, lisp open bracket, lisp close bracket */ + /* .pun, .opn, .clo { color: #660 } */ + .lang-html .title, + .control-flow, + .operator { + color: #f92672; + } + + /* a markup tag name */ + .atn { + color: #a6e22e; + } + + /* a markup attribute name */ + .atv { + color: #e6db74; + } + + /* a markup attribute value */ + /*.dec, .var { color: #606 }*/ + /* a declaration; a variable name */ + .fun { + color: red; + } +} + +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #006600; + } + + .kwd { + color: #006; + font-weight: bold; + } + + .com { + color: #600; + font-style: italic; + } + + .typ { + color: #404; + font-weight: bold; + } + + .lit { + color: #004444; + } + + .pun, .opn, .clo { + color: #444400; + } + + .tag { + color: #006; + font-weight: bold; + } + + .atn { + color: #440044; + } + + .atv { + color: #006600; + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/addMethodsToService.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/addMethodsToService.js new file mode 100644 index 00000000..2f87caec --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/addMethodsToService.js @@ -0,0 +1,41 @@ +"use strict"; + +var path = require('canonical-path'); + +/** + * @dgProcessor generateIndexPageProcessor + * @description + * This processor creates a doc that will be rendered as the index page for the app + */ +module.exports = function addMethodsToServiceProcessor() { + return { + $runAfter: ['adding-extra-docs'], + $runBefore: ['extra-docs-added'], + $process: function(docs) { + // Collect up all the areas in the docs + var parentDocs = {}; + docs.forEach(function(doc) { + if (!shouldNestDoc(doc)) { + parentDocs[doc.name] = doc; + doc.members = doc.members || []; + } + }); + docs.forEach(function(doc) { + if (shouldNestDoc(doc)) { + doc.docType = 'angularServiceMethod'; + var parent = getParentDoc(doc); + parentDocs[parent].members.push(doc); + } + }); + + } + }; +}; + +function getParentDoc(doc) { + return doc.name.substr(0, doc.name.indexOf('#')); +} + +function shouldNestDoc(doc) { + return doc.docType === 'js' && doc.name.indexOf('#') > -1; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/generateIndexPage.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/generateIndexPage.js new file mode 100644 index 00000000..19092b7b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/generateIndexPage.js @@ -0,0 +1,45 @@ +"use strict"; + +var path = require('canonical-path'); + +/** + * @dgProcessor generateIndexPageProcessor + * @description + * This processor creates a doc that will be rendered as the index page for the app + */ +module.exports = function generateIndexPageProcessor() { + return { + includeDocFn: shouldIndexDoc, + $runAfter: ['adding-extra-docs'], + $runBefore: ['extra-docs-added'], + $process: function(docs) { + + var includeDocFn = this.includeDocFn; + + // Collect up all the areas in the docs + var docTypes = {}; + docs.forEach(function(doc) { + if (includeDocFn(doc)) { + docTypes[doc.docType] = docTypes[doc.docType] || []; + docTypes[doc.docType].push(doc); + } + }); + + var indexDoc = { + docType: 'indexPage', + docTypes: docTypes, + id: 'index', + aliases: ['index'], + path: '/', + outputPath: 'index.html' + }; + + docs.push(indexDoc); + } + }; +}; + +function shouldIndexDoc(doc) { + return ['js', 'provider', 'class', 'directive', 'markdown'].indexOf(doc.docType) > -1 && + doc.name.indexOf('#') === -1; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/markdown.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/markdown.js new file mode 100644 index 00000000..60d2144b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/processors/markdown.js @@ -0,0 +1,131 @@ +var Q = require('q'); +var marked = require('marked'); +var exec = require('child_process').exec; +var renderer = new marked.Renderer(); +var eshighlight = require('eshighlight'); +var hljs = require('highlight.js'); +hljs.configure({ + classPrefix: '' +}); + + +// anchors for headings +var prev = {}; // <- this is a dirty hack +renderer.heading = function (text, level) { + if (level === 1) { + return '

' + text + '

'; + } + + var escapedText = dashCase(text.trim().replace(/[^\w]+/g, '-')); + if (level > 2) { + escapedText = prev[level - 1] + '-' + escapedText; + } + + escapedText = escapedText.replace(/-{2}/g, '-').replace(/^-/, ''); + + prev[level] = escapedText; + + return '' + + text + ''; +}; + +var superCode = renderer.code; +renderer.code = function (code, lang, escaped) { + // dont wrap dotviz output in a code block + if (lang === 'dot') { + return code; + } else { + return superCode.apply(this, arguments); + } +}; + +var TITLE = /#[ ]?(.+)/; + +module.exports = function renderMarkdownProcessor() { + return { + $runAfter: ['files-read'], + $runBefore: ['parsing-tags'], + $process: function(docs) { + return Q.all(docs.map(function(doc) { + if (doc.docType !== 'markdownFile') { + return doc; + } + return Q.nfcall(markdownize, doc.fileInfo.content).then( + function (rendered) { + return { + fileInfo: doc.fileInfo, + name: getTitle(doc.fileInfo.content), + summary: getDescription(doc.fileInfo.content), + renderedContent: rendered, + docType: 'markdown' + }; + }, + function(){ + // Add empty error handler to make + // sure that EPIPE errors on Travis + // are not causing the script to exit + } + ); + })); + } + }; +}; + +function getTitle(md) { + return md.match(TITLE)[1]; +} + +function getDescription(md) { + var first = ''; + md.split('\n').some(function (line) { + return line.trim().length > 0 && line[0] !== '#' && (first = line); + }); + return first; +} + +function markdownize(str, cb) { + marked(str, { + highlight: function (code, lang, callback) { + if (lang === 'dot') { + graphvizualize(code, callback); + } else if (lang === 'js') { + return callback(null, eshighlight(code)); + } else if (lang) { + return callback(null, hljs.highlight(lang, code).value); + } else { + return callback(null, code); + } + }, + renderer: renderer + }, cb); +} + + +// make a graphviz thing +function graphvizualize(data, cb) { + var cp = exec('dot -Tsvg'); + + // buffer stdout + var buf = ''; + cp.stdout.on('data', function (data) { + buf += data; + }); + cp.on('error', function () {}); + cp.on('close', function (code) { + cb(null, code > 0 ? '' : buf); + }); + + // set dot to stdin + cp.stdin.end(data); +} + + +function dashCase(str) { + return str.replace(/([A-Z])/g, function ($1) { + return '-' + $1.toLowerCase(); + }); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/rendering/docTypeLabel.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/rendering/docTypeLabel.js new file mode 100644 index 00000000..6dedc5e0 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/rendering/docTypeLabel.js @@ -0,0 +1,16 @@ +var path = require('canonical-path'); + +var LABELS = { + markdown: 'Guide', + provider: 'Provider', + directive: 'Directive', + module: 'Module', + js: 'API' +}; + +module.exports = { + name: 'docTypeLabel', + process: function(docType) { + return LABELS[docType]; + } +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/rendering/relativeLinkInlineTag.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/rendering/relativeLinkInlineTag.js new file mode 100644 index 00000000..5523cb8b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/rendering/relativeLinkInlineTag.js @@ -0,0 +1,20 @@ +var path = require('canonical-path'); + +module.exports = { + name: 'relativeLink', + process: function(doc, originatingDoc, title) { + + var url; + if ( doc && doc.path ) { + title = title || doc.name; + if ( originatingDoc && originatingDoc.path ) { + url = path.relative(path.join('/', originatingDoc.path), path.join('/', doc.path)); + } else { + url = doc.path; + } + return '' + title + ''; + } else { + return doc; + } + } +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/style.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/style.css new file mode 100644 index 00000000..e54a45ec --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/style.css @@ -0,0 +1,212 @@ +/* based on https://github.com/orderedlist/minimal */ + +@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700); + +body { + padding:50px; + font:16px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; + color:#222; + font-weight:300; +} + +h1, h2, h3, h4, h5, h6 { + color:#222; + margin:0 0 20px; + position: relative; +} + + +.anchor { + position: absolute; + top: 0; + left: 0; + display: none; + padding-right: 6px; + padding-left: 30px; + margin-left: -30px; + width: 30px; +} +.header-link:before { + content: '#'; + line-height: 1; + display: inline-block; +} + +h1:hover .anchor, +h2:hover .anchor, +h3:hover .anchor, +h4:hover .anchor, +h5:hover .anchor, +h6:hover .anchor { + padding-left: 8px; + margin-left: -30px; + text-decoration: none; + display: block; +} + + +p, ul, ol, table, pre, dl { + margin:0 0 20px; +} + +h1, h2, h3 { + line-height:1.1; +} + +h1 { + font-size:28px; +} + +h2 { + color:#393939; +} + +h3, h4, h5, h6 { + color:#494949; +} + +a { + color:#39c; + font-weight:400; + text-decoration:none; +} + +a:hover { + color:#069; +} + +a small { + font-size:11px; + color:#777; + margin-top:-0.6em; + display:block; +} + +a:hover small { + color:#777; +} + +.wrapper { + width:860px; + margin:0 auto; +} + +blockquote { + border-left:1px solid #e5e5e5; + margin:0; + padding:0 0 0 20px; + font-style:italic; +} + +pre, code { + font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, monospace; + font-size:12px; +} + +pre { + padding:8px 15px; + border-radius:5px; + background-color: #272727; + border:1px solid #e5e5e5; + color: #fff; + overflow-x: auto; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); +} + +table { + width:100%; + border-collapse:collapse; +} + +th, td { + text-align:left; + padding:5px 10px; + border-bottom:1px solid #e5e5e5; +} + +dt { + color:#444; + font-weight:700; +} + +th { + color:#444; +} + +img { + max-width:100%; +} + +strong { + color:#222; + font-weight:700; +} + +section { + width:500px; + float:right; + padding-bottom:50px; +} + +small { + font-size:11px; +} + +hr { + border:0; + background:#e5e5e5; + height:1px; + margin:0 0 20px; +} + +footer { + width:270px; + float:left; + position:fixed; + bottom:50px; +} + +@media print, screen and (max-width: 960px) { + + div.wrapper { + width:auto; + margin:0; + } + + section { + border:1px solid #e5e5e5; + border-width:1px 0; + padding:20px 0; + margin:0 0 20px; + } + + header ul { + position:absolute; + right:50px; + top:52px; + } +} + +@media print, screen and (max-width: 720px) { + body { + word-wrap:break-word; + } + + pre, code { + word-wrap:normal; + } +} + +@media print, screen and (max-width: 480px) { + body { + padding:15px; + } +} + +@media print { + body { + padding:0.4in; + font-size:12pt; + color:#444; + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/index.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/index.template.html new file mode 100644 index 00000000..05fa7982 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/index.template.html @@ -0,0 +1,17 @@ +{% extends "layout/base.template.html" %} + +{% block body %} + +

Angular New Router

+

{$ doc.description | marked $}

+ +{%- for docType, docs in doc.docTypes %} +

{$ docType | docTypeLabel $}

+
    + {% for childDoc in docs -%} +
  • {$ childDoc | relativeLink(doc) $}{%- if childDoc.description %} - {$ childDoc.description | firstLine $}{% endif -%}{%- if childDoc.summary %} - {$ childDoc.summary $}{% endif -%}
  • + {% endfor -%} +
+{%- endfor %} + +{% endblock %} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/js.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/js.template.html new file mode 100644 index 00000000..b22e789a --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/js.template.html @@ -0,0 +1,34 @@ +{% extends "layout/base.template.html" %} + +{% block body %} + +

{$ doc.codeName $}

+

{$ doc.description | marked $}

+ + +{%- if doc.members %} +{%- for member in doc.members %} +

{$ member.name $}

+

{$ member.description | marked $}

+{%- endfor %} +{%- endif %} + +{%- if doc.params %} +

Params

+
    +{%- for param in doc.params %} +
  • + {$ param.name $} { {$ param.typeList $} } - {$ param.description $} +
  • +{%- endfor %} +
+{%- endif %} + +{%- if doc.returns %} +

Returns

+

+ { {$ doc.returns.typeList $} } - {$ doc.returns.description $} +

+{%- endif %} + +{% endblock %} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/layout/base.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/layout/base.template.html new file mode 100644 index 00000000..0806e226 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/layout/base.template.html @@ -0,0 +1,12 @@ + + + + {% block title %}New Angular Router{% endblock %} + + + + + + {% block body %}{% endblock %} + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/markdown.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/markdown.template.html new file mode 100644 index 00000000..dfbb173d --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/templates/markdown.template.html @@ -0,0 +1,5 @@ +{% extends "layout/base.template.html" %} + +{% block body %} +{$ doc.renderedContent $} +{% endblock %} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/index.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/index.js new file mode 100644 index 00000000..eb3ebb5a --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/index.js @@ -0,0 +1,98 @@ +var Package = require('dgeni').Package; +var traceur = require('./services/traceur'); +var path = require('canonical-path'); + +module.exports = new Package('traceur') + +.factory(require('./readers/atScript')) +.factory(require('./services/getJSDocComment')) + +// Create injectable services from traceur classes and objects +.factory(traceur.traceurOptions) +.factory('SourceFile', traceur.getClass('SourceFile')) +.factory('ParseTreeVisitor', traceur.getClass('ParseTreeVisitor')) +.factory('Parser', traceur.getClass('Parser')) + +// This is the main wrapper around traceur that parses the content of ats files +.factory(require('./services/atParser')) + +// Create tree visitor services that are used to extract info from the ASTs +.factory(require('./services/AttachCommentTreeVisitor')) +.factory(require('./services/ExportTreeVisitor')) + + +// Processors +.processor(require('./processors/generateDocsFromComments')) +.processor(require('./processors/processModuleDocs')) +.processor(require('./processors/processClassDocs')) + + +// Configure file reader +.config(function(readFilesProcessor, atScriptFileReader) { + readFilesProcessor.fileReaders.push(atScriptFileReader); +}) + + +// Configure templates +.config(function(templateFinder) { + templateFinder.templateFolders.push(path.resolve(__dirname, 'templates')); +}) + +// Configure ids and paths +.config(function(computeIdsProcessor, computePathsProcessor) { + + computeIdsProcessor.idTemplates.push({ + docTypes: [ + 'class', + 'function', + 'NAMED_EXPORT', + 'VARIABLE_STATEMENT' + ], + idTemplate: '${moduleDoc.id}.${name}', + getAliases: function(doc) { return [doc.id]; } + }); + + computeIdsProcessor.idTemplates.push({ + docTypes: ['member'], + idTemplate: '${classDoc.id}.${name}', + getAliases: function(doc) { return [doc.id]; } + }); + + computeIdsProcessor.idTemplates.push({ + docTypes: ['guide'], + getId: function(doc) { + return doc.fileInfo.relativePath + // path should be relative to `modules` folder + .replace(/.*\/?modules\//, '') + // path should not include `/docs/` + .replace(/\/docs\//, '/') + // path should not have a suffix + .replace(/\.\w*$/, ''); + }, + getAliases: function(doc) { return [doc.id]; } + }); + + + computePathsProcessor.pathTemplates.push({ + docTypes: ['module'], + pathTemplate: '${id}', + getOutputPath: function() {} // don't write this to file + }); + + computePathsProcessor.pathTemplates.push({ + docTypes: [ + 'class', + 'function', + 'NAMED_EXPORT', + 'VARIABLE_STATEMENT' + ], + pathTemplate: '${name}', + outputPathTemplate: '${path}.html' + }); + + computePathsProcessor.pathTemplates.push({ + docTypes: ['member'], + pathTemplate: '${classDoc.path}/${name}', + getOutputPath: function() {} // These docs are not written to their own file, instead they are part of their class doc + }); +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/generateDocsFromComments.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/generateDocsFromComments.js new file mode 100644 index 00000000..2a1582eb --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/generateDocsFromComments.js @@ -0,0 +1,34 @@ +var _ = require('lodash'); + +module.exports = function generateDocsFromComments(log) { + return { + $runAfter: ['files-read'], + $runBefore: ['parsing-tags'], + $process: function(docs) { + var commentDocs = []; + docs = _.filter(docs, function(doc) { + if (doc.docType !== 'atScriptFile') { + return true; + } else { + _.forEach(doc.fileInfo.comments, function(comment) { + + // we need to check for `/**` at the start of the comment to find all the jsdoc style comments + comment.range.toString().replace(/^\/\*\*([\w\W]*)\*\/$/g, function(match, commentBody) { + + // Create a doc from this comment + commentDocs.push({ + fileInfo: doc.fileInfo, + startingLine: comment.range.start.line, + endingLine: comment.range.end.line, + content: commentBody, + codeTree: comment.treeAfter, + docType: 'atScriptDoc' + }); + }); + }); + } + }); + return docs.concat(commentDocs); + } + }; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/processClassDocs.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/processClassDocs.js new file mode 100644 index 00000000..69b55d41 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/processClassDocs.js @@ -0,0 +1,42 @@ +var _ = require('lodash'); + +module.exports = function processClassDocs(log, getJSDocComment) { + + return { + $runAfter: ['processModuleDocs'], + $runBefore: ['parsing-tags', 'generateDocsFromComments'], + $process: function(docs) { + var memberDocs = []; + _.forEach(docs, function(classDoc) { + if (classDoc.docType === 'class') { + + classDoc.members = []; + + // Create a new doc for each member of the class + _.forEach(classDoc.elements, function(memberDoc) { + + classDoc.members.push(memberDoc); + memberDocs.push(memberDoc); + + memberDoc.docType = 'member'; + memberDoc.classDoc = classDoc; + memberDoc.name = memberDoc.name.literalToken.value; + + if (memberDoc.commentBefore ) { + // If this export has a comment, remove it from the list of + // comments collected in the module + var index = classDoc.moduleDoc.comments.indexOf(memberDoc.commentBefore); + if (index !== -1) { + classDoc.moduleDoc.comments.splice(index, 1); + } + + _.assign(memberDoc, getJSDocComment(memberDoc.commentBefore)); + } + }); + } + }); + + return docs.concat(memberDocs); + } + }; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/processModuleDocs.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/processModuleDocs.js new file mode 100644 index 00000000..020afc7e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/processors/processModuleDocs.js @@ -0,0 +1,48 @@ +var _ = require('lodash'); + +module.exports = function processModuleDocs(log, ExportTreeVisitor, getJSDocComment) { + + return { + $runAfter: ['files-read'], + $runBefore: ['parsing-tags', 'generateDocsFromComments'], + $process: function(docs) { + var exportDocs = []; + docs.forEach(function(doc) { + if (doc.docType === 'module') { + + log.debug('processing', doc.moduleTree.moduleName); + + doc.name = doc.moduleTree.moduleName; + + doc.exports = []; + + if (doc.moduleTree.visit) { + var visitor = new ExportTreeVisitor(); + visitor.visit(doc.moduleTree); + + _.forEach(visitor.exports, function(exportDoc) { + + doc.exports.push(exportDoc); + exportDocs.push(exportDoc); + exportDoc.moduleDoc = doc; + + if (exportDoc.comment) { + // If this export has a comment, remove it from the list of + // comments collected in the module + var index = doc.comments.indexOf(exportDoc.comment); + if (index !== -1) { + doc.comments.splice(index, 1); + } + + _.assign(exportDoc, getJSDocComment(exportDoc.comment)); + } + + }); + } + } + }); + + return docs.concat(exportDocs); + } + }; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/readers/atScript.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/readers/atScript.js new file mode 100644 index 00000000..54d646b5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/readers/atScript.js @@ -0,0 +1,27 @@ +var path = require('canonical-path'); + +/** + * @dgService atScriptFileReader + * @description + * This file reader will create a simple doc for each + * file including a code AST of the AtScript in the file. + */ +module.exports = function atScriptFileReader(log, atParser) { + var reader = { + name: 'atScriptFileReader', + defaultPattern: /\.ats$/, + getDocs: function(fileInfo) { + + var moduleDoc = atParser.parseModule(fileInfo); + moduleDoc.docType = 'module'; + moduleDoc.id = moduleDoc.moduleTree.moduleName; + moduleDoc.aliases = [moduleDoc.id]; + + // Readers return a collection of docs read from the file + // but in this read there is only one document (module) to return + return [moduleDoc]; + } + }; + + return reader; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/readers/atScript.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/readers/atScript.spec.js new file mode 100644 index 00000000..e27e77e5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/readers/atScript.spec.js @@ -0,0 +1,55 @@ +var mockPackage = require('../mocks/mockPackage'); +var Dgeni = require('dgeni'); + +describe('atScript file reader', function() { + + var dgeni, injector, reader; + + var fileContent = + 'import {CONST} from "facade/lang";\n' + + '\n' + + '/**\n' + + '* A parameter annotation that creates a synchronous eager dependency.\n' + + '*\n' + + '* class AComponent {\n' + + '* constructor(@Inject("aServiceToken") aService) {}\n' + + '* }\n' + + '*\n' + + '*/\n' + + 'export class Inject {\n' + + 'token;\n' + + '@CONST()\n' + + 'constructor(token) {\n' + + 'this.token = token;\n' + + '}\n' + + '}'; + + + beforeEach(function() { + dgeni = new Dgeni([mockPackage()]); + injector = dgeni.configureInjector(); + reader = injector.get('atScriptFileReader'); + }); + + + it('should provide a default pattern', function() { + expect(reader.defaultPattern).toEqual(/\.ats$/); + }); + + + it('should parse the file using the atParser and return a single doc', function() { + + var atParser = injector.get('atParser'); + spyOn(atParser, 'parseModule').and.callThrough(); + + var docs = reader.getDocs({ + content: fileContent, + relativePath: 'di/src/annotations.js' + }); + + expect(atParser.parseModule).toHaveBeenCalled(); + expect(docs.length).toEqual(1); + expect(docs[0].docType).toEqual('module'); + }); + +}); \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/AttachCommentTreeVisitor.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/AttachCommentTreeVisitor.js new file mode 100644 index 00000000..1557e5fa --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/AttachCommentTreeVisitor.js @@ -0,0 +1,42 @@ +module.exports = function AttachCommentTreeVisitor(ParseTreeVisitor, log) { + + + // This visitor tries to find the nearest comment for each code node and attaches them + // to the relevant nodes in the AST + + function AttachCommentTreeVisitorImpl() { + ParseTreeVisitor.call(this); + } + AttachCommentTreeVisitorImpl.prototype = Object.create(ParseTreeVisitor.prototype); + AttachCommentTreeVisitorImpl.prototype.constructor = AttachCommentTreeVisitorImpl; + + + AttachCommentTreeVisitorImpl.prototype.visit = function(tree, comments) { + this.comments = comments; + this.index = 0; + this.currentComment = this.comments[this.index]; + + if (this.currentComment) log.silly('comment: ' + + this.currentComment.range.start.line + ' - ' + + this.currentComment.range.end.line); + + ParseTreeVisitor.prototype.visit.call(this, tree); + }; + + + AttachCommentTreeVisitorImpl.prototype.visitAny = function(tree) { + if (tree && tree.location && tree.location.start && this.currentComment) { + if (this.currentComment.range.end.offset < tree.location.start.offset) { + log.silly('tree: ' + tree.constructor.name + ' - ' + tree.location.start.line); + tree.commentBefore = this.currentComment; + this.currentComment.treeAfter = tree; + this.index++; + this.currentComment = this.comments[this.index]; + if (this.currentComment) log.silly('comment: ' + this.currentComment.range.start.line + ' - ' + this.currentComment.range.end.line); + } + } + return ParseTreeVisitor.prototype.visitAny.call(this, tree); + }; + + return AttachCommentTreeVisitorImpl; +}; \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/ExportTreeVisitor.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/ExportTreeVisitor.js new file mode 100644 index 00000000..95ec30de --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/ExportTreeVisitor.js @@ -0,0 +1,113 @@ +module.exports = function ExportTreeVisitor(ParseTreeVisitor, log) { + + function ExportTreeVisitorImpl() { + ParseTreeVisitor.call(this); + } + ExportTreeVisitorImpl.prototype = Object.create(ParseTreeVisitor.prototype); + + ExportTreeVisitorImpl.prototype.visitExportDeclaration = function(tree) { + // We are entering an export declaration - create an object to track it + this.currentExport = { + comment: tree.commentBefore, + location: tree.location + }; + log.silly('enter', tree.type, tree.commentBefore ? 'has comment' : ''); + ParseTreeVisitor.prototype.visitExportDeclaration.call(this, tree); + log.silly('exit', this.currentExport); + + // We are exiting the export declaration - store the export object + this.exports.push(this.currentExport); + this.currentExport = null; + }; + + + ExportTreeVisitorImpl.prototype.visitVariableStatement = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + this.currentExport.name = "VARIABLE_STATEMENT"; + } + }; + + + ExportTreeVisitorImpl.prototype.visitVariableDeclaration = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + this.currentExport.name = tree.lvalue; + this.currentExport.variableDeclaration = tree; + } + }; + + + ExportTreeVisitorImpl.prototype.visitFunctionDeclaration = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + this.currentExport.name = tree.name.identifierToken.value; + this.currentExport.functionKind = tree.functionKind; + this.currentExport.parameters = tree.parameterList.parameters; + this.currentExport.typeAnnotation = tree.typeAnnotation; + this.currentExport.annotations = tree.annotations; + this.currentExport.docType = 'function'; + + log.silly(tree.type, tree.commentBefore ? 'has comment' : ''); + } + }; + + + ExportTreeVisitorImpl.prototype.visitClassDeclaration = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + this.currentExport.name = tree.name.identifierToken.value; + this.currentExport.superClass = tree.superClass; + this.currentExport.annotations = tree.annotations; + this.currentExport.elements = tree.elements; + this.currentExport.docType = 'class'; + } + }; + + + ExportTreeVisitorImpl.prototype.visitAsyncFunctionDeclaration = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + } + }; + + + ExportTreeVisitorImpl.prototype.visitExportDefault = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + this.currentExport.name = 'DEFAULT'; + this.currentExport.defaultExport = tree; + // Default exports are either classes, functions or expressions + // So we let the super class continue down... + ParseTreeVisitor.prototype.visitExportDefault.call(this, tree); + } + }; + + + ExportTreeVisitorImpl.prototype.visitNamedExport = function(tree) { + if ( this.currentExport ) { + this.updateExport(tree); + + this.currentExport.namedExport = tree; + this.currentExport.name = 'NAMED_EXPORT'; + // TODO: work out this bit!! + // We need to cope with any export specifiers in the named export + } + }; + + + // TODO - if the export is an expression, find the thing that is being + // exported and use it and its comments for docs + + ExportTreeVisitorImpl.prototype.updateExport = function(tree) { + this.currentExport.comment = this.currentExport.comment || tree.commentBefore; + this.currentExport.docType = tree.type; + }; + + ExportTreeVisitorImpl.prototype.visit = function(tree) { + this.exports = []; + ParseTreeVisitor.prototype.visit.call(this, tree); + }; + + return ExportTreeVisitorImpl; +}; \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/atParser.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/atParser.js new file mode 100644 index 00000000..e6d13c69 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/atParser.js @@ -0,0 +1,88 @@ +/** + * Wrapper around traceur that can parse the contents of a file + */ +module.exports = function atParser(AttachCommentTreeVisitor, SourceFile, Parser, traceurOptions, log) { + + var service = { + /** + * The options to pass to traceur + */ + traceurOptions: { + annotations: true, // parse annotations + types: true, // parse types + memberVariables: true, // parse class fields + commentCallback: true // handle comments + }, + + /** + * Parse a module AST from the contents of a file. + * @param {Object} fileInfo information about the file to parse + * @return { { moduleTree: Object, comments: Array } } An object containing the parsed module + * AST and an array of all the comments found in the file + */ + parseModule: parseModule + }; + + return service; + + + // Parse the contents of the file using traceur + function parseModule(fileInfo) { + + var moduleName = file2modulename(fileInfo.relativePath); + var sourceFile = new SourceFile(moduleName, fileInfo.content); + var comments = []; + var moduleTree; + var parser = new Parser(sourceFile); + + // Configure the parser + parser.handleComment = function(range) { + comments.push({ range: range }); + }; + traceurOptions.setFromObject(service.traceurOptions); + + try { + // Parse the file as a module, attaching the comments + moduleTree = parser.parseModule(); + attachComments(moduleTree, comments); + } catch(ex) { + // HACK: sometime traceur crashes for various reasons including + // Not Yet Implemented (NYI)! + log.error(ex.stack); + moduleTree = {}; + } + log.debug(moduleName); + moduleTree.moduleName = moduleName; + + // We return the module AST but also a collection of all the comments + // since it can be helpful to iterate through them without having to + // traverse the AST again + return { + moduleTree: moduleTree, + comments: comments + }; + } + + // attach the comments to their nearest code tree + function attachComments(tree, comments) { + + var visitor = new AttachCommentTreeVisitor(); + // Visit every node of the tree using our custom method + visitor.visit(tree, comments); + } +}; + + +function file2modulename(filePath) { + return filePath.replace(/\\/g, '/') + // module name should be relative to `modules` and `tools` folder + .replace(/.*\/modules\//, '') + .replace(/.*\/tools\//, '') + // module name should not include `src`, `test`, `lib` + .replace(/\/src\//, '/') + .replace(/\/web\//, '/') + .replace(/\/perf_tmp\//, '/') + .replace(/\/lib\//, '/') + // module name should not have a suffix + .replace(/\.\w*$/, ''); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/atParser.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/atParser.spec.js new file mode 100644 index 00000000..7c4e1ad2 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/atParser.spec.js @@ -0,0 +1,80 @@ +var mockPackage = require('../mocks/mockPackage'); +var Dgeni = require('dgeni'); + +describe('atParser service', function() { + + var dgeni, injector, parser; + + var fileContent = + 'import {CONST} from "facade/lang";\n' + + '\n' + + '/**\n' + + '* A parameter annotation that creates a synchronous eager dependency.\n' + + '*\n' + + '* class AComponent {\n' + + '* constructor(@Inject("aServiceToken") aService) {}\n' + + '* }\n' + + '*\n' + + '*/\n' + + 'export class Inject {\n' + + 'token;\n' + + '@CONST()\n' + + 'constructor(token) {\n' + + 'this.token = token;\n' + + '}\n' + + '}'; + + beforeEach(function() { + dgeni = new Dgeni([mockPackage()]); + injector = dgeni.configureInjector(); + parser = injector.get('atParser'); + }); + + it('should extract the comments from the file', function() { + var result = parser.parseModule({ + content: fileContent, + relativePath: 'di/src/annotations.js' + }); + + expect(result.comments[0].range.toString()).toEqual( + '/**\n' + + '* A parameter annotation that creates a synchronous eager dependency.\n' + + '*\n' + + '* class AComponent {\n' + + '* constructor(@Inject("aServiceToken") aService) {}\n' + + '* }\n' + + '*\n' + + '*/' + ); + }); + + it('should extract a module AST from the file', function() { + var result = parser.parseModule({ + content: fileContent, + relativePath: 'di/src/annotations.js' + }); + + expect(result.moduleTree.moduleName).toEqual('di/annotations'); + expect(result.moduleTree.scriptItemList[0].type).toEqual('IMPORT_DECLARATION'); + + expect(result.moduleTree.scriptItemList[1].type).toEqual('EXPORT_DECLARATION'); + }); + + it('should attach comments to their following AST', function() { + var result = parser.parseModule({ + content: fileContent, + relativePath: 'di/src/annotations.js' + }); + + expect(result.moduleTree.scriptItemList[1].commentBefore.range.toString()).toEqual( + '/**\n' + + '* A parameter annotation that creates a synchronous eager dependency.\n' + + '*\n' + + '* class AComponent {\n' + + '* constructor(@Inject("aServiceToken") aService) {}\n' + + '* }\n' + + '*\n' + + '*/' + ); + }); +}); \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/getJSDocComment.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/getJSDocComment.js new file mode 100644 index 00000000..c3cebb8b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/getJSDocComment.js @@ -0,0 +1,28 @@ +var LEADING_STAR = /^[^\S\r\n]*\*[^\S\n\r]?/gm; + +/** + * Extact comment info from a comment object + * @param {Object} comment object to process + * @return { {startingLine, endingLine, content, codeTree}= } a comment info object + * or undefined if the comment is not a jsdoc style comment + */ +module.exports = function getJSDocComment() { + return function(comment) { + + var commentInfo; + + // we need to check for `/**` at the start of the comment to find all the jsdoc style comments + comment.range.toString().replace(/^\/\*\*([\w\W]*)\*\/$/g, function(match, commentBody) { + commentBody = commentBody.replace(LEADING_STAR, '').trim(); + + commentInfo = { + startingLine: comment.range.start.line, + endingLine: comment.range.end.line, + content: commentBody, + codeTree: comment.treeAfter + }; + }); + + return commentInfo; + }; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/getJSDocComment.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/getJSDocComment.spec.js new file mode 100644 index 00000000..210238cc --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/getJSDocComment.spec.js @@ -0,0 +1,67 @@ +var mockPackage = require('../mocks/mockPackage'); +var Dgeni = require('dgeni'); + +describe('getJSDocComment service', function() { + + var dgeni, injector, getJSDocComment; + + function createComment(commentString, start, end, codeTree) { + return { + range: { + toString: function() { return commentString; }, + start: { line: start }, + end: { line: end }, + }, + treeAfter: codeTree + }; + } + + beforeEach(function() { + dgeni = new Dgeni([mockPackage()]); + injector = dgeni.configureInjector(); + getJSDocComment = injector.get('getJSDocComment'); + }); + + it('should only return an object if the comment starts with /** and ends with */', function() { + var result = getJSDocComment(createComment('/** this is a jsdoc comment */')); + expect(result).toBeDefined(); + + result = getJSDocComment(createComment('/* this is a normal comment */')); + expect(result).toBeUndefined(); + + result = getJSDocComment(createComment('this is not a valid comment */')); + expect(result).toBeUndefined(); + + result = getJSDocComment(createComment('nor is this')); + expect(result).toBeUndefined(); + + result = getJSDocComment(createComment('/* or even this')); + expect(result).toBeUndefined(); + + result = getJSDocComment(createComment('/** and this')); + expect(result).toBeUndefined(); + }); + + + it('should return a result that contains info about the comment', function() { + var codeTree = {}; + var result = getJSDocComment(createComment('/** this is a comment */', 10, 20, codeTree)); + expect(result.startingLine).toEqual(10); + expect(result.endingLine).toEqual(20); + expect(result.codeTree).toBe(codeTree); + }); + + it('should strip off leading stars from each line', function() { + var result = getJSDocComment(createComment( + '/** this is a jsdoc comment */\n' + + ' *\n' + + ' * some content\n' + + ' */' + )); + expect(result.content).toEqual( + 'this is a jsdoc comment */\n' + + '\n' + + 'some content' + ); + }); +}); \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/traceur.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/traceur.js new file mode 100644 index 00000000..b4a0efa2 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/services/traceur.js @@ -0,0 +1,19 @@ +var traceur = require('traceur/src/node/traceur.js'); + +module.exports = { + + traceurOptions: function traceurOptions() { + return traceur.options; + }, + + // We have to jump through some syntactic hoops to get classes out of + // Traceur for use in ES5 node apps + getClass: function(id, path) { + path = System.map.traceur + (path || ('/src/syntax/' + id)); + var factory = function() { + return System.get(path)[id]; + }; + factory.name = id; + return factory; + } +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/class.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/class.template.html new file mode 100644 index 00000000..28cfa9be --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/class.template.html @@ -0,0 +1,15 @@ +{% extends 'layout/base.template.html' %} + +{% block body %} +

{$ doc.name $}

+

{$ doc.description | marked $}

+ +

Methods

+{% for member in doc.members %} +{%- if member.description %} +

{$ member.name $}

+

{$ member.description | marked $}

+{% endif %} +{% endfor %} + +{% endblock %} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/common.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/common.template.html new file mode 100644 index 00000000..dc10750a --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/common.template.html @@ -0,0 +1,9 @@ +{% extends 'layout/base.template.html' %} + +{% block body %} +

{$ doc.id $}

+

({$ doc.docType $})

+
+{$ doc.description | marked $} +
+{% endblock %} \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/data-module.template.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/data-module.template.js new file mode 100644 index 00000000..498cdad8 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/data-module.template.js @@ -0,0 +1,3 @@ +angular.module('{$ doc.moduleName $}', []) + +.value('{$ doc.serviceName $}', {$ doc.value | json $}); \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/layout/base.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/layout/base.template.html new file mode 100644 index 00000000..16a0d9dc --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/layout/base.template.html @@ -0,0 +1 @@ +{% block body %}{% endblock %} \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/module.template.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/module.template.html new file mode 100644 index 00000000..2000a4ab --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/docs/traceur-package/templates/module.template.html @@ -0,0 +1,16 @@ +{% extends 'layout/base.template.html' %} + +{% block body %} +

{$ doc.id $} module

+ +

{$ doc.description | marked $}

+ +{% if doc.exports.length %} +

Exports

+ +{% endif %} +{% endblock %} \ No newline at end of file diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/app.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/app.css new file mode 100644 index 00000000..5f73cda4 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/app.css @@ -0,0 +1,29 @@ + +ng-viewport { + display: block; +} + +.ng-enter { + opacity: 0; +} + +.ng-enter.ng-enter-active { + opacity: 1; +} + +.ng-animate, +.ng-enter, +.ng-leave { + -webkit-transition: 0.5s linear all; + -moz-transition: 0.5s linear all; + -o-transition: 0.5s linear all; + transition: 0.5s linear all; +} + +.ng-leave { + opacity: 1; +} + +.ng-leave.ng-leave-active { + opacity: 0; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/app.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/app.js new file mode 100644 index 00000000..d1b54a4e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/app.js @@ -0,0 +1,16 @@ +angular.module('example', [ + 'example.goodbye', + 'example.welcome', + 'ngAnimate', + 'ngNewRouter' +]) +.controller('AppController', ['$router', AppController]); + +AppController.$routeConfig = [ + { path: '/', redirectTo: '/welcome' }, + { path: '/welcome', component: 'welcome' }, + { path: '/goodbye', component: 'goodbye' } +]; +function AppController($router) { + this.greeting = 'Hello'; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/goodbye/goodbye.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/goodbye/goodbye.html new file mode 100644 index 00000000..d3500e01 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/goodbye/goodbye.html @@ -0,0 +1,3 @@ +
+

{{goodbye.heading}}

+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/goodbye/goodbye.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/goodbye/goodbye.js new file mode 100644 index 00000000..a2095072 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/goodbye/goodbye.js @@ -0,0 +1,6 @@ +angular.module('example.goodbye', []). + controller('GoodbyeController', GoodbyeController); + +function GoodbyeController() { + this.heading = 'Goodbye to The New Angular Router Demo :('; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/welcome/welcome.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/welcome/welcome.html new file mode 100644 index 00000000..eb6db6de --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/welcome/welcome.html @@ -0,0 +1,3 @@ +
+

{{welcome.heading}}

+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/welcome/welcome.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/welcome/welcome.js new file mode 100644 index 00000000..df19b4e7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/components/welcome/welcome.js @@ -0,0 +1,6 @@ +angular.module('example.welcome', []). + controller('WelcomeController', WelcomeController); + +function WelcomeController() { + this.heading = 'Welcome to The New Angular Router Demo!'; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/index.html new file mode 100644 index 00000000..dc4a372e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/index.html @@ -0,0 +1,38 @@ + + + + + + + Routing + + + + +
+ +
+ + + + + + + + + + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/scenario.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/scenario.js new file mode 100644 index 00000000..6ceacac7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/animation/scenario.js @@ -0,0 +1,18 @@ +'use strict'; + +var appRoot = 'examples/angular-1/animation'; + +describe('angular 1.x Hello App', function() { + beforeEach(function() { + browserGet('index.html'); + }); + + it('should work', function() { + expect(element(by.binding('welcome.heading')).getText()) + .toBe('Welcome to The New Angular Router Demo!'); + }); +}); + +function browserGet (url) { + browser.get(appRoot + '/' + url); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/app.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/app.js new file mode 100644 index 00000000..7b617728 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/app.js @@ -0,0 +1,23 @@ +angular.module('myApp', [ + 'ngNewRouter', + 'myApp.index', + 'myApp.editPost', + 'myApp.saveModal' +]) +.controller('AppController', ['$router', AppController]) +.factory('posts', postsFactory); + + +function AppController($router) { + $router.config([ + { path: '/', component: 'index' }, + { path: '/post/:id', component: 'editPost' }, + ]); +} + +function postsFactory() { + return { + '1': { title: 'First Post', content: 'I wrote this first.' }, + '2': { title: 'Second Post', content: 'I wrote this second.' } + }; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/edit-post/edit-post.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/edit-post/edit-post.html new file mode 100644 index 00000000..dfe2847d --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/edit-post/edit-post.html @@ -0,0 +1,6 @@ +

Editing post "{{editPost.post.title}}"

+Back +
+
+ +
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/edit-post/edit-post.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/edit-post/edit-post.js new file mode 100644 index 00000000..3b2dcf91 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/edit-post/edit-post.js @@ -0,0 +1,19 @@ +angular.module('myApp.editPost', []). + controller('EditPostController', ['$routeParams', 'posts', 'saveModal', EditPostController]); + +function EditPostController($routeParams, posts, saveModal) { + this.saveModal = saveModal; + this.post = posts[$routeParams.id]; + this.newContent = this.post.content; +} + +EditPostController.prototype.canDeactivate = function () { + if (this.newContent === this.post.content) { + return true; + } + return this.saveModal.getResponse(); +}; + +EditPostController.prototype.save = function () { + this.post.content = this.newContent; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/index/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/index/index.html new file mode 100644 index 00000000..c6adf309 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/index/index.html @@ -0,0 +1,9 @@ +

Post Index

+ + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/index/index.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/index/index.js new file mode 100644 index 00000000..8d62e16e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/index/index.js @@ -0,0 +1,6 @@ +angular.module('myApp.index', []). + controller('IndexController', ['posts', IndexController]); + +function IndexController (posts) { + this.posts = posts; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.css new file mode 100644 index 00000000..d9ee3757 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.css @@ -0,0 +1,28 @@ +.modal { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 999; + overflow: hidden; + background-color: rgba(0, 0, 0, 0.75); +} + +.modal-inner, .modal--show .modal-inner { + position: absolute; + top: 60px; + left: 50%; + z-index: 20; + margin-left: -200px; + padding: 1em; + width: 400px; + + border-radius: 2px; + background: #FFF; + -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); + box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); + max-width: 100%; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.html new file mode 100644 index 00000000..cd502ae0 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.html @@ -0,0 +1,7 @@ + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.js new file mode 100644 index 00000000..9b08c2c5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/components/save-modal/save-modal.js @@ -0,0 +1,32 @@ +angular.module('myApp.saveModal', ['btford.modal']) + .factory('saveModal', ['btfModal', '$q', saveModalFactory]); + +function saveModalFactory (btfModal, $q) { + var modal = btfModal({ + templateUrl: './components/save-modal/save-modal.html', + controller: ['resolve', 'reject', ModalController], + controllerAs: 'modal' + }); + + function ModalController(resolve, reject) { + this.confirm = function () { + resolve(true); + modal.deactivate(); + }; + this.cancel = function () { + reject(); + modal.deactivate(); + }; + } + + return { + getResponse: function () { + return $q(function (resolve, reject) { + modal.activate({ + resolve: resolve, + reject: reject + }); + }); + } + }; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/index.html new file mode 100644 index 00000000..8db92fd3 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/scenario.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/scenario.js new file mode 100644 index 00000000..91fe76bb --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/confirm-unsaved/scenario.js @@ -0,0 +1,116 @@ +'use strict'; + +var appRoot = 'examples/angular-1/confirm-unsaved'; + +describe('angular 1.x "Confirm Unsaved" App', function() { + + describe('Index', function () { + beforeEach(function() { + browserGet('index.html'); + }); + + it('should list items', function() { + var items = element.all(by.binding('item.title')); + var first = items.get(0); + expect(first.getText()).toBe('Edit First Post'); + }); + + it('should link items', function() { + var items = element.all(by.binding('item.title')); + var first = items.get(0); + expect(first.getAttribute('href')).toBe('http://0.0.0.0:8000/examples/angular-1/confirm-unsaved/post/1'); + + first.click(); + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/post/1'); + }); + }); + }); + + describe('Edit', function () { + beforeEach(function () { + browserGet('index.html#/post/1'); + }); + + it('should show the initial text', function() { + expect(element(by.model('editPost.newContent')).getAttribute('value')).toBe('I wrote this first.'); + }); + + it('should let you navigate back to the index', function () { + var back = element(by.linkText('Back')); + back.click(); + + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/'); + }); + }) + + it('should prompt you to save if content was changed', function() { + var postContent = element(by.model('editPost.newContent')); + postContent.sendKeys(' Hey!'); + var back = element(by.linkText('Back')); + back.click(); + + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/post/1'); + }); + + expect($('.modal').getText()).toContain('You have unsaved work'); + + element(by.buttonText('Go back and save')).click(); + element(by.buttonText('Save')).click(); + + back.click(); + + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/'); + }); + }); + + it('should let you navigate back without saving', function () { + var postContent = element(by.model('editPost.newContent')); + var previousText = postContent.getText(); + + postContent.sendKeys(' Hey!'); + var back = element(by.linkText('Back')); + back.click(); + + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/post/1'); + }); + + expect($('.modal').getText()).toContain('You have unsaved work'); + + element(by.buttonText('Go back and save')).click(); + element(by.buttonText('Save')).click(); + + back.click(); + + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/'); + }); + }); + + it('should save content if you click "Save"', function () { + element(by.model('editPost.newContent')).sendKeys(' Hey!'); + element(by.buttonText('Save')).click(); + element(by.linkText('Back')).click(); + + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/'); + }); + + element.all(by.binding('item.title')).get(0).click(); + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/post/1'); + }); + + expect(element(by.model('editPost.newContent')).getAttribute('value')).toBe('I wrote this first. Hey!'); + }); + }); +}); + + +function browserGet (url) { + browser.get(appRoot + '/' + url); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/app.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/app.js new file mode 100644 index 00000000..bcdb98b7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/app.js @@ -0,0 +1,18 @@ +'use strict'; + +angular.module('example', [ + 'example.flickr', + 'example.settings', + 'example.welcome', + 'ngNewRouter' +]). + controller('AppController', ['$router', AppController]); + +function AppController($router) { + $router.config([ + { path: '/', redirectTo: '/welcome' }, + { path: '/welcome', component: 'welcome' }, + { path: '/flickr', component: 'flickr' }, + { path: '/settings', component: 'settings' } + ]); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/flickr/flickr.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/flickr/flickr.html new file mode 100644 index 00000000..8ee090a7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/flickr/flickr.html @@ -0,0 +1,10 @@ +
+

{{flickr.heading}}

+
+
+ + + +
+
+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/flickr/flickr.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/flickr/flickr.js new file mode 100644 index 00000000..0250374a --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/flickr/flickr.js @@ -0,0 +1,29 @@ +'use strict'; + +angular.module('example.flickr', []). + controller('FlickrController', ['$http', FlickrController]); + +var URL = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=angularjs&tagmode=any&format=json'; + +function FlickrController($http) { + this.heading = 'Flickr'; + this.images = []; + this.http = $http; + + this.activate(); +} + +FlickrController.prototype.activate = function() { + var self = this; + + // hack + window.jsonFlickrFeed = function(result) { + self.images = result.items; + }; + + this.http.jsonp(URL); +}; + +FlickrController.prototype.canDeactivate = function() { + return confirm('Are you sure you want to leave?'); +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/settings/settings.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/settings/settings.html new file mode 100644 index 00000000..a80c0b4c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/settings/settings.html @@ -0,0 +1,15 @@ +
+

{{settings.heading}}

+
+
+ +
+
+ +
+
+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/settings/settings.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/settings/settings.js new file mode 100644 index 00000000..b4dc0da7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/settings/settings.js @@ -0,0 +1,15 @@ +'use strict'; + +angular.module('example.settings', []). + controller('SettingsController', ['$router', SettingsController]); + +function SettingsController($router) { + this.heading = 'Settings'; + this.router = $router; + + $router.config([ + { path: '/', redirectTo: '/welcome' }, + { path: '/welcome', component: 'welcome', title:'Welcome' }, + { path: '/flickr', component: 'flickr' } + ]); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/welcome/welcome.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/welcome/welcome.html new file mode 100644 index 00000000..eb6db6de --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/welcome/welcome.html @@ -0,0 +1,3 @@ +
+

{{welcome.heading}}

+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/welcome/welcome.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/welcome/welcome.js new file mode 100644 index 00000000..df19b4e7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/components/welcome/welcome.js @@ -0,0 +1,6 @@ +angular.module('example.welcome', []). + controller('WelcomeController', WelcomeController); + +function WelcomeController() { + this.heading = 'Welcome to The New Angular Router Demo!'; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/index.html new file mode 100644 index 00000000..ad52660c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/index.html @@ -0,0 +1,44 @@ + + + + + + + + Routing + + + + + +
+ +
+ + + + + + + + + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/scenario.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/scenario.js new file mode 100644 index 00000000..286a8381 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/hello/scenario.js @@ -0,0 +1,18 @@ +'use strict'; + +var appRoot = 'examples/angular-1/hello'; + +describe('angular 1.x Hello App', function() { + beforeEach(function() { + browserGet('index.html'); + }); + + xit('should work', function() { + expect(element(by.binding('welcome.heading')).getText()) + .toBe('Welcome to The New Angular Router Demo!'); + }); +}); + +function browserGet (url) { + browser.get(appRoot + '/' + url); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/app.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/app.js new file mode 100644 index 00000000..16ecb76e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/app.js @@ -0,0 +1,21 @@ +'use strict'; + +angular.module('phoneKitten', [ + 'ngNewRouter', + 'ngAnimate', + + 'phoneKitten.phoneDetail', + 'phoneKitten.phoneList', + + 'phoneKitten.filters', + 'phoneKitten.services' +]). +controller('AppController', ['$router', AppController]); + +function AppController($router) { + $router.config([ + { path: '/' , redirectTo: '/phones' }, + { path: '/phones' , component: 'phoneList' }, + { path: '/phones/:phoneId' , component: 'phoneDetail' } + ]); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-detail/phone-detail.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-detail/phone-detail.html new file mode 100755 index 00000000..d1357f86 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-detail/phone-detail.html @@ -0,0 +1,118 @@ +
+ +
+ +

{{phoneDetail.phone.name}}

+ +

{{phoneDetail.phone.description}}

+ +
    +
  • + +
  • +
+ +
    +
  • + Availability and Networks +
    +
    Availability
    +
    {{availability}}
    +
    +
  • +
  • + Battery +
    +
    Type
    +
    {{phoneDetail.phone.battery.type}}
    +
    Talk Time
    +
    {{phoneDetail.phone.battery.talkTime}}
    +
    Standby time (max)
    +
    {{phoneDetail.phone.battery.standbyTime}}
    +
    +
  • +
  • + Storage and Memory +
    +
    RAM
    +
    {{phoneDetail.phone.storage.ram}}
    +
    Internal Storage
    +
    {{phoneDetail.phone.storage.flash}}
    +
    +
  • +
  • + Connectivity +
    +
    Network Support
    +
    {{phoneDetail.phone.connectivity.cell}}
    +
    WiFi
    +
    {{phoneDetail.phone.connectivity.wifi}}
    +
    Bluetooth
    +
    {{phoneDetail.phone.connectivity.bluetooth}}
    +
    Infrared
    +
    {{phoneDetail.phone.connectivity.infrared | checkmark}}
    +
    GPS
    +
    {{phoneDetail.phone.connectivity.gps | checkmark}}
    +
    +
  • +
  • + Android +
    +
    OS Version
    +
    {{phoneDetail.phone.android.os}}
    +
    UI
    +
    {{phoneDetail.phone.android.ui}}
    +
    +
  • +
  • + Size and Weight +
    +
    Dimensions
    +
    {{dim}}
    +
    Weight
    +
    {{phoneDetail.phone.sizeAndWeight.weight}}
    +
    +
  • +
  • + Display +
    +
    Screen size
    +
    {{phoneDetail.phone.display.screenSize}}
    +
    Screen resolution
    +
    {{phoneDetail.phone.display.screenResolution}}
    +
    Touch screen
    +
    {{phoneDetail.phone.display.touchScreen | checkmark}}
    +
    +
  • +
  • + Hardware +
    +
    CPU
    +
    {{phoneDetail.phone.hardware.cpu}}
    +
    USB
    +
    {{phoneDetail.phone.hardware.usb}}
    +
    Audio / headphone jack
    +
    {{phoneDetail.phone.hardware.audioJack}}
    +
    FM Radio
    +
    {{phoneDetail.phone.hardware.fmRadio | checkmark}}
    +
    Accelerometer
    +
    {{phoneDetail.phone.hardware.accelerometer | checkmark}}
    +
    +
  • +
  • + Camera +
    +
    Primary
    +
    {{phoneDetail.phone.camera.primary}}
    +
    Features
    +
    {{phoneDetail.phone.camera.features.join(', ')}}
    +
    +
  • +
  • + Additional Features +
    {{phoneDetail.phone.additionalFeatures}}
    +
  • +
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-detail/phone-detail.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-detail/phone-detail.js new file mode 100644 index 00000000..335b1aed --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-detail/phone-detail.js @@ -0,0 +1,19 @@ +'use strict'; + +angular.module('phoneKitten.phoneDetail', []). + controller('PhoneDetailController', ['$routeParams', 'Phone', PhoneDetailController]); + +function PhoneDetailController($routeParams, Phone) { + var self = this; + this.phone = Phone.get({phoneId: $routeParams.phoneId}, function(phone) { + self.setImage(phone.images[0]); + }); +} + +PhoneDetailController.prototype.canActivate = function() { + return this.phone.$promise; +}; + +PhoneDetailController.prototype.setImage = function(imageUrl) { + this.mainImageUrl = imageUrl; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-list/phone-list.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-list/phone-list.html new file mode 100755 index 00000000..d0a9ad2b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-list/phone-list.html @@ -0,0 +1,28 @@ +
+
+
+ + + Search: + Sort by: + + +
+
+ + + + +
+
+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-list/phone-list.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-list/phone-list.js new file mode 100644 index 00000000..fc1880a8 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/components/phone-list/phone-list.js @@ -0,0 +1,13 @@ +'use strict'; + +angular.module('phoneKitten.phoneList', []). + controller('PhoneListController', ['Phone', PhoneListController]); + +function PhoneListController(Phone) { + this.Phone = Phone; + this.orderProp = 'age'; +} + +PhoneListController.prototype.activate = function() { + this.phones = this.Phone.query(); +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/.gitkeep b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/.gitkeep new file mode 100755 index 00000000..e69de29b diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/animations.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/animations.css new file mode 100755 index 00000000..2dfa8719 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/animations.css @@ -0,0 +1,97 @@ +/* + * animations css stylesheet + */ + +/* animate ngRepeat in phone listing */ + +/*.phone-listing.ng-enter, +.phone-listing.ng-leave, +.phone-listing.ng-move { + -webkit-transition: 0.5s linear all; + -moz-transition: 0.5s linear all; + -o-transition: 0.5s linear all; + transition: 0.5s linear all; +} + +.phone-listing.ng-enter, +.phone-listing.ng-move { + opacity: 0; + height: 0; + overflow: hidden; +} + +.phone-listing.ng-move.ng-move-active, +.phone-listing.ng-enter.ng-enter-active { + opacity: 1; + height: 120px; +} + +.phone-listing.ng-leave { + opacity: 1; + overflow: hidden; +} + +.phone-listing.ng-leave.ng-leave-active { + opacity: 0; + height: 0; + padding-top: 0; + padding-bottom: 0; +}*/ + +/* cross fading between routes with ngView */ + +.view-container { + position: relative; +} + +.view-frame .ng-enter, +.view-frame .ng-leave { + background: white; + position: absolute; + top: 0; + left: 0; + right: 0; +} + +.view-frame .ng-enter { + -webkit-animation: 0.5s fade-in; + -moz-animation: 0.5s fade-in; + -o-animation: 0.5s fade-in; + animation: 0.5s fade-in; + z-index: 100; +} + +.view-frame .ng-leave { + -webkit-animation: 0.5s fade-out; + -moz-animation: 0.5s fade-out; + -o-animation: 0.5s fade-out; + animation: 0.5s fade-out; + z-index: 99; +} + +@keyframes fade-in { + from { opacity: 0; } + to { opacity: 1; } +} +@-moz-keyframes fade-in { + from { opacity: 0; } + to { opacity: 1; } +} +@-webkit-keyframes fade-in { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes fade-out { + from { opacity: 1; } + to { opacity: 0; } +} +@-moz-keyframes fade-out { + from { opacity: 1; } + to { opacity: 0; } +} +@-webkit-keyframes fade-out { + from { opacity: 1; } + to { opacity: 0; } +} + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/app.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/app.css new file mode 100755 index 00000000..099a3a8e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/app.css @@ -0,0 +1,99 @@ +/* app css stylesheet */ + +body { + padding-top: 20px; +} + + +.phone-images { + background-color: white; + width: 450px; + height: 450px; + overflow: hidden; + position: relative; + float: left; +} + +.phones { + list-style: none; +} + +.thumb { + float: left; + margin: -0.5em 1em 1.5em 0; + padding-bottom: 1em; + height: 100px; + width: 100px; +} + +.phones li { + clear: both; + height: 115px; + padding-top: 15px; +} + +/** Detail View **/ +img.phone { + float: left; + margin-right: 3em; + margin-bottom: 2em; + background-color: white; + padding: 2em; + height: 400px; + width: 400px; + display: none; +} + +img.phone.active { + display: block; +} + + +ul.phone-thumbs { + margin: 0; + list-style: none; +} + +ul.phone-thumbs li { + border: 1px solid black; + display: inline-block; + margin: 1em; + background-color: white; +} + +ul.phone-thumbs img { + height: 100px; + width: 100px; + padding: 1em; +} + +ul.phone-thumbs img:hover { + cursor: pointer; +} + + +ul.specs { + clear: both; + margin: 0; + padding: 0; + list-style: none; +} + +ul.specs > li{ + display: inline-block; + width: 200px; + vertical-align: top; +} + +ul.specs > li > span{ + font-weight: bold; + font-size: 1.2em; +} + +ul.specs dt { + font-weight: bold; +} + +h1 { + border-bottom: 1px solid gray; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/bootstrap.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/bootstrap.css new file mode 100644 index 00000000..7f366519 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/css/bootstrap.css @@ -0,0 +1,5785 @@ +/*! + * Bootstrap v3.1.1 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +/*! normalize.css v3.0.0 | MIT License | git.io/normalize */ +html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} +body { + margin: 0; +} +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; +} +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; +} +audio:not([controls]) { + display: none; + height: 0; +} +[hidden], +template { + display: none; +} +a { + background: transparent; +} +a:active, +a:hover { + outline: 0; +} +abbr[title] { + border-bottom: 1px dotted; +} +b, +strong { + font-weight: bold; +} +dfn { + font-style: italic; +} +h1 { + margin: .67em 0; + font-size: 2em; +} +mark { + color: #000; + background: #ff0; +} +small { + font-size: 80%; +} +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} +sup { + top: -.5em; +} +sub { + bottom: -.25em; +} +img { + border: 0; +} +svg:not(:root) { + overflow: hidden; +} +figure { + margin: 1em 40px; +} +hr { + height: 0; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +pre { + overflow: auto; +} +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} +button, +input, +optgroup, +select, +textarea { + margin: 0; + font: inherit; + color: inherit; +} +button { + overflow: visible; +} +button, +select { + text-transform: none; +} +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; +} +button[disabled], +html input[disabled] { + cursor: default; +} +button::-moz-focus-inner, +input::-moz-focus-inner { + padding: 0; + border: 0; +} +input { + line-height: normal; +} +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; + padding: 0; +} +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} +input[type="search"] { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + -webkit-appearance: textfield; +} +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +fieldset { + padding: .35em .625em .75em; + margin: 0 2px; + border: 1px solid #c0c0c0; +} +legend { + padding: 0; + border: 0; +} +textarea { + overflow: auto; +} +optgroup { + font-weight: bold; +} +table { + border-spacing: 0; + border-collapse: collapse; +} +td, +th { + padding: 0; +} +@media print { + * { + color: #000 !important; + text-shadow: none !important; + background: transparent !important; + box-shadow: none !important; + } + a, + a:visited { + text-decoration: underline; + } + a[href]:after { + content: " (" attr(href) ")"; + } + abbr[title]:after { + content: " (" attr(title) ")"; + } + a[href^="javascript:"]:after, + a[href^="#"]:after { + content: ""; + } + pre, + blockquote { + border: 1px solid #999; + + page-break-inside: avoid; + } + thead { + display: table-header-group; + } + tr, + img { + page-break-inside: avoid; + } + img { + max-width: 100% !important; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } + select { + background: #fff !important; + } + .navbar { + display: none; + } + .table td, + .table th { + background-color: #fff !important; + } + .btn > .caret, + .dropup > .btn > .caret { + border-top-color: #000 !important; + } + .label { + border: 1px solid #000; + } + .table { + border-collapse: collapse !important; + } + .table-bordered th, + .table-bordered td { + border: 1px solid #ddd !important; + } +} +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +*:before, +*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +html { + font-size: 62.5%; + + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.42857143; + color: #333; + background-color: #fff; +} +input, +button, +select, +textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +a { + color: #428bca; + text-decoration: none; +} +a:hover, +a:focus { + color: #2a6496; + text-decoration: underline; +} +a:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +figure { + margin: 0; +} +img { + vertical-align: middle; +} +.img-responsive, +.thumbnail > img, +.thumbnail a > img, +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + display: block; + max-width: 100%; + height: auto; +} +.img-rounded { + border-radius: 6px; +} +.img-thumbnail { + display: inline-block; + max-width: 100%; + height: auto; + padding: 4px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; +} +.img-circle { + border-radius: 50%; +} +hr { + margin-top: 20px; + margin-bottom: 20px; + border: 0; + border-top: 1px solid #eee; +} +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit; +} +h1 small, +h2 small, +h3 small, +h4 small, +h5 small, +h6 small, +.h1 small, +.h2 small, +.h3 small, +.h4 small, +.h5 small, +.h6 small, +h1 .small, +h2 .small, +h3 .small, +h4 .small, +h5 .small, +h6 .small, +.h1 .small, +.h2 .small, +.h3 .small, +.h4 .small, +.h5 .small, +.h6 .small { + font-weight: normal; + line-height: 1; + color: #999; +} +h1, +.h1, +h2, +.h2, +h3, +.h3 { + margin-top: 20px; + margin-bottom: 10px; +} +h1 small, +.h1 small, +h2 small, +.h2 small, +h3 small, +.h3 small, +h1 .small, +.h1 .small, +h2 .small, +.h2 .small, +h3 .small, +.h3 .small { + font-size: 65%; +} +h4, +.h4, +h5, +.h5, +h6, +.h6 { + margin-top: 10px; + margin-bottom: 10px; +} +h4 small, +.h4 small, +h5 small, +.h5 small, +h6 small, +.h6 small, +h4 .small, +.h4 .small, +h5 .small, +.h5 .small, +h6 .small, +.h6 .small { + font-size: 75%; +} +h1, +.h1 { + font-size: 36px; +} +h2, +.h2 { + font-size: 30px; +} +h3, +.h3 { + font-size: 24px; +} +h4, +.h4 { + font-size: 18px; +} +h5, +.h5 { + font-size: 14px; +} +h6, +.h6 { + font-size: 12px; +} +p { + margin: 0 0 10px; +} +.lead { + margin-bottom: 20px; + font-size: 16px; + font-weight: 200; + line-height: 1.4; +} +@media (min-width: 768px) { + .lead { + font-size: 21px; + } +} +small, +.small { + font-size: 85%; +} +cite { + font-style: normal; +} +.text-left { + text-align: left; +} +.text-right { + text-align: right; +} +.text-center { + text-align: center; +} +.text-justify { + text-align: justify; +} +.text-muted { + color: #999; +} +.text-primary { + color: #428bca; +} +a.text-primary:hover { + color: #3071a9; +} +.text-success { + color: #3c763d; +} +a.text-success:hover { + color: #2b542c; +} +.text-info { + color: #31708f; +} +a.text-info:hover { + color: #245269; +} +.text-warning { + color: #8a6d3b; +} +a.text-warning:hover { + color: #66512c; +} +.text-danger { + color: #a94442; +} +a.text-danger:hover { + color: #843534; +} +.bg-primary { + color: #fff; + background-color: #428bca; +} +a.bg-primary:hover { + background-color: #3071a9; +} +.bg-success { + background-color: #dff0d8; +} +a.bg-success:hover { + background-color: #c1e2b3; +} +.bg-info { + background-color: #d9edf7; +} +a.bg-info:hover { + background-color: #afd9ee; +} +.bg-warning { + background-color: #fcf8e3; +} +a.bg-warning:hover { + background-color: #f7ecb5; +} +.bg-danger { + background-color: #f2dede; +} +a.bg-danger:hover { + background-color: #e4b9b9; +} +.page-header { + padding-bottom: 9px; + margin: 40px 0 20px; + border-bottom: 1px solid #eee; +} +ul, +ol { + margin-top: 0; + margin-bottom: 10px; +} +ul ul, +ol ul, +ul ol, +ol ol { + margin-bottom: 0; +} +.list-unstyled { + padding-left: 0; + list-style: none; +} +.list-inline { + padding-left: 0; + margin-left: -5px; + list-style: none; +} +.list-inline > li { + display: inline-block; + padding-right: 5px; + padding-left: 5px; +} +dl { + margin-top: 0; + margin-bottom: 20px; +} +dt, +dd { + line-height: 1.42857143; +} +dt { + font-weight: bold; +} +dd { + margin-left: 0; +} +@media (min-width: 768px) { + .dl-horizontal dt { + float: left; + width: 160px; + overflow: hidden; + clear: left; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap; + } + .dl-horizontal dd { + margin-left: 180px; + } +} +abbr[title], +abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #999; +} +.initialism { + font-size: 90%; + text-transform: uppercase; +} +blockquote { + padding: 10px 20px; + margin: 0 0 20px; + font-size: 17.5px; + border-left: 5px solid #eee; +} +blockquote p:last-child, +blockquote ul:last-child, +blockquote ol:last-child { + margin-bottom: 0; +} +blockquote footer, +blockquote small, +blockquote .small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #999; +} +blockquote footer:before, +blockquote small:before, +blockquote .small:before { + content: '\2014 \00A0'; +} +.blockquote-reverse, +blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + text-align: right; + border-right: 5px solid #eee; + border-left: 0; +} +.blockquote-reverse footer:before, +blockquote.pull-right footer:before, +.blockquote-reverse small:before, +blockquote.pull-right small:before, +.blockquote-reverse .small:before, +blockquote.pull-right .small:before { + content: ''; +} +.blockquote-reverse footer:after, +blockquote.pull-right footer:after, +.blockquote-reverse small:after, +blockquote.pull-right small:after, +.blockquote-reverse .small:after, +blockquote.pull-right .small:after { + content: '\00A0 \2014'; +} +blockquote:before, +blockquote:after { + content: ""; +} +address { + margin-bottom: 20px; + font-style: normal; + line-height: 1.42857143; +} +code, +kbd, +pre, +samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; +} +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + white-space: nowrap; + background-color: #f9f2f4; + border-radius: 4px; +} +kbd { + padding: 2px 4px; + font-size: 90%; + color: #fff; + background-color: #333; + border-radius: 3px; + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); +} +pre { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; +} +pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; +} +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} +.container { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} +@media (min-width: 768px) { + .container { + width: 750px; + } +} +@media (min-width: 992px) { + .container { + width: 970px; + } +} +@media (min-width: 1200px) { + .container { + width: 1170px; + } +} +.container-fluid { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} +.row { + margin-right: -15px; + margin-left: -15px; +} +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; +} +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { + float: left; +} +.col-xs-12 { + width: 100%; +} +.col-xs-11 { + width: 91.66666667%; +} +.col-xs-10 { + width: 83.33333333%; +} +.col-xs-9 { + width: 75%; +} +.col-xs-8 { + width: 66.66666667%; +} +.col-xs-7 { + width: 58.33333333%; +} +.col-xs-6 { + width: 50%; +} +.col-xs-5 { + width: 41.66666667%; +} +.col-xs-4 { + width: 33.33333333%; +} +.col-xs-3 { + width: 25%; +} +.col-xs-2 { + width: 16.66666667%; +} +.col-xs-1 { + width: 8.33333333%; +} +.col-xs-pull-12 { + right: 100%; +} +.col-xs-pull-11 { + right: 91.66666667%; +} +.col-xs-pull-10 { + right: 83.33333333%; +} +.col-xs-pull-9 { + right: 75%; +} +.col-xs-pull-8 { + right: 66.66666667%; +} +.col-xs-pull-7 { + right: 58.33333333%; +} +.col-xs-pull-6 { + right: 50%; +} +.col-xs-pull-5 { + right: 41.66666667%; +} +.col-xs-pull-4 { + right: 33.33333333%; +} +.col-xs-pull-3 { + right: 25%; +} +.col-xs-pull-2 { + right: 16.66666667%; +} +.col-xs-pull-1 { + right: 8.33333333%; +} +.col-xs-pull-0 { + right: 0; +} +.col-xs-push-12 { + left: 100%; +} +.col-xs-push-11 { + left: 91.66666667%; +} +.col-xs-push-10 { + left: 83.33333333%; +} +.col-xs-push-9 { + left: 75%; +} +.col-xs-push-8 { + left: 66.66666667%; +} +.col-xs-push-7 { + left: 58.33333333%; +} +.col-xs-push-6 { + left: 50%; +} +.col-xs-push-5 { + left: 41.66666667%; +} +.col-xs-push-4 { + left: 33.33333333%; +} +.col-xs-push-3 { + left: 25%; +} +.col-xs-push-2 { + left: 16.66666667%; +} +.col-xs-push-1 { + left: 8.33333333%; +} +.col-xs-push-0 { + left: 0; +} +.col-xs-offset-12 { + margin-left: 100%; +} +.col-xs-offset-11 { + margin-left: 91.66666667%; +} +.col-xs-offset-10 { + margin-left: 83.33333333%; +} +.col-xs-offset-9 { + margin-left: 75%; +} +.col-xs-offset-8 { + margin-left: 66.66666667%; +} +.col-xs-offset-7 { + margin-left: 58.33333333%; +} +.col-xs-offset-6 { + margin-left: 50%; +} +.col-xs-offset-5 { + margin-left: 41.66666667%; +} +.col-xs-offset-4 { + margin-left: 33.33333333%; +} +.col-xs-offset-3 { + margin-left: 25%; +} +.col-xs-offset-2 { + margin-left: 16.66666667%; +} +.col-xs-offset-1 { + margin-left: 8.33333333%; +} +.col-xs-offset-0 { + margin-left: 0; +} +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { + float: left; + } + .col-sm-12 { + width: 100%; + } + .col-sm-11 { + width: 91.66666667%; + } + .col-sm-10 { + width: 83.33333333%; + } + .col-sm-9 { + width: 75%; + } + .col-sm-8 { + width: 66.66666667%; + } + .col-sm-7 { + width: 58.33333333%; + } + .col-sm-6 { + width: 50%; + } + .col-sm-5 { + width: 41.66666667%; + } + .col-sm-4 { + width: 33.33333333%; + } + .col-sm-3 { + width: 25%; + } + .col-sm-2 { + width: 16.66666667%; + } + .col-sm-1 { + width: 8.33333333%; + } + .col-sm-pull-12 { + right: 100%; + } + .col-sm-pull-11 { + right: 91.66666667%; + } + .col-sm-pull-10 { + right: 83.33333333%; + } + .col-sm-pull-9 { + right: 75%; + } + .col-sm-pull-8 { + right: 66.66666667%; + } + .col-sm-pull-7 { + right: 58.33333333%; + } + .col-sm-pull-6 { + right: 50%; + } + .col-sm-pull-5 { + right: 41.66666667%; + } + .col-sm-pull-4 { + right: 33.33333333%; + } + .col-sm-pull-3 { + right: 25%; + } + .col-sm-pull-2 { + right: 16.66666667%; + } + .col-sm-pull-1 { + right: 8.33333333%; + } + .col-sm-pull-0 { + right: 0; + } + .col-sm-push-12 { + left: 100%; + } + .col-sm-push-11 { + left: 91.66666667%; + } + .col-sm-push-10 { + left: 83.33333333%; + } + .col-sm-push-9 { + left: 75%; + } + .col-sm-push-8 { + left: 66.66666667%; + } + .col-sm-push-7 { + left: 58.33333333%; + } + .col-sm-push-6 { + left: 50%; + } + .col-sm-push-5 { + left: 41.66666667%; + } + .col-sm-push-4 { + left: 33.33333333%; + } + .col-sm-push-3 { + left: 25%; + } + .col-sm-push-2 { + left: 16.66666667%; + } + .col-sm-push-1 { + left: 8.33333333%; + } + .col-sm-push-0 { + left: 0; + } + .col-sm-offset-12 { + margin-left: 100%; + } + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + .col-sm-offset-9 { + margin-left: 75%; + } + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + .col-sm-offset-6 { + margin-left: 50%; + } + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + .col-sm-offset-3 { + margin-left: 25%; + } + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + .col-sm-offset-0 { + margin-left: 0; + } +} +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { + float: left; + } + .col-md-12 { + width: 100%; + } + .col-md-11 { + width: 91.66666667%; + } + .col-md-10 { + width: 83.33333333%; + } + .col-md-9 { + width: 75%; + } + .col-md-8 { + width: 66.66666667%; + } + .col-md-7 { + width: 58.33333333%; + } + .col-md-6 { + width: 50%; + } + .col-md-5 { + width: 41.66666667%; + } + .col-md-4 { + width: 33.33333333%; + } + .col-md-3 { + width: 25%; + } + .col-md-2 { + width: 16.66666667%; + } + .col-md-1 { + width: 8.33333333%; + } + .col-md-pull-12 { + right: 100%; + } + .col-md-pull-11 { + right: 91.66666667%; + } + .col-md-pull-10 { + right: 83.33333333%; + } + .col-md-pull-9 { + right: 75%; + } + .col-md-pull-8 { + right: 66.66666667%; + } + .col-md-pull-7 { + right: 58.33333333%; + } + .col-md-pull-6 { + right: 50%; + } + .col-md-pull-5 { + right: 41.66666667%; + } + .col-md-pull-4 { + right: 33.33333333%; + } + .col-md-pull-3 { + right: 25%; + } + .col-md-pull-2 { + right: 16.66666667%; + } + .col-md-pull-1 { + right: 8.33333333%; + } + .col-md-pull-0 { + right: 0; + } + .col-md-push-12 { + left: 100%; + } + .col-md-push-11 { + left: 91.66666667%; + } + .col-md-push-10 { + left: 83.33333333%; + } + .col-md-push-9 { + left: 75%; + } + .col-md-push-8 { + left: 66.66666667%; + } + .col-md-push-7 { + left: 58.33333333%; + } + .col-md-push-6 { + left: 50%; + } + .col-md-push-5 { + left: 41.66666667%; + } + .col-md-push-4 { + left: 33.33333333%; + } + .col-md-push-3 { + left: 25%; + } + .col-md-push-2 { + left: 16.66666667%; + } + .col-md-push-1 { + left: 8.33333333%; + } + .col-md-push-0 { + left: 0; + } + .col-md-offset-12 { + margin-left: 100%; + } + .col-md-offset-11 { + margin-left: 91.66666667%; + } + .col-md-offset-10 { + margin-left: 83.33333333%; + } + .col-md-offset-9 { + margin-left: 75%; + } + .col-md-offset-8 { + margin-left: 66.66666667%; + } + .col-md-offset-7 { + margin-left: 58.33333333%; + } + .col-md-offset-6 { + margin-left: 50%; + } + .col-md-offset-5 { + margin-left: 41.66666667%; + } + .col-md-offset-4 { + margin-left: 33.33333333%; + } + .col-md-offset-3 { + margin-left: 25%; + } + .col-md-offset-2 { + margin-left: 16.66666667%; + } + .col-md-offset-1 { + margin-left: 8.33333333%; + } + .col-md-offset-0 { + margin-left: 0; + } +} +@media (min-width: 1200px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { + float: left; + } + .col-lg-12 { + width: 100%; + } + .col-lg-11 { + width: 91.66666667%; + } + .col-lg-10 { + width: 83.33333333%; + } + .col-lg-9 { + width: 75%; + } + .col-lg-8 { + width: 66.66666667%; + } + .col-lg-7 { + width: 58.33333333%; + } + .col-lg-6 { + width: 50%; + } + .col-lg-5 { + width: 41.66666667%; + } + .col-lg-4 { + width: 33.33333333%; + } + .col-lg-3 { + width: 25%; + } + .col-lg-2 { + width: 16.66666667%; + } + .col-lg-1 { + width: 8.33333333%; + } + .col-lg-pull-12 { + right: 100%; + } + .col-lg-pull-11 { + right: 91.66666667%; + } + .col-lg-pull-10 { + right: 83.33333333%; + } + .col-lg-pull-9 { + right: 75%; + } + .col-lg-pull-8 { + right: 66.66666667%; + } + .col-lg-pull-7 { + right: 58.33333333%; + } + .col-lg-pull-6 { + right: 50%; + } + .col-lg-pull-5 { + right: 41.66666667%; + } + .col-lg-pull-4 { + right: 33.33333333%; + } + .col-lg-pull-3 { + right: 25%; + } + .col-lg-pull-2 { + right: 16.66666667%; + } + .col-lg-pull-1 { + right: 8.33333333%; + } + .col-lg-pull-0 { + right: 0; + } + .col-lg-push-12 { + left: 100%; + } + .col-lg-push-11 { + left: 91.66666667%; + } + .col-lg-push-10 { + left: 83.33333333%; + } + .col-lg-push-9 { + left: 75%; + } + .col-lg-push-8 { + left: 66.66666667%; + } + .col-lg-push-7 { + left: 58.33333333%; + } + .col-lg-push-6 { + left: 50%; + } + .col-lg-push-5 { + left: 41.66666667%; + } + .col-lg-push-4 { + left: 33.33333333%; + } + .col-lg-push-3 { + left: 25%; + } + .col-lg-push-2 { + left: 16.66666667%; + } + .col-lg-push-1 { + left: 8.33333333%; + } + .col-lg-push-0 { + left: 0; + } + .col-lg-offset-12 { + margin-left: 100%; + } + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + .col-lg-offset-9 { + margin-left: 75%; + } + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + .col-lg-offset-6 { + margin-left: 50%; + } + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + .col-lg-offset-3 { + margin-left: 25%; + } + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + .col-lg-offset-0 { + margin-left: 0; + } +} +table { + max-width: 100%; + background-color: transparent; +} +th { + text-align: left; +} +.table { + width: 100%; + margin-bottom: 20px; +} +.table > thead > tr > th, +.table > tbody > tr > th, +.table > tfoot > tr > th, +.table > thead > tr > td, +.table > tbody > tr > td, +.table > tfoot > tr > td { + padding: 8px; + line-height: 1.42857143; + vertical-align: top; + border-top: 1px solid #ddd; +} +.table > thead > tr > th { + vertical-align: bottom; + border-bottom: 2px solid #ddd; +} +.table > caption + thead > tr:first-child > th, +.table > colgroup + thead > tr:first-child > th, +.table > thead:first-child > tr:first-child > th, +.table > caption + thead > tr:first-child > td, +.table > colgroup + thead > tr:first-child > td, +.table > thead:first-child > tr:first-child > td { + border-top: 0; +} +.table > tbody + tbody { + border-top: 2px solid #ddd; +} +.table .table { + background-color: #fff; +} +.table-condensed > thead > tr > th, +.table-condensed > tbody > tr > th, +.table-condensed > tfoot > tr > th, +.table-condensed > thead > tr > td, +.table-condensed > tbody > tr > td, +.table-condensed > tfoot > tr > td { + padding: 5px; +} +.table-bordered { + border: 1px solid #ddd; +} +.table-bordered > thead > tr > th, +.table-bordered > tbody > tr > th, +.table-bordered > tfoot > tr > th, +.table-bordered > thead > tr > td, +.table-bordered > tbody > tr > td, +.table-bordered > tfoot > tr > td { + border: 1px solid #ddd; +} +.table-bordered > thead > tr > th, +.table-bordered > thead > tr > td { + border-bottom-width: 2px; +} +.table-striped > tbody > tr:nth-child(odd) > td, +.table-striped > tbody > tr:nth-child(odd) > th { + background-color: #f9f9f9; +} +.table-hover > tbody > tr:hover > td, +.table-hover > tbody > tr:hover > th { + background-color: #f5f5f5; +} +table col[class*="col-"] { + position: static; + display: table-column; + float: none; +} +table td[class*="col-"], +table th[class*="col-"] { + position: static; + display: table-cell; + float: none; +} +.table > thead > tr > td.active, +.table > tbody > tr > td.active, +.table > tfoot > tr > td.active, +.table > thead > tr > th.active, +.table > tbody > tr > th.active, +.table > tfoot > tr > th.active, +.table > thead > tr.active > td, +.table > tbody > tr.active > td, +.table > tfoot > tr.active > td, +.table > thead > tr.active > th, +.table > tbody > tr.active > th, +.table > tfoot > tr.active > th { + background-color: #f5f5f5; +} +.table-hover > tbody > tr > td.active:hover, +.table-hover > tbody > tr > th.active:hover, +.table-hover > tbody > tr.active:hover > td, +.table-hover > tbody > tr.active:hover > th { + background-color: #e8e8e8; +} +.table > thead > tr > td.success, +.table > tbody > tr > td.success, +.table > tfoot > tr > td.success, +.table > thead > tr > th.success, +.table > tbody > tr > th.success, +.table > tfoot > tr > th.success, +.table > thead > tr.success > td, +.table > tbody > tr.success > td, +.table > tfoot > tr.success > td, +.table > thead > tr.success > th, +.table > tbody > tr.success > th, +.table > tfoot > tr.success > th { + background-color: #dff0d8; +} +.table-hover > tbody > tr > td.success:hover, +.table-hover > tbody > tr > th.success:hover, +.table-hover > tbody > tr.success:hover > td, +.table-hover > tbody > tr.success:hover > th { + background-color: #d0e9c6; +} +.table > thead > tr > td.info, +.table > tbody > tr > td.info, +.table > tfoot > tr > td.info, +.table > thead > tr > th.info, +.table > tbody > tr > th.info, +.table > tfoot > tr > th.info, +.table > thead > tr.info > td, +.table > tbody > tr.info > td, +.table > tfoot > tr.info > td, +.table > thead > tr.info > th, +.table > tbody > tr.info > th, +.table > tfoot > tr.info > th { + background-color: #d9edf7; +} +.table-hover > tbody > tr > td.info:hover, +.table-hover > tbody > tr > th.info:hover, +.table-hover > tbody > tr.info:hover > td, +.table-hover > tbody > tr.info:hover > th { + background-color: #c4e3f3; +} +.table > thead > tr > td.warning, +.table > tbody > tr > td.warning, +.table > tfoot > tr > td.warning, +.table > thead > tr > th.warning, +.table > tbody > tr > th.warning, +.table > tfoot > tr > th.warning, +.table > thead > tr.warning > td, +.table > tbody > tr.warning > td, +.table > tfoot > tr.warning > td, +.table > thead > tr.warning > th, +.table > tbody > tr.warning > th, +.table > tfoot > tr.warning > th { + background-color: #fcf8e3; +} +.table-hover > tbody > tr > td.warning:hover, +.table-hover > tbody > tr > th.warning:hover, +.table-hover > tbody > tr.warning:hover > td, +.table-hover > tbody > tr.warning:hover > th { + background-color: #faf2cc; +} +.table > thead > tr > td.danger, +.table > tbody > tr > td.danger, +.table > tfoot > tr > td.danger, +.table > thead > tr > th.danger, +.table > tbody > tr > th.danger, +.table > tfoot > tr > th.danger, +.table > thead > tr.danger > td, +.table > tbody > tr.danger > td, +.table > tfoot > tr.danger > td, +.table > thead > tr.danger > th, +.table > tbody > tr.danger > th, +.table > tfoot > tr.danger > th { + background-color: #f2dede; +} +.table-hover > tbody > tr > td.danger:hover, +.table-hover > tbody > tr > th.danger:hover, +.table-hover > tbody > tr.danger:hover > td, +.table-hover > tbody > tr.danger:hover > th { + background-color: #ebcccc; +} +@media (max-width: 767px) { + .table-responsive { + width: 100%; + margin-bottom: 15px; + overflow-x: scroll; + overflow-y: hidden; + -webkit-overflow-scrolling: touch; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #ddd; + } + .table-responsive > .table { + margin-bottom: 0; + } + .table-responsive > .table > thead > tr > th, + .table-responsive > .table > tbody > tr > th, + .table-responsive > .table > tfoot > tr > th, + .table-responsive > .table > thead > tr > td, + .table-responsive > .table > tbody > tr > td, + .table-responsive > .table > tfoot > tr > td { + white-space: nowrap; + } + .table-responsive > .table-bordered { + border: 0; + } + .table-responsive > .table-bordered > thead > tr > th:first-child, + .table-responsive > .table-bordered > tbody > tr > th:first-child, + .table-responsive > .table-bordered > tfoot > tr > th:first-child, + .table-responsive > .table-bordered > thead > tr > td:first-child, + .table-responsive > .table-bordered > tbody > tr > td:first-child, + .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; + } + .table-responsive > .table-bordered > thead > tr > th:last-child, + .table-responsive > .table-bordered > tbody > tr > th:last-child, + .table-responsive > .table-bordered > tfoot > tr > th:last-child, + .table-responsive > .table-bordered > thead > tr > td:last-child, + .table-responsive > .table-bordered > tbody > tr > td:last-child, + .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; + } + .table-responsive > .table-bordered > tbody > tr:last-child > th, + .table-responsive > .table-bordered > tfoot > tr:last-child > th, + .table-responsive > .table-bordered > tbody > tr:last-child > td, + .table-responsive > .table-bordered > tfoot > tr:last-child > td { + border-bottom: 0; + } +} +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0; +} +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 20px; + font-size: 21px; + line-height: inherit; + color: #333; + border: 0; + border-bottom: 1px solid #e5e5e5; +} +label { + display: inline-block; + margin-bottom: 5px; + font-weight: bold; +} +input[type="search"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +input[type="radio"], +input[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + /* IE8-9 */ + line-height: normal; +} +input[type="file"] { + display: block; +} +input[type="range"] { + display: block; + width: 100%; +} +select[multiple], +select[size] { + height: auto; +} +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +output { + display: block; + padding-top: 7px; + font-size: 14px; + line-height: 1.42857143; + color: #555; +} +.form-control { + display: block; + width: 100%; + height: 34px; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; +} +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); +} +.form-control::-moz-placeholder { + color: #999; + opacity: 1; +} +.form-control:-ms-input-placeholder { + color: #999; +} +.form-control::-webkit-input-placeholder { + color: #999; +} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control { + cursor: not-allowed; + background-color: #eee; + opacity: 1; +} +textarea.form-control { + height: auto; +} +input[type="search"] { + -webkit-appearance: none; +} +input[type="date"] { + line-height: 34px; +} +.form-group { + margin-bottom: 15px; +} +.radio, +.checkbox { + display: block; + min-height: 20px; + padding-left: 20px; + margin-top: 10px; + margin-bottom: 10px; +} +.radio label, +.checkbox label { + display: inline; + font-weight: normal; + cursor: pointer; +} +.radio input[type="radio"], +.radio-inline input[type="radio"], +.checkbox input[type="checkbox"], +.checkbox-inline input[type="checkbox"] { + float: left; + margin-left: -20px; +} +.radio + .radio, +.checkbox + .checkbox { + margin-top: -5px; +} +.radio-inline, +.checkbox-inline { + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + vertical-align: middle; + cursor: pointer; +} +.radio-inline + .radio-inline, +.checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; +} +input[type="radio"][disabled], +input[type="checkbox"][disabled], +.radio[disabled], +.radio-inline[disabled], +.checkbox[disabled], +.checkbox-inline[disabled], +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"], +fieldset[disabled] .radio, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox, +fieldset[disabled] .checkbox-inline { + cursor: not-allowed; +} +.input-sm { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-sm { + height: 30px; + line-height: 30px; +} +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} +.input-lg { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px; +} +select.input-lg { + height: 46px; + line-height: 46px; +} +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} +.has-feedback { + position: relative; +} +.has-feedback .form-control { + padding-right: 42.5px; +} +.has-feedback .form-control-feedback { + position: absolute; + top: 25px; + right: 0; + display: block; + width: 34px; + height: 34px; + line-height: 34px; + text-align: center; +} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline { + color: #3c763d; +} +.has-success .form-control { + border-color: #3c763d; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-success .form-control:focus { + border-color: #2b542c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; +} +.has-success .input-group-addon { + color: #3c763d; + background-color: #dff0d8; + border-color: #3c763d; +} +.has-success .form-control-feedback { + color: #3c763d; +} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline { + color: #8a6d3b; +} +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; +} +.has-warning .input-group-addon { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #8a6d3b; +} +.has-warning .form-control-feedback { + color: #8a6d3b; +} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline { + color: #a94442; +} +.has-error .form-control { + border-color: #a94442; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); +} +.has-error .form-control:focus { + border-color: #843534; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; +} +.has-error .input-group-addon { + color: #a94442; + background-color: #f2dede; + border-color: #a94442; +} +.has-error .form-control-feedback { + color: #a94442; +} +.form-control-static { + margin-bottom: 0; +} +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #737373; +} +@media (min-width: 768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .form-inline .input-group > .form-control { + width: 100%; + } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio, + .form-inline .checkbox { + display: inline-block; + padding-left: 0; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"] { + float: none; + margin-left: 0; + } + .form-inline .has-feedback .form-control-feedback { + top: 0; + } +} +.form-horizontal .control-label, +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline { + padding-top: 7px; + margin-top: 0; + margin-bottom: 0; +} +.form-horizontal .radio, +.form-horizontal .checkbox { + min-height: 27px; +} +.form-horizontal .form-group { + margin-right: -15px; + margin-left: -15px; +} +.form-horizontal .form-control-static { + padding-top: 7px; +} +@media (min-width: 768px) { + .form-horizontal .control-label { + text-align: right; + } +} +.form-horizontal .has-feedback .form-control-feedback { + top: 0; + right: 15px; +} +.btn { + display: inline-block; + padding: 6px 12px; + margin-bottom: 0; + font-size: 14px; + font-weight: normal; + line-height: 1.42857143; + text-align: center; + white-space: nowrap; + vertical-align: middle; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.btn:focus, +.btn:active:focus, +.btn.active:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.btn:hover, +.btn:focus { + color: #333; + text-decoration: none; +} +.btn:active, +.btn.active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn.disabled, +.btn[disabled], +fieldset[disabled] .btn { + pointer-events: none; + cursor: not-allowed; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; + opacity: .65; +} +.btn-default { + color: #333; + background-color: #fff; + border-color: #ccc; +} +.btn-default:hover, +.btn-default:focus, +.btn-default:active, +.btn-default.active, +.open .dropdown-toggle.btn-default { + color: #333; + background-color: #ebebeb; + border-color: #adadad; +} +.btn-default:active, +.btn-default.active, +.open .dropdown-toggle.btn-default { + background-image: none; +} +.btn-default.disabled, +.btn-default[disabled], +fieldset[disabled] .btn-default, +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active { + background-color: #fff; + border-color: #ccc; +} +.btn-default .badge { + color: #fff; + background-color: #333; +} +.btn-primary { + color: #fff; + background-color: #428bca; + border-color: #357ebd; +} +.btn-primary:hover, +.btn-primary:focus, +.btn-primary:active, +.btn-primary.active, +.open .dropdown-toggle.btn-primary { + color: #fff; + background-color: #3276b1; + border-color: #285e8e; +} +.btn-primary:active, +.btn-primary.active, +.open .dropdown-toggle.btn-primary { + background-image: none; +} +.btn-primary.disabled, +.btn-primary[disabled], +fieldset[disabled] .btn-primary, +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled:active, +.btn-primary[disabled]:active, +fieldset[disabled] .btn-primary:active, +.btn-primary.disabled.active, +.btn-primary[disabled].active, +fieldset[disabled] .btn-primary.active { + background-color: #428bca; + border-color: #357ebd; +} +.btn-primary .badge { + color: #428bca; + background-color: #fff; +} +.btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success:hover, +.btn-success:focus, +.btn-success:active, +.btn-success.active, +.open .dropdown-toggle.btn-success { + color: #fff; + background-color: #47a447; + border-color: #398439; +} +.btn-success:active, +.btn-success.active, +.open .dropdown-toggle.btn-success { + background-image: none; +} +.btn-success.disabled, +.btn-success[disabled], +fieldset[disabled] .btn-success, +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled:active, +.btn-success[disabled]:active, +fieldset[disabled] .btn-success:active, +.btn-success.disabled.active, +.btn-success[disabled].active, +fieldset[disabled] .btn-success.active { + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success .badge { + color: #5cb85c; + background-color: #fff; +} +.btn-info { + color: #fff; + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info:hover, +.btn-info:focus, +.btn-info:active, +.btn-info.active, +.open .dropdown-toggle.btn-info { + color: #fff; + background-color: #39b3d7; + border-color: #269abc; +} +.btn-info:active, +.btn-info.active, +.open .dropdown-toggle.btn-info { + background-image: none; +} +.btn-info.disabled, +.btn-info[disabled], +fieldset[disabled] .btn-info, +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled:active, +.btn-info[disabled]:active, +fieldset[disabled] .btn-info:active, +.btn-info.disabled.active, +.btn-info[disabled].active, +fieldset[disabled] .btn-info.active { + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info .badge { + color: #5bc0de; + background-color: #fff; +} +.btn-warning { + color: #fff; + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning:hover, +.btn-warning:focus, +.btn-warning:active, +.btn-warning.active, +.open .dropdown-toggle.btn-warning { + color: #fff; + background-color: #ed9c28; + border-color: #d58512; +} +.btn-warning:active, +.btn-warning.active, +.open .dropdown-toggle.btn-warning { + background-image: none; +} +.btn-warning.disabled, +.btn-warning[disabled], +fieldset[disabled] .btn-warning, +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled:active, +.btn-warning[disabled]:active, +fieldset[disabled] .btn-warning:active, +.btn-warning.disabled.active, +.btn-warning[disabled].active, +fieldset[disabled] .btn-warning.active { + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning .badge { + color: #f0ad4e; + background-color: #fff; +} +.btn-danger { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger:hover, +.btn-danger:focus, +.btn-danger:active, +.btn-danger.active, +.open .dropdown-toggle.btn-danger { + color: #fff; + background-color: #d2322d; + border-color: #ac2925; +} +.btn-danger:active, +.btn-danger.active, +.open .dropdown-toggle.btn-danger { + background-image: none; +} +.btn-danger.disabled, +.btn-danger[disabled], +fieldset[disabled] .btn-danger, +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled:active, +.btn-danger[disabled]:active, +fieldset[disabled] .btn-danger:active, +.btn-danger.disabled.active, +.btn-danger[disabled].active, +fieldset[disabled] .btn-danger.active { + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger .badge { + color: #d9534f; + background-color: #fff; +} +.btn-link { + font-weight: normal; + color: #428bca; + cursor: pointer; + border-radius: 0; +} +.btn-link, +.btn-link:active, +.btn-link[disabled], +fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-link, +.btn-link:hover, +.btn-link:focus, +.btn-link:active { + border-color: transparent; +} +.btn-link:hover, +.btn-link:focus { + color: #2a6496; + text-decoration: underline; + background-color: transparent; +} +.btn-link[disabled]:hover, +fieldset[disabled] .btn-link:hover, +.btn-link[disabled]:focus, +fieldset[disabled] .btn-link:focus { + color: #999; + text-decoration: none; +} +.btn-lg, +.btn-group-lg > .btn { + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px; +} +.btn-sm, +.btn-group-sm > .btn { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-xs, +.btn-group-xs > .btn { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +.btn-block { + display: block; + width: 100%; + padding-right: 0; + padding-left: 0; +} +.btn-block + .btn-block { + margin-top: 5px; +} +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block { + width: 100%; +} +.fade { + opacity: 0; + -webkit-transition: opacity .15s linear; + transition: opacity .15s linear; +} +.fade.in { + opacity: 1; +} +.collapse { + display: none; +} +.collapse.in { + display: block; +} +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition: height .35s ease; + transition: height .35s ease; +} +@font-face { + font-family: 'Glyphicons Halflings'; + + src: url('../fonts/glyphicons-halflings-regular.eot'); + src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); +} +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.glyphicon-asterisk:before { + content: "\2a"; +} +.glyphicon-plus:before { + content: "\2b"; +} +.glyphicon-euro:before { + content: "\20ac"; +} +.glyphicon-minus:before { + content: "\2212"; +} +.glyphicon-cloud:before { + content: "\2601"; +} +.glyphicon-envelope:before { + content: "\2709"; +} +.glyphicon-pencil:before { + content: "\270f"; +} +.glyphicon-glass:before { + content: "\e001"; +} +.glyphicon-music:before { + content: "\e002"; +} +.glyphicon-search:before { + content: "\e003"; +} +.glyphicon-heart:before { + content: "\e005"; +} +.glyphicon-star:before { + content: "\e006"; +} +.glyphicon-star-empty:before { + content: "\e007"; +} +.glyphicon-user:before { + content: "\e008"; +} +.glyphicon-film:before { + content: "\e009"; +} +.glyphicon-th-large:before { + content: "\e010"; +} +.glyphicon-th:before { + content: "\e011"; +} +.glyphicon-th-list:before { + content: "\e012"; +} +.glyphicon-ok:before { + content: "\e013"; +} +.glyphicon-remove:before { + content: "\e014"; +} +.glyphicon-zoom-in:before { + content: "\e015"; +} +.glyphicon-zoom-out:before { + content: "\e016"; +} +.glyphicon-off:before { + content: "\e017"; +} +.glyphicon-signal:before { + content: "\e018"; +} +.glyphicon-cog:before { + content: "\e019"; +} +.glyphicon-trash:before { + content: "\e020"; +} +.glyphicon-home:before { + content: "\e021"; +} +.glyphicon-file:before { + content: "\e022"; +} +.glyphicon-time:before { + content: "\e023"; +} +.glyphicon-road:before { + content: "\e024"; +} +.glyphicon-download-alt:before { + content: "\e025"; +} +.glyphicon-download:before { + content: "\e026"; +} +.glyphicon-upload:before { + content: "\e027"; +} +.glyphicon-inbox:before { + content: "\e028"; +} +.glyphicon-play-circle:before { + content: "\e029"; +} +.glyphicon-repeat:before { + content: "\e030"; +} +.glyphicon-refresh:before { + content: "\e031"; +} +.glyphicon-list-alt:before { + content: "\e032"; +} +.glyphicon-lock:before { + content: "\e033"; +} +.glyphicon-flag:before { + content: "\e034"; +} +.glyphicon-headphones:before { + content: "\e035"; +} +.glyphicon-volume-off:before { + content: "\e036"; +} +.glyphicon-volume-down:before { + content: "\e037"; +} +.glyphicon-volume-up:before { + content: "\e038"; +} +.glyphicon-qrcode:before { + content: "\e039"; +} +.glyphicon-barcode:before { + content: "\e040"; +} +.glyphicon-tag:before { + content: "\e041"; +} +.glyphicon-tags:before { + content: "\e042"; +} +.glyphicon-book:before { + content: "\e043"; +} +.glyphicon-bookmark:before { + content: "\e044"; +} +.glyphicon-print:before { + content: "\e045"; +} +.glyphicon-camera:before { + content: "\e046"; +} +.glyphicon-font:before { + content: "\e047"; +} +.glyphicon-bold:before { + content: "\e048"; +} +.glyphicon-italic:before { + content: "\e049"; +} +.glyphicon-text-height:before { + content: "\e050"; +} +.glyphicon-text-width:before { + content: "\e051"; +} +.glyphicon-align-left:before { + content: "\e052"; +} +.glyphicon-align-center:before { + content: "\e053"; +} +.glyphicon-align-right:before { + content: "\e054"; +} +.glyphicon-align-justify:before { + content: "\e055"; +} +.glyphicon-list:before { + content: "\e056"; +} +.glyphicon-indent-left:before { + content: "\e057"; +} +.glyphicon-indent-right:before { + content: "\e058"; +} +.glyphicon-facetime-video:before { + content: "\e059"; +} +.glyphicon-picture:before { + content: "\e060"; +} +.glyphicon-map-marker:before { + content: "\e062"; +} +.glyphicon-adjust:before { + content: "\e063"; +} +.glyphicon-tint:before { + content: "\e064"; +} +.glyphicon-edit:before { + content: "\e065"; +} +.glyphicon-share:before { + content: "\e066"; +} +.glyphicon-check:before { + content: "\e067"; +} +.glyphicon-move:before { + content: "\e068"; +} +.glyphicon-step-backward:before { + content: "\e069"; +} +.glyphicon-fast-backward:before { + content: "\e070"; +} +.glyphicon-backward:before { + content: "\e071"; +} +.glyphicon-play:before { + content: "\e072"; +} +.glyphicon-pause:before { + content: "\e073"; +} +.glyphicon-stop:before { + content: "\e074"; +} +.glyphicon-forward:before { + content: "\e075"; +} +.glyphicon-fast-forward:before { + content: "\e076"; +} +.glyphicon-step-forward:before { + content: "\e077"; +} +.glyphicon-eject:before { + content: "\e078"; +} +.glyphicon-chevron-left:before { + content: "\e079"; +} +.glyphicon-chevron-right:before { + content: "\e080"; +} +.glyphicon-plus-sign:before { + content: "\e081"; +} +.glyphicon-minus-sign:before { + content: "\e082"; +} +.glyphicon-remove-sign:before { + content: "\e083"; +} +.glyphicon-ok-sign:before { + content: "\e084"; +} +.glyphicon-question-sign:before { + content: "\e085"; +} +.glyphicon-info-sign:before { + content: "\e086"; +} +.glyphicon-screenshot:before { + content: "\e087"; +} +.glyphicon-remove-circle:before { + content: "\e088"; +} +.glyphicon-ok-circle:before { + content: "\e089"; +} +.glyphicon-ban-circle:before { + content: "\e090"; +} +.glyphicon-arrow-left:before { + content: "\e091"; +} +.glyphicon-arrow-right:before { + content: "\e092"; +} +.glyphicon-arrow-up:before { + content: "\e093"; +} +.glyphicon-arrow-down:before { + content: "\e094"; +} +.glyphicon-share-alt:before { + content: "\e095"; +} +.glyphicon-resize-full:before { + content: "\e096"; +} +.glyphicon-resize-small:before { + content: "\e097"; +} +.glyphicon-exclamation-sign:before { + content: "\e101"; +} +.glyphicon-gift:before { + content: "\e102"; +} +.glyphicon-leaf:before { + content: "\e103"; +} +.glyphicon-fire:before { + content: "\e104"; +} +.glyphicon-eye-open:before { + content: "\e105"; +} +.glyphicon-eye-close:before { + content: "\e106"; +} +.glyphicon-warning-sign:before { + content: "\e107"; +} +.glyphicon-plane:before { + content: "\e108"; +} +.glyphicon-calendar:before { + content: "\e109"; +} +.glyphicon-random:before { + content: "\e110"; +} +.glyphicon-comment:before { + content: "\e111"; +} +.glyphicon-magnet:before { + content: "\e112"; +} +.glyphicon-chevron-up:before { + content: "\e113"; +} +.glyphicon-chevron-down:before { + content: "\e114"; +} +.glyphicon-retweet:before { + content: "\e115"; +} +.glyphicon-shopping-cart:before { + content: "\e116"; +} +.glyphicon-folder-close:before { + content: "\e117"; +} +.glyphicon-folder-open:before { + content: "\e118"; +} +.glyphicon-resize-vertical:before { + content: "\e119"; +} +.glyphicon-resize-horizontal:before { + content: "\e120"; +} +.glyphicon-hdd:before { + content: "\e121"; +} +.glyphicon-bullhorn:before { + content: "\e122"; +} +.glyphicon-bell:before { + content: "\e123"; +} +.glyphicon-certificate:before { + content: "\e124"; +} +.glyphicon-thumbs-up:before { + content: "\e125"; +} +.glyphicon-thumbs-down:before { + content: "\e126"; +} +.glyphicon-hand-right:before { + content: "\e127"; +} +.glyphicon-hand-left:before { + content: "\e128"; +} +.glyphicon-hand-up:before { + content: "\e129"; +} +.glyphicon-hand-down:before { + content: "\e130"; +} +.glyphicon-circle-arrow-right:before { + content: "\e131"; +} +.glyphicon-circle-arrow-left:before { + content: "\e132"; +} +.glyphicon-circle-arrow-up:before { + content: "\e133"; +} +.glyphicon-circle-arrow-down:before { + content: "\e134"; +} +.glyphicon-globe:before { + content: "\e135"; +} +.glyphicon-wrench:before { + content: "\e136"; +} +.glyphicon-tasks:before { + content: "\e137"; +} +.glyphicon-filter:before { + content: "\e138"; +} +.glyphicon-briefcase:before { + content: "\e139"; +} +.glyphicon-fullscreen:before { + content: "\e140"; +} +.glyphicon-dashboard:before { + content: "\e141"; +} +.glyphicon-paperclip:before { + content: "\e142"; +} +.glyphicon-heart-empty:before { + content: "\e143"; +} +.glyphicon-link:before { + content: "\e144"; +} +.glyphicon-phone:before { + content: "\e145"; +} +.glyphicon-pushpin:before { + content: "\e146"; +} +.glyphicon-usd:before { + content: "\e148"; +} +.glyphicon-gbp:before { + content: "\e149"; +} +.glyphicon-sort:before { + content: "\e150"; +} +.glyphicon-sort-by-alphabet:before { + content: "\e151"; +} +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; +} +.glyphicon-sort-by-order:before { + content: "\e153"; +} +.glyphicon-sort-by-order-alt:before { + content: "\e154"; +} +.glyphicon-sort-by-attributes:before { + content: "\e155"; +} +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; +} +.glyphicon-unchecked:before { + content: "\e157"; +} +.glyphicon-expand:before { + content: "\e158"; +} +.glyphicon-collapse-down:before { + content: "\e159"; +} +.glyphicon-collapse-up:before { + content: "\e160"; +} +.glyphicon-log-in:before { + content: "\e161"; +} +.glyphicon-flash:before { + content: "\e162"; +} +.glyphicon-log-out:before { + content: "\e163"; +} +.glyphicon-new-window:before { + content: "\e164"; +} +.glyphicon-record:before { + content: "\e165"; +} +.glyphicon-save:before { + content: "\e166"; +} +.glyphicon-open:before { + content: "\e167"; +} +.glyphicon-saved:before { + content: "\e168"; +} +.glyphicon-import:before { + content: "\e169"; +} +.glyphicon-export:before { + content: "\e170"; +} +.glyphicon-send:before { + content: "\e171"; +} +.glyphicon-floppy-disk:before { + content: "\e172"; +} +.glyphicon-floppy-saved:before { + content: "\e173"; +} +.glyphicon-floppy-remove:before { + content: "\e174"; +} +.glyphicon-floppy-save:before { + content: "\e175"; +} +.glyphicon-floppy-open:before { + content: "\e176"; +} +.glyphicon-credit-card:before { + content: "\e177"; +} +.glyphicon-transfer:before { + content: "\e178"; +} +.glyphicon-cutlery:before { + content: "\e179"; +} +.glyphicon-header:before { + content: "\e180"; +} +.glyphicon-compressed:before { + content: "\e181"; +} +.glyphicon-earphone:before { + content: "\e182"; +} +.glyphicon-phone-alt:before { + content: "\e183"; +} +.glyphicon-tower:before { + content: "\e184"; +} +.glyphicon-stats:before { + content: "\e185"; +} +.glyphicon-sd-video:before { + content: "\e186"; +} +.glyphicon-hd-video:before { + content: "\e187"; +} +.glyphicon-subtitles:before { + content: "\e188"; +} +.glyphicon-sound-stereo:before { + content: "\e189"; +} +.glyphicon-sound-dolby:before { + content: "\e190"; +} +.glyphicon-sound-5-1:before { + content: "\e191"; +} +.glyphicon-sound-6-1:before { + content: "\e192"; +} +.glyphicon-sound-7-1:before { + content: "\e193"; +} +.glyphicon-copyright-mark:before { + content: "\e194"; +} +.glyphicon-registration-mark:before { + content: "\e195"; +} +.glyphicon-cloud-download:before { + content: "\e197"; +} +.glyphicon-cloud-upload:before { + content: "\e198"; +} +.glyphicon-tree-conifer:before { + content: "\e199"; +} +.glyphicon-tree-deciduous:before { + content: "\e200"; +} +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} +.dropdown { + position: relative; +} +.dropdown-toggle:focus { + outline: 0; +} +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + font-size: 14px; + list-style: none; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, .15); + border-radius: 4px; + -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); + box-shadow: 0 6px 12px rgba(0, 0, 0, .175); +} +.dropdown-menu.pull-right { + right: 0; + left: auto; +} +.dropdown-menu .divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5; +} +.dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.42857143; + color: #333; + white-space: nowrap; +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus { + color: #262626; + text-decoration: none; + background-color: #f5f5f5; +} +.dropdown-menu > .active > a, +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { + color: #fff; + text-decoration: none; + background-color: #428bca; + outline: 0; +} +.dropdown-menu > .disabled > a, +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + color: #999; +} +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { + text-decoration: none; + cursor: not-allowed; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); +} +.open > .dropdown-menu { + display: block; +} +.open > a { + outline: 0; +} +.dropdown-menu-right { + right: 0; + left: auto; +} +.dropdown-menu-left { + right: auto; + left: 0; +} +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 12px; + line-height: 1.42857143; + color: #999; +} +.dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990; +} +.pull-right > .dropdown-menu { + right: 0; + left: auto; +} +.dropup .caret, +.navbar-fixed-bottom .dropdown .caret { + content: ""; + border-top: 0; + border-bottom: 4px solid; +} +.dropup .dropdown-menu, +.navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px; +} +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + right: 0; + left: auto; + } + .navbar-right .dropdown-menu-left { + right: auto; + left: 0; + } +} +.btn-group, +.btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle; +} +.btn-group > .btn, +.btn-group-vertical > .btn { + position: relative; + float: left; +} +.btn-group > .btn:hover, +.btn-group-vertical > .btn:hover, +.btn-group > .btn:focus, +.btn-group-vertical > .btn:focus, +.btn-group > .btn:active, +.btn-group-vertical > .btn:active, +.btn-group > .btn.active, +.btn-group-vertical > .btn.active { + z-index: 2; +} +.btn-group > .btn:focus, +.btn-group-vertical > .btn:focus { + outline: none; +} +.btn-group .btn + .btn, +.btn-group .btn + .btn-group, +.btn-group .btn-group + .btn, +.btn-group .btn-group + .btn-group { + margin-left: -1px; +} +.btn-toolbar { + margin-left: -5px; +} +.btn-toolbar .btn-group, +.btn-toolbar .input-group { + float: left; +} +.btn-toolbar > .btn, +.btn-toolbar > .btn-group, +.btn-toolbar > .input-group { + margin-left: 5px; +} +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0; +} +.btn-group > .btn:first-child { + margin-left: 0; +} +.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.btn-group > .btn:last-child:not(:first-child), +.btn-group > .dropdown-toggle:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group > .btn-group { + float: left; +} +.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group > .btn-group:first-child > .btn:last-child, +.btn-group > .btn-group:first-child > .dropdown-toggle { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.btn-group > .btn-group:last-child > .btn:first-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group .dropdown-toggle:active, +.btn-group.open .dropdown-toggle { + outline: 0; +} +.btn-group > .btn + .dropdown-toggle { + padding-right: 8px; + padding-left: 8px; +} +.btn-group > .btn-lg + .dropdown-toggle { + padding-right: 12px; + padding-left: 12px; +} +.btn-group.open .dropdown-toggle { + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); +} +.btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none; +} +.btn .caret { + margin-left: 0; +} +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0; +} +.dropup .btn-lg .caret { + border-width: 0 5px 5px; +} +.btn-group-vertical > .btn, +.btn-group-vertical > .btn-group, +.btn-group-vertical > .btn-group > .btn { + display: block; + float: none; + width: 100%; + max-width: 100%; +} +.btn-group-vertical > .btn-group > .btn { + float: none; +} +.btn-group-vertical > .btn + .btn, +.btn-group-vertical > .btn + .btn-group, +.btn-group-vertical > .btn-group + .btn, +.btn-group-vertical > .btn-group + .btn-group { + margin-top: -1px; + margin-left: 0; +} +.btn-group-vertical > .btn:not(:first-child):not(:last-child) { + border-radius: 0; +} +.btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn:last-child:not(:first-child) { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-left-radius: 4px; +} +.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, +.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate; +} +.btn-group-justified > .btn, +.btn-group-justified > .btn-group { + display: table-cell; + float: none; + width: 1%; +} +.btn-group-justified > .btn-group .btn { + width: 100%; +} +[data-toggle="buttons"] > .btn > input[type="radio"], +[data-toggle="buttons"] > .btn > input[type="checkbox"] { + display: none; +} +.input-group { + position: relative; + display: table; + border-collapse: separate; +} +.input-group[class*="col-"] { + float: none; + padding-right: 0; + padding-left: 0; +} +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; +} +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px; +} +select.input-group-lg > .form-control, +select.input-group-lg > .input-group-addon, +select.input-group-lg > .input-group-btn > .btn { + height: 46px; + line-height: 46px; +} +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; +} +.input-group-sm > .form-control, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .btn { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-group-sm > .form-control, +select.input-group-sm > .input-group-addon, +select.input-group-sm > .input-group-btn > .btn { + height: 30px; + line-height: 30px; +} +textarea.input-group-sm > .form-control, +textarea.input-group-sm > .input-group-addon, +textarea.input-group-sm > .input-group-btn > .btn, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; +} +.input-group-addon, +.input-group-btn, +.input-group .form-control { + display: table-cell; +} +.input-group-addon:not(:first-child):not(:last-child), +.input-group-btn:not(:first-child):not(:last-child), +.input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; +} +.input-group-addon, +.input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; +} +.input-group-addon { + padding: 6px 12px; + font-size: 14px; + font-weight: normal; + line-height: 1; + color: #555; + text-align: center; + background-color: #eee; + border: 1px solid #ccc; + border-radius: 4px; +} +.input-group-addon.input-sm { + padding: 5px 10px; + font-size: 12px; + border-radius: 3px; +} +.input-group-addon.input-lg { + padding: 10px 16px; + font-size: 18px; + border-radius: 6px; +} +.input-group-addon input[type="radio"], +.input-group-addon input[type="checkbox"] { + margin-top: 0; +} +.input-group .form-control:first-child, +.input-group-addon:first-child, +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group > .btn, +.input-group-btn:first-child > .dropdown-toggle, +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), +.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.input-group-addon:first-child { + border-right: 0; +} +.input-group .form-control:last-child, +.input-group-addon:last-child, +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group > .btn, +.input-group-btn:last-child > .dropdown-toggle, +.input-group-btn:first-child > .btn:not(:first-child), +.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.input-group-addon:last-child { + border-left: 0; +} +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; +} +.input-group-btn > .btn { + position: relative; +} +.input-group-btn > .btn + .btn { + margin-left: -1px; +} +.input-group-btn > .btn:hover, +.input-group-btn > .btn:focus, +.input-group-btn > .btn:active { + z-index: 2; +} +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group { + margin-right: -1px; +} +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group { + margin-left: -1px; +} +.nav { + padding-left: 0; + margin-bottom: 0; + list-style: none; +} +.nav > li { + position: relative; + display: block; +} +.nav > li > a { + position: relative; + display: block; + padding: 10px 15px; +} +.nav > li > a:hover, +.nav > li > a:focus { + text-decoration: none; + background-color: #eee; +} +.nav > li.disabled > a { + color: #999; +} +.nav > li.disabled > a:hover, +.nav > li.disabled > a:focus { + color: #999; + text-decoration: none; + cursor: not-allowed; + background-color: transparent; +} +.nav .open > a, +.nav .open > a:hover, +.nav .open > a:focus { + background-color: #eee; + border-color: #428bca; +} +.nav .nav-divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5; +} +.nav > li > a > img { + max-width: none; +} +.nav-tabs { + border-bottom: 1px solid #ddd; +} +.nav-tabs > li { + float: left; + margin-bottom: -1px; +} +.nav-tabs > li > a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 4px 4px 0 0; +} +.nav-tabs > li > a:hover { + border-color: #eee #eee #ddd; +} +.nav-tabs > li.active > a, +.nav-tabs > li.active > a:hover, +.nav-tabs > li.active > a:focus { + color: #555; + cursor: default; + background-color: #fff; + border: 1px solid #ddd; + border-bottom-color: transparent; +} +.nav-tabs.nav-justified { + width: 100%; + border-bottom: 0; +} +.nav-tabs.nav-justified > li { + float: none; +} +.nav-tabs.nav-justified > li > a { + margin-bottom: 5px; + text-align: center; +} +.nav-tabs.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-tabs.nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs.nav-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs.nav-justified > .active > a, +.nav-tabs.nav-justified > .active > a:hover, +.nav-tabs.nav-justified > .active > a:focus { + border: 1px solid #ddd; +} +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs.nav-justified > .active > a, + .nav-tabs.nav-justified > .active > a:hover, + .nav-tabs.nav-justified > .active > a:focus { + border-bottom-color: #fff; + } +} +.nav-pills > li { + float: left; +} +.nav-pills > li > a { + border-radius: 4px; +} +.nav-pills > li + li { + margin-left: 2px; +} +.nav-pills > li.active > a, +.nav-pills > li.active > a:hover, +.nav-pills > li.active > a:focus { + color: #fff; + background-color: #428bca; +} +.nav-stacked > li { + float: none; +} +.nav-stacked > li + li { + margin-top: 2px; + margin-left: 0; +} +.nav-justified { + width: 100%; +} +.nav-justified > li { + float: none; +} +.nav-justified > li > a { + margin-bottom: 5px; + text-align: center; +} +.nav-justified > .dropdown .dropdown-menu { + top: auto; + left: auto; +} +@media (min-width: 768px) { + .nav-justified > li { + display: table-cell; + width: 1%; + } + .nav-justified > li > a { + margin-bottom: 0; + } +} +.nav-tabs-justified { + border-bottom: 0; +} +.nav-tabs-justified > li > a { + margin-right: 0; + border-radius: 4px; +} +.nav-tabs-justified > .active > a, +.nav-tabs-justified > .active > a:hover, +.nav-tabs-justified > .active > a:focus { + border: 1px solid #ddd; +} +@media (min-width: 768px) { + .nav-tabs-justified > li > a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0; + } + .nav-tabs-justified > .active > a, + .nav-tabs-justified > .active > a:hover, + .nav-tabs-justified > .active > a:focus { + border-bottom-color: #fff; + } +} +.tab-content > .tab-pane { + display: none; +} +.tab-content > .active { + display: block; +} +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 20px; + border: 1px solid transparent; +} +@media (min-width: 768px) { + .navbar { + border-radius: 4px; + } +} +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} +.navbar-collapse { + max-height: 340px; + padding-right: 15px; + padding-left: 15px; + overflow-x: visible; + -webkit-overflow-scrolling: touch; + border-top: 1px solid transparent; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); +} +.navbar-collapse.in { + overflow-y: auto; +} +@media (min-width: 768px) { + .navbar-collapse { + width: auto; + border-top: 0; + box-shadow: none; + } + .navbar-collapse.collapse { + display: block !important; + height: auto !important; + padding-bottom: 0; + overflow: visible !important; + } + .navbar-collapse.in { + overflow-y: visible; + } + .navbar-fixed-top .navbar-collapse, + .navbar-static-top .navbar-collapse, + .navbar-fixed-bottom .navbar-collapse { + padding-right: 0; + padding-left: 0; + } +} +.container > .navbar-header, +.container-fluid > .navbar-header, +.container > .navbar-collapse, +.container-fluid > .navbar-collapse { + margin-right: -15px; + margin-left: -15px; +} +@media (min-width: 768px) { + .container > .navbar-header, + .container-fluid > .navbar-header, + .container > .navbar-collapse, + .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px; +} +@media (min-width: 768px) { + .navbar-static-top { + border-radius: 0; + } +} +.navbar-fixed-top, +.navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; +} +@media (min-width: 768px) { + .navbar-fixed-top, + .navbar-fixed-bottom { + border-radius: 0; + } +} +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px; +} +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0; +} +.navbar-brand { + float: left; + height: 50px; + padding: 15px 15px; + font-size: 18px; + line-height: 20px; +} +.navbar-brand:hover, +.navbar-brand:focus { + text-decoration: none; +} +@media (min-width: 768px) { + .navbar > .container .navbar-brand, + .navbar > .container-fluid .navbar-brand { + margin-left: -15px; + } +} +.navbar-toggle { + position: relative; + float: right; + padding: 9px 10px; + margin-top: 8px; + margin-right: 15px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 4px; +} +.navbar-toggle:focus { + outline: none; +} +.navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px; +} +.navbar-toggle .icon-bar + .icon-bar { + margin-top: 4px; +} +@media (min-width: 768px) { + .navbar-toggle { + display: none; + } +} +.navbar-nav { + margin: 7.5px -15px; +} +.navbar-nav > li > a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 20px; +} +@media (max-width: 767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + box-shadow: none; + } + .navbar-nav .open .dropdown-menu > li > a, + .navbar-nav .open .dropdown-menu .dropdown-header { + padding: 5px 15px 5px 25px; + } + .navbar-nav .open .dropdown-menu > li > a { + line-height: 20px; + } + .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-nav .open .dropdown-menu > li > a:focus { + background-image: none; + } +} +@media (min-width: 768px) { + .navbar-nav { + float: left; + margin: 0; + } + .navbar-nav > li { + float: left; + } + .navbar-nav > li > a { + padding-top: 15px; + padding-bottom: 15px; + } + .navbar-nav.navbar-right:last-child { + margin-right: -15px; + } +} +@media (min-width: 768px) { + .navbar-left { + float: left !important; + } + .navbar-right { + float: right !important; + } +} +.navbar-form { + padding: 10px 15px; + margin-top: 8px; + margin-right: -15px; + margin-bottom: 8px; + margin-left: -15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); +} +@media (min-width: 768px) { + .navbar-form .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .navbar-form .input-group > .form-control { + width: 100%; + } + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio, + .navbar-form .checkbox { + display: inline-block; + padding-left: 0; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .navbar-form .radio input[type="radio"], + .navbar-form .checkbox input[type="checkbox"] { + float: none; + margin-left: 0; + } + .navbar-form .has-feedback .form-control-feedback { + top: 0; + } +} +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } +} +@media (min-width: 768px) { + .navbar-form { + width: auto; + padding-top: 0; + padding-bottom: 0; + margin-right: 0; + margin-left: 0; + border: 0; + -webkit-box-shadow: none; + box-shadow: none; + } + .navbar-form.navbar-right:last-child { + margin-right: -15px; + } +} +.navbar-nav > li > .dropdown-menu { + margin-top: 0; + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} +.navbar-btn { + margin-top: 8px; + margin-bottom: 8px; +} +.navbar-btn.btn-sm { + margin-top: 10px; + margin-bottom: 10px; +} +.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; +} +.navbar-text { + margin-top: 15px; + margin-bottom: 15px; +} +@media (min-width: 768px) { + .navbar-text { + float: left; + margin-right: 15px; + margin-left: 15px; + } + .navbar-text.navbar-right:last-child { + margin-right: 0; + } +} +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7; +} +.navbar-default .navbar-brand { + color: #777; +} +.navbar-default .navbar-brand:hover, +.navbar-default .navbar-brand:focus { + color: #5e5e5e; + background-color: transparent; +} +.navbar-default .navbar-text { + color: #777; +} +.navbar-default .navbar-nav > li > a { + color: #777; +} +.navbar-default .navbar-nav > li > a:hover, +.navbar-default .navbar-nav > li > a:focus { + color: #333; + background-color: transparent; +} +.navbar-default .navbar-nav > .active > a, +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > .active > a:focus { + color: #555; + background-color: #e7e7e7; +} +.navbar-default .navbar-nav > .disabled > a, +.navbar-default .navbar-nav > .disabled > a:hover, +.navbar-default .navbar-nav > .disabled > a:focus { + color: #ccc; + background-color: transparent; +} +.navbar-default .navbar-toggle { + border-color: #ddd; +} +.navbar-default .navbar-toggle:hover, +.navbar-default .navbar-toggle:focus { + background-color: #ddd; +} +.navbar-default .navbar-toggle .icon-bar { + background-color: #888; +} +.navbar-default .navbar-collapse, +.navbar-default .navbar-form { + border-color: #e7e7e7; +} +.navbar-default .navbar-nav > .open > a, +.navbar-default .navbar-nav > .open > a:hover, +.navbar-default .navbar-nav > .open > a:focus { + color: #555; + background-color: #e7e7e7; +} +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #777; + } + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #333; + background-color: transparent; + } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #555; + background-color: #e7e7e7; + } + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #ccc; + background-color: transparent; + } +} +.navbar-default .navbar-link { + color: #777; +} +.navbar-default .navbar-link:hover { + color: #333; +} +.navbar-inverse { + background-color: #222; + border-color: #080808; +} +.navbar-inverse .navbar-brand { + color: #999; +} +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus { + color: #fff; + background-color: transparent; +} +.navbar-inverse .navbar-text { + color: #999; +} +.navbar-inverse .navbar-nav > li > a { + color: #999; +} +.navbar-inverse .navbar-nav > li > a:hover, +.navbar-inverse .navbar-nav > li > a:focus { + color: #fff; + background-color: transparent; +} +.navbar-inverse .navbar-nav > .active > a, +.navbar-inverse .navbar-nav > .active > a:hover, +.navbar-inverse .navbar-nav > .active > a:focus { + color: #fff; + background-color: #080808; +} +.navbar-inverse .navbar-nav > .disabled > a, +.navbar-inverse .navbar-nav > .disabled > a:hover, +.navbar-inverse .navbar-nav > .disabled > a:focus { + color: #444; + background-color: transparent; +} +.navbar-inverse .navbar-toggle { + border-color: #333; +} +.navbar-inverse .navbar-toggle:hover, +.navbar-inverse .navbar-toggle:focus { + background-color: #333; +} +.navbar-inverse .navbar-toggle .icon-bar { + background-color: #fff; +} +.navbar-inverse .navbar-collapse, +.navbar-inverse .navbar-form { + border-color: #101010; +} +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .open > a:hover, +.navbar-inverse .navbar-nav > .open > a:focus { + color: #fff; + background-color: #080808; +} +@media (max-width: 767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { + border-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #999; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { + color: #fff; + background-color: transparent; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #fff; + background-color: #080808; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #444; + background-color: transparent; + } +} +.navbar-inverse .navbar-link { + color: #999; +} +.navbar-inverse .navbar-link:hover { + color: #fff; +} +.breadcrumb { + padding: 8px 15px; + margin-bottom: 20px; + list-style: none; + background-color: #f5f5f5; + border-radius: 4px; +} +.breadcrumb > li { + display: inline-block; +} +.breadcrumb > li + li:before { + padding: 0 5px; + color: #ccc; + content: "/\00a0"; +} +.breadcrumb > .active { + color: #999; +} +.pagination { + display: inline-block; + padding-left: 0; + margin: 20px 0; + border-radius: 4px; +} +.pagination > li { + display: inline; +} +.pagination > li > a, +.pagination > li > span { + position: relative; + float: left; + padding: 6px 12px; + margin-left: -1px; + line-height: 1.42857143; + color: #428bca; + text-decoration: none; + background-color: #fff; + border: 1px solid #ddd; +} +.pagination > li:first-child > a, +.pagination > li:first-child > span { + margin-left: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +.pagination > li:last-child > a, +.pagination > li:last-child > span { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +.pagination > li > a:hover, +.pagination > li > span:hover, +.pagination > li > a:focus, +.pagination > li > span:focus { + color: #2a6496; + background-color: #eee; + border-color: #ddd; +} +.pagination > .active > a, +.pagination > .active > span, +.pagination > .active > a:hover, +.pagination > .active > span:hover, +.pagination > .active > a:focus, +.pagination > .active > span:focus { + z-index: 2; + color: #fff; + cursor: default; + background-color: #428bca; + border-color: #428bca; +} +.pagination > .disabled > span, +.pagination > .disabled > span:hover, +.pagination > .disabled > span:focus, +.pagination > .disabled > a, +.pagination > .disabled > a:hover, +.pagination > .disabled > a:focus { + color: #999; + cursor: not-allowed; + background-color: #fff; + border-color: #ddd; +} +.pagination-lg > li > a, +.pagination-lg > li > span { + padding: 10px 16px; + font-size: 18px; +} +.pagination-lg > li:first-child > a, +.pagination-lg > li:first-child > span { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} +.pagination-lg > li:last-child > a, +.pagination-lg > li:last-child > span { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} +.pagination-sm > li > a, +.pagination-sm > li > span { + padding: 5px 10px; + font-size: 12px; +} +.pagination-sm > li:first-child > a, +.pagination-sm > li:first-child > span { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} +.pagination-sm > li:last-child > a, +.pagination-sm > li:last-child > span { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} +.pager { + padding-left: 0; + margin: 20px 0; + text-align: center; + list-style: none; +} +.pager li { + display: inline; +} +.pager li > a, +.pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 15px; +} +.pager li > a:hover, +.pager li > a:focus { + text-decoration: none; + background-color: #eee; +} +.pager .next > a, +.pager .next > span { + float: right; +} +.pager .previous > a, +.pager .previous > span { + float: left; +} +.pager .disabled > a, +.pager .disabled > a:hover, +.pager .disabled > a:focus, +.pager .disabled > span { + color: #999; + cursor: not-allowed; + background-color: #fff; +} +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: bold; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em; +} +.label[href]:hover, +.label[href]:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} +.label:empty { + display: none; +} +.btn .label { + position: relative; + top: -1px; +} +.label-default { + background-color: #999; +} +.label-default[href]:hover, +.label-default[href]:focus { + background-color: #808080; +} +.label-primary { + background-color: #428bca; +} +.label-primary[href]:hover, +.label-primary[href]:focus { + background-color: #3071a9; +} +.label-success { + background-color: #5cb85c; +} +.label-success[href]:hover, +.label-success[href]:focus { + background-color: #449d44; +} +.label-info { + background-color: #5bc0de; +} +.label-info[href]:hover, +.label-info[href]:focus { + background-color: #31b0d5; +} +.label-warning { + background-color: #f0ad4e; +} +.label-warning[href]:hover, +.label-warning[href]:focus { + background-color: #ec971f; +} +.label-danger { + background-color: #d9534f; +} +.label-danger[href]:hover, +.label-danger[href]:focus { + background-color: #c9302c; +} +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 12px; + font-weight: bold; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + background-color: #999; + border-radius: 10px; +} +.badge:empty { + display: none; +} +.btn .badge { + position: relative; + top: -1px; +} +.btn-xs .badge { + top: 0; + padding: 1px 5px; +} +a.badge:hover, +a.badge:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} +a.list-group-item.active > .badge, +.nav-pills > .active > a > .badge { + color: #428bca; + background-color: #fff; +} +.nav-pills > li > a > .badge { + margin-left: 3px; +} +.jumbotron { + padding: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #eee; +} +.jumbotron h1, +.jumbotron .h1 { + color: inherit; +} +.jumbotron p { + margin-bottom: 15px; + font-size: 21px; + font-weight: 200; +} +.container .jumbotron { + border-radius: 6px; +} +.jumbotron .container { + max-width: 100%; +} +@media screen and (min-width: 768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px; + } + .container .jumbotron { + padding-right: 60px; + padding-left: 60px; + } + .jumbotron h1, + .jumbotron .h1 { + font-size: 63px; + } +} +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 20px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; +} +.thumbnail > img, +.thumbnail a > img { + margin-right: auto; + margin-left: auto; +} +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: #428bca; +} +.thumbnail .caption { + padding: 9px; + color: #333; +} +.alert { + padding: 15px; + margin-bottom: 20px; + border: 1px solid transparent; + border-radius: 4px; +} +.alert h4 { + margin-top: 0; + color: inherit; +} +.alert .alert-link { + font-weight: bold; +} +.alert > p, +.alert > ul { + margin-bottom: 0; +} +.alert > p + p { + margin-top: 5px; +} +.alert-dismissable { + padding-right: 35px; +} +.alert-dismissable .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; +} +.alert-success { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.alert-success hr { + border-top-color: #c9e2b3; +} +.alert-success .alert-link { + color: #2b542c; +} +.alert-info { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.alert-info hr { + border-top-color: #a6e1ec; +} +.alert-info .alert-link { + color: #245269; +} +.alert-warning { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.alert-warning hr { + border-top-color: #f7e1b5; +} +.alert-warning .alert-link { + color: #66512c; +} +.alert-danger { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.alert-danger hr { + border-top-color: #e4b9c0; +} +.alert-danger .alert-link { + color: #843534; +} +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +.progress { + height: 20px; + margin-bottom: 20px; + overflow: hidden; + background-color: #f5f5f5; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); +} +.progress-bar { + float: left; + width: 0; + height: 100%; + font-size: 12px; + line-height: 20px; + color: #fff; + text-align: center; + background-color: #428bca; + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); + -webkit-transition: width .6s ease; + transition: width .6s ease; +} +.progress-striped .progress-bar { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-size: 40px 40px; +} +.progress.active .progress-bar { + -webkit-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; +} +.progress-bar-success { + background-color: #5cb85c; +} +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-info { + background-color: #5bc0de; +} +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-warning { + background-color: #f0ad4e; +} +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.progress-bar-danger { + background-color: #d9534f; +} +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); +} +.media, +.media-body { + overflow: hidden; + zoom: 1; +} +.media, +.media .media { + margin-top: 15px; +} +.media:first-child { + margin-top: 0; +} +.media-object { + display: block; +} +.media-heading { + margin: 0 0 5px; +} +.media > .pull-left { + margin-right: 10px; +} +.media > .pull-right { + margin-left: 10px; +} +.media-list { + padding-left: 0; + list-style: none; +} +.list-group { + padding-left: 0; + margin-bottom: 20px; +} +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #fff; + border: 1px solid #ddd; +} +.list-group-item:first-child { + border-top-left-radius: 4px; + border-top-right-radius: 4px; +} +.list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +.list-group-item > .badge { + float: right; +} +.list-group-item > .badge + .badge { + margin-right: 5px; +} +a.list-group-item { + color: #555; +} +a.list-group-item .list-group-item-heading { + color: #333; +} +a.list-group-item:hover, +a.list-group-item:focus { + text-decoration: none; + background-color: #f5f5f5; +} +a.list-group-item.active, +a.list-group-item.active:hover, +a.list-group-item.active:focus { + z-index: 2; + color: #fff; + background-color: #428bca; + border-color: #428bca; +} +a.list-group-item.active .list-group-item-heading, +a.list-group-item.active:hover .list-group-item-heading, +a.list-group-item.active:focus .list-group-item-heading { + color: inherit; +} +a.list-group-item.active .list-group-item-text, +a.list-group-item.active:hover .list-group-item-text, +a.list-group-item.active:focus .list-group-item-text { + color: #e1edf7; +} +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8; +} +a.list-group-item-success { + color: #3c763d; +} +a.list-group-item-success .list-group-item-heading { + color: inherit; +} +a.list-group-item-success:hover, +a.list-group-item-success:focus { + color: #3c763d; + background-color: #d0e9c6; +} +a.list-group-item-success.active, +a.list-group-item-success.active:hover, +a.list-group-item-success.active:focus { + color: #fff; + background-color: #3c763d; + border-color: #3c763d; +} +.list-group-item-info { + color: #31708f; + background-color: #d9edf7; +} +a.list-group-item-info { + color: #31708f; +} +a.list-group-item-info .list-group-item-heading { + color: inherit; +} +a.list-group-item-info:hover, +a.list-group-item-info:focus { + color: #31708f; + background-color: #c4e3f3; +} +a.list-group-item-info.active, +a.list-group-item-info.active:hover, +a.list-group-item-info.active:focus { + color: #fff; + background-color: #31708f; + border-color: #31708f; +} +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} +a.list-group-item-warning { + color: #8a6d3b; +} +a.list-group-item-warning .list-group-item-heading { + color: inherit; +} +a.list-group-item-warning:hover, +a.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; +} +a.list-group-item-warning.active, +a.list-group-item-warning.active:hover, +a.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; +} +.list-group-item-danger { + color: #a94442; + background-color: #f2dede; +} +a.list-group-item-danger { + color: #a94442; +} +a.list-group-item-danger .list-group-item-heading { + color: inherit; +} +a.list-group-item-danger:hover, +a.list-group-item-danger:focus { + color: #a94442; + background-color: #ebcccc; +} +a.list-group-item-danger.active, +a.list-group-item-danger.active:hover, +a.list-group-item-danger.active:focus { + color: #fff; + background-color: #a94442; + border-color: #a94442; +} +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px; +} +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3; +} +.panel { + margin-bottom: 20px; + background-color: #fff; + border: 1px solid transparent; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); + box-shadow: 0 1px 1px rgba(0, 0, 0, .05); +} +.panel-body { + padding: 15px; +} +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel-heading > .dropdown .dropdown-toggle { + color: inherit; +} +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 16px; + color: inherit; +} +.panel-title > a { + color: inherit; +} +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #ddd; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .list-group { + margin-bottom: 0; +} +.panel > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; +} +.panel > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel-heading + .list-group .list-group-item:first-child { + border-top-width: 0; +} +.panel > .table, +.panel > .table-responsive > .table { + margin-bottom: 0; +} +.panel > .table:first-child, +.panel > .table-responsive:first-child > .table:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 3px; +} +.panel > .table:last-child, +.panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 3px; +} +.panel > .panel-body + .table, +.panel > .panel-body + .table-responsive { + border-top: 1px solid #ddd; +} +.panel > .table > tbody:first-child > tr:first-child th, +.panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; +} +.panel > .table-bordered, +.panel > .table-responsive > .table-bordered { + border: 0; +} +.panel > .table-bordered > thead > tr > th:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:first-child, +.panel > .table-bordered > tbody > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, +.panel > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-bordered > thead > tr > td:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:first-child, +.panel > .table-bordered > tbody > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, +.panel > .table-bordered > tfoot > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; +} +.panel > .table-bordered > thead > tr > th:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:last-child, +.panel > .table-bordered > tbody > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, +.panel > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-bordered > thead > tr > td:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:last-child, +.panel > .table-bordered > tbody > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, +.panel > .table-bordered > tfoot > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; +} +.panel > .table-bordered > thead > tr:first-child > td, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > td, +.panel > .table-bordered > tbody > tr:first-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, +.panel > .table-bordered > thead > tr:first-child > th, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > th, +.panel > .table-bordered > tbody > tr:first-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { + border-bottom: 0; +} +.panel > .table-bordered > tbody > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, +.panel > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-bordered > tbody > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, +.panel > .table-bordered > tfoot > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; +} +.panel > .table-responsive { + margin-bottom: 0; + border: 0; +} +.panel-group { + margin-bottom: 20px; +} +.panel-group .panel { + margin-bottom: 0; + overflow: hidden; + border-radius: 4px; +} +.panel-group .panel + .panel { + margin-top: 5px; +} +.panel-group .panel-heading { + border-bottom: 0; +} +.panel-group .panel-heading + .panel-collapse .panel-body { + border-top: 1px solid #ddd; +} +.panel-group .panel-footer { + border-top: 0; +} +.panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #ddd; +} +.panel-default { + border-color: #ddd; +} +.panel-default > .panel-heading { + color: #333; + background-color: #f5f5f5; + border-color: #ddd; +} +.panel-default > .panel-heading + .panel-collapse .panel-body { + border-top-color: #ddd; +} +.panel-default > .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #ddd; +} +.panel-primary { + border-color: #428bca; +} +.panel-primary > .panel-heading { + color: #fff; + background-color: #428bca; + border-color: #428bca; +} +.panel-primary > .panel-heading + .panel-collapse .panel-body { + border-top-color: #428bca; +} +.panel-primary > .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #428bca; +} +.panel-success { + border-color: #d6e9c6; +} +.panel-success > .panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.panel-success > .panel-heading + .panel-collapse .panel-body { + border-top-color: #d6e9c6; +} +.panel-success > .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #d6e9c6; +} +.panel-info { + border-color: #bce8f1; +} +.panel-info > .panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.panel-info > .panel-heading + .panel-collapse .panel-body { + border-top-color: #bce8f1; +} +.panel-info > .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #bce8f1; +} +.panel-warning { + border-color: #faebcc; +} +.panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.panel-warning > .panel-heading + .panel-collapse .panel-body { + border-top-color: #faebcc; +} +.panel-warning > .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #faebcc; +} +.panel-danger { + border-color: #ebccd1; +} +.panel-danger > .panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.panel-danger > .panel-heading + .panel-collapse .panel-body { + border-top-color: #ebccd1; +} +.panel-danger > .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #ebccd1; +} +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); +} +.well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, .15); +} +.well-lg { + padding: 24px; + border-radius: 6px; +} +.well-sm { + padding: 9px; + border-radius: 3px; +} +.close { + float: right; + font-size: 21px; + font-weight: bold; + line-height: 1; + color: #000; + text-shadow: 0 1px 0 #fff; + filter: alpha(opacity=20); + opacity: .2; +} +.close:hover, +.close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + filter: alpha(opacity=50); + opacity: .5; +} +button.close { + -webkit-appearance: none; + padding: 0; + cursor: pointer; + background: transparent; + border: 0; +} +.modal-open { + overflow: hidden; +} +.modal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + display: none; + overflow: auto; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + outline: 0; +} +.modal.fade .modal-dialog { + -webkit-transition: -webkit-transform .3s ease-out; + -moz-transition: -moz-transform .3s ease-out; + -o-transition: -o-transform .3s ease-out; + transition: transform .3s ease-out; + -webkit-transform: translate(0, -25%); + -ms-transform: translate(0, -25%); + transform: translate(0, -25%); +} +.modal.in .modal-dialog { + -webkit-transform: translate(0, 0); + -ms-transform: translate(0, 0); + transform: translate(0, 0); +} +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} +.modal-content { + position: relative; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #999; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 6px; + outline: none; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); + box-shadow: 0 3px 9px rgba(0, 0, 0, .5); +} +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000; +} +.modal-backdrop.fade { + filter: alpha(opacity=0); + opacity: 0; +} +.modal-backdrop.in { + filter: alpha(opacity=50); + opacity: .5; +} +.modal-header { + min-height: 16.42857143px; + padding: 15px; + border-bottom: 1px solid #e5e5e5; +} +.modal-header .close { + margin-top: -2px; +} +.modal-title { + margin: 0; + line-height: 1.42857143; +} +.modal-body { + position: relative; + padding: 20px; +} +.modal-footer { + padding: 19px 20px 20px; + margin-top: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; +} +.modal-footer .btn + .btn { + margin-bottom: 0; + margin-left: 5px; +} +.modal-footer .btn-group .btn + .btn { + margin-left: -1px; +} +.modal-footer .btn-block + .btn-block { + margin-left: 0; +} +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); + box-shadow: 0 5px 15px rgba(0, 0, 0, .5); + } + .modal-sm { + width: 300px; + } +} +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} +.tooltip { + position: absolute; + z-index: 1030; + display: block; + font-size: 12px; + line-height: 1.4; + visibility: visible; + filter: alpha(opacity=0); + opacity: 0; +} +.tooltip.in { + filter: alpha(opacity=90); + opacity: .9; +} +.tooltip.top { + padding: 5px 0; + margin-top: -3px; +} +.tooltip.right { + padding: 0 5px; + margin-left: 3px; +} +.tooltip.bottom { + padding: 5px 0; + margin-top: 3px; +} +.tooltip.left { + padding: 0 5px; + margin-left: -3px; +} +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #fff; + text-align: center; + text-decoration: none; + background-color: #000; + border-radius: 4px; +} +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.top-left .tooltip-arrow { + bottom: 0; + left: 5px; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.top-right .tooltip-arrow { + right: 5px; + bottom: 0; + border-width: 5px 5px 0; + border-top-color: #000; +} +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000; +} +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000; +} +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.tooltip.bottom-left .tooltip-arrow { + top: 0; + left: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.tooltip.bottom-right .tooltip-arrow { + top: 0; + right: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000; +} +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1010; + display: none; + max-width: 276px; + padding: 1px; + text-align: left; + white-space: normal; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); + box-shadow: 0 5px 10px rgba(0, 0, 0, .2); +} +.popover.top { + margin-top: -10px; +} +.popover.right { + margin-left: 10px; +} +.popover.bottom { + margin-top: 10px; +} +.popover.left { + margin-left: -10px; +} +.popover-title { + padding: 8px 14px; + margin: 0; + font-size: 14px; + font-weight: normal; + line-height: 18px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 5px 5px 0 0; +} +.popover-content { + padding: 9px 14px; +} +.popover > .arrow, +.popover > .arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.popover > .arrow { + border-width: 11px; +} +.popover > .arrow:after { + content: ""; + border-width: 10px; +} +.popover.top > .arrow { + bottom: -11px; + left: 50%; + margin-left: -11px; + border-top-color: #999; + border-top-color: rgba(0, 0, 0, .25); + border-bottom-width: 0; +} +.popover.top > .arrow:after { + bottom: 1px; + margin-left: -10px; + content: " "; + border-top-color: #fff; + border-bottom-width: 0; +} +.popover.right > .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-right-color: #999; + border-right-color: rgba(0, 0, 0, .25); + border-left-width: 0; +} +.popover.right > .arrow:after { + bottom: -10px; + left: 1px; + content: " "; + border-right-color: #fff; + border-left-width: 0; +} +.popover.bottom > .arrow { + top: -11px; + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999; + border-bottom-color: rgba(0, 0, 0, .25); +} +.popover.bottom > .arrow:after { + top: 1px; + margin-left: -10px; + content: " "; + border-top-width: 0; + border-bottom-color: #fff; +} +.popover.left > .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999; + border-left-color: rgba(0, 0, 0, .25); +} +.popover.left > .arrow:after { + right: 1px; + bottom: -10px; + content: " "; + border-right-width: 0; + border-left-color: #fff; +} +.carousel { + position: relative; +} +.carousel-inner { + position: relative; + width: 100%; + overflow: hidden; +} +.carousel-inner > .item { + position: relative; + display: none; + -webkit-transition: .6s ease-in-out left; + transition: .6s ease-in-out left; +} +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + line-height: 1; +} +.carousel-inner > .active, +.carousel-inner > .next, +.carousel-inner > .prev { + display: block; +} +.carousel-inner > .active { + left: 0; +} +.carousel-inner > .next, +.carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; +} +.carousel-inner > .next { + left: 100%; +} +.carousel-inner > .prev { + left: -100%; +} +.carousel-inner > .next.left, +.carousel-inner > .prev.right { + left: 0; +} +.carousel-inner > .active.left { + left: -100%; +} +.carousel-inner > .active.right { + left: 100%; +} +.carousel-control { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 15%; + font-size: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, .6); + filter: alpha(opacity=50); + opacity: .5; +} +.carousel-control.left { + background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, .5) 0%), color-stop(rgba(0, 0, 0, .0001) 100%)); + background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); + background-repeat: repeat-x; +} +.carousel-control.right { + right: 0; + left: auto; + background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, .0001) 0%), color-stop(rgba(0, 0, 0, .5) 100%)); + background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); + background-repeat: repeat-x; +} +.carousel-control:hover, +.carousel-control:focus { + color: #fff; + text-decoration: none; + filter: alpha(opacity=90); + outline: none; + opacity: .9; +} +.carousel-control .icon-prev, +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-left, +.carousel-control .glyphicon-chevron-right { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; +} +.carousel-control .icon-prev, +.carousel-control .glyphicon-chevron-left { + left: 50%; +} +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-right { + right: 50%; +} +.carousel-control .icon-prev, +.carousel-control .icon-next { + width: 20px; + height: 20px; + margin-top: -10px; + margin-left: -10px; + font-family: serif; +} +.carousel-control .icon-prev:before { + content: '\2039'; +} +.carousel-control .icon-next:before { + content: '\203a'; +} +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + padding-left: 0; + margin-left: -30%; + text-align: center; + list-style: none; +} +.carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + cursor: pointer; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); + border: 1px solid #fff; + border-radius: 10px; +} +.carousel-indicators .active { + width: 12px; + height: 12px; + margin: 0; + background-color: #fff; +} +.carousel-caption { + position: absolute; + right: 15%; + bottom: 20px; + left: 15%; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0, 0, 0, .6); +} +.carousel-caption .btn { + text-shadow: none; +} +@media screen and (min-width: 768px) { + .carousel-control .glyphicon-chevron-left, + .carousel-control .glyphicon-chevron-right, + .carousel-control .icon-prev, + .carousel-control .icon-next { + width: 30px; + height: 30px; + margin-top: -15px; + margin-left: -15px; + font-size: 30px; + } + .carousel-caption { + right: 20%; + left: 20%; + padding-bottom: 30px; + } + .carousel-indicators { + bottom: 20px; + } +} +.clearfix:before, +.clearfix:after, +.container:before, +.container:after, +.container-fluid:before, +.container-fluid:after, +.row:before, +.row:after, +.form-horizontal .form-group:before, +.form-horizontal .form-group:after, +.btn-toolbar:before, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after, +.nav:before, +.nav:after, +.navbar:before, +.navbar:after, +.navbar-header:before, +.navbar-header:after, +.navbar-collapse:before, +.navbar-collapse:after, +.pager:before, +.pager:after, +.panel-body:before, +.panel-body:after, +.modal-footer:before, +.modal-footer:after { + display: table; + content: " "; +} +.clearfix:after, +.container:after, +.container-fluid:after, +.row:after, +.form-horizontal .form-group:after, +.btn-toolbar:after, +.btn-group-vertical > .btn-group:after, +.nav:after, +.navbar:after, +.navbar-header:after, +.navbar-collapse:after, +.pager:after, +.panel-body:after, +.modal-footer:after { + clear: both; +} +.center-block { + display: block; + margin-right: auto; + margin-left: auto; +} +.pull-right { + float: right !important; +} +.pull-left { + float: left !important; +} +.hide { + display: none !important; +} +.show { + display: block !important; +} +.invisible { + visibility: hidden; +} +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} +.hidden { + display: none !important; + visibility: hidden !important; +} +.affix { + position: fixed; +} +@-ms-viewport { + width: device-width; +} +.visible-xs, +.visible-sm, +.visible-md, +.visible-lg { + display: none !important; +} +@media (max-width: 767px) { + .visible-xs { + display: block !important; + } + table.visible-xs { + display: table; + } + tr.visible-xs { + display: table-row !important; + } + th.visible-xs, + td.visible-xs { + display: table-cell !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important; + } + table.visible-sm { + display: table; + } + tr.visible-sm { + display: table-row !important; + } + th.visible-sm, + td.visible-sm { + display: table-cell !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md { + display: block !important; + } + table.visible-md { + display: table; + } + tr.visible-md { + display: table-row !important; + } + th.visible-md, + td.visible-md { + display: table-cell !important; + } +} +@media (min-width: 1200px) { + .visible-lg { + display: block !important; + } + table.visible-lg { + display: table; + } + tr.visible-lg { + display: table-row !important; + } + th.visible-lg, + td.visible-lg { + display: table-cell !important; + } +} +@media (max-width: 767px) { + .hidden-xs { + display: none !important; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-md { + display: none !important; + } +} +@media (min-width: 1200px) { + .hidden-lg { + display: none !important; + } +} +.visible-print { + display: none !important; +} +@media print { + .visible-print { + display: block !important; + } + table.visible-print { + display: table; + } + tr.visible-print { + display: table-row !important; + } + th.visible-print, + td.visible-print { + display: table-cell !important; + } +} +@media print { + .hidden-print { + display: none !important; + } +} +/*# sourceMappingURL=bootstrap.css.map */ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/.gitkeep b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/.gitkeep new file mode 100755 index 00000000..e69de29b diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/glyphicons-halflings-white.png b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/glyphicons-halflings-white.png new file mode 100755 index 00000000..3bf6484a Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/glyphicons-halflings-white.png differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/glyphicons-halflings.png b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/glyphicons-halflings.png new file mode 100755 index 00000000..5b67ffda Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/glyphicons-halflings.png differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.0.jpg new file mode 100755 index 00000000..7ce0dce4 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.1.jpg new file mode 100755 index 00000000..ed8cad89 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.2.jpg new file mode 100755 index 00000000..c83529e0 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.3.jpg new file mode 100755 index 00000000..cd2c3028 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.4.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.4.jpg new file mode 100755 index 00000000..b4d8472d Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-streak-7.4.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.0.jpg new file mode 100755 index 00000000..b4cb4eb2 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.1.jpg new file mode 100755 index 00000000..19474096 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.2.jpg new file mode 100755 index 00000000..2ce54f5b Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.3.jpg new file mode 100755 index 00000000..3836dac9 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.4.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.4.jpg new file mode 100755 index 00000000..87f8580d Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.4.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.5.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.5.jpg new file mode 100755 index 00000000..eae4bd78 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/dell-venue.5.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.0.jpg new file mode 100755 index 00000000..60700a2a Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.1.jpg new file mode 100755 index 00000000..7c31b73e Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.2.jpg new file mode 100755 index 00000000..e72f52a6 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-2-global-by-motorola.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-pro-by-motorola.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-pro-by-motorola.0.jpg new file mode 100755 index 00000000..c7710de9 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-pro-by-motorola.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-pro-by-motorola.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-pro-by-motorola.1.jpg new file mode 100755 index 00000000..277793ef Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/droid-pro-by-motorola.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.0.jpg new file mode 100755 index 00000000..55e5a23b Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.1.jpg new file mode 100755 index 00000000..6b8116ee Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.2.jpg new file mode 100755 index 00000000..a1b4eb61 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/lg-axis.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.0.jpg new file mode 100755 index 00000000..2446159e Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.1.jpg new file mode 100755 index 00000000..867f2074 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.2.jpg new file mode 100755 index 00000000..27d78338 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.3.jpg new file mode 100755 index 00000000..29459a68 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-atrix-4g.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.0.jpg new file mode 100755 index 00000000..e452ae7e Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.1.jpg new file mode 100755 index 00000000..2238f920 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.2.jpg new file mode 100755 index 00000000..3e711541 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-bravo-with-motoblur.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.0.jpg new file mode 100755 index 00000000..21e4b8d7 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.1.jpg new file mode 100755 index 00000000..fda0828f Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.2.jpg new file mode 100755 index 00000000..c976ea82 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-charm-with-motoblur.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.0.jpg new file mode 100755 index 00000000..c7c5e3ba Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.1.jpg new file mode 100755 index 00000000..19d90af4 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.2.jpg new file mode 100755 index 00000000..51ce0d6f Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-defy-with-motoblur.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.0.jpg new file mode 100755 index 00000000..a6c99329 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.1.jpg new file mode 100755 index 00000000..400b89e2 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.2.jpg new file mode 100755 index 00000000..86b55d28 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.3.jpg new file mode 100755 index 00000000..85ec293a Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.4.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.4.jpg new file mode 100755 index 00000000..75ef1464 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.4.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.5.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.5.jpg new file mode 100755 index 00000000..4d42db43 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom-with-wi-fi.5.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.0.jpg new file mode 100755 index 00000000..bf6954bb Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.1.jpg new file mode 100755 index 00000000..659688a4 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.2.jpg new file mode 100755 index 00000000..ce0ff100 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/motorola-xoom.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.0.jpg new file mode 100755 index 00000000..0952bc79 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.1.jpg new file mode 100755 index 00000000..f33004dd Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.2.jpg new file mode 100755 index 00000000..c5c63621 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.3.jpg new file mode 100755 index 00000000..e51f75b0 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/nexus-s.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.0.jpg new file mode 100755 index 00000000..3750377a Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.1.jpg new file mode 100755 index 00000000..30b91b2c Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.2.jpg new file mode 100755 index 00000000..cd31f997 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.3.jpg new file mode 100755 index 00000000..195e083f Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.4.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.4.jpg new file mode 100755 index 00000000..06a504ec Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.4.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.5.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.5.jpg new file mode 100755 index 00000000..da3d5481 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.5.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.6.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.6.jpg new file mode 100755 index 00000000..505858c8 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-galaxy-tab.6.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.0.jpg new file mode 100755 index 00000000..0d5024a0 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.1.jpg new file mode 100755 index 00000000..c6aaef8e Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.2.jpg new file mode 100755 index 00000000..d325a58f Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-gem.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg new file mode 100755 index 00000000..11b8f860 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.1.jpg new file mode 100755 index 00000000..451f87c7 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.2.jpg new file mode 100755 index 00000000..066f0a2b Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.3.jpg new file mode 100755 index 00000000..edb3ae99 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-mesmerize-a-galaxy-s-phone.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg new file mode 100755 index 00000000..11b8f860 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.1.jpg new file mode 100755 index 00000000..451f87c7 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.2.jpg new file mode 100755 index 00000000..066f0a2b Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-showcase-a-galaxy-s-phone.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.0.jpg new file mode 100755 index 00000000..0e3107ca Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.1.jpg new file mode 100755 index 00000000..f29fdd91 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.2.jpg new file mode 100755 index 00000000..ba79d48d Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.3.jpg new file mode 100755 index 00000000..240e06cc Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.4.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.4.jpg new file mode 100755 index 00000000..bbc19773 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/samsung-transform.4.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.0.jpg new file mode 100755 index 00000000..9eeb9b96 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.1.jpg new file mode 100755 index 00000000..11bba999 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.2.jpg new file mode 100755 index 00000000..589ef9e2 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/sanyo-zio.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.0.jpg new file mode 100755 index 00000000..6b6c09e0 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.1.jpg new file mode 100755 index 00000000..21a3e230 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.2.jpg new file mode 100755 index 00000000..84ce064b Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-g2.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.0.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.0.jpg new file mode 100755 index 00000000..beba1f68 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.0.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.1.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.1.jpg new file mode 100755 index 00000000..f1c2d063 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.1.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.2.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.2.jpg new file mode 100755 index 00000000..e0fb7988 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.2.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.3.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.3.jpg new file mode 100755 index 00000000..beb557df Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.3.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.4.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.4.jpg new file mode 100755 index 00000000..bdd67c05 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.4.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.5.jpg b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.5.jpg new file mode 100755 index 00000000..beba1f68 Binary files /dev/null and b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/img/phones/t-mobile-mytouch-4g.5.jpg differ diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/index.html new file mode 100755 index 00000000..c2f3a4c6 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/index.html @@ -0,0 +1,30 @@ + + + + + + + Google Phone Gallery + + + + + + + + + + + + + + + + + + +
+
+
+ + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/animations.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/animations.js new file mode 100755 index 00000000..bfc8740f --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/animations.js @@ -0,0 +1,51 @@ +angular.module('phoneKitten.animation', ['ngAnimate']). + animation('.phone', function() { + + var animateUp = function(element, className, done) { + if(className != 'active') { + return; + } + element.css({ + position: 'absolute', + top: 500, + left: 0, + display: 'block' + }); + + jQuery(element).animate({ + top: 0 + }, done); + + return function(cancel) { + if(cancel) { + element.stop(); + } + }; + } + + var animateDown = function(element, className, done) { + if(className != 'active') { + return; + } + element.css({ + position: 'absolute', + left: 0, + top: 0 + }); + + jQuery(element).animate({ + top: -500 + }, done); + + return function(cancel) { + if(cancel) { + element.stop(); + } + }; + } + + return { + addClass: animateUp, + removeClass: animateDown + }; +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/filters.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/filters.js new file mode 100755 index 00000000..6c73a43a --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/filters.js @@ -0,0 +1,7 @@ +'use strict'; + +angular.module('phoneKitten.filters', []).filter('checkmark', function() { + return function(input) { + return input ? '\u2713' : '\u2718'; + }; +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/services.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/services.js new file mode 100755 index 00000000..3c69befb --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/js/services.js @@ -0,0 +1,10 @@ +'use strict'; + +angular.module('phoneKitten.services', ['ngResource']). + factory('Phone', ['$resource', Phone]); + +function Phone($resource) { + return $resource('phones/:phoneId.json', {}, { + query: {method:'GET', params:{phoneId:'phones'}, isArray:true} + }); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/dell-streak-7.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/dell-streak-7.json new file mode 100755 index 00000000..a32eb6ff --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/dell-streak-7.json @@ -0,0 +1,64 @@ +{ + "additionalFeatures": "Front Facing 1.3MP Camera", + "android": { + "os": "Android 2.2", + "ui": "Dell Stage" + }, + "availability": [ + "T-Mobile" + ], + "battery": { + "standbyTime": "", + "talkTime": "", + "type": "Lithium Ion (Li-Ion) (2780 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "T-mobile HSPA+ @ 2100/1900/AWS/850 MHz", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g" + }, + "description": "Introducing Dell\u2122 Streak 7. Share photos, videos and movies together. It\u2019s small enough to carry around, big enough to gather around. Android\u2122 2.2-based tablet with over-the-air upgrade capability for future OS releases. A vibrant 7-inch, multitouch display with full Adobe\u00ae Flash 10.1 pre-installed. Includes a 1.3 MP front-facing camera for face-to-face chats on popular services such as Qik or Skype. 16 GB of internal storage, plus Wi-Fi, Bluetooth and built-in GPS keeps you in touch with the world around you. Connect on your terms. Save with 2-year contract or flexibility with prepaid pay-as-you-go plans", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "7.0 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "nVidia Tegra T20", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "dell-streak-7", + "images": [ + "img/phones/dell-streak-7.0.jpg", + "img/phones/dell-streak-7.1.jpg", + "img/phones/dell-streak-7.2.jpg", + "img/phones/dell-streak-7.3.jpg", + "img/phones/dell-streak-7.4.jpg" + ], + "name": "Dell Streak 7", + "sizeAndWeight": { + "dimensions": [ + "199.9 mm (w)", + "119.8 mm (h)", + "12.4 mm (d)" + ], + "weight": "450.0 grams" + }, + "storage": { + "flash": "16000MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/dell-venue.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/dell-venue.json new file mode 100755 index 00000000..859d9d0f --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/dell-venue.json @@ -0,0 +1,67 @@ +{ + "additionalFeatures": "Gorilla Glass display, Dedicated Camera Key, Ring Silence Switch, Swype keyboard.", + "android": { + "os": "Android 2.2", + "ui": "Dell Stage" + }, + "availability": [ + "AT&T,", + "KT,", + "T-Mobile" + ], + "battery": { + "standbyTime": "400 hours", + "talkTime": "7 hours", + "type": "Lithium Ion (Li-Ion) (1400 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "8.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "850/1900/2100 3G; 850/900/1800/1900 GSM/GPRS/EDGE\n900/1700/2100 3G; 850/900/1800/1900 GSM/GPRS/EDGE", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "The Venue is the perfect one-touch, Smart Phone providing instant access to everything you love. All of Venue's features make it perfect for on-the-go students, mobile professionals, and active social communicators who love style and performance.\n\nElegantly designed, the Venue offers a vibrant, curved glass display that\u2019s perfect for viewing all types of content. The Venue\u2019s slender form factor feels great in your hand and also slips easily into your pocket. A mobile entertainment powerhouse that lets you download the latest tunes from Amazon MP3 or books from Kindle, watch video, or stream your favorite radio stations. All on the go, anytime, anywhere.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "4.1 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1 Ghz processor", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "dell-venue", + "images": [ + "img/phones/dell-venue.0.jpg", + "img/phones/dell-venue.1.jpg", + "img/phones/dell-venue.2.jpg", + "img/phones/dell-venue.3.jpg", + "img/phones/dell-venue.4.jpg", + "img/phones/dell-venue.5.jpg" + ], + "name": "Dell Venue", + "sizeAndWeight": { + "dimensions": [ + "64.0 mm (w)", + "121.0 mm (h)", + "12.9 mm (d)" + ], + "weight": "164.0 grams" + }, + "storage": { + "flash": "1000MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/droid-2-global-by-motorola.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/droid-2-global-by-motorola.json new file mode 100755 index 00000000..59d4fd08 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/droid-2-global-by-motorola.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "Adobe Flash Player 10, Quadband GSM Worldphone, Advance Business Security, Complex Password Secure, Review & Edit Documents with Quick Office, Personal 3G Mobile Hotspot for up to 5 WiFi enabled Devices, Advanced Social Networking brings all social content into a single homescreen widget", + "android": { + "os": "Android 2.2", + "ui": "" + }, + "availability": [ + "Verizon" + ], + "battery": { + "standbyTime": "230 hours", + "talkTime": "8 hours", + "type": "Lithium Ion (Li-Ion) (1400 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "WCDMA 850/1900/2100, CDMA 800/1900, GSM 850/900/1800/1900, HSDPA 10.2 Mbps (Category 9/10), CDMA EV-DO Release A, EDGE Class 12, GPRS Class 12, HSUPA 1.8 Mbps", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "With Quad Band GSM, the DROID 2 Global can send email and make and receive calls from more than 200 countries. It features an improved QWERTY keyboard, super-fast 1.2 GHz processor and enhanced security for all your business needs.", + "display": { + "screenResolution": "FWVGA (854 x 480)", + "screenSize": "3.7 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1.2 GHz TI OMAP", + "fmRadio": false, + "physicalKeyboard": true, + "usb": "USB 2.0" + }, + "id": "droid-2-global-by-motorola", + "images": [ + "img/phones/droid-2-global-by-motorola.0.jpg", + "img/phones/droid-2-global-by-motorola.1.jpg", + "img/phones/droid-2-global-by-motorola.2.jpg" + ], + "name": "DROID\u2122 2 Global by Motorola", + "sizeAndWeight": { + "dimensions": [ + "60.5 mm (w)", + "116.3 mm (h)", + "13.7 mm (d)" + ], + "weight": "169.0 grams" + }, + "storage": { + "flash": "8192MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/droid-pro-by-motorola.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/droid-pro-by-motorola.json new file mode 100755 index 00000000..3e21e9a5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/droid-pro-by-motorola.json @@ -0,0 +1,61 @@ +{ + "additionalFeatures": "Adobe Flash Player 10, Quadband GSM Worldphone, Advance Business Security, Complex Password Secure, Review & Edit Documents with Quick Office, Personal 3G Mobile Hotspot for up to 5 WiFi enabled Devices, Advanced Social Networking brings all social content into a single homescreen widget", + "android": { + "os": "Android 2.2", + "ui": "" + }, + "availability": [ + "Verizon" + ], + "battery": { + "standbyTime": "330 hours", + "talkTime": "7 hours", + "type": "Lithium Ion (Li-Ion) (1400 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "800/1900 CDMA EVDO Rev. A with dual diversity antenna, 850/900/1800/1900MHz GSM, GPRS Class 12, EDGE Class 12, 850/1900/2100 WCDMA (category 9/10), HSDPA 10.2mbps, HSUPA 1.8 mbps", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Access your work directory, email or calendar with DROID Pro by Motorola., an Android-for-business smartphone with corporate-level security. It features both a QWERTY keyboard and touchscreen, a speedy 1 GHz processor and Adobe\u00ae Flash\u00ae Player 10.", + "display": { + "screenResolution": "HVGA (480 x 320)", + "screenSize": "3.1 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1 GHz TI OMAP", + "fmRadio": false, + "physicalKeyboard": true, + "usb": "USB 2.0" + }, + "id": "droid-pro-by-motorola", + "images": [ + "img/phones/droid-pro-by-motorola.0.jpg", + "img/phones/droid-pro-by-motorola.1.jpg" + ], + "name": "DROID\u2122 Pro by Motorola", + "sizeAndWeight": { + "dimensions": [ + "61.0 mm (w)", + "119.0 mm (h)", + "11.7 mm (d)" + ], + "weight": "134.0 grams" + }, + "storage": { + "flash": "2048MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/lg-axis.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/lg-axis.json new file mode 100755 index 00000000..ff8fdef2 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/lg-axis.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "Accessibility features: Tactile QWERTY keyboard, four-direction keypad, start and end call buttons, dedicated number keys, camera button, TalkBack screen reader", + "android": { + "os": "Android 2.1", + "ui": "LG Home" + }, + "availability": [ + "Cellular South" + ], + "battery": { + "standbyTime": "500 hours", + "talkTime": "8 hours", + "type": "Lithium Ion (Li-Ion) (1500 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "3.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "1.9 GHz CDMA PCS, 800 MHz CDMA, EVDO Rev. A, 1xRTT", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g" + }, + "description": "Android plus QWERTY is a powerful duo. LG Axis melds a speedy UI with the limitless micro-entertainment of 80,000+ apps including voice-activated Google. Feel the tactile vibration on its tempered glass touchscreen. Take the fuzziness out of your fun with a 3.2MP camera that does 360\u00b0 panoramics. And customize your home screens with shortcuts to your apps, favorites, and widgets. It's the centerpiece of your life.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "3.2 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "", + "cpu": "600 MHz Qualcomm MSM7627", + "fmRadio": false, + "physicalKeyboard": true, + "usb": "USB 2.0" + }, + "id": "lg-axis", + "images": [ + "img/phones/lg-axis.0.jpg", + "img/phones/lg-axis.1.jpg", + "img/phones/lg-axis.2.jpg" + ], + "name": "LG Axis", + "sizeAndWeight": { + "dimensions": [ + "56.0 mm (w)", + "116.0 mm (h)", + "16.0 mm (d)" + ], + "weight": "158.0 grams" + }, + "storage": { + "flash": "126MB", + "ram": "256MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-atrix-4g.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-atrix-4g.json new file mode 100755 index 00000000..ccca00e3 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-atrix-4g.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "", + "android": { + "os": "Android 2.2", + "ui": "MOTOBLUR" + }, + "availability": [ + "AT&T" + ], + "battery": { + "standbyTime": "400 hours", + "talkTime": "5 hours", + "type": "Lithium Ion (Li-Ion) (1930 mAH)" + }, + "camera": { + "features": [ + "" + ], + "primary": "" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "WCDMA 850/1900/2100, GSM 850/900/1800/1900, HSDPA 14Mbps (Category 10) Edge Class 12, GPRS Class 12, eCompass, AGPS", + "gps": true, + "infrared": false, + "wifi": "802.11 a/b/g/n" + }, + "description": "MOTOROLA ATRIX 4G gives you dual-core processing power and the revolutionary webtop application. With webtop and a compatible Motorola docking station, sold separately, you can surf the Internet with a full Firefox browser, create and edit docs, or access multimedia on a large screen almost anywhere.", + "display": { + "screenResolution": "QHD (960 x 540)", + "screenSize": "4.0 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1 GHz Dual Core", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "motorola-atrix-4g", + "images": [ + "img/phones/motorola-atrix-4g.0.jpg", + "img/phones/motorola-atrix-4g.1.jpg", + "img/phones/motorola-atrix-4g.2.jpg", + "img/phones/motorola-atrix-4g.3.jpg" + ], + "name": "MOTOROLA ATRIX\u2122 4G", + "sizeAndWeight": { + "dimensions": [ + "63.5 mm (w)", + "117.75 mm (h)", + "10.95 mm (d)" + ], + "weight": "135.0 grams" + }, + "storage": { + "flash": "", + "ram": "" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-bravo-with-motoblur.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-bravo-with-motoblur.json new file mode 100755 index 00000000..63577317 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-bravo-with-motoblur.json @@ -0,0 +1,61 @@ +{ + "additionalFeatures": "Adobe\u00ae Flash\u00ae Lite\u00ae 3, DNLA, CrystalTalk\u2122 PLUS technology", + "android": { + "os": "Android 2.1", + "ui": "MOTOBLUR\u2122" + }, + "availability": [ + "AT&T" + ], + "battery": { + "standbyTime": "216 hours", + "talkTime": "6 hours", + "type": "Lithium Ion (Li-Ion) (1540 mAH)" + }, + "camera": { + "features": [ + "Video" + ], + "primary": "3.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "WCDMA 850/1900, GSM 850/900/1800/1900, HSDPA 7.2 Mbps (Category 7/8), EDGE Class 12, GPRS Class 12, HSUPA 2.0 Mbps", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "MOTOROLA BRAVO\u2122 with MOTOBLUR\u2122 with its large 3.7-inch touchscreen and web-browsing capabilities is sure to make an impression. And it keeps your life updated and secure through MOTOBLUR.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "3.7 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "800 Mhz", + "fmRadio": true, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "motorola-bravo-with-motoblur", + "images": [ + "img/phones/motorola-bravo-with-motoblur.0.jpg", + "img/phones/motorola-bravo-with-motoblur.1.jpg", + "img/phones/motorola-bravo-with-motoblur.2.jpg" + ], + "name": "MOTOROLA BRAVO\u2122 with MOTOBLUR\u2122", + "sizeAndWeight": { + "dimensions": [ + "63.0 mm (w)", + "109.0 mm (h)", + "13.3 mm (d)" + ], + "weight": "130.0 grams" + }, + "storage": { + "flash": "", + "ram": "" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-charm-with-motoblur.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-charm-with-motoblur.json new file mode 100755 index 00000000..6ed30bba --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-charm-with-motoblur.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "MOTOBLUR-enabled; battery manager; seven home screens; customize by moving or resizing widgets; Android HTML WebKit w/Flash Lite; BACKTRACK\u2122 navigation pad behind screen", + "android": { + "os": "Android 2.1", + "ui": "MOTOBLUR" + }, + "availability": [ + "T-Mobile,", + "Telus" + ], + "battery": { + "standbyTime": "267 hours", + "talkTime": "5 hours", + "type": "Lithium Ion (Li-Ion) (1170 mAH)" + }, + "camera": { + "features": [ + "Video" + ], + "primary": "3.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.0", + "cell": "WCDMA 1700/2100, GSM 850/900/1800/1900, HSDPA 3.6 Mbps (Category 5/6), EDGE Class 12, GPRS Class 12", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g" + }, + "description": "Motorola CHARM fits easily in your pocket or palm. Includes MOTOBLUR so you can sync and merge your contacts, emails, messages and posts with continuous updates and back-ups.", + "display": { + "screenResolution": "QVGA (320 x 240)", + "screenSize": "2.8 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "600 MHz", + "fmRadio": false, + "physicalKeyboard": true, + "usb": "USB 2.0" + }, + "id": "motorola-charm-with-motoblur", + "images": [ + "img/phones/motorola-charm-with-motoblur.0.jpg", + "img/phones/motorola-charm-with-motoblur.1.jpg", + "img/phones/motorola-charm-with-motoblur.2.jpg" + ], + "name": "Motorola CHARM\u2122 with MOTOBLUR\u2122", + "sizeAndWeight": { + "dimensions": [ + "67.2 mm (w)", + "98.4 mm (h)", + "11.4 mm (d)" + ], + "weight": "110.0 grams" + }, + "storage": { + "flash": "150MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-defy-with-motoblur.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-defy-with-motoblur.json new file mode 100755 index 00000000..ae327b2b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-defy-with-motoblur.json @@ -0,0 +1,64 @@ +{ + "additionalFeatures": "Blockbuster On Demand\u00ae movies and music downloads with connected music player\nWater-resistant and dustproof", + "android": { + "os": "Android 2.1", + "ui": "MOTOBLUR" + }, + "availability": [ + "SFR,", + "T-Mobile,", + "Vodafone" + ], + "battery": { + "standbyTime": "400 hours", + "talkTime": "6 hours", + "type": "Lithium Ion (Li-Ion) (1540 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "WCDMA 850/1700/2100, GSM 850/900/1800/1900, HSDPA 7.2 Mbps (Category 7/8), EDGE Class 12, GPRS Class 12, HSUPA 2.0 Mbps", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "DEFY with MOTOBLUR is ready for everything life throws your way. It's water-resistant and dustproof, with plenty of entertainment options; and, with MOTOBLUR, it automatically delivers messages and status updates right to your home screen.", + "display": { + "screenResolution": "FWVGA (854 x 480)", + "screenSize": "3.7 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "800 MHz TI OMAP3610", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "motorola-defy-with-motoblur", + "images": [ + "img/phones/motorola-defy-with-motoblur.0.jpg", + "img/phones/motorola-defy-with-motoblur.1.jpg", + "img/phones/motorola-defy-with-motoblur.2.jpg" + ], + "name": "Motorola DEFY\u2122 with MOTOBLUR\u2122", + "sizeAndWeight": { + "dimensions": [ + "59.0 mm (w)", + "107.0 mm (h)", + "13.4 mm (d)" + ], + "weight": "118.0 grams" + }, + "storage": { + "flash": "2000MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-xoom-with-wi-fi.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-xoom-with-wi-fi.json new file mode 100755 index 00000000..4ba9c8d5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-xoom-with-wi-fi.json @@ -0,0 +1,65 @@ +{ + "additionalFeatures": "Sensors: proximity, ambient light, barometer, gyroscope", + "android": { + "os": "Android 3.0", + "ui": "Honeycomb" + }, + "availability": [ + "" + ], + "battery": { + "standbyTime": "336 hours", + "talkTime": "24 hours", + "type": "Other ( mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Motorola XOOM with Wi-Fi has a super-powerful dual-core processor and Android\u2122 3.0 (Honeycomb) \u2014 the Android platform designed specifically for tablets. With its 10.1-inch HD widescreen display, you\u2019ll enjoy HD video in a thin, light, powerful and upgradeable tablet.", + "display": { + "screenResolution": "WXGA (1200 x 800)", + "screenSize": "10.1 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1 GHz Dual Core Tegra 2", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "motorola-xoom-with-wi-fi", + "images": [ + "img/phones/motorola-xoom-with-wi-fi.0.jpg", + "img/phones/motorola-xoom-with-wi-fi.1.jpg", + "img/phones/motorola-xoom-with-wi-fi.2.jpg", + "img/phones/motorola-xoom-with-wi-fi.3.jpg", + "img/phones/motorola-xoom-with-wi-fi.4.jpg", + "img/phones/motorola-xoom-with-wi-fi.5.jpg" + ], + "name": "Motorola XOOM\u2122 with Wi-Fi", + "sizeAndWeight": { + "dimensions": [ + "249.1 mm (w)", + "167.8 mm (h)", + "12.9 mm (d)" + ], + "weight": "708.0 grams" + }, + "storage": { + "flash": "32000MB", + "ram": "1000MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-xoom.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-xoom.json new file mode 100755 index 00000000..f0f0c871 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/motorola-xoom.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "Front-facing camera. Sensors: proximity, ambient light, barometer, gyroscope.", + "android": { + "os": "Android 3.0", + "ui": "Android" + }, + "availability": [ + "Verizon" + ], + "battery": { + "standbyTime": "336 hours", + "talkTime": "24 hours", + "type": "Other (3250 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "CDMA 800 /1900 LTE 700, Rx diversity in all bands", + "gps": true, + "infrared": false, + "wifi": "802.11 a/b/g/n" + }, + "description": "MOTOROLA XOOM has a super-powerful dual-core processor and Android\u2122 3.0 (Honeycomb) \u2014 the Android platform designed specifically for tablets. With its 10.1-inch HD widescreen display, you\u2019ll enjoy HD video in a thin, light, powerful and upgradeable tablet.", + "display": { + "screenResolution": "WXGA (1200 x 800)", + "screenSize": "10.1 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1 GHz Dual Core Tegra 2", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "motorola-xoom", + "images": [ + "img/phones/motorola-xoom.0.jpg", + "img/phones/motorola-xoom.1.jpg", + "img/phones/motorola-xoom.2.jpg" + ], + "name": "MOTOROLA XOOM\u2122", + "sizeAndWeight": { + "dimensions": [ + "249.0 mm (w)", + "168.0 mm (h)", + "12.7 mm (d)" + ], + "weight": "726.0 grams" + }, + "storage": { + "flash": "32000MB", + "ram": "1000MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/nexus-s.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/nexus-s.json new file mode 100755 index 00000000..5e712e2f --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/nexus-s.json @@ -0,0 +1,69 @@ +{ + "additionalFeatures": "Contour Display, Near Field Communications (NFC), Three-axis gyroscope, Anti-fingerprint display coating, Internet Calling support (VoIP/SIP)", + "android": { + "os": "Android 2.3", + "ui": "Android" + }, + "availability": [ + "M1,", + "O2,", + "Orange,", + "Singtel,", + "StarHub,", + "T-Mobile,", + "Vodafone" + ], + "battery": { + "standbyTime": "428 hours", + "talkTime": "6 hours", + "type": "Lithium Ion (Li-Ion) (1500 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "Quad-band GSM: 850, 900, 1800, 1900\r\nTri-band HSPA: 900, 2100, 1700\r\nHSPA type: HSDPA (7.2Mbps) HSUPA (5.76Mbps)", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Nexus S is the next generation of Nexus devices, co-developed by Google and Samsung. The latest Android platform (Gingerbread), paired with a 1 GHz Hummingbird processor and 16GB of memory, makes Nexus S one of the fastest phones on the market. It comes pre-installed with the best of Google apps and enabled with new and popular features like true multi-tasking, Wi-Fi hotspot, Internet Calling, NFC support, and full web browsing. With this device, users will also be the first to receive software upgrades and new Google mobile apps as soon as they become available. For more details, visit http://www.google.com/nexus.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "4.0 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1GHz Cortex A8 (Hummingbird) processor", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "nexus-s", + "images": [ + "img/phones/nexus-s.0.jpg", + "img/phones/nexus-s.1.jpg", + "img/phones/nexus-s.2.jpg", + "img/phones/nexus-s.3.jpg" + ], + "name": "Nexus S", + "sizeAndWeight": { + "dimensions": [ + "63.0 mm (w)", + "123.9 mm (h)", + "10.88 mm (d)" + ], + "weight": "129.0 grams" + }, + "storage": { + "flash": "16384MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/phones.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/phones.json new file mode 100755 index 00000000..339b94fb --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/phones.json @@ -0,0 +1,155 @@ +[ + { + "age": 0, + "id": "motorola-xoom-with-wi-fi", + "imageUrl": "img/phones/motorola-xoom-with-wi-fi.0.jpg", + "name": "Motorola XOOM\u2122 with Wi-Fi", + "snippet": "The Next, Next Generation\r\n\r\nExperience the future with Motorola XOOM with Wi-Fi, the world's first tablet powered by Android 3.0 (Honeycomb)." + }, + { + "age": 1, + "id": "motorola-xoom", + "imageUrl": "img/phones/motorola-xoom.0.jpg", + "name": "MOTOROLA XOOM\u2122", + "snippet": "The Next, Next Generation\n\nExperience the future with MOTOROLA XOOM, the world's first tablet powered by Android 3.0 (Honeycomb)." + }, + { + "age": 2, + "carrier": "AT&T", + "id": "motorola-atrix-4g", + "imageUrl": "img/phones/motorola-atrix-4g.0.jpg", + "name": "MOTOROLA ATRIX\u2122 4G", + "snippet": "MOTOROLA ATRIX 4G the world's most powerful smartphone." + }, + { + "age": 3, + "id": "dell-streak-7", + "imageUrl": "img/phones/dell-streak-7.0.jpg", + "name": "Dell Streak 7", + "snippet": "Introducing Dell\u2122 Streak 7. Share photos, videos and movies together. It\u2019s small enough to carry around, big enough to gather around." + }, + { + "age": 4, + "carrier": "Cellular South", + "id": "samsung-gem", + "imageUrl": "img/phones/samsung-gem.0.jpg", + "name": "Samsung Gem\u2122", + "snippet": "The Samsung Gem\u2122 brings you everything that you would expect and more from a touch display smart phone \u2013 more apps, more features and a more affordable price." + }, + { + "age": 5, + "carrier": "Dell", + "id": "dell-venue", + "imageUrl": "img/phones/dell-venue.0.jpg", + "name": "Dell Venue", + "snippet": "The Dell Venue; Your Personal Express Lane to Everything" + }, + { + "age": 6, + "carrier": "Best Buy", + "id": "nexus-s", + "imageUrl": "img/phones/nexus-s.0.jpg", + "name": "Nexus S", + "snippet": "Fast just got faster with Nexus S. A pure Google experience, Nexus S is the first phone to run Gingerbread (Android 2.3), the fastest version of Android yet." + }, + { + "age": 7, + "carrier": "Cellular South", + "id": "lg-axis", + "imageUrl": "img/phones/lg-axis.0.jpg", + "name": "LG Axis", + "snippet": "Android Powered, Google Maps Navigation, 5 Customizable Home Screens" + }, + { + "age": 8, + "id": "samsung-galaxy-tab", + "imageUrl": "img/phones/samsung-galaxy-tab.0.jpg", + "name": "Samsung Galaxy Tab\u2122", + "snippet": "Feel Free to Tab\u2122. The Samsung Galaxy Tab\u2122 brings you an ultra-mobile entertainment experience through its 7\u201d display, high-power processor and Adobe\u00ae Flash\u00ae Player compatibility." + }, + { + "age": 9, + "carrier": "Cellular South", + "id": "samsung-showcase-a-galaxy-s-phone", + "imageUrl": "img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg", + "name": "Samsung Showcase\u2122 a Galaxy S\u2122 phone", + "snippet": "The Samsung Showcase\u2122 delivers a cinema quality experience like you\u2019ve never seen before. Its innovative 4\u201d touch display technology provides rich picture brilliance, even outdoors" + }, + { + "age": 10, + "carrier": "Verizon", + "id": "droid-2-global-by-motorola", + "imageUrl": "img/phones/droid-2-global-by-motorola.0.jpg", + "name": "DROID\u2122 2 Global by Motorola", + "snippet": "The first smartphone with a 1.2 GHz processor and global capabilities." + }, + { + "age": 11, + "carrier": "Verizon", + "id": "droid-pro-by-motorola", + "imageUrl": "img/phones/droid-pro-by-motorola.0.jpg", + "name": "DROID\u2122 Pro by Motorola", + "snippet": "The next generation of DOES." + }, + { + "age": 12, + "carrier": "AT&T", + "id": "motorola-bravo-with-motoblur", + "imageUrl": "img/phones/motorola-bravo-with-motoblur.0.jpg", + "name": "MOTOROLA BRAVO\u2122 with MOTOBLUR\u2122", + "snippet": "An experience to cheer about." + }, + { + "age": 13, + "carrier": "T-Mobile", + "id": "motorola-defy-with-motoblur", + "imageUrl": "img/phones/motorola-defy-with-motoblur.0.jpg", + "name": "Motorola DEFY\u2122 with MOTOBLUR\u2122", + "snippet": "Are you ready for everything life throws your way?" + }, + { + "age": 14, + "carrier": "T-Mobile", + "id": "t-mobile-mytouch-4g", + "imageUrl": "img/phones/t-mobile-mytouch-4g.0.jpg", + "name": "T-Mobile myTouch 4G", + "snippet": "The T-Mobile myTouch 4G is a premium smartphone designed to deliver blazing fast 4G speeds so that you can video chat from practically anywhere, with or without Wi-Fi." + }, + { + "age": 15, + "carrier": "US Cellular", + "id": "samsung-mesmerize-a-galaxy-s-phone", + "imageUrl": "img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg", + "name": "Samsung Mesmerize\u2122 a Galaxy S\u2122 phone", + "snippet": "The Samsung Mesmerize\u2122 delivers a cinema quality experience like you\u2019ve never seen before. Its innovative 4\u201d touch display technology provides rich picture brilliance,even outdoors" + }, + { + "age": 16, + "carrier": "Sprint", + "id": "sanyo-zio", + "imageUrl": "img/phones/sanyo-zio.0.jpg", + "name": "SANYO ZIO", + "snippet": "The Sanyo Zio by Kyocera is an Android smartphone with a combination of ultra-sleek styling, strong performance and unprecedented value." + }, + { + "age": 17, + "id": "samsung-transform", + "imageUrl": "img/phones/samsung-transform.0.jpg", + "name": "Samsung Transform\u2122", + "snippet": "The Samsung Transform\u2122 brings you a fun way to customize your Android powered touch screen phone to just the way you like it through your favorite themed \u201cSprint ID Service Pack\u201d." + }, + { + "age": 18, + "id": "t-mobile-g2", + "imageUrl": "img/phones/t-mobile-g2.0.jpg", + "name": "T-Mobile G2", + "snippet": "The T-Mobile G2 with Google is the first smartphone built for 4G speeds on T-Mobile's new network. Get the information you need, faster than you ever thought possible." + }, + { + "age": 19, + "id": "motorola-charm-with-motoblur", + "imageUrl": "img/phones/motorola-charm-with-motoblur.0.jpg", + "name": "Motorola CHARM\u2122 with MOTOBLUR\u2122", + "snippet": "Motorola CHARM fits easily in your pocket or palm. Includes MOTOBLUR service." + } +] diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-galaxy-tab.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-galaxy-tab.json new file mode 100755 index 00000000..9abeb8d3 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-galaxy-tab.json @@ -0,0 +1,69 @@ +{ + "additionalFeatures": "Adobe\u00ae Flash\u00ae Player compatible; 1.3MP front-facing camera for video chat; eReader pre-loaded; Swype text input technology\r\n", + "android": { + "os": "Android 2.2", + "ui": "TouchWiz" + }, + "availability": [ + "AT&T,", + "Sprint,", + "T-Mobile,", + "Verizon" + ], + "battery": { + "standbyTime": "780 hours", + "talkTime": "", + "type": "Lithium Ion (Li-Ion) (4000 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "3.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 3.0", + "cell": "AT&T: GSM/EDGE : 850/900/1800/1900; 3G : 850/1900/2100\r\n\r\nSprint: CDMA : 850/1900MHz\r\n\r\nT-Mobile: GSM/EDGE : 850/900/1800/1900; 3G : 1700/1900\r\n\r\nVerizon: CDMA : 800MHz/1900MHz", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Feel Free to Tab\u2122. The Samsung Galaxy Tab\u2122, the tablet device that delivers enhanced capabilities with advanced mobility, has a large, perfectly sized, 7.0\" screen that offers plenty of room for the thousands of interactive games and apps available for the Android\u2122 platform, and its slim design makes it perfect for travel and one-handed grip. Use the Galaxy Tab to relax and enjoy an e-book, watch rich video or full web content with its Adobe\u00ae Flash\u00ae Player compatibility, video chat using the front-facing camera, or send user-generated content wirelessly to other devices like your TV via AllShare\u2122. With so many options for customization and interactivity, the Galaxy Tab gives you everything you want, anywhere you go\u2026Feel Free to Tab\u2122.", + "display": { + "screenResolution": "WSVGA (1024 x 600)", + "screenSize": "7.0 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1GHz", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "samsung-galaxy-tab", + "images": [ + "img/phones/samsung-galaxy-tab.0.jpg", + "img/phones/samsung-galaxy-tab.1.jpg", + "img/phones/samsung-galaxy-tab.2.jpg", + "img/phones/samsung-galaxy-tab.3.jpg", + "img/phones/samsung-galaxy-tab.4.jpg", + "img/phones/samsung-galaxy-tab.5.jpg", + "img/phones/samsung-galaxy-tab.6.jpg" + ], + "name": "Samsung Galaxy Tab\u2122", + "sizeAndWeight": { + "dimensions": [ + "120.39 mm (w)", + "189.99 mm (h)", + "11.9 mm (d)" + ], + "weight": "379.88 grams" + }, + "storage": { + "flash": "16384MB", + "ram": "640MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-gem.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-gem.json new file mode 100755 index 00000000..ffb7651c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-gem.json @@ -0,0 +1,61 @@ +{ + "additionalFeatures": "3.2\u201d Full touch screen with Advanced anti smudge, anti reflective and anti scratch glass; Swype text input for easy and fast message creation; multiple messaging options, including text with threaded messaging for organized, easy-to-follow text; Social Community support, including Facebook and MySpace; Next generation Address book; Visual Voice Mail\n", + "android": { + "os": "Android 2.1", + "ui": "TouchWiz" + }, + "availability": [ + "Cellular South" + ], + "battery": { + "standbyTime": "800 hours", + "talkTime": "7 hours", + "type": "Nickel Cadmium (NiCd) (1500 mAH)" + }, + "camera": { + "features": [ + "" + ], + "primary": "3.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 3.0", + "cell": "3G/CDMA : 850MHz/1900MHz\n", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g" + }, + "description": "The Samsung Gem\u2122 maps a route to a smarter mobile experience. By pairing one of the fastest processors in the category with the Android\u2122 platform, the Gem delivers maximum multitasking speed and social networking capabilities to let you explore new territory online. A smart phone at an even smarter price is a real find, so uncover the Gem and discover what\u2019s next.", + "display": { + "screenResolution": "WQVGA (400 x 240)", + "screenSize": "3.2 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "800 MHz", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "samsung-gem", + "images": [ + "img/phones/samsung-gem.0.jpg", + "img/phones/samsung-gem.1.jpg", + "img/phones/samsung-gem.2.jpg" + ], + "name": "Samsung Gem\u2122", + "sizeAndWeight": { + "dimensions": [ + "55.5 mm (w)", + "113.0 mm (h)", + "12.4 mm (d)" + ], + "weight": "110.0 grams" + }, + "storage": { + "flash": "220MB", + "ram": "256MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-mesmerize-a-galaxy-s-phone.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-mesmerize-a-galaxy-s-phone.json new file mode 100755 index 00000000..4b90428d --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-mesmerize-a-galaxy-s-phone.json @@ -0,0 +1,63 @@ +{ + "additionalFeatures": "Swype", + "android": { + "os": "Android 2.1", + "ui": "TouchWiz" + }, + "availability": [ + "US Cellular" + ], + "battery": { + "standbyTime": "1000 hours", + "talkTime": "7 hours", + "type": "Lithium Ion (Li-Ion) (1500 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 3.0", + "cell": "3G :800MHz/1900MHz\nCDMA :800MHz/1900MHz", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Experience entertainment in a whole new light. The stylish and slim Samsung Mesmerize\u2122, with its vivid 4-inch Super AMOLED\u2122 display, makes everything from Hollywood blockbusters to music videos to Amazon\u2019s bestsellers look absolutely brilliant \u2013 even outside in the sun. Android\u2122 Market rockets you into a universe filled with equally brilliant apps; download them at blistering speeds thanks to the powerful 1GHz Hummingbird processor. Keep your social life organized and continuously updated with the pre-loaded social networking apps, while uploading all the 5.0MP pics you\u2019ve snapped and 720p HD videos you\u2019ve recorded.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "4.0 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "", + "cpu": "1GHz", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "samsung-mesmerize-a-galaxy-s-phone", + "images": [ + "img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg", + "img/phones/samsung-mesmerize-a-galaxy-s-phone.1.jpg", + "img/phones/samsung-mesmerize-a-galaxy-s-phone.2.jpg", + "img/phones/samsung-mesmerize-a-galaxy-s-phone.3.jpg" + ], + "name": "Samsung Mesmerize\u2122 a Galaxy S\u2122 phone", + "sizeAndWeight": { + "dimensions": [ + "64.2 mm (w)", + "125.0 mm (h)", + "9.97 mm (d)" + ], + "weight": "118.0 grams" + }, + "storage": { + "flash": "2048MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-showcase-a-galaxy-s-phone.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-showcase-a-galaxy-s-phone.json new file mode 100755 index 00000000..c75302ab --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-showcase-a-galaxy-s-phone.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "Swype", + "android": { + "os": "Android 2.1", + "ui": "TouchWiz" + }, + "availability": [ + "Cellular South" + ], + "battery": { + "standbyTime": "800 hours", + "talkTime": "7 hours", + "type": "Lithium Ion (Li-Ion) (1500 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 3.0", + "cell": "3G : 900MHz/1900MHz\nCDMA : 800MHz/1900MHz", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Experience entertainment in a whole new light. The stylish and slim Samsung Showcase\u2122, with its vivid 4-inch Super AMOLED\u2122 display, makes everything from Hollywood blockbusters to music videos to Amazon\u2019s bestsellers look absolutely brilliant \u2013 even outside in the sun. Android\u2122 Market rockets you into a universe filled with equally brilliant apps; download them at blistering speeds thanks to the powerful 1GHz Hummingbird processor. Keep your social life organized and continuously updated with the pre-loaded social networking apps, while uploading all the 5.0MP pics you\u2019ve snapped and 720p HD videos you\u2019ve recorded", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "4.0 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "1 GHz", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "samsung-showcase-a-galaxy-s-phone", + "images": [ + "img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg", + "img/phones/samsung-showcase-a-galaxy-s-phone.1.jpg", + "img/phones/samsung-showcase-a-galaxy-s-phone.2.jpg" + ], + "name": "Samsung Showcase\u2122 a Galaxy S\u2122 phone", + "sizeAndWeight": { + "dimensions": [ + "64.2 mm (w)", + "125.0 mm (h)", + "9.97 mm (d)" + ], + "weight": "118.0 grams" + }, + "storage": { + "flash": "2048MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-transform.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-transform.json new file mode 100755 index 00000000..3e061810 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/samsung-transform.json @@ -0,0 +1,64 @@ +{ + "additionalFeatures": "Access to Sprint ID Service Packs, front and rear facing cameras\n", + "android": { + "os": "Android 2.1", + "ui": "Stock Android + Sprint ID Pack" + }, + "availability": [ + "Sprint" + ], + "battery": { + "standbyTime": "930 hours", + "talkTime": "9 hours", + "type": "Lithium Ion (Li-Ion) (1500 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "3.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "800Mhz, 1900MHz", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "Change your perspective. The Samsung Transform\u2122 is an Android powered device that delivers the truly customizable experience you want your phone to provide. Enjoy a new and easy way to personalize your device for business or for entertainment, showcasing your own favorite theme and more through the new open software platform and the ability to download individual \u2018Sprint ID Service Packs\u2019 that combine and deliver multiple content items and applications specifically for the features you want. Combine this with the 3.5\u201d touch display, QWERTY keyboard, high-speed processor, and both a front and rear facing camera to bring your unique mobile experience to life.", + "display": { + "screenResolution": "HVGA (480 x 320)", + "screenSize": "3.5 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "800 MHz", + "fmRadio": false, + "physicalKeyboard": true, + "usb": "USB 2.0" + }, + "id": "samsung-transform", + "images": [ + "img/phones/samsung-transform.0.jpg", + "img/phones/samsung-transform.1.jpg", + "img/phones/samsung-transform.2.jpg", + "img/phones/samsung-transform.3.jpg", + "img/phones/samsung-transform.4.jpg" + ], + "name": "Samsung Transform\u2122", + "sizeAndWeight": { + "dimensions": [ + "61.5 mm (w)", + "117.0 mm (h)", + "15.3 mm (d)" + ], + "weight": "148.0 grams" + }, + "storage": { + "flash": "180MB", + "ram": "384MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/sanyo-zio.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/sanyo-zio.json new file mode 100755 index 00000000..a63a131c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/sanyo-zio.json @@ -0,0 +1,61 @@ +{ + "additionalFeatures": "Trackball Navigation Control", + "android": { + "os": "Android 2.2", + "ui": "" + }, + "availability": [ + "Sprint" + ], + "battery": { + "standbyTime": "", + "talkTime": "4 hours", + "type": "Lithium Ion (Li-Ion) (1130 mAH)" + }, + "camera": { + "features": [ + "Video" + ], + "primary": "3.2 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "CDMA2000 1xEV-DO Rev.A", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g" + }, + "description": "Zio uses CDMA2000 1xEV-DO rev. A and Wi-Fi technologies and features a 3.5-inch WVGA touch-screen display as a backdrop for a fully customizable mobile multimedia experience. Along with the touch-screen, a trackball helps users navigate features such as the 3.2 MP camera with video record/playback, media player and full HTML Web browser. Zio supports up to 32GB through its external microSD memory slot.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "3.5 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "600MHz Qualcomm MSM7627", + "fmRadio": false, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "sanyo-zio", + "images": [ + "img/phones/sanyo-zio.0.jpg", + "img/phones/sanyo-zio.1.jpg", + "img/phones/sanyo-zio.2.jpg" + ], + "name": "SANYO ZIO", + "sizeAndWeight": { + "dimensions": [ + "58.6 mm (w)", + "116.0 mm (h)", + "12.2 mm (d)" + ], + "weight": "105.0 grams" + }, + "storage": { + "flash": "130MB", + "ram": "256MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/t-mobile-g2.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/t-mobile-g2.json new file mode 100755 index 00000000..7f391bb7 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/t-mobile-g2.json @@ -0,0 +1,62 @@ +{ + "additionalFeatures": "Accessibility features: tactile QWERTY keyboard, trackpad, three programmable keys, camera button", + "android": { + "os": "Android 2.2", + "ui": "Android" + }, + "availability": [ + "T-Mobile" + ], + "battery": { + "standbyTime": "420 hours", + "talkTime": "7 hours", + "type": "Lithium Ion (Li-Ion) (1300 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.1", + "cell": "GSM: 850, 900, 1800, 1900 UMTS: Yes", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "The T-Mobile G1 was the world's first Android-powered phone. Launched nearly two years ago, it created an entirely new class of mobile phones and apps. Its successor, the T-Mobile G2 with Google, will continue the revolution.\n\nThe T-Mobile G2 will deliver tight integration with Google services and break new ground as the first smartphone designed to run at 4G speeds on our new HSPA+ network.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "3.7 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "800 MHz Qualcomm\u00ae Snapdragon\u2122 MSM7230", + "fmRadio": false, + "physicalKeyboard": true, + "usb": "USB 2.0" + }, + "id": "t-mobile-g2", + "images": [ + "img/phones/t-mobile-g2.0.jpg", + "img/phones/t-mobile-g2.1.jpg", + "img/phones/t-mobile-g2.2.jpg" + ], + "name": "T-Mobile G2", + "sizeAndWeight": { + "dimensions": [ + "60.4 mm (w)", + "119.0 mm (h)", + "14.2 mm (d)" + ], + "weight": "180.0 grams" + }, + "storage": { + "flash": "4000MB", + "ram": "512MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/t-mobile-mytouch-4g.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/t-mobile-mytouch-4g.json new file mode 100755 index 00000000..fffeea26 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/phones/t-mobile-mytouch-4g.json @@ -0,0 +1,65 @@ +{ + "additionalFeatures": "Mobile Video Chat, HD Camcorder, Screen Share (DLNA), Genius Button, Wi-Fi Calling, Wi-Fi HotSpot, T-Mobile TV, Slacker Radio, Rock Band, Monopoly, Asphalt 5, myModes, Faves Gallery", + "android": { + "os": "Android 2.2", + "ui": "HTC Sense\u2122" + }, + "availability": [ + "T-Mobile" + ], + "battery": { + "standbyTime": "285 hours", + "talkTime": "7 hours", + "type": "Lithium Ion (Li-Ion) (1400 mAH)" + }, + "camera": { + "features": [ + "Flash", + "Video" + ], + "primary": "5.0 megapixels" + }, + "connectivity": { + "bluetooth": "Bluetooth 2.0", + "cell": "GSM: 850, 900, 1800, 1900; UMTS: Band I/IV", + "gps": true, + "infrared": false, + "wifi": "802.11 b/g/n" + }, + "description": "The myTouch 4G lets you connect fast, communicate easily, and share\u2014all on America\u2019s largest 4G network.\n\nBuilt with families in mind, the newest T-Mobile myTouch 4G helps solve the challenges of staying physically and emotionally connected by sharing photos and video with the HD Camcorder, spontaneous face-to-face conversations through Video Chat, and the ability to reach 4G speeds on T-Mobile\u2019s HSPA+ network.", + "display": { + "screenResolution": "WVGA (800 x 480)", + "screenSize": "3.8 inches", + "touchScreen": true + }, + "hardware": { + "accelerometer": true, + "audioJack": "3.5mm", + "cpu": "2nd Generation 1GHz Qualcomm Snapdragon MSM8255", + "fmRadio": true, + "physicalKeyboard": false, + "usb": "USB 2.0" + }, + "id": "t-mobile-mytouch-4g", + "images": [ + "img/phones/t-mobile-mytouch-4g.0.jpg", + "img/phones/t-mobile-mytouch-4g.1.jpg", + "img/phones/t-mobile-mytouch-4g.2.jpg", + "img/phones/t-mobile-mytouch-4g.3.jpg", + "img/phones/t-mobile-mytouch-4g.4.jpg", + "img/phones/t-mobile-mytouch-4g.5.jpg" + ], + "name": "T-Mobile myTouch 4G", + "sizeAndWeight": { + "dimensions": [ + "62.5 mm (w)", + "122.0 mm (h)", + "11.0 mm (d)" + ], + "weight": "156.0 grams" + }, + "storage": { + "flash": "1100MB", + "ram": "768MB" + } +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/scenario.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/scenario.js new file mode 100644 index 00000000..5bab5d74 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/phone-kitten/scenario.js @@ -0,0 +1,101 @@ +'use strict'; + +var appRoot = 'examples/angular-1/phone-kitten'; + +describe('PhoneCat App', function() { + + // it('should redirect index.html to index.html#/phones', function() { + // browser.get('index.html'); + // browser.getLocationAbsUrl().then(function(url) { + // expect(url.split('#')[1]).toBe('/phones'); + // }); + // }); + + + describe('Phone list view', function() { + + beforeEach(function() { + browser.get(appRoot + '/index.html#/phones'); + }); + + + it('should filter the phone list as a user types into the search box', function() { + + var phoneList = element.all(by.repeater('phone in phoneList.phones')); + var query = element(by.model('phoneList.query')); + + expect(phoneList.count()).toBe(20); + + query.sendKeys('nexus'); + expect(phoneList.count()).toBe(1); + + query.clear(); + query.sendKeys('motorola'); + expect(phoneList.count()).toBe(8); + }); + + + it('should be possible to control phone order via the drop down select box', function() { + + var phoneNameColumn = element.all(by.repeater('phone in phoneList.phones').column('phone.name')); + var query = element(by.model('phoneList.query')); + + function getNames() { + return phoneNameColumn.map(function(elm) { + return elm.getText(); + }); + } + + query.sendKeys('tablet'); //let's narrow the dataset to make the test assertions shorter + + expect(getNames()).toEqual([ + "Motorola XOOM\u2122 with Wi-Fi", + "MOTOROLA XOOM\u2122" + ]); + + element(by.model('phoneList.orderProp')).element(by.css('option[value="name"]')).click(); + + expect(getNames()).toEqual([ + "MOTOROLA XOOM\u2122", + "Motorola XOOM\u2122 with Wi-Fi" + ]); + }); + + + xit('should render phone specific links', function() { + var query = element(by.model('phoneList.query')); + query.sendKeys('nexus'); + element.all(by.css('.phones li a')).first().click(); + browser.getLocationAbsUrl().then(function(url) { + expect(url).toBe('/phones/nexus-s'); + }); + }); + }); + + + describe('Phone detail view', function() { + + beforeEach(function() { + browser.get(appRoot + '/index.html#/phones/nexus-s'); + }); + + + it('should display nexus-s page', function() { + expect(element(by.binding('phoneDetail.phone.name')).getText()).toBe('Nexus S'); + }); + + + it('should display the first phone image as the main phone image', function() { + expect(element(by.css('img.phone.active')).getAttribute('src')).toMatch(/img\/phones\/nexus-s.0.jpg/); + }); + + + it('should swap main image if a thumbnail image is clicked on', function() { + element(by.css('.phone-thumbs li:nth-child(3) img')).click(); + expect(element(by.css('img.phone.active')).getAttribute('src')).toMatch(/img\/phones\/nexus-s.2.jpg/); + + element(by.css('.phone-thumbs li:nth-child(1) img')).click(); + expect(element(by.css('img.phone.active')).getAttribute('src')).toMatch(/img\/phones\/nexus-s.0.jpg/); + }); + }); +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/app.css b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/app.css new file mode 100644 index 00000000..4999ab8d --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/app.css @@ -0,0 +1,9 @@ + +.container { + display: flex; + flex-flow: row; +} + +[ng-viewport] { + flex: 1; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/app.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/app.js new file mode 100644 index 00000000..07bd69e3 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/app.js @@ -0,0 +1,11 @@ +angular.module('myApp', [ + 'ngNewRouter' +]) +.controller('AppController', ['$router', AppController]); + +AppController.$routeConfig = [ + { path: '/', redirectTo: '/users/posts' }, + { path: '/users/posts', components: { left: 'users', right: 'posts' } }, + { path: '/posts/users', components: { left: 'posts', right: 'users' } }, +]; +function AppController($router) {} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/components/posts/posts.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/components/posts/posts.html new file mode 100644 index 00000000..46b3008c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/components/posts/posts.html @@ -0,0 +1,3 @@ +
+

Posts

+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/components/users/users.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/components/users/users.html new file mode 100644 index 00000000..de81e10f --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/components/users/users.html @@ -0,0 +1,3 @@ +
+

Users

+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/index.html new file mode 100644 index 00000000..6c650790 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/sibbling-routes/index.html @@ -0,0 +1,23 @@ + + + + + + + + + + +
+
+
+
+ + + + + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/app.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/app.js new file mode 100644 index 00000000..6a475a9a --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/app.js @@ -0,0 +1,29 @@ +angular.module('myApp', [ + 'ngNewRouter', + 'myApp.intro', + 'myApp.one', + 'myApp.two', + 'myApp.three', + 'myApp.end' +]). + controller('AppController', ['$router', AppController]). + factory('answers', answersFactory); + +function AppController($router) { + $router.config([ + { path: '/', component: 'intro' }, + { path: '/one', component: 'one' }, + { path: '/two', component: 'two' }, + { path: '/three', component: 'three' }, + { path: '/end', component: 'end' } + ]); +} + + +function answersFactory() { + return { + name: null, + quest: null, + favoriteColor: null + }; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/end/end.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/end/end.html new file mode 100644 index 00000000..0d9d59ad --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/end/end.html @@ -0,0 +1,8 @@ +
+

Right, off you go.

+
    +
  • {{ end.answers.name }} is your name
  • +
  • {{ end.answers.quest }} is your quest
  • +
  • {{ end.answers.favoriteColor }} is your favorite color
  • +
+
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/end/end.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/end/end.js new file mode 100644 index 00000000..3dadd1b5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/end/end.js @@ -0,0 +1,10 @@ +angular.module('myApp.end', []). + controller('EndController', ['answers', EndController]); + +function EndController(answers) { + this.answers = answers; +} + +EndController.prototype.canActivate = function() { + return this.answers.name && this.answers.quest && this.answers.favoriteColor; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/intro/intro.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/intro/intro.html new file mode 100644 index 00000000..c7fd0898 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/intro/intro.html @@ -0,0 +1,13 @@ +
+

STOP!

+

+ He who would cross the Bridge of Death
+ Must answer me
+ These questions three
+ Ere the other side he see. +

+ + + Ask me your questions, Bridgekeeper. I am not afraid. + +
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/intro/intro.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/intro/intro.js new file mode 100644 index 00000000..8e7ae1c5 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/intro/intro.js @@ -0,0 +1,4 @@ +angular.module('myApp.intro', []). + controller('IntroController', [IntroController]); + +function IntroController () {} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/one/one.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/one/one.html new file mode 100644 index 00000000..5b222a45 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/one/one.html @@ -0,0 +1,9 @@ +
+

{{ one.question }}

+ + + +
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/one/one.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/one/one.js new file mode 100644 index 00000000..689a638e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/one/one.js @@ -0,0 +1,7 @@ +angular.module('myApp.one', []). + controller('OneController', ['answers', OneController]); + +function OneController (answers) { + this.answers = answers; + this.question = 'What...is your name?'; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/three/three.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/three/three.html new file mode 100644 index 00000000..11e8d447 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/three/three.html @@ -0,0 +1,8 @@ +
+

{{ three.question }}

+ + +
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/three/three.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/three/three.js new file mode 100644 index 00000000..b0a77cec --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/three/three.js @@ -0,0 +1,12 @@ + +angular.module('myApp.three', []). + controller('ThreeController', ['answers', ThreeController]); + +function ThreeController(answers) { + this.answers = answers; + this.question = 'What...is your favorite color?'; +} + +ThreeController.prototype.canActivate = function () { + return this.answers.name && this.answers.quest; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/two/two.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/two/two.html new file mode 100644 index 00000000..f2af8ee4 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/two/two.html @@ -0,0 +1,8 @@ +
+

{{ two.question }}

+ + +
diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/two/two.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/two/two.js new file mode 100644 index 00000000..4e1b732e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/components/two/two.js @@ -0,0 +1,11 @@ +angular.module('myApp.two', []). + controller('TwoController', ['answers', TwoController]); + +function TwoController(answers) { + this.answers = answers; + this.question = 'What...is your quest?'; +} + +TwoController.prototype.canActivate = function () { + return !!this.answers.name; +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/index.html b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/index.html new file mode 100644 index 00000000..19564fb0 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/examples/angular-1/wizard/index.html @@ -0,0 +1,29 @@ + + + + + + + + Wizard + + + +

hello

+ + + + + + + + + + + + + diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/gulpfile.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/gulpfile.js new file mode 100644 index 00000000..e31eb586 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/gulpfile.js @@ -0,0 +1,88 @@ +var gulp = require('gulp'); +var Dgeni = require('dgeni'); +var traceur = require('gulp-traceur'); +var connect = require('gulp-connect'); +var concat = require('gulp-concat'); +var rename = require('gulp-rename'); +var ngAnnotate = require('gulp-ng-annotate'); +var gulpMerge = require('gulp-merge'); +var modulate = require('./scripts/angular-modulate'); +var uglify = require('gulp-uglify'); + +var CONFIG = require('./config'); +var SERVER_CONFIG = CONFIG.server; +var TRACEUR_OPTIONS = CONFIG.traceur; +var BUILD_DIR = CONFIG.build.dir; +var PATH = { + SRC: './src/**/*', + DOCS: './docs/**/*.md', + ATS: './src/**/*.ats' +}; + +gulp.task('build', ['transpile', 'angularify']); + +gulp.task('transpile', function() { + return gulp.src(PATH.ATS) + .pipe(traceur(TRACEUR_OPTIONS)) + .pipe(rename({extname: '.js'})) + .pipe(gulp.dest(BUILD_DIR)); +}); + +gulp.task('angularify', ['transpile'], function() { + var directive = gulp.src('./src/*.es5.js'); + + var generated = gulp.src(['./src/router.ats', './src/grammar.ats']) + .pipe(modulate({ + moduleName: 'ngNewRouter.generated' + })) + + return gulpMerge(directive, generated) + .pipe(concat('router.es5.js')) + .pipe(ngAnnotate()) + .pipe(gulp.dest(BUILD_DIR)) + .pipe(uglify()) + .pipe(rename({extname: '.min.js'})) + .pipe(gulp.dest(BUILD_DIR)); +}); + +gulp.task('dgeni', function() { + try { + var dgeni = new Dgeni([require('./docs/dgeni.conf')]); + return dgeni.generate(); + } catch(x) { + console.log(x.stack); + throw x; + } +}); + +gulp.task('static', function () { + return gulp.src('./docs/*.css', {base: './docs'}) + .pipe(gulp.dest('./dist/docs/')); +}); + +// WATCH FILES FOR CHANGES +gulp.task('watch', function() { + gulp.watch([PATH.SRC, PATH.DOCS], ['build', 'docs']); +}); + + +// WEB SERVER +gulp.task('serve', function() { + connect.server({ + host: SERVER_CONFIG.host, + root: [__dirname], + port: SERVER_CONFIG.port, + livereload: false + }); +}); + +gulp.task('docs', ['dgeni', 'static']); +gulp.task('docs/serve', ['docs'], function() { + connect.server({ + host: SERVER_CONFIG.host, + root: [__dirname + '/dist/docs'], + port: SERVER_CONFIG.port, + livereload: false + }); +}); +gulp.task('default', ['build', 'docs', 'serve', 'watch']); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/index.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/index.js new file mode 100644 index 00000000..60b956ba --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/index.js @@ -0,0 +1,2 @@ +require('./dist/router.es5'); +module.exports = 'ngNewRouter'; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/karma.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/karma.conf.js new file mode 100644 index 00000000..ea54d372 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/karma.conf.js @@ -0,0 +1,45 @@ +// This runs the tests for the router in Angular 2.x + +var traceurOptions = require('./config').traceur; +var sauceConfig = require('./config/karma.sauce.conf'); +var travisConfig = require('./config/karma.travis.conf'); + +module.exports = function(config) { + var options = { + frameworks: ['jasmine', 'requirejs', 'traceur'], + + files: [ + // The entry point that dynamically imports all the specs. + {pattern: 'test/main.js', included: true}, + + // All the specs and sources are included dynamically from `test/main.js`. + {pattern: 'src/**/*.ats', included: false}, + {pattern: 'node_modules/route-recognizer/lib/**/*.js', included: false}, + {pattern: 'test/**/*.ats', included: false}, + + // The runtime assertion library. + {pattern: 'node_modules/rtts-assert/dist/amd/assert.js', included: false} + ], + + preprocessors: { + '**/*.ats': ['traceur'], + 'node_modules/route-recognizer/lib/**/*.js': ['traceur'] + }, + + browsers: ['Chrome'], + + traceurPreprocessor: { + options: traceurOptions, + transformPath: function(path) { + return path.replace(/\.ats$/, '.js'); + } + } + }; + + if (process.argv.indexOf('--sauce') > -1) { + sauceConfig(options); + travisConfig(options); + } + + config.set(options); +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/karma.es5.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/karma.es5.conf.js new file mode 100644 index 00000000..4722ad9d --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/karma.es5.conf.js @@ -0,0 +1,31 @@ +// This runs the tests for the router in Angular 1.x + +var buildDir = require('./config').build.dir; +var sauceConfig = require('./config/karma.sauce.conf'); +var travisConfig = require('./config/karma.travis.conf'); + +module.exports = function(config) { + var options = { + frameworks: ['jasmine'], + + files: [ + 'node_modules/angular/angular.js', + 'node_modules/angular-animate/angular-animate.js', + 'node_modules/angular-mocks/angular-mocks.js', + + buildDir + '/*.es5.js', + + 'test/*.es5.js', + 'test/*.es5.spec.js' + ], + + browsers: ['Chrome'] + }; + + if (process.argv.indexOf('--sauce') > -1) { + sauceConfig(options); + travisConfig(options); + } + + config.set(options); +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/package.json b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/package.json new file mode 100644 index 00000000..91ada96b --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/package.json @@ -0,0 +1,60 @@ +{ + "name": "angular-new-router", + "version": "0.5.3", + "description": "A new router for both Angular 1 and Angular 2", + "homepage": "https://github.com/angular/router", + "main": "dist/router.es5.js", + "repository": { + "type": "git", + "url": "git://github.com/angular/router.git" + }, + "bugs": { + "url": "https://github.com/angular/router/issues" + }, + "dependencies": { + "requirejs": "^2.1.15", + "route-recognizer": "git://github.com/btford/route-recognizer", + "traceur": "^0.0.72" + }, + "devDependencies": { + "angular": "^1.3.7", + "angular-animate": "^1.3.7", + "angular-aria": "^1.3.7", + "angular-mocks": "^1.3.7", + "angular-modal": "^0.5.0", + "angular-resource": "^1.3.7", + "assert": "angular/assert#dist", + "canonical-path": "0.0.2", + "dgeni": "^0.4.1", + "dgeni-packages": "^0.10.8", + "escape-regexp": "0.0.1", + "eshighlight": "^0.2.2", + "falafel": "^0.3.1", + "gulp": "^3.8.9", + "gulp-concat": "^2.4.2", + "gulp-connect": "^2.0.6", + "gulp-merge": "^0.1.0", + "gulp-ng-annotate": "^0.5.2", + "gulp-rename": "^1.2.0", + "gulp-traceur": "^0.13.0", + "gulp-uglify": "^1.1.0", + "highlight.js": "^8.4.0", + "karma": "^0.12.24", + "karma-chrome-launcher": "^0.1.5", + "karma-firefox-launcher": "^0.1.3", + "karma-jasmine": "^0.2.2", + "karma-requirejs": "^0.2.2", + "karma-sauce-launcher": "^0.2.9", + "karma-traceur-preprocessor": "^0.4.0", + "lodash": "^2.4.1", + "marked": "^0.3.2", + "protractor": "^0.21.0", + "q": "^1.1.2", + "through2": "^0.4.1" + }, + "scripts": { + "test": "karma start --single-run" + }, + "author": "Angular Core Team", + "license": "Apache-2.0" +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/protractor.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/protractor.conf.js new file mode 100644 index 00000000..61bee3ab --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/protractor.conf.js @@ -0,0 +1,21 @@ +var SERVER_CONFIG = require('./config').server; + +exports.config = { + allScriptsTimeout: 11000, + + specs: [ + 'examples/**/scenario.js' + ], + + capabilities: { + 'browserName': 'chrome' + }, + + baseUrl: 'http://' + SERVER_CONFIG.host + ':' + SERVER_CONFIG.port + '/', + + framework: 'jasmine', + + jasmineNodeOpts: { + defaultTimeoutInterval: 30000 + } +}; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/protractor.travis.conf.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/protractor.travis.conf.js new file mode 100644 index 00000000..13966051 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/protractor.travis.conf.js @@ -0,0 +1,30 @@ +'use strict'; + +var config = require('./protractor.conf').config; + +config.sauceUser = process.env.SAUCE_USERNAME; +config.sauceKey = process.env.SAUCE_ACCESS_KEY; + +config.multiCapabilities = [{ + 'browserName': 'chrome', + 'platform': 'OS X 10.9', + 'name': 'Angular E2E', + 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, + 'build': process.env.TRAVIS_BUILD_NUMBER, + 'version': '34' +}, { + 'browserName': 'firefox', + 'name': 'Angular E2E', + 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, + 'build': process.env.TRAVIS_BUILD_NUMBER, + 'version': '28' +}, { + browserName: 'safari', + 'platform': 'OS X 10.9', + 'version': '7', + 'name': 'Angular E2E', + 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, + 'build': process.env.TRAVIS_BUILD_NUMBER +}]; + +exports.config = config; diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/angular-modulate.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/angular-modulate.js new file mode 100644 index 00000000..77109723 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/angular-modulate.js @@ -0,0 +1,197 @@ +'use strict'; + +var falafel = require('falafel'); +var through = require('through2'); +var fs = require('fs'); +var path = require('path'); +var traceur = require('traceur'); +var traceurRuntime = fs.readFileSync(__dirname + '/lib/traceur-runtime-custom.js', 'utf8'); +var escape = require('escape-regexp'); + +var TRACEUR_OPTS = { + "asyncFunctions": true, + "types": true, + "typeAssertions": false, + "annotations": true, + "modules": "inline" +}; + +/* + * recursively inline ONLY these definitions + */ +var MODULE_LOCATIONS = { + 'route-recognizer': 'node_modules/route-recognizer/lib/route-recognizer' +}; + +/* + * just add dep, don't try to transpile + */ +var STUB_LOCATIONS = { + './pipeline': true +}; + + +var TRACEUR_CREATE_CLASS = new RegExp('\\$traceurRuntime\\.(createClass|superCall)', 'g'); +function detraceurify (contents) { + return contents.replace(TRACEUR_CREATE_CLASS, '$1'); +} + +var IMPORT_RE = new RegExp("import \\{?(\\w+)\\}? from '(.+)';?", 'g'); +var IMPORT_PARTS_RE = new RegExp("import \\{?(\\w+)\\}? from '(.+)';?"); +var EXPORT_RE = new RegExp("export (default )?"); + +function getParts(importStatement) { + return importStatement.match(IMPORT_PARTS_RE)[1]; +} + + +module.exports = function (opts) { + + // creating a stream through which each file will pass + var stream = through.obj(function(file, enc, cb) { + if (file.isNull()) { + // do nothing + } + + if (file.isBuffer()) { + var contents = file.contents.toString(); + contents = transform(file.cwd, contents); + file.contents = new Buffer(contents.toString()); + } + + this.push(file); + + return cb(); + }); + + // returning the file stream + return stream; +}; + +// console.log("angular.module('ngNewRouter.generated', []);"); +// console.log(traceurRuntime); + + +function transform (dir, contents) { + var imports = []; + + contents = contents.replace(IMPORT_RE, function (match, obj, includePath) { + if (!MODULE_LOCATIONS[includePath]) { + imports.push(match); + return ''; + } + var includeFile = path.join(dir, MODULE_LOCATIONS[includePath]); + console.log(dir, includeFile); + if (includeFile.substr(-3) !== '.js') { + includeFile += '.js'; + } + return 'var ' + obj + '=' + inlineModule(includeFile) + ';'; + }); + + var services = imports.map(getParts).map(serviceify); + contents = traceur.compile(contents, TRACEUR_OPTS); + return detraceurify(unwrapify(contents, services)); +} + + +function inlineModule (filePath, contents) { + contents = contents || fs.readFileSync(filePath, 'utf8'); + + var dir = path.dirname(filePath); + + var wrap = false; + contents = contents.replace(EXPORT_RE, function (match) { + wrap = true; + return 'return '; + }); + if (wrap) { + contents = ['(function(){', contents, '}())'].join(''); + } + + return contents.replace(IMPORT_RE, function (match, obj, includePath) { + var includeFile = path.join(dir, MODULE_LOCATIONS[includePath] || includePath); + if (includeFile.substr(-3) !== '.js') { + includeFile += '.js'; + } + return 'var ' + obj + '=' + inlineModule(includeFile) + ';'; + }); +} + + +function unwrapify (src, services) { + return falafel(src, {tolerant: true}, function (node) { + dollarQify(node) || angularReWrap(node, services); + }).toString(); +} + +function angularReWrap (node, services) { + var decls, decl; + if (node.type === 'VariableDeclaration' && + (decls = node.declarations) && decls.length === 1 && + (decl = decls[0]) && decl.id.name.match(/^\$__anon/)) { + + var body = decl.init.callee.body.body; + var exports = body[body.length - 1]; + body = body.slice(0, -1); + node.update("\nangular.module('ngNewRouter')" + + exports.argument.properties.map(function (prop) { + return angularFactory(serviceify(prop.key.name), + ['$q'].concat(services), + traceurRuntime + '\n' + + body.map(function (body) { + return body.source(); + }).join('\n') + + '\nreturn new ' + + prop.value.body.body[0].argument.name + '(' + services.join(', ') + ');'); + }).join('\n')); + return true; + } + return false; +} + +function angularFactory(name, deps, body) { + return ".factory('" + name + "', [" + + deps.map(function (service) { + return "'" + service + "', "; + }).join('') + + "function (" + deps.join(', ') + ") {\n" + body + "\n}]);"; +} + +/* + * Replace ES6 promises with calls to $q + * + * note that this may not be comprehensive + */ +function dollarQify (node) { + if (node.type === 'NewExpression' && node.callee.name === 'Promise') { + node.update('$q(' + argsToSrc(node) + ')'); + } else if (node.type === 'CallExpression') { + var callee = node.callee.source(), + match, + method; + if (match = callee.match(/^Promise\.(resolve|reject|all)$/)) { + var method = match[1]; + if (method === 'resolve') { + method = 'when'; + } + node.update('$q.' + method + '(' + argsToSrc(node) + ')'); + } + } else { + return false; + } + return true; +} + +/* + * given a node with arguments return the source prepresentation + */ +function argsToSrc (node) { + return node.arguments.map(function (node) { + return node.source(); + }).join(', '); +} + + +function serviceify (name) { + return '$$' + name[0].toLowerCase() + name.substr(1); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/deploy_docs_to_gh_pages.sh b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/deploy_docs_to_gh_pages.sh new file mode 100755 index 00000000..b9875006 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/deploy_docs_to_gh_pages.sh @@ -0,0 +1,54 @@ +#!/bin/bash +echo "Starting deployment" +echo "Target: gh-pages branch" + +TEMP_DIRECTORY="/tmp/__temp_static_content" +CURRENT_COMMIT=`git rev-parse HEAD` +ORIGIN_URL="https://github.com/angular/router.git" +ORIGIN_URL_WITH_CREDENTIALS=${ORIGIN_URL/\/\/github.com/\/\/$GITHUB_TOKEN@github.com} +COMMIT_MESSAGE=`git log --format=%B --no-merges -n 1` + +# Check if commit message contains command to build docs +if echo "$COMMIT_MESSAGE" | grep '\[build-docs\]' + then + echo "Building new documentation" + else + echo "No need to rebuild documentation" + exit 0 +fi + +mkdir $TEMP_DIRECTORY || exit 1 +gulp dgeni || exit 1 +cp -r ./dist/docs/* $TEMP_DIRECTORY || exit 1 +cp ./docs/*.css $TEMP_DIRECTORY || exit 1 +cp .gitignore $TEMP_DIRECTORY || exit 1 + +echo "Checking out gh-pages branch" +git checkout -B gh-pages || exit 1 + +echo "Removing old static content" +git rm -rf . || exit 1 + +echo "Copying newly generated documentation" +ls -al $TEMP_DIRECTORY || exit 1 +cp -r $TEMP_DIRECTORY/* . || exit 1 +cp $TEMP_DIRECTORY/.gitignore . || exit 1 + +echo "Configuring git credentials" +git config user.name "Travis-CI" || exit 1 +git config user.email "travis@angular.io" || exit 1 + +echo "Adding files to git staging area" +git add -A . || exit 1 + +echo "Creating git commit" +git commit --allow-empty -m "Regenerated documentation for $CURRENT_COMMIT" || exit 1 + +echo "Pushing new documentation to $ORIGIN_URL" +git push --force --quiet "$ORIGIN_URL_WITH_CREDENTIALS" gh-pages > /dev/null 2>&1 + +echo "Cleaning up temp files" +rm -Rf $TEMP_DIRECTORY + +echo "Deployed successfully." +exit 0 diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/lib/traceur-runtime-custom.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/lib/traceur-runtime-custom.js new file mode 100644 index 00000000..cdd25b35 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/lib/traceur-runtime-custom.js @@ -0,0 +1,83 @@ +/* + * artisinal, handcrafted subset of the traceur runtime for picky webdevs + */ + +var $defineProperty = Object.defineProperty, + $defineProperties = Object.defineProperties, + $create = Object.create, + $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, + $getOwnPropertyNames = Object.getOwnPropertyNames, + $getPrototypeOf = Object.getPrototypeOf; + +function createClass(ctor, object, staticObject, superClass) { + $defineProperty(object, 'constructor', { + value: ctor, + configurable: true, + enumerable: false, + writable: true + }); + if (arguments.length > 3) { + if (typeof superClass === 'function') + ctor.__proto__ = superClass; + ctor.prototype = $create(getProtoParent(superClass), getDescriptors(object)); + } else { + ctor.prototype = object; + } + $defineProperty(ctor, 'prototype', { + configurable: false, + writable: false + }); + return $defineProperties(ctor, getDescriptors(staticObject)); +} + +function getProtoParent(superClass) { + if (typeof superClass === 'function') { + var prototype = superClass.prototype; + if (Object(prototype) === prototype || prototype === null) + return superClass.prototype; + throw new TypeError('super prototype must be an Object or null'); + } + if (superClass === null) + return null; + throw new TypeError(("Super expression must either be null or a function, not " + typeof superClass + ".")); +} + +function getDescriptors(object) { + var descriptors = {}; + var names = $getOwnPropertyNames(object); + for (var i = 0; i < names.length; i++) { + var name = names[i]; + descriptors[name] = $getOwnPropertyDescriptor(object, name); + } + // TODO: someday you might use symbols and you'll have to re-evaluate + // your life choices that led to the creation of this file + + // var symbols = getOwnPropertySymbols(object); + // for (var i = 0; i < symbols.length; i++) { + // var symbol = symbols[i]; + // descriptors[$traceurRuntime.toProperty(symbol)] = $getOwnPropertyDescriptor(object, $traceurRuntime.toProperty(symbol)); + // } + return descriptors; +} +function superDescriptor(homeObject, name) { + var proto = $getPrototypeOf(homeObject); + do { + var result = $getOwnPropertyDescriptor(proto, name); + if (result) + return result; + proto = $getPrototypeOf(proto); + } while (proto); + return undefined; +} +function superCall(self, homeObject, name, args) { + return superGet(self, homeObject, name).apply(self, args); +} +function superGet(self, homeObject, name) { + var descriptor = superDescriptor(homeObject, name); + if (descriptor) { + if (!descriptor.get) + return descriptor.value; + return descriptor.get.call(self); + } + return undefined; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/run_protractor_tests.sh b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/run_protractor_tests.sh new file mode 100755 index 00000000..c831e9fc --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/run_protractor_tests.sh @@ -0,0 +1,56 @@ +set -e + +killSeleniumAndWebserver() { + if [ -n "$SELENIUM_PID" ]; then + echo "Killing Selenium..." + kill $SELENIUM_PID + fi + + if [ -n "$WEBSERVER_PID" ]; then + echo "Killing the web server..." + kill $WEBSERVER_PID + fi +} + +trap "killSeleniumAndWebserver" INT TERM EXIT + + +if [ -z "$TRAVIS" ]; then + SELENIUM_JAR="./selenium-server-standalone-2.41.0.jar" + + if [ ! -f $SELENIUM_JAR ]; then + # Download Selenium. + curl http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar > $SELENIUM_JAR + fi + + CHROMEDRIVER_BIN="./chromedriver/chromedriver" + if [ ! -f $CHROMEDRIVER_BIN ]; then + + OS=$(uname -s) + if [[ $OS = "Darwin" ]]; then + unzip ./chromedriver/chromedriver_mac.zip -d chromedriver + elif [[ $OS = "Linux" ]]; then + unzip ./chromedriver/chromedriver_linux.zip -d chromedriver + else + echo "There is no chromedriver binary for $OS." + exit 1 + fi + fi + + # Start Selenium. + java -jar $SELENIUM_JAR -Dwebdriver.chrome.driver=$CHROMEDRIVER_BIN > selenium.log & + SELENIUM_PID=$! +fi + + +# Start the webserver +gulp serve > connect-webserver.log & +WEBSERVER_PID=$! + + +# Lame, wait for Selenium and the webserver to start. +sleep 10 + + +# Run Protractor. +./node_modules/.bin/protractor examples/protractor.conf.js diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/sauce_connect_setup.sh b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/sauce_connect_setup.sh new file mode 100755 index 00000000..14f7361c --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/sauce_connect_setup.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +set -e + +# Setup and start Sauce Connect for your TravisCI build +# This script requires your .travis.yml to include the following two private env variables: +# SAUCE_USERNAME +# SAUCE_ACCESS_KEY +# Follow the steps at https://saucelabs.com/opensource/travis to set that up. +# +# Curl and run this script as part of your .travis.yml before_script section: +# before_script: +# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash + +CONNECT_URL="https://saucelabs.com/downloads/sc-4.3-linux.tar.gz" +CONNECT_DIR="/tmp/sauce-connect-$RANDOM" +CONNECT_DOWNLOAD="sc-latest-linux.tar.gz" + +CONNECT_LOG="$LOGS_DIR/sauce-connect" +CONNECT_STDOUT="$LOGS_DIR/sauce-connect.stdout" +CONNECT_STDERR="$LOGS_DIR/sauce-connect.stderr" + +# Get Connect and start it +mkdir -p $CONNECT_DIR +cd $CONNECT_DIR +curl $CONNECT_URL -o $CONNECT_DOWNLOAD 2> /dev/null 1> /dev/null +mkdir sauce-connect +tar --extract --file=$CONNECT_DOWNLOAD --strip-components=1 --directory=sauce-connect > /dev/null +rm $CONNECT_DOWNLOAD + +SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev` + + +ARGS="" + +# Set tunnel-id only on Travis, to make local testing easier. +if [ ! -z "$TRAVIS_JOB_NUMBER" ]; then + ARGS="$ARGS --tunnel-identifier $TRAVIS_JOB_NUMBER" +fi +if [ ! -z "$BROWSER_PROVIDER_READY_FILE" ]; then + ARGS="$ARGS --readyfile $BROWSER_PROVIDER_READY_FILE" +fi + + +echo "Starting Sauce Connect in the background, logging into:" +echo " $CONNECT_LOG" +echo " $CONNECT_STDOUT" +echo " $CONNECT_STDERR" +sauce-connect/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY -v $ARGS \ + --logfile $CONNECT_LOG 2> $CONNECT_STDERR 1> $CONNECT_STDOUT & diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/test_on_sauce.sh b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/test_on_sauce.sh new file mode 100755 index 00000000..31fd08f2 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/test_on_sauce.sh @@ -0,0 +1,20 @@ +#! /bin/bash +SCRIPT_DIR=$(dirname $0) +cd $SCRIPT_DIR/.. + +function killServer { + kill $serverPid +} + +gulp build +gulp serve & +serverPid=$! + +trap killServer EXIT + +SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev` + +karma start --sauce & +karma start karma.es5.conf.js --sauce & +protractor protractor.travis.conf.js & +wait %2 %3 %4 diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/wait_for_browser_provider.sh b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/wait_for_browser_provider.sh new file mode 100755 index 00000000..d5449063 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/scripts/wait_for_browser_provider.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# TODO(vojta): move this to pipe repo. + +# Wait for Connect to be ready before exiting +while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do + sleep .5 +done diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/grammar.ats b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/grammar.ats new file mode 100644 index 00000000..47b42af6 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/grammar.ats @@ -0,0 +1,208 @@ +import RouteRecognizer from 'route-recognizer'; + +var CHILD_ROUTE_SUFFIX = '/*childRoute'; + +/* + * only one of these + */ +export class Grammar { + constructor() { + this.rules = {}; + } + + config(name, config) { + if (name === 'app') { + name = '/'; + } + if (!this.rules[name]) { + this.rules[name] = new CanonicalRecognizer(name); + } + this.rules[name].config(config); + } + + recognize(url:string, componentName = '/') { + if (typeof url === 'undefined') { + return; + } + + var componentRecognizer = this.rules[componentName]; + if (!componentRecognizer) { + return; + } + + var context = componentRecognizer.recognize(url); + if (!context) { + return; + } + + var lastContextChunk = context[context.length - 1]; + var lastHandler = lastContextChunk.handler; + var lastParams = lastContextChunk.params; + + var instruction = { + viewports: {}, + params: lastParams + }; + + if (lastParams && lastParams.childRoute) { + var childUrl = '/' + lastParams.childRoute; + // TODO: handle multiple children + instruction.canonicalUrl = lastHandler.rewroteUrl.substr(0, lastHandler.rewroteUrl.length - (lastParams.childRoute.length + 1)); + + forEach(lastHandler.components, (componentName, viewportName) => { + instruction.viewports[viewportName] = this.recognize(childUrl, componentName); + }); + + instruction.canonicalUrl += instruction.viewports[Object.keys(instruction.viewports)[0]].canonicalUrl; + } else { + instruction.canonicalUrl = lastHandler.rewroteUrl; + forEach(lastHandler.components, (componentName, viewportName) => { + instruction.viewports[viewportName] = { + viewports: {} + }; + }); + } + + forEach(instruction.viewports, (instruction, componentName) => { + instruction.component = lastHandler.components[componentName]; + instruction.params = lastParams; + }); + + return instruction; + } + + generate(name, params) { + var path = ''; + var solution; + do { + solution = null; + forEach(this.rules, recognizer => { + if (recognizer.hasRoute(name)) { + path = recognizer.generate(name, params) + path; + solution = recognizer; + } + }); + if (!solution) { + return ''; + } + name = solution.name; + } while (solution.name !== '/'); + + return path; + } +} + +/* + * includes redirect rules + */ +class CanonicalRecognizer { + constructor(name) { + this.name = name; + this.rewrites = {}; + this.recognizer = new RouteRecognizer(); + } + + config(mapping) { + if (mapping instanceof Array) { + mapping.forEach(nav => this.configOne(nav)); + } else { + this.configOne(mapping); + } + } + + getCanonicalUrl(url) { + if (url[0] === '.') { + url = url.substr(1); + } + + if (url === '' || url[0] !== '/') { + url = '/' + url; + } + + // TODO: normalize this + forEach(this.rewrites, function (toUrl, fromUrl) { + if (fromUrl === '/') { + if (url === '/') { + url = toUrl; + } + } else if (url.indexOf(fromUrl) === 0) { + url = url.replace(fromUrl, toUrl); + } + }); + + return url; + } + + configOne(mapping) { + if (mapping.redirectTo) { + if (this.rewrites[mapping.path]) { + throw new Error('"' + mapping.path + '" already maps to "' + this.rewrites[mapping.path] + '"'); + } + this.rewrites[mapping.path] = mapping.redirectTo; + return; + } + + // normalize "component" and "components" in config + if (mapping.component) { + if (mapping.components) { + throw new Error('A route config should have either a "component" or "components" property, but not both.'); + } + mapping.components = mapping.component; + delete mapping.component; + } + if (typeof mapping.components === 'string') { + mapping.components = { default: mapping.components }; + } + var aliases; + if (mapping.as) { + aliases = [mapping.as]; + } else { + aliases = mapObj(mapping.components, + (componentName, viewportName) => viewportName + ':' + componentName); + + if (mapping.components.default) { + aliases.push(mapping.components.default); + } + } + aliases.forEach(alias => this.recognizer.add([{ path: mapping.path, handler: mapping }], { as: alias })); + + var withChild = copy(mapping); + withChild.path += CHILD_ROUTE_SUFFIX; + this.recognizer.add([{ + path: withChild.path, + handler: withChild + }]); + } + + recognize(url) { + var canonicalUrl = this.getCanonicalUrl(url); + var context = this.recognizer.recognize(canonicalUrl); + if (context) { + context[0].handler.rewroteUrl = canonicalUrl; + } + return context; + } + + generate(name, params) { + return this.recognizer.generate(name, params); + } + + hasRoute(name) { + return this.recognizer.hasRoute(name); + } +} + + +function copy(obj) { + return JSON.parse(JSON.stringify(obj)); +} + +function forEach(obj, fn) { + Object.keys(obj).forEach(key => fn(obj[key], key)); +} + +function mapObj(obj, fn) { + var result = []; + Object.keys(obj).forEach(key => result.push(fn(obj[key], key))); + return result; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/pipeline.ats b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/pipeline.ats new file mode 100644 index 00000000..2cbade64 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/pipeline.ats @@ -0,0 +1,30 @@ +export class Pipeline { + constructor() { + this.steps = [ + instruction => instruction.router.makeDescendantRouters(instruction), + instruction => instruction.router.canDeactivatePorts(instruction), + instruction => instruction.router.traversePorts((port, name) => { + return boolToPromise(port.canActivate(instruction.viewports[name])); + }), + instruction => instruction.router.activatePorts(instruction) + ]; + } + process(instruction) { + // make a copy + var steps = this.steps.slice(0); + + function processOne(result) { + if (steps.length === 0) { + return result; + } + var step = steps.shift(); + return Promise.resolve(step(instruction)).then(processOne); + } + + return processOne(); + } +} + +function boolToPromise (value) { + return value ? Promise.resolve(value) : Promise.reject(); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/router-directive.es5.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/router-directive.es5.js new file mode 100644 index 00000000..e85180d9 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/router-directive.es5.js @@ -0,0 +1,549 @@ +'use strict'; + +/* + * A module for adding new a routing system Angular 1. + */ +angular.module('ngNewRouter', []) + .factory('$router', routerFactory) + .value('$routeParams', {}) + .provider('$componentLoader', $componentLoaderProvider) + .provider('$pipeline', pipelineProvider) + .factory('$$pipeline', privatePipelineFactory) + .factory('$setupRoutersStep', setupRoutersStepFactory) + .factory('$initLocalsStep', initLocalsStepFactory) + .factory('$initControllersStep', initControllersStepFactory) + .factory('$runCanDeactivateHookStep', runCanDeactivateHookStepFactory) + .factory('$runCanActivateHookStep', runCanActivateHookStepFactory) + .factory('$loadTemplatesStep', loadTemplatesStepFactory) + .value('$activateStep', activateStepValue) + .directive('ngViewport', ngViewportDirective) + .directive('ngViewport', ngViewportFillContentDirective) + .directive('ngLink', ngLinkDirective) + .directive('a', anchorLinkDirective) + + + + +/* + * A module for inspecting controller constructors + */ +angular.module('ng') + .provider('$controllerIntrospector', $controllerIntrospectorProvider) + .config(controllerProviderDecorator); + +/* + * decorates with routing info + */ +function controllerProviderDecorator($controllerProvider, $controllerIntrospectorProvider) { + var register = $controllerProvider.register; + $controllerProvider.register = function (name, ctrl) { + $controllerIntrospectorProvider.register(name, ctrl); + return register.apply(this, arguments); + }; +} + +/* + * private service that holds route mappings for each controller + */ +function $controllerIntrospectorProvider() { + var controllers = []; + var onControllerRegistered = null; + return { + register: function (name, constructor) { + if (angular.isArray(constructor)) { + constructor = constructor[constructor.length - 1]; + } + if (constructor.$routeConfig) { + if (onControllerRegistered) { + onControllerRegistered(name, constructor.$routeConfig); + } else { + controllers.push({name: name, config: constructor.$routeConfig}); + } + } + }, + $get: ['$componentLoader', function ($componentLoader) { + return function (newOnControllerRegistered) { + onControllerRegistered = function (name, constructor) { + name = $componentLoader.component(name); + return newOnControllerRegistered(name, constructor); + }; + while(controllers.length > 0) { + var rule = controllers.pop(); + onControllerRegistered(rule.name, rule.config); + } + } + }] + } +} + +function routerFactory($$rootRouter, $rootScope, $location, $$grammar, $controllerIntrospector) { + + $controllerIntrospector(function (name, config) { + $$grammar.config(name, config); + }); + + $rootScope.$watch(function () { + return $location.path(); + }, function (newUrl) { + $$rootRouter.navigate(newUrl); + }); + + var nav = $$rootRouter.navigate; + $$rootRouter.navigate = function (url) { + return nav.call(this, url).then(function (newUrl) { + if (newUrl) { + $location.path(newUrl); + } + }); + } + + return $$rootRouter; +} + +/** + * @name ngViewport + * + * @description + * An ngViewport is where resolved content goes. + * + * ## Use + * + * ```html + *
+ * ``` + * + * The value for the `ngViewport` attribute is optional. + */ +function ngViewportDirective($animate, $injector, $q, $router) { + var rootRouter = $router; + + return { + restrict: 'AE', + transclude: 'element', + terminal: true, + priority: 400, + require: ['?^^ngViewport', 'ngViewport'], + link: viewportLink, + controller: function() {}, + controllerAs: '$$ngViewport' + }; + + function invoke(method, context, instruction) { + return $injector.invoke(method, context, instruction.locals); + } + + function viewportLink(scope, $element, attrs, ctrls, $transclude) { + var viewportName = attrs.ngViewport || 'default', + parentCtrl = ctrls[0], + myCtrl = ctrls[1], + router = (parentCtrl && parentCtrl.$$router) || rootRouter; + + var currentScope, + newScope, + currentController, + currentElement, + previousLeaveAnimation, + previousInstruction; + + function cleanupLastView() { + if (previousLeaveAnimation) { + $animate.cancel(previousLeaveAnimation); + previousLeaveAnimation = null; + } + + if (currentScope) { + currentScope.$destroy(); + currentScope = null; + } + if (currentElement) { + previousLeaveAnimation = $animate.leave(currentElement); + previousLeaveAnimation.then(function() { + previousLeaveAnimation = null; + }); + currentElement = null; + } + } + + router.registerViewport({ + canDeactivate: function(instruction) { + if (currentController && currentController.canDeactivate) { + return invoke(currentController.canDeactivate, currentController, instruction); + } + return true; + }, + activate: function(instruction) { + var nextInstruction = serializeInstruction(instruction); + if (nextInstruction === previousInstruction) { + return; + } + + instruction.locals.$scope = newScope = scope.$new(); + myCtrl.$$router = instruction.router; + myCtrl.$$template = instruction.template; + var componentName = instruction.component; + var clone = $transclude(newScope, function(clone) { + $animate.enter(clone, null, currentElement || $element); + cleanupLastView(); + }); + + var newController = instruction.controller; + newScope[componentName] = newController; + + var result; + if (currentController && currentController.deactivate) { + result = $q.when(invoke(currentController.deactivate, currentController, instruction)); + } + + currentController = newController; + + currentElement = clone; + currentScope = newScope; + + previousInstruction = nextInstruction; + + // finally, run the hook + if (newController.activate) { + var activationResult = $q.when(invoke(newController.activate, newController, instruction)); + if (result) { + return result.then(activationResult); + } else { + return activationResult; + } + } + return result; + } + }, viewportName); + } + + // TODO: how best to serialize? + function serializeInstruction(instruction) { + return JSON.stringify({ + path: instruction.path, + component: instruction.component, + params: Object.keys(instruction.params).reduce(function (acc, key) { + return (key !== 'childRoute' && (acc[key] = instruction.params[key])), acc; + }, {}) + }); + } +} + +function ngViewportFillContentDirective($compile) { + return { + restrict: 'EA', + priority: -400, + require: 'ngViewport', + link: function(scope, $element, attrs, ctrl) { + var template = ctrl.$$template; + $element.html(template); + var link = $compile($element.contents()); + link(scope); + } + }; +} + +function makeComponentString(name) { + return [ + '', + '' + ].join(''); +} + + +var LINK_MICROSYNTAX_RE = /^(.+?)(?:\((.*)\))?$/; +/** + * @name ngLink + * @description + * Lets you link to different parts of the app, and automatically generates hrefs. + * + * ## Use + * The directive uses a simple syntax: `router-link="componentName({ param: paramValue })"` + * + * ## Example + * + * ```js + * angular.module('myApp', ['ngFuturisticRouter']) + * .controller('AppController', ['$router', function($router) { + * $router.config({ path: '/user/:id' component: 'user' }); + * this.user = { name: 'Brian', id: 123 }; + * }); + * ``` + * + * ```html + * + * ``` + */ +function ngLinkDirective($router, $location, $parse) { + var rootRouter = $router; + + return { + require: '?^^ngViewport', + restrict: 'A', + link: ngLinkDirectiveLinkFn + }; + + function ngLinkDirectiveLinkFn(scope, elt, attrs, ctrl) { + var router = (ctrl && ctrl.$$router) || rootRouter; + if (!router) { + return; + } + + var link = attrs.ngLink || ''; + var parts = link.match(LINK_MICROSYNTAX_RE); + var routeName = parts[1]; + var routeParams = parts[2]; + var url; + + if (routeParams) { + var routeParamsGetter = $parse(routeParams); + // we can avoid adding a watcher if it's a literal + if (routeParamsGetter.constant) { + var params = routeParamsGetter(); + url = '.' + router.generate(routeName, params); + elt.attr('href', url); + } else { + scope.$watch(function() { + return routeParamsGetter(scope); + }, function(params) { + url = '.' + router.generate(routeName, params); + elt.attr('href', url); + }, true); + } + } else { + url = '.' + router.generate(routeName); + elt.attr('href', url); + } + } +} + + +function anchorLinkDirective($router) { + return { + restrict: 'E', + link: function(scope, element) { + // If the linked element is not an anchor tag anymore, do nothing + if (element[0].nodeName.toLowerCase() !== 'a') return; + + // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute. + var hrefAttrName = Object.prototype.toString.call(element.prop('href')) === '[object SVGAnimatedString]' ? + 'xlink:href' : 'href'; + + element.on('click', function(event) { + var href = element.attr(hrefAttrName); + if (!href) { + event.preventDefault(); + } + if ($router.recognize(href)) { + $router.navigate(href); + event.preventDefault(); + } + }); + } + } +} + +function setupRoutersStepFactory() { + return function (instruction) { + return instruction.router.makeDescendantRouters(instruction); + } +} + +/* + * $initLocalsStep + */ +function initLocalsStepFactory() { + return function initLocals(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + return instruction.locals = { + $router: instruction.router, + $routeParams: (instruction.params || {}) + }; + }); + } +} + +/* + * $initControllersStep + */ +function initControllersStepFactory($controller, $componentLoader) { + return function initControllers(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + var controllerName = $componentLoader.controllerName(instruction.component); + var locals = instruction.locals; + var ctrl; + try { + ctrl = $controller(controllerName, locals); + } catch(e) { + console.warn && console.warn('Could not instantiate controller', controllerName); + ctrl = $controller(angular.noop, locals); + } + return instruction.controller = ctrl; + }); + } +} + +function runCanDeactivateHookStepFactory() { + return function runCanDeactivateHook(instruction) { + return instruction.router.canDeactivatePorts(instruction); + }; +} + +function runCanActivateHookStepFactory($injector) { + + function invoke(method, context, instruction) { + return $injector.invoke(method, context, { + $routeParams: instruction.params + }); + } + + return function runCanActivateHook(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + var controller = instruction.controller; + return !controller.canActivate || invoke(controller.canActivate, controller, instruction); + }); + } +} + +function loadTemplatesStepFactory($componentLoader, $templateRequest) { + return function loadTemplates(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + var componentTemplateUrl = $componentLoader.template(instruction.component); + return $templateRequest(componentTemplateUrl).then(function (templateHtml) { + return instruction.template = templateHtml; + }); + }); + }; +} + + +function activateStepValue(instruction) { + return instruction.router.activatePorts(instruction); +} + + +function pipelineProvider() { + var stepConfiguration; + + var protoStepConfiguration = [ + '$setupRoutersStep', + '$initLocalsStep', + '$initControllersStep', + '$runCanDeactivateHookStep', + '$runCanActivateHookStep', + '$loadTemplatesStep', + '$activateStep' + ]; + + return { + steps: protoStepConfiguration.slice(0), + config: function (newConfig) { + protoStepConfiguration = newConfig; + }, + $get: function ($injector, $q) { + stepConfiguration = protoStepConfiguration.map(function (step) { + return $injector.get(step); + }); + return { + process: function(instruction) { + // make a copy + var steps = stepConfiguration.slice(0); + + function processOne(result) { + if (steps.length === 0) { + return result; + } + var step = steps.shift(); + return $q.when(step(instruction)).then(processOne); + } + + return processOne(); + } + } + } + }; +} + + +/** + * @name $componentLoaderProvider + * @description + * + * This lets you configure conventions for what controllers are named and where to load templates from. + * + * The default behavior is to dasherize and serve from `./components`. A component called `myWidget` + * uses a controller named `MyWidgetController` and a template loaded from `./components/my-widget/my-widget.html`. + * + * A component is: + * - a controller + * - a template + * - an optional router + * + * This service makes it easy to group all of them into a single concept. + */ +function $componentLoaderProvider() { + + var DEFAULT_SUFFIX = 'Controller'; + + var componentToCtrl = function componentToCtrlDefault(name) { + return name[0].toUpperCase() + name.substr(1) + DEFAULT_SUFFIX; + }; + + var componentToTemplate = function componentToTemplateDefault(name) { + var dashName = dashCase(name); + return './components/' + dashName + '/' + dashName + '.html'; + }; + + var ctrlToComponent = function ctrlToComponentDefault(name) { + return name[0].toLowerCase() + name.substr(1, name.length - DEFAULT_SUFFIX.length - 1); + }; + + return { + $get: function () { + return { + controllerName: componentToCtrl, + template: componentToTemplate, + component: ctrlToComponent + }; + }, + + /** + * @name $componentLoaderProvider#setCtrlNameMapping + * @description takes a function for mapping component names to component controller names + */ + setCtrlNameMapping: function(newFn) { + componentToCtrl = newFn; + return this; + }, + + /** + * @name $componentLoaderProvider#setCtrlNameMapping + * @description takes a function for mapping component controller names to component names + */ + setComponentFromCtrlMapping: function (newFn) { + ctrlToComponent = newFn; + return this; + }, + + /** + * @name $componentLoaderProvider#setTemplateMapping + * @description takes a function for mapping component names to component template URLs + */ + setTemplateMapping: function(newFn) { + componentToTemplate = newFn; + return this; + } + }; +} + +// this is a hack as a result of the build system used to transpile +function privatePipelineFactory($pipeline) { + return $pipeline; +} + + +function dashCase(str) { + return str.replace(/([A-Z])/g, function ($1) { + return '-' + $1.toLowerCase(); + }); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/router.ats b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/router.ats new file mode 100644 index 00000000..04390b8e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/src/router.ats @@ -0,0 +1,220 @@ +import {Grammar} from './grammar'; +import {Pipeline} from './pipeline'; + +/** + * @name Router + * @where shared + * @description + * The router is responsible for mapping URLs to components. + * + * You can see the state of the router by inspecting the read-only field `router.navigating`. + * This may be useful for showing a spinner, for instance. + */ +class Router { + constructor(grammar:Grammar, pipeline:Pipeline, parent, name) { + this.name = name; + this.parent = parent || null; + this.navigating = false; + this.ports = {}; + this.children = {}; + this.registry = grammar; + this.pipeline = pipeline; + } + + + /** + * @description + * Constructs a child router. + * You probably don't need to use this unless you're writing a reusable component. + */ + childRouter(name = 'default') { + if (!this.children[name]) { + this.children[name] = new ChildRouter(this, name); + } + return this.children[name]; + } + + + /** + * @description + * Register an object to notify of route changes. + * You probably don't need to use this unless you're writing a reusable component. + */ + registerViewport(view, name = 'default') { + this.ports[name] = view; + return this.renavigate(); + } + + + /** + * @description + * Update the routing configuation and trigger a navigation. + * + * ```js + * router.config({ path: '/', component: '/user' }); + * ``` + * + * For more, see the [configuration](configuration) guide. + */ + config(mapping) { + this.registry.config(this.name, mapping); + return this.renavigate(); + } + + + /** + * @description Navigate to a URL. + * Returns the cannonical URL for the route navigated to. + */ + navigate(url) { + if (this.navigating) { + return Promise.resolve(); + } + + this.lastNavigationAttempt = url; + + var instruction = this.recognize(url); + + if (!instruction) { + return Promise.reject(); + } + + this._startNavigating(); + + instruction.router = this; + return this.pipeline.process(instruction) + .then(() => this._finishNavigating(), () => this._finishNavigating()) + .then(() => instruction.canonicalUrl); + } + + _startNavigating() { + this.navigating = true; + } + + _finishNavigating() { + this.navigating = false; + } + + + makeDescendantRouters(instruction) { + this.traverseInstructionSync(instruction, (instruction, childInstruction) => { + childInstruction.router = instruction.router.childRouter(childInstruction.component); + }); + } + + + traverseInstructionSync(instruction, fn) { + forEach(instruction.viewports, + (childInstruction, viewportName) => fn(instruction, childInstruction)); + forEach(instruction.viewports, + (childInstruction) => this.traverseInstructionSync(childInstruction, fn)); + } + + + traverseInstruction(instruction, fn) { + if (!instruction) { + return Promise.resolve(); + } + return mapObjAsync(instruction.viewports, + (childInstruction, viewportName) => boolToPromise(fn(childInstruction, viewportName))) + .then(() => mapObjAsync(instruction.viewports, (childInstruction, viewportName) => { + return childInstruction.router.traverseInstruction(childInstruction, fn); + })); + } + + + /* + * given a instruction obj + * update viewports accordingly + */ + activatePorts(instruction) { + return this.queryViewports((port, name) => { + return port.activate(instruction.viewports[name]); + }) + .then(() => mapObjAsync(instruction.viewports, (instruction) => { + return instruction.router.activatePorts(instruction); + })); + } + + + /* + * given a instruction obj + * update viewports accordingly + */ + canDeactivatePorts(instruction) { + return this.traversePorts((port, name) => { + return boolToPromise(port.canDeactivate(instruction.viewports[name])); + }); + } + + traversePorts(fn) { + return this.queryViewports(fn) + .then(() => mapObjAsync(this.children, (child) => child.traversePorts(fn))); + } + + queryViewports(fn) { + return mapObjAsync(this.ports, fn); + } + + + recognize(url) { + return this.registry.recognize(url); + } + + + + /** + * @description Navigates to either the last URL successfully naviagted to, + * or the last URL requested if the router has yet to successfully navigate. + * You shouldn't need to use this API very often. + */ + renavigate() { + var renavigateDestination = this.previousUrl || this.lastNavigationAttempt; + if (!this.navigating && renavigateDestination) { + return this.navigate(renavigateDestination); + } else { + return Promise.resolve(); + } + } + + + /** + * @description generate a URL from a component name and optional map of parameters. + * The URL is relative to the app's base href. + */ + generate(name:string, params) { + return this.registry.generate(name, params); + } + +} + +export class RootRouter extends Router { + constructor(grammar:Grammar, pipeline:Pipeline) { + super(grammar, pipeline, null, '/'); + } +} + +class ChildRouter extends Router { + constructor(parent, name) { + super(parent.registry, parent.pipeline, parent, name); + this.parent = parent; + } +} + +function forEach(obj, fn) { + Object.keys(obj).forEach(key => fn(obj[key], key)); +} + +function mapObjAsync(obj, fn) { + return Promise.all(mapObj(obj, fn)); +} + +function mapObj(obj, fn) { + var result = []; + Object.keys(obj).forEach(key => result.push(fn(obj[key], key))); + return result; +} + +function boolToPromise (value) { + return value ? Promise.resolve(value) : Promise.reject(); +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/component-loader.es5.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/component-loader.es5.spec.js new file mode 100644 index 00000000..42ed6ab9 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/component-loader.es5.spec.js @@ -0,0 +1,16 @@ +describe('$componentLoader', function () { + + beforeEach(module('ngNewRouter')); + + it('should convert a component name to a controller name', inject(function ($componentLoader) { + expect($componentLoader.controllerName('foo')).toBe('FooController'); + })); + + it('should convert a controller name to a component name', inject(function ($componentLoader) { + expect($componentLoader.component('FooController')).toBe('foo'); + })); + + it('should convert a component name to a template URL', inject(function ($componentLoader) { + expect($componentLoader.template('foo')).toBe('./components/foo/foo.html'); + })); +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/controller-introspector.es5.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/controller-introspector.es5.spec.js new file mode 100644 index 00000000..c00cad9e --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/controller-introspector.es5.spec.js @@ -0,0 +1,32 @@ +describe('$controllerIntrospector', function () { + + var $controllerProvider; + + beforeEach(function() { + module('ng'); + module('ngNewRouter'); + module(function(_$controllerProvider_) { + $controllerProvider = _$controllerProvider_; + }); + }); + + it('should call the introspector function whenever a controller is registered', inject(function ($controllerIntrospector) { + var spy = jasmine.createSpy(); + $controllerIntrospector(spy); + function Ctrl(){} + Ctrl.$routeConfig = [{ path: '/', component: 'example' }]; + $controllerProvider.register('SomeController', Ctrl); + + expect(spy).toHaveBeenCalledWith('some', [{ path: '/', component: 'example' }]); + })); + + it('should call the introspector function whenever a controller is registered with array annotations', inject(function ($controllerIntrospector) { + var spy = jasmine.createSpy(); + $controllerIntrospector(spy); + function Ctrl(foo){} + Ctrl.$routeConfig = [{ path: '/', component: 'example' }]; + $controllerProvider.register('SomeController', ['foo', Ctrl]); + + expect(spy).toHaveBeenCalledWith('some', [{ path: '/', component: 'example' }]); + })); +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/main.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/main.js new file mode 100644 index 00000000..84ec58e1 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/main.js @@ -0,0 +1,33 @@ +// The entry point for unit tests. + +var TEST_REGEXP = /\.spec\.js$/; + +function pathToModule(path) { + return path.replace(/^\/base\//, '').replace(/\.js$/, ''); +} + +function onlySpecs(path) { + return TEST_REGEXP.test(path); +} + +function getAllSpecs() { + return Object.keys(window.__karma__.files) + .filter(onlySpecs) + .map(pathToModule); +} + +require.config({ + // Karma serves files under `/base`, which is the `basePath` from `karma-conf.js` file. + baseUrl: '/base', + + paths: { + assert: './node_modules/rtts-assert/dist/amd/assert', + 'route-recognizer': './node_modules/route-recognizer/lib/route-recognizer' + }, + + // Dynamically load all test files. + deps: getAllSpecs(), + + // Kickoff Jasmine, once all spec files are loaded. + callback: window.__karma__.start +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/pipeline.es5.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/pipeline.es5.spec.js new file mode 100644 index 00000000..e3bbd0ae --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/pipeline.es5.spec.js @@ -0,0 +1,71 @@ +describe('$pipeline', function () { + + var elt, + $compile, + $rootScope, + $router, + $templateCache, + $controllerProvider; + + beforeEach(function() { + module('ng'); + module('ngNewRouter'); + module(function(_$controllerProvider_) { + $controllerProvider = _$controllerProvider_; + }); + }); + + it('should allow reconfiguration', function () { + module(function($pipelineProvider, $provide) { + $pipelineProvider.config([ + '$setupRoutersStep', + '$initLocalsStep', + 'myCustomStep', + '$initControllersStep', + '$runCanDeactivateHookStep', + '$runCanActivateHookStep', + '$loadTemplatesStep', + '$activateStep' + ]); + + $provide.value('myCustomStep', function (instruction) { + return instruction.router.traverseInstruction(instruction, function (instruction) { + return instruction.locals.custom = 'hello!' + }); + }); + }); + + inject(function(_$compile_, _$rootScope_, _$router_, _$templateCache_) { + $compile = _$compile_; + $rootScope = _$rootScope_; + $router = _$router_; + $templateCache = _$templateCache_; + }); + + put('one', '
{{one.custom}}
'); + $controllerProvider.register('OneController', function (custom) { + this.custom = custom; + }); + + $router.config([ + { path: '/', component: 'one' } + ]); + + compile(''); + + $router.navigate('/'); + $rootScope.$digest(); + + expect(elt.text()).toBe('hello!'); + }); + + function put (name, template) { + $templateCache.put(componentTemplatePath(name), [200, template, {}]); + } + + function compile(template) { + elt = $compile('
' + template + '
')($rootScope); + $rootScope.$digest(); + return elt; + } +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/router-viewport.es5.spec.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/router-viewport.es5.spec.js new file mode 100644 index 00000000..20044c55 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/router-viewport.es5.spec.js @@ -0,0 +1,767 @@ +'use strict'; + +describe('ngViewport', function () { + + var elt, + $compile, + $rootScope, + $router, + $templateCache, + $controllerProvider; + + + beforeEach(function() { + module('ng'); + module('ngNewRouter'); + module(function(_$controllerProvider_) { + $controllerProvider = _$controllerProvider_; + }); + + inject(function(_$compile_, _$rootScope_, _$router_, _$templateCache_) { + $compile = _$compile_; + $rootScope = _$rootScope_; + $router = _$router_; + $templateCache = _$templateCache_; + }); + + registerComponent('user', '
hello {{user.name}}
', function($routeParams) { + this.name = $routeParams.name; + }); + registerComponent('one', '
{{one.number}}
', boringController('number', 'one')); + registerComponent('two', '
{{two.number}}
', boringController('number', 'two')); + }); + + + it('should work in a simple case', function () { + compile(''); + + $router.config([ + { path: '/', component: 'one' } + ]); + + $router.navigate('/'); + $rootScope.$digest(); + + expect(elt.text()).toBe('one'); + }); + + + // See https://github.com/angular/router/issues/105 + it('should warn when instantiating a component with no controller', function () { + put('noController', '
{{ 2 + 2 }}
'); + $router.config([ + { path: '/', component: 'noController' } + ]); + + spyOn(console, 'warn'); + compile(''); + $router.navigate('/'); + + expect(console.warn).toHaveBeenCalledWith('Could not instantiate controller', 'NoControllerController'); + expect(elt.text()).toBe('4'); + }); + + + it('should navigate between components with different parameters', function () { + $router.config([ + { path: '/user/:name', component: 'user' } + ]); + compile(''); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + expect(elt.text()).toBe('hello brian'); + + $router.navigate('/user/igor'); + $rootScope.$digest(); + expect(elt.text()).toBe('hello igor'); + }); + + + it('should not reactivate a parent when navigating between child components with different parameters', function () { + ParentController.$routeConfig = [ + { path: '/user/:name', component: 'user' } + ]; + function ParentController () {} + var spy = ParentController.prototype.activate = jasmine.createSpy('activate'); + + registerComponent('parent', 'parent { }', ParentController); + + $router.config([ + { path: '/parent', component: 'parent' } + ]); + compile(''); + + $router.navigate('/parent/user/brian'); + $rootScope.$digest(); + expect(spy).toHaveBeenCalled(); + expect(elt.text()).toBe('parent { hello brian }'); + + spy.calls.reset(); + + $router.navigate('/parent/user/igor'); + $rootScope.$digest(); + expect(spy).not.toHaveBeenCalled(); + expect(elt.text()).toBe('parent { hello igor }'); + }); + + + it('should work with multiple named viewports', function () { + $router.config([ + { path: '/', component: {left: 'one', right: 'two'} }, + { path: '/switched', components: {left: 'two', right: 'one'} } + ]); + compile('port 1:
| ' + + 'port 2:
'); + + $router.navigate('/'); + $rootScope.$digest(); + expect(elt.text()).toBe('port 1: one | port 2: two'); + + $router.navigate('/switched'); + $rootScope.$digest(); + expect(elt.text()).toBe('port 1: two | port 2: one'); + }); + + + it('should work with nested viewports', function () { + registerComponent('childRouter', '
inner {
}
', [ + { path: '/b', component: 'one' } + ]); + + $router.config([ + { path: '/a', component: 'childRouter' } + ]); + compile('
outer {
}
'); + + $router.navigate('/a/b'); + $rootScope.$digest(); + + expect(elt.text()).toBe('outer { inner { one } }'); + }); + + + it('should work with recursive nested viewports', function () { + put('router', '
recur {
}
'); + $router.config([ + { path: '/recur', component: 'router' }, + { path: '/', component: 'one' } + ]); + + compile('
root {
}
'); + $router.navigate('/'); + $rootScope.$digest(); + expect(elt.text()).toBe('root { one }'); + }); + + + it('should update anchor hrefs with the routerLink directive', function () { + put('one', ''); + + $router.config([ + { path: '/a', component: 'one' }, + { path: '/b', component: 'two' } + ]); + compile('
outer {
}
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(elt.find('a').attr('href')).toBe('./b'); + }); + + + it('should allow params in routerLink directive', function () { + put('router', '
outer {
}
'); + put('one', ''); + + $router.config([ + { path: '/a', component: 'one' }, + { path: '/b/:param', component: 'two' } + ]); + compile('
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(elt.find('a').attr('href')).toBe('./b/lol'); + }); + + // TODO: test dynamic links + + + it('should update the href of links', function () { + put('router', '
outer {
}
'); + put('one', ''); + + $router.config([ + { path: '/a', component: 'one' }, + { path: '/b/:param', component: 'two' } + ]); + compile('
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(elt.find('a').attr('href')).toBe('./b/one'); + }); + + + it('should run the activate hook of controllers', function () { + var spy = jasmine.createSpy('activate'); + registerComponent('activate', '', { + activate: spy + }); + + $router.config([ + { path: '/a', component: 'activate' } + ]); + compile('
outer {
}
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(spy).toHaveBeenCalled(); + }); + + + it('should inject into the activate hook of a controller', inject(function ($http) { + var spy = jasmine.createSpy('activate'); + spy.$inject = ['$routeParams', '$http']; + registerComponent('user', '', { + activate: spy + }); + + $router.config([ + { path: '/user/:name', component: 'user' } + ]); + compile('
'); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + + expect(spy).toHaveBeenCalledWith({name: 'brian'}, $http); + })); + + + it('should inject $scope into the activate hook of a controller', function () { + var spy = jasmine.createSpy('activate'); + spy.$inject = ['$scope']; + registerComponent('user', '', { + activate: spy + }); + + $router.config([ + { path: '/user/:name', component: 'user' } + ]); + compile('
'); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + + expect(spy.calls.first().args[0].$root).toEqual($rootScope); + }); + + + it('should run the deactivate hook of controllers', function () { + var spy = jasmine.createSpy('deactivate'); + registerComponent('deactivate', '', { + deactivate: spy + }); + + $router.config([ + { path: '/a', component: 'deactivate' }, + { path: '/b', component: 'one' } + ]); + compile('
'); + + $router.navigate('/a'); + $rootScope.$digest(); + $router.navigate('/b'); + $rootScope.$digest(); + expect(spy).toHaveBeenCalled(); + }); + + + it('should inject into the deactivate hook of controllers', inject(function ($http) { + var spy = jasmine.createSpy('deactivate'); + spy.$inject = ['$routeParams', '$http']; + registerComponent('deactivate', '', { + deactivate: spy + }); + + $router.config([ + { path: '/user/:name', component: 'deactivate' }, + { path: '/post/:id', component: 'one' } + ]); + compile('
'); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + $router.navigate('/post/123'); + $rootScope.$digest(); + expect(spy).toHaveBeenCalledWith({id: '123'}, $http); + })); + + + it('should run the deactivate hook before the activate hook', function () { + var log = []; + + registerComponent('activate', '', { + activate: function () { log.push('activate'); } + }); + + registerComponent('deactivate', '', { + deactivate: function () { log.push('deactivate'); } + }); + + $router.config([ + { path: '/a', component: 'deactivate' }, + { path: '/b', component: 'activate' } + ]); + compile('outer {
}'); + + $router.navigate('/a'); + $rootScope.$digest(); + $router.navigate('/b'); + $rootScope.$digest(); + + expect(log).toEqual(['deactivate', 'activate']); + }); + + + it('should not activate a component when canActivate returns false', function () { + var spy = jasmine.createSpy('activate'); + registerComponent('activate', '', { + canActivate: function () { return false; }, + activate: spy + }); + + $router.config([ + { path: '/a', component: 'activate' } + ]); + compile('outer {
}'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(spy).not.toHaveBeenCalled(); + expect(elt.text()).toBe('outer { }'); + }); + + + it('should not activate a component when canActivate returns a rejected promise', inject(function ($q) { + var spy = jasmine.createSpy('activate'); + registerComponent('activate', '', { + canActivate: function () { return $q.reject(); }, + activate: spy + }); + + $router.config([ + { path: '/a', component: 'activate' } + ]); + compile('outer {
}'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(spy).not.toHaveBeenCalled(); + expect(elt.text()).toBe('outer { }'); + })); + + + it('should activate a component when canActivate returns true', function () { + var spy = jasmine.createSpy('activate'); + registerComponent('activate', 'hi', { + canActivate: function () { return true; }, + activate: spy + }); + + $router.config([ + { path: '/a', component: 'activate' } + ]); + compile('
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(spy).toHaveBeenCalled(); + expect(elt.text()).toBe('hi'); + }); + + + it('should activate a component when canActivate returns a resolved promise', inject(function ($q) { + var spy = jasmine.createSpy('activate'); + registerComponent('activate', 'hi', { + canActivate: function () { return $q.when(); }, + activate: spy + }); + + $router.config([ + { path: '/a', component: 'activate' } + ]); + compile('
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(spy).toHaveBeenCalled(); + expect(elt.text()).toBe('hi'); + })); + + + it('should inject into the canActivate hook of controllers', inject(function ($http) { + var spy = jasmine.createSpy('canActivate').and.returnValue(true); + spy.$inject = ['$routeParams', '$http']; + registerComponent('activate', '', { + canActivate: spy + }); + + $router.config([ + { path: '/user/:name', component: 'activate' } + ]); + compile('
'); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + expect(spy).toHaveBeenCalledWith({name: 'brian'}, $http); + })); + + + it('should not navigate when canDeactivate returns false', function () { + registerComponent('activate', 'hi', { + canDeactivate: function () { return false; } + }); + + $router.config([ + { path: '/a', component: 'activate' }, + { path: '/b', component: 'one' } + ]); + compile('outer {
}'); + + $router.navigate('/a'); + $rootScope.$digest(); + expect(elt.text()).toBe('outer { hi }'); + + $router.navigate('/b'); + $rootScope.$digest(); + expect(elt.text()).toBe('outer { hi }'); + }); + + + it('should not navigate when canDeactivate returns a rejected promise', inject(function ($q) { + registerComponent('activate', 'hi', { + canDeactivate: function () { return $q.reject(); } + }); + + $router.config([ + { path: '/a', component: 'activate' }, + { path: '/b', component: 'one' } + ]); + compile('outer {
}'); + + $router.navigate('/a'); + $rootScope.$digest(); + expect(elt.text()).toBe('outer { hi }'); + + $router.navigate('/b'); + $rootScope.$digest(); + expect(elt.text()).toBe('outer { hi }'); + })); + + + it('should navigate when canDeactivate returns true', function () { + registerComponent('activate', 'hi', { + canDeactivate: function () { return true; } + }); + + $router.config([ + { path: '/a', component: 'activate' }, + { path: '/b', component: 'one' } + ]); + compile('outer {
}'); + + $router.navigate('/a'); + $rootScope.$digest(); + expect(elt.text()).toBe('outer { hi }'); + + $router.navigate('/b'); + $rootScope.$digest(); + expect(elt.text()).toBe('outer { one }'); + }); + + + it('should activate a component when canActivate returns true', function () { + var spy = jasmine.createSpy('activate'); + registerComponent('activate', 'hi', { + canActivate: function () { return true; }, + activate: spy + }); + + $router.config([ + { path: '/a', component: 'activate' } + ]); + compile('
'); + + $router.navigate('/a'); + $rootScope.$digest(); + + expect(spy).toHaveBeenCalled(); + expect(elt.text()).toBe('hi'); + }); + + + it('should inject into the canDeactivate hook of controllers', inject(function ($http) { + var spy = jasmine.createSpy('canDeactivate').and.returnValue(true); + spy.$inject = ['$routeParams', '$http']; + registerComponent('deactivate', '', { + canDeactivate: spy + }); + + $router.config([ + { path: '/user/:name', component: 'deactivate' }, + { path: '/post/:id', component: 'one' } + ]); + compile('
'); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + $router.navigate('/post/123'); + $rootScope.$digest(); + expect(spy).toHaveBeenCalledWith({id: '123'}, $http); + })); + + + it('should change location path', inject(function ($location) { + $router.config([ + { path: '/user', component: 'user' } + ]); + + compile('
'); + + $router.navigate('/user'); + $rootScope.$digest(); + + expect($location.path()).toBe('/user'); + })); + + // TODO: test injecting $scope + + it('should navigate when a link url matches a route', function () { + $router.config([ + { path: '/', component: 'one' }, + { path: '/two', component: 'two' }, + ]); + + compile('link |
'); + $rootScope.$digest(); + expect(elt.text()).toBe('link | one'); + elt.find('a')[0].click(); + + $rootScope.$digest(); + expect(elt.text()).toBe('link | two'); + }); + + // See https://github.com/angular/router/issues/206 + it('should not navigate a link without an href', function () { + $router.config([ + { path: '/', component: 'one' }, + { path: '/two', component: 'two' }, + ]); + expect(function() { + compile('link'); + $rootScope.$digest(); + expect(elt.text()).toBe('link'); + elt.find('a')[0].click(); + $rootScope.$digest(); + }).not.toThrow(); + }); + + + it('should change location to the canonical route', inject(function ($location) { + compile('
'); + + $router.config([ + { path: '/', redirectTo: '/user' }, + { path: '/user', component: 'user' } + ]); + + $router.navigate('/'); + $rootScope.$digest(); + + expect($location.path()).toBe('/user'); + })); + + + it('should change location to the canonical route with nested components', inject(function ($location) { + $router.config([ + { path: '/old-parent', redirectTo: '/new-parent' }, + { path: '/new-parent', component: 'childRouter' } + ]); + + registerComponent('childRouter', '
inner {
}
', [ + { path: '/old-child', redirectTo: '/new-child' }, + { path: '/new-child', component: 'one'}, + { path: '/old-child-two', redirectTo: '/new-child-two' }, + { path: '/new-child-two', component: 'two'} + ]); + + compile('
'); + + $router.navigate('/old-parent/old-child'); + $rootScope.$digest(); + + expect($location.path()).toBe('/new-parent/new-child'); + expect(elt.text()).toBe('inner { one }'); + + $router.navigate('/old-parent/old-child-two'); + $rootScope.$digest(); + + expect($location.path()).toBe('/new-parent/new-child-two'); + expect(elt.text()).toBe('inner { two }'); + })); + + + it('should navigate when the location path changes', inject(function ($location) { + $router.config([ + { path: '/one', component: 'one' } + ]); + compile('
'); + + $location.path('/one'); + $rootScope.$digest(); + + expect(elt.text()).toBe('one'); + })); + + + it('should expose a "navigating" property on $router', function () { + $router.config([ + { path: '/one', component: 'one' } + ]); + compile('
'); + + $router.navigate('/one'); + expect($router.navigating).toBe(true); + $rootScope.$digest(); + expect($router.navigating).toBe(false); + }); + + + function registerComponent(name, template, config) { + if (!template) { + template = ''; + } + var ctrl; + if (!config) { + ctrl = function () {}; + } else if (angular.isArray(config)) { + ctrl = function () {}; + ctrl.$routeConfig = config; + } else if (typeof config === 'function') { + ctrl = config; + } else { + ctrl = function () {}; + ctrl.prototype = config; + } + $controllerProvider.register(componentControllerName(name), ctrl); + put(name, template); + } + + function boringController (model, value) { + return function () { + this[model] = value; + }; + } + + function put (name, template) { + $templateCache.put(componentTemplatePath(name), [200, template, {}]); + } + + function compile(template) { + elt = $compile('
' + template + '
')($rootScope); + $rootScope.$digest(); + return elt; + } +}); + + +describe('ngViewport animations', function () { + + var elt, + $animate, + $compile, + $rootScope, + $router, + $templateCache, + $controllerProvider; + + beforeEach(function() { + module('ngAnimate'); + module('ngAnimateMock'); + module('ngNewRouter'); + module(function(_$controllerProvider_) { + $controllerProvider = _$controllerProvider_; + }); + + inject(function(_$animate_, _$compile_, _$rootScope_, _$router_, _$templateCache_) { + $animate = _$animate_; + $compile = _$compile_; + $rootScope = _$rootScope_; + $router = _$router_; + $templateCache = _$templateCache_; + }); + + put('user', '
hello {{user.name}}
'); + $controllerProvider.register('UserController', function($routeParams) { + this.name = $routeParams.name; + }); + }); + + afterEach(function() { + expect($animate.queue).toEqual([]); + }); + + it('should work in a simple case', function () { + var item; + + compile('
'); + + $router.config([ + { path: '/user/:name', component: 'user' } + ]); + + $router.navigate('/user/brian'); + $rootScope.$digest(); + expect(elt.text()).toBe('hello brian'); + + // "user" component enters + item = $animate.queue.shift(); + expect(item.event).toBe('enter'); + + // navigate to pete + $router.navigate('/user/pete'); + $rootScope.$digest(); + expect(elt.text()).toBe('hello pete'); + + // "user pete" component enters + item = $animate.queue.shift(); + expect(item.event).toBe('enter'); + expect(item.element.text()).toBe('hello pete'); + + // "user brian" component leaves + item = $animate.queue.shift(); + expect(item.event).toBe('leave'); + expect(item.element.text()).toBe('hello brian'); + }); + + function put (name, template) { + $templateCache.put(componentTemplatePath(name), [200, template, {}]); + } + + function compile(template) { + elt = $compile('
' + template + '
')($rootScope); + $rootScope.$digest(); + return elt; + } +}); diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/router.spec.ats b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/router.spec.ats new file mode 100644 index 00000000..2993d6bc --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/router.spec.ats @@ -0,0 +1,233 @@ +import {Grammar} from '../src/grammar'; +import {RootRouter} from '../src/router'; +import {Pipeline} from '../src/pipeline'; + +describe('RootRouter', () => { + var router, + view; + + beforeEach(() => { + var grammar = new Grammar(); + var pipeline = new Pipeline(); + router = new RootRouter(grammar, pipeline); + }); + + describe('config', () => { + it('should renavigate after being configured', sync(async () => { + view = makeMockComponent('root'); + await router.registerViewport(view); + await router.navigate('/a'); + expect(view.activate).not.toHaveBeenCalled(); + + await router.config([ + { path: '/a', component: 'A' } + ]); + expect(view.activate).toHaveBeenCalled(); + })); + + it('should allow aliasing', sync(async () => { + view = makeMockComponent('root'); + await router.config([ + { path: '/a', component: 'A', as: 'B' } + ]); + expect(router.generate('B')).toBe('/a'); + })); + + it('should alias configs with no default based on viewport name', sync(async () => { + await router.config([ + { path: '/a', components: { master: 'A', detail: 'B' } } + ]); + expect(router.generate('master:A')).toBe('/a'); + expect(router.generate('detail:B')).toBe('/a'); + })); + + it('should throw it a config uses both "component" and "components"', () => { + expect(() => { + router.config([ + { path: '/', component: 'one', components: 'two' } + ]); + }).toThrowError('A route config should have either a "component" or "components" property, but not both.'); + }); + }); + + describe('when configured', () => { + beforeEach(sync(async () => { + view = makeMockComponent('root'); + await router.registerViewport(view); + await router.config([ + { path: '/a', component: 'A' } + ]); + })); + + it('should activate viewports on navigation', sync(async () => { + await router.navigate('/a'); + expect(view.activate).toHaveBeenCalled(); + })); + + it('should check the canActivate hook to see if it can navigate', sync(async () => { + var status = await router.navigate('/a'); + expect(status).toBe('/a'); + expect(view.canActivate).toHaveBeenCalled(); + })); + + it('should check the canDeactivate hook to see if it can navigate', sync(async () => { + view.canDeactivate = jasmine.createSpy('canDeactivate component').and.returnValue(true); + var status = await router.navigate('/a'); + expect(status).toBe('/a'); + + view.canDeactivate = jasmine.createSpy('canDeactivate component').and.returnValue(false); + view.activate.calls.reset(); + var status = await router.navigate('/a'); + expect(view.activate).not.toHaveBeenCalled(); + })); + + it('should generate URLs', () => { + expect(router.generate('A', {})).toBe('/a'); + }); + + it('should navigate viewports registered after a navigation happens', sync(async () => { + router = new RootRouter(new Grammar(), new Pipeline()); + view = makeMockComponent('root'); + await router.config([ + { path: '/a', component: 'A' } + ]); + await router.navigate('/a'); + expect(view.activate).not.toHaveBeenCalled(); + + await router.registerViewport(view); + expect(view.activate).toHaveBeenCalled(); + })); + + + describe('with child routers', () => { + var child, childView; + + beforeEach(() => { + child = router.childRouter('A'); + child.config([ + { path: '/b', component: 'B' }, + { path: '/c', component: 'C' } + ]); + childView = makeMockComponent('child'); + child.registerViewport(childView); + }); + + it('should check if it can navigate', sync(async () => { + var status = await router.navigate('/a/b'); + + expect(status).toBe('/a/b'); + expect(childView.canActivate).toHaveBeenCalled(); + })); + + it('should activate viewports on navigation', sync(async () => { + await router.navigate('/a/b'); + + expect(view.activate).toHaveBeenCalled(); + expect(childView.activate).toHaveBeenCalled(); + })); + + //TODO: implement pipeline in ES6 + // iit('should deactivate children when navigating away', sync(async () => { + // router.config([ + // { path: '/d', component: 'D' } + // ]); + + // await router.navigate('/a/b'); + + // expect(view.activate).toHaveBeenCalled(); + // expect(childView.activate).toHaveBeenCalled(); + + // await router.navigate('/d'); + // expect(childView.deactivate).toHaveBeenCalled(); + // })); + + //TODO: implement pipeline in ES6 + // it('should not activate parent viewports when the matched segment stays the same', sync(async () => { + // await router.navigate('/a/b'); + + // expect(view.activate).toHaveBeenCalled(); + // expect(childView.activate).toHaveBeenCalled(); + + // view.activate.calls.reset(); + // childView.activate.calls.reset(); + + // await router.navigate('/a/c'); + + // expect(view.activate).not.toHaveBeenCalled(); + // expect(childView.activate).toHaveBeenCalled(); + // })); + + it('should not activate viewports if a predicate rejects', sync(async () => { + childView.canActivate = () => Promise.reject(); + await router.navigate('/a/b'); + + expect(view.activate).not.toHaveBeenCalled(); + expect(childView.activate).not.toHaveBeenCalled(); + })); + + it('should generate URLs', sync(async () => { + expect(child.generate('C')).toBe('/a/c'); + expect(router.generate('C')).toBe('/a/c'); + })); + + it('should generate URLs with params', sync(async () => { + await child.config({ path: '/d/:param', component: 'D'}); + expect(child.generate('D', {param: 'foo'})).toBe('/a/d/foo'); + expect(router.generate('D', {param: 'foo'})).toBe('/a/d/foo'); + })); + + // TODO: test recursive routes + }); + + describe('with sibbling routers', () => { + var left, right; + + beforeEach(sync(async () => { + left = router.childRouter('A'); + right = router.childRouter('A'); + })); + + it('should work', sync(async() => { + await left.config({ path: '/left', component: 'L' }); + await right.config({ path: '/right', component: 'R' }); + })); + + it('should throw if children cannot agree on a cannonical URL', sync(async() => { + expect(() => { + left.config([ + { path: '/b', redirectTo: '/one' }, + { path: '/one', component: 'C' } + ]); + right.config([ + { path: '/b', redirectTo: '/other' }, + { path: '/other', component: 'C' } + ]); + }).toThrowError('"/b" already maps to "/one"'); + })); + + }); + }); +}); + +function sync (fn) { + return async (done) => { + try { + await fn(); + } catch (e) { + expect(e.stack).toBe(''); + } finally { + done(); + } + } +} + +function makeMockComponent (name = '') { + return { + instantiate: () => {}, + load: () => {}, + activate: jasmine.createSpy(name + ' activate component').and.returnValue(Promise.resolve()), + deactivate: jasmine.createSpy(name + ' deactivate component').and.returnValue(Promise.resolve()), + canActivate: jasmine.createSpy(name + ' canActivate component').and.returnValue(Promise.resolve()), + canDeactivate: jasmine.createSpy(name + ' canDeactivate component').and.returnValue(Promise.resolve()) + }; +} diff --git a/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/util.es5.js b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/util.es5.js new file mode 100644 index 00000000..c12ed8d6 --- /dev/null +++ b/bower_components/angular-new-router/bower_components/angular-new-router-amilcar/test/util.es5.js @@ -0,0 +1,85 @@ +/* + * Helpers to keep tests DRY + */ + +function componentTemplatePath(name) { + return './components/' + dashCase(name) + '/' + dashCase(name) + '.html'; +} + +function componentControllerName(name) { + return name[0].toUpperCase() + name.substr(1) + 'Controller'; +} + +function dashCase(str) { + return str.replace(/([A-Z])/g, function ($1) { + return '-' + $1.toLowerCase(); + }); +} + +function boringController (model, value) { + return function () { + this[model] = value; + }; +} + +function provideHelpers(fn, preInject) { + return function () { + var elt, + $compile, + $rootScope, + $router, + $templateCache, + $controllerProvider; + + module('ng'); + module('ngNewRouter'); + module(function(_$controllerProvider_) { + $controllerProvider = _$controllerProvider_; + }); + + inject(function(_$compile_, _$rootScope_, _$router_, _$templateCache_) { + $compile = _$compile_; + $rootScope = _$rootScope_; + $router = _$router_; + $templateCache = _$templateCache_; + }); + + function registerComponent(name, template, config) { + if (!template) { + template = ''; + } + var ctrl; + if (!config) { + ctrl = function () {}; + } else if (angular.isArray(config)) { + ctrl = function () {}; + ctrl.$routeConfig = config; + } else if (typeof config === 'function') { + ctrl = config; + } else { + ctrl = function () {}; + ctrl.prototype = config; + } + $controllerProvider.register(componentControllerName(name), ctrl); + put(name, template); + } + + + function put (name, template) { + $templateCache.put(componentTemplatePath(name), [200, template, {}]); + } + + function compile(template) { + var elt = $compile('
' + template + '
')($rootScope); + $rootScope.$digest(); + return elt; + } + + fn({ + registerComponent: registerComponent, + $router: $router, + put: put, + compile: compile + }) + } +} diff --git a/bower_components/angular-new-router/dist/grammar.js b/bower_components/angular-new-router/dist/grammar.js new file mode 100644 index 00000000..51fb856f --- /dev/null +++ b/bower_components/angular-new-router/dist/grammar.js @@ -0,0 +1,197 @@ +define(["assert", 'route-recognizer'], function($__0,$__2) { + "use strict"; + if (!$__0 || !$__0.__esModule) + $__0 = {default: $__0}; + if (!$__2 || !$__2.__esModule) + $__2 = {default: $__2}; + var assert = $__0.assert; + var RouteRecognizer = $__2.default; + var CHILD_ROUTE_SUFFIX = '/*childRoute'; + var Grammar = function Grammar() { + this.rules = {}; + }; + ($traceurRuntime.createClass)(Grammar, { + config: function(name, config) { + if (name === 'app') { + name = '/'; + } + if (!this.rules[name]) { + this.rules[name] = new CanonicalRecognizer(name); + } + this.rules[name].config(config); + }, + recognize: function(url) { + var componentName = arguments[1] !== (void 0) ? arguments[1] : '/'; + var $__4 = this; + assert.argumentTypes(url, $traceurRuntime.type.string, componentName, $traceurRuntime.type.any); + if (typeof url === 'undefined') { + return; + } + var componentRecognizer = this.rules[componentName]; + if (!componentRecognizer) { + return; + } + var context = componentRecognizer.recognize(url); + if (!context) { + return; + } + var lastContextChunk = context[context.length - 1]; + var lastHandler = lastContextChunk.handler; + var lastParams = lastContextChunk.params; + var instruction = { + viewports: {}, + params: lastParams + }; + if (lastParams && lastParams.childRoute) { + var childUrl = '/' + lastParams.childRoute; + instruction.canonicalUrl = lastHandler.rewroteUrl.substr(0, lastHandler.rewroteUrl.length - (lastParams.childRoute.length + 1)); + forEach(lastHandler.components, (function(componentName, viewportName) { + instruction.viewports[viewportName] = $__4.recognize(childUrl, componentName); + })); + instruction.canonicalUrl += instruction.viewports[Object.keys(instruction.viewports)[0]].canonicalUrl; + } else { + instruction.canonicalUrl = lastHandler.rewroteUrl; + forEach(lastHandler.components, (function(componentName, viewportName) { + instruction.viewports[viewportName] = {viewports: {}}; + })); + } + forEach(instruction.viewports, (function(instruction, componentName) { + instruction.component = lastHandler.components[componentName]; + instruction.params = lastParams; + })); + return instruction; + }, + generate: function(name, params) { + var path = ''; + var solution; + do { + solution = null; + forEach(this.rules, (function(recognizer) { + if (recognizer.hasRoute(name)) { + path = recognizer.generate(name, params) + path; + solution = recognizer; + } + })); + if (!solution) { + return ''; + } + name = solution.name; + } while (solution.name !== '/'); + return path; + } + }, {}); + Grammar.prototype.recognize.parameters = [[$traceurRuntime.type.string], []]; + var CanonicalRecognizer = function CanonicalRecognizer(name) { + this.name = name; + this.rewrites = {}; + this.recognizer = new RouteRecognizer(); + }; + ($traceurRuntime.createClass)(CanonicalRecognizer, { + config: function(mapping) { + var $__4 = this; + if (mapping instanceof Array) { + mapping.forEach((function(nav) { + return $__4.configOne(nav); + })); + } else { + this.configOne(mapping); + } + }, + getCanonicalUrl: function(url) { + if (url[0] === '.') { + url = url.substr(1); + } + if (url === '' || url[0] !== '/') { + url = '/' + url; + } + forEach(this.rewrites, function(toUrl, fromUrl) { + if (fromUrl === '/') { + if (url === '/') { + url = toUrl; + } + } else if (url.indexOf(fromUrl) === 0) { + url = url.replace(fromUrl, toUrl); + } + }); + return url; + }, + configOne: function(mapping) { + var $__4 = this; + if (mapping.redirectTo) { + if (this.rewrites[mapping.path]) { + throw new Error('"' + mapping.path + '" already maps to "' + this.rewrites[mapping.path] + '"'); + } + this.rewrites[mapping.path] = mapping.redirectTo; + return; + } + if (mapping.component) { + if (mapping.components) { + throw new Error('A route config should have either a "component" or "components" property, but not both.'); + } + mapping.components = mapping.component; + delete mapping.component; + } + if (typeof mapping.components === 'string') { + mapping.components = {default: mapping.components}; + } + var aliases; + if (mapping.as) { + aliases = [mapping.as]; + } else { + aliases = mapObj(mapping.components, (function(componentName, viewportName) { + return viewportName + ':' + componentName; + })); + if (mapping.components.default) { + aliases.push(mapping.components.default); + } + } + aliases.forEach((function(alias) { + return $__4.recognizer.add([{ + path: mapping.path, + handler: mapping + }], {as: alias}); + })); + var withChild = copy(mapping); + withChild.path += CHILD_ROUTE_SUFFIX; + this.recognizer.add([{ + path: withChild.path, + handler: withChild + }]); + }, + recognize: function(url) { + var canonicalUrl = this.getCanonicalUrl(url); + var context = this.recognizer.recognize(canonicalUrl); + if (context) { + context[0].handler.rewroteUrl = canonicalUrl; + } + return context; + }, + generate: function(name, params) { + return this.recognizer.generate(name, params); + }, + hasRoute: function(name) { + return this.recognizer.hasRoute(name); + } + }, {}); + function copy(obj) { + return JSON.parse(JSON.stringify(obj)); + } + function forEach(obj, fn) { + Object.keys(obj).forEach((function(key) { + return fn(obj[key], key); + })); + } + function mapObj(obj, fn) { + var result = []; + Object.keys(obj).forEach((function(key) { + return result.push(fn(obj[key], key)); + })); + return result; + } + return { + get Grammar() { + return Grammar; + }, + __esModule: true + }; +}); diff --git a/bower_components/angular-new-router/dist/pipeline.js b/bower_components/angular-new-router/dist/pipeline.js new file mode 100644 index 00000000..ae2e2b37 --- /dev/null +++ b/bower_components/angular-new-router/dist/pipeline.js @@ -0,0 +1,36 @@ +define([], function() { + "use strict"; + var Pipeline = function Pipeline() { + this.steps = [(function(instruction) { + return instruction.router.makeDescendantRouters(instruction); + }), (function(instruction) { + return instruction.router.canDeactivatePorts(instruction); + }), (function(instruction) { + return instruction.router.traversePorts((function(port, name) { + return boolToPromise(port.canActivate(instruction.viewports[name])); + })); + }), (function(instruction) { + return instruction.router.activatePorts(instruction); + })]; + }; + ($traceurRuntime.createClass)(Pipeline, {process: function(instruction) { + var steps = this.steps.slice(0); + function processOne(result) { + if (steps.length === 0) { + return result; + } + var step = steps.shift(); + return Promise.resolve(step(instruction)).then(processOne); + } + return processOne(); + }}, {}); + function boolToPromise(value) { + return value ? Promise.resolve(value) : Promise.reject(); + } + return { + get Pipeline() { + return Pipeline; + }, + __esModule: true + }; +}); diff --git a/bower_components/angular-new-router/dist/router.es5.js b/bower_components/angular-new-router/dist/router.es5.js new file mode 100644 index 00000000..e894e7ed --- /dev/null +++ b/bower_components/angular-new-router/dist/router.es5.js @@ -0,0 +1,1596 @@ +'use strict'; + +/* + * A module for adding new a routing system Angular 1. + */ +angular.module('ngNewRouter', []) + .factory('$router', routerFactory) + .value('$routeParams', {}) + .provider('$componentLoader', $componentLoaderProvider) + .provider('$pipeline', pipelineProvider) + .factory('$$pipeline', privatePipelineFactory) + .factory('$setupRoutersStep', setupRoutersStepFactory) + .factory('$initLocalsStep', initLocalsStepFactory) + .factory('$initControllersStep', initControllersStepFactory) + .factory('$runCanDeactivateHookStep', runCanDeactivateHookStepFactory) + .factory('$runCanActivateHookStep', runCanActivateHookStepFactory) + .factory('$loadTemplatesStep', loadTemplatesStepFactory) + .value('$activateStep', activateStepValue) + .directive('ngViewport', ngViewportDirective) + .directive('ngViewport', ngViewportFillContentDirective) + .directive('ngLink', ngLinkDirective) + .directive('a', anchorLinkDirective) + + + + +/* + * A module for inspecting controller constructors + */ +angular.module('ng') + .provider('$controllerIntrospector', $controllerIntrospectorProvider) + .config(controllerProviderDecorator); + +/* + * decorates with routing info + */ +function controllerProviderDecorator($controllerProvider, $controllerIntrospectorProvider) { + var register = $controllerProvider.register; + $controllerProvider.register = function (name, ctrl) { + $controllerIntrospectorProvider.register(name, ctrl); + return register.apply(this, arguments); + }; +} +controllerProviderDecorator.$inject = ["$controllerProvider", "$controllerIntrospectorProvider"]; + +/* + * private service that holds route mappings for each controller + */ +function $controllerIntrospectorProvider() { + var controllers = []; + var onControllerRegistered = null; + return { + register: function (name, constructor) { + if (angular.isArray(constructor)) { + constructor = constructor[constructor.length - 1]; + } + if (constructor.$routeConfig) { + if (onControllerRegistered) { + onControllerRegistered(name, constructor.$routeConfig); + } else { + controllers.push({name: name, config: constructor.$routeConfig}); + } + } + }, + $get: ['$componentLoader', function ($componentLoader) { + return function (newOnControllerRegistered) { + onControllerRegistered = function (name, constructor) { + name = $componentLoader.component(name); + return newOnControllerRegistered(name, constructor); + }; + while(controllers.length > 0) { + var rule = controllers.pop(); + onControllerRegistered(rule.name, rule.config); + } + } + }] + } +} + +function routerFactory($$rootRouter, $rootScope, $location, $$grammar, $controllerIntrospector) { + + $controllerIntrospector(function (name, config) { + $$grammar.config(name, config); + }); + + $rootScope.$watch(function () { + return $location.path(); + }, function (newUrl) { + $$rootRouter.navigate(newUrl); + }); + + var nav = $$rootRouter.navigate; + $$rootRouter.navigate = function (url) { + return nav.call(this, url).then(function (newUrl) { + if (newUrl) { + $location.path(newUrl); + } + }); + } + + return $$rootRouter; +} +routerFactory.$inject = ["$$rootRouter", "$rootScope", "$location", "$$grammar", "$controllerIntrospector"]; + +/** + * @name ngViewport + * + * @description + * An ngViewport is where resolved content goes. + * + * ## Use + * + * ```html + *
+ * ``` + * + * The value for the `ngViewport` attribute is optional. + */ +function ngViewportDirective($animate, $injector, $q, $router) { + var rootRouter = $router; + + return { + restrict: 'AE', + transclude: 'element', + terminal: true, + priority: 400, + require: ['?^^ngViewport', 'ngViewport'], + link: viewportLink, + controller: function() {}, + controllerAs: '$$ngViewport' + }; + + function invoke(method, context, instruction) { + return $injector.invoke(method, context, instruction.locals); + } + + function viewportLink(scope, $element, attrs, ctrls, $transclude) { + var viewportName = attrs.ngViewport || 'default', + parentCtrl = ctrls[0], + myCtrl = ctrls[1], + router = (parentCtrl && parentCtrl.$$router) || rootRouter; + + var currentScope, + newScope, + currentController, + currentElement, + previousLeaveAnimation, + previousInstruction; + + function cleanupLastView() { + if (previousLeaveAnimation) { + $animate.cancel(previousLeaveAnimation); + previousLeaveAnimation = null; + } + + if (currentScope) { + currentScope.$destroy(); + currentScope = null; + } + if (currentElement) { + previousLeaveAnimation = $animate.leave(currentElement); + previousLeaveAnimation.then(function() { + previousLeaveAnimation = null; + }); + currentElement = null; + } + } + + router.registerViewport({ + canDeactivate: function(instruction) { + if (currentController && currentController.canDeactivate) { + return invoke(currentController.canDeactivate, currentController, instruction); + } + return true; + }, + activate: function(instruction) { + var nextInstruction = serializeInstruction(instruction); + if (nextInstruction === previousInstruction) { + return; + } + + instruction.locals.$scope = newScope = scope.$new(); + myCtrl.$$router = instruction.router; + myCtrl.$$template = instruction.template; + var componentName = instruction.component; + var clone = $transclude(newScope, function(clone) { + $animate.enter(clone, null, currentElement || $element); + cleanupLastView(); + }); + + var newController = instruction.controller; + newScope[componentName] = newController; + + var result; + if (currentController && currentController.deactivate) { + result = $q.when(invoke(currentController.deactivate, currentController, instruction)); + } + + currentController = newController; + + currentElement = clone; + currentScope = newScope; + + previousInstruction = nextInstruction; + + // finally, run the hook + if (newController.activate) { + var activationResult = $q.when(invoke(newController.activate, newController, instruction)); + if (result) { + return result.then(activationResult); + } else { + return activationResult; + } + } + return result; + } + }, viewportName); + } + + // TODO: how best to serialize? + function serializeInstruction(instruction) { + return JSON.stringify({ + path: instruction.path, + component: instruction.component, + params: Object.keys(instruction.params).reduce(function (acc, key) { + return (key !== 'childRoute' && (acc[key] = instruction.params[key])), acc; + }, {}) + }); + } +} +ngViewportDirective.$inject = ["$animate", "$injector", "$q", "$router"]; + +function ngViewportFillContentDirective($compile) { + return { + restrict: 'EA', + priority: -400, + require: 'ngViewport', + link: function(scope, $element, attrs, ctrl) { + var template = ctrl.$$template; + $element.html(template); + var link = $compile($element.contents()); + link(scope); + } + }; +} +ngViewportFillContentDirective.$inject = ["$compile"]; + +function makeComponentString(name) { + return [ + '', + '' + ].join(''); +} + + +var LINK_MICROSYNTAX_RE = /^(.+?)(?:\((.*)\))?$/; +/** + * @name ngLink + * @description + * Lets you link to different parts of the app, and automatically generates hrefs. + * + * ## Use + * The directive uses a simple syntax: `router-link="componentName({ param: paramValue })"` + * + * ## Example + * + * ```js + * angular.module('myApp', ['ngFuturisticRouter']) + * .controller('AppController', ['$router', function($router) { + * $router.config({ path: '/user/:id' component: 'user' }); + * this.user = { name: 'Brian', id: 123 }; + * }); + * ``` + * + * ```html + * + * ``` + */ +function ngLinkDirective($router, $location, $parse) { + var rootRouter = $router; + + return { + require: '?^^ngViewport', + restrict: 'A', + link: ngLinkDirectiveLinkFn + }; + + function ngLinkDirectiveLinkFn(scope, elt, attrs, ctrl) { + var router = (ctrl && ctrl.$$router) || rootRouter; + if (!router) { + return; + } + + var link = attrs.ngLink || ''; + var parts = link.match(LINK_MICROSYNTAX_RE); + var routeName = parts[1]; + var routeParams = parts[2]; + var url; + + if (routeParams) { + var routeParamsGetter = $parse(routeParams); + // we can avoid adding a watcher if it's a literal + if (routeParamsGetter.constant) { + var params = routeParamsGetter(); + url = '.' + router.generate(routeName, params); + elt.attr('href', url); + } else { + scope.$watch(function() { + return routeParamsGetter(scope); + }, function(params) { + url = '.' + router.generate(routeName, params); + elt.attr('href', url); + }, true); + } + } else { + url = '.' + router.generate(routeName); + elt.attr('href', url); + } + } +} +ngLinkDirective.$inject = ["$router", "$location", "$parse"]; + + +function anchorLinkDirective($router) { + return { + restrict: 'E', + link: function(scope, element) { + // If the linked element is not an anchor tag anymore, do nothing + if (element[0].nodeName.toLowerCase() !== 'a') return; + + // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute. + var hrefAttrName = Object.prototype.toString.call(element.prop('href')) === '[object SVGAnimatedString]' ? + 'xlink:href' : 'href'; + + element.on('click', function(event) { + var href = element.attr(hrefAttrName); + if (!href) { + event.preventDefault(); + } + if ($router.recognize(href)) { + $router.navigate(href); + event.preventDefault(); + } + }); + } + } +} +anchorLinkDirective.$inject = ["$router"]; + +function setupRoutersStepFactory() { + return function (instruction) { + return instruction.router.makeDescendantRouters(instruction); + } +} + +/* + * $initLocalsStep + */ +function initLocalsStepFactory() { + return function initLocals(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + return instruction.locals = { + $router: instruction.router, + $routeParams: (instruction.params || {}) + }; + }); + } +} + +/* + * $initControllersStep + */ +function initControllersStepFactory($controller, $componentLoader) { + return function initControllers(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + var controllerName = $componentLoader.controllerName(instruction.component); + var locals = instruction.locals; + var ctrl; + try { + ctrl = $controller(controllerName, locals); + } catch(e) { + console.warn && console.warn('Could not instantiate controller', controllerName); + ctrl = $controller(angular.noop, locals); + } + return instruction.controller = ctrl; + }); + } +} +initControllersStepFactory.$inject = ["$controller", "$componentLoader"]; + +function runCanDeactivateHookStepFactory() { + return function runCanDeactivateHook(instruction) { + return instruction.router.canDeactivatePorts(instruction); + }; +} + +function runCanActivateHookStepFactory($injector) { + + function invoke(method, context, instruction) { + return $injector.invoke(method, context, { + $routeParams: instruction.params + }); + } + + return function runCanActivateHook(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + var controller = instruction.controller; + return !controller.canActivate || invoke(controller.canActivate, controller, instruction); + }); + } +} +runCanActivateHookStepFactory.$inject = ["$injector"]; + +function loadTemplatesStepFactory($componentLoader, $templateRequest) { + return function loadTemplates(instruction) { + return instruction.router.traverseInstruction(instruction, function(instruction) { + var componentTemplateUrl = $componentLoader.template(instruction.component); + return $templateRequest(componentTemplateUrl).then(function (templateHtml) { + return instruction.template = templateHtml; + }); + }); + }; +} +loadTemplatesStepFactory.$inject = ["$componentLoader", "$templateRequest"]; + + +function activateStepValue(instruction) { + return instruction.router.activatePorts(instruction); +} + + +function pipelineProvider() { + var stepConfiguration; + + var protoStepConfiguration = [ + '$setupRoutersStep', + '$initLocalsStep', + '$initControllersStep', + '$runCanDeactivateHookStep', + '$runCanActivateHookStep', + '$loadTemplatesStep', + '$activateStep' + ]; + + return { + steps: protoStepConfiguration.slice(0), + config: function (newConfig) { + protoStepConfiguration = newConfig; + }, + $get: ["$injector", "$q", function ($injector, $q) { + stepConfiguration = protoStepConfiguration.map(function (step) { + return $injector.get(step); + }); + return { + process: function(instruction) { + // make a copy + var steps = stepConfiguration.slice(0); + + function processOne(result) { + if (steps.length === 0) { + return result; + } + var step = steps.shift(); + return $q.when(step(instruction)).then(processOne); + } + + return processOne(); + } + } + }] + }; +} + + +/** + * @name $componentLoaderProvider + * @description + * + * This lets you configure conventions for what controllers are named and where to load templates from. + * + * The default behavior is to dasherize and serve from `./components`. A component called `myWidget` + * uses a controller named `MyWidgetController` and a template loaded from `./components/my-widget/my-widget.html`. + * + * A component is: + * - a controller + * - a template + * - an optional router + * + * This service makes it easy to group all of them into a single concept. + */ +function $componentLoaderProvider() { + + var DEFAULT_SUFFIX = 'Controller'; + + var componentToCtrl = function componentToCtrlDefault(name) { + return name[0].toUpperCase() + name.substr(1) + DEFAULT_SUFFIX; + }; + + var componentToTemplate = function componentToTemplateDefault(name) { + var dashName = dashCase(name); + return './components/' + dashName + '/' + dashName + '.html'; + }; + + var ctrlToComponent = function ctrlToComponentDefault(name) { + return name[0].toLowerCase() + name.substr(1, name.length - DEFAULT_SUFFIX.length - 1); + }; + + return { + $get: function () { + return { + controllerName: componentToCtrl, + template: componentToTemplate, + component: ctrlToComponent + }; + }, + + /** + * @name $componentLoaderProvider#setCtrlNameMapping + * @description takes a function for mapping component names to component controller names + */ + setCtrlNameMapping: function(newFn) { + componentToCtrl = newFn; + return this; + }, + + /** + * @name $componentLoaderProvider#setCtrlNameMapping + * @description takes a function for mapping component controller names to component names + */ + setComponentFromCtrlMapping: function (newFn) { + ctrlToComponent = newFn; + return this; + }, + + /** + * @name $componentLoaderProvider#setTemplateMapping + * @description takes a function for mapping component names to component template URLs + */ + setTemplateMapping: function(newFn) { + componentToTemplate = newFn; + return this; + } + }; +} + +// this is a hack as a result of the build system used to transpile +function privatePipelineFactory($pipeline) { + return $pipeline; +} +privatePipelineFactory.$inject = ["$pipeline"]; + + +function dashCase(str) { + return str.replace(/([A-Z])/g, function ($1) { + return '-' + $1.toLowerCase(); + }); +} + + +angular.module('ngNewRouter').factory('$$rootRouter', ['$q', '$$grammar', '$$pipeline', function ($q, $$grammar, $$pipeline) { +/* + * artisinal, handcrafted subset of the traceur runtime for picky webdevs + */ + +var $defineProperty = Object.defineProperty, + $defineProperties = Object.defineProperties, + $create = Object.create, + $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, + $getOwnPropertyNames = Object.getOwnPropertyNames, + $getPrototypeOf = Object.getPrototypeOf; + +function createClass(ctor, object, staticObject, superClass) { + $defineProperty(object, 'constructor', { + value: ctor, + configurable: true, + enumerable: false, + writable: true + }); + if (arguments.length > 3) { + if (typeof superClass === 'function') + ctor.__proto__ = superClass; + ctor.prototype = $create(getProtoParent(superClass), getDescriptors(object)); + } else { + ctor.prototype = object; + } + $defineProperty(ctor, 'prototype', { + configurable: false, + writable: false + }); + return $defineProperties(ctor, getDescriptors(staticObject)); +} + +function getProtoParent(superClass) { + if (typeof superClass === 'function') { + var prototype = superClass.prototype; + if (Object(prototype) === prototype || prototype === null) + return superClass.prototype; + throw new TypeError('super prototype must be an Object or null'); + } + if (superClass === null) + return null; + throw new TypeError(("Super expression must either be null or a function, not " + typeof superClass + ".")); +} + +function getDescriptors(object) { + var descriptors = {}; + var names = $getOwnPropertyNames(object); + for (var i = 0; i < names.length; i++) { + var name = names[i]; + descriptors[name] = $getOwnPropertyDescriptor(object, name); + } + // TODO: someday you might use symbols and you'll have to re-evaluate + // your life choices that led to the creation of this file + + // var symbols = getOwnPropertySymbols(object); + // for (var i = 0; i < symbols.length; i++) { + // var symbol = symbols[i]; + // descriptors[$traceurRuntime.toProperty(symbol)] = $getOwnPropertyDescriptor(object, $traceurRuntime.toProperty(symbol)); + // } + return descriptors; +} +function superDescriptor(homeObject, name) { + var proto = $getPrototypeOf(homeObject); + do { + var result = $getOwnPropertyDescriptor(proto, name); + if (result) + return result; + proto = $getPrototypeOf(proto); + } while (proto); + return undefined; +} +function superCall(self, homeObject, name, args) { + return superGet(self, homeObject, name).apply(self, args); +} +function superGet(self, homeObject, name) { + var descriptor = superDescriptor(homeObject, name); + if (descriptor) { + if (!descriptor.get) + return descriptor.value; + return descriptor.get.call(self); + } + return undefined; +} + +"use strict"; +var Router = function Router(grammar, pipeline, parent, name) { + this.name = name; + this.parent = parent || null; + this.navigating = false; + this.ports = {}; + this.children = {}; + this.registry = grammar; + this.pipeline = pipeline; + }; +(createClass)(Router, { + childRouter: function() { + var name = arguments[0] !== (void 0) ? arguments[0] : 'default'; + if (!this.children[name]) { + this.children[name] = new ChildRouter(this, name); + } + return this.children[name]; + }, + registerViewport: function(view) { + var name = arguments[1] !== (void 0) ? arguments[1] : 'default'; + this.ports[name] = view; + return this.renavigate(); + }, + config: function(mapping) { + this.registry.config(this.name, mapping); + return this.renavigate(); + }, + navigate: function(url) { + var $__0 = this; + if (this.navigating) { + return $q.when(); + } + this.lastNavigationAttempt = url; + var instruction = this.recognize(url); + if (!instruction) { + return $q.reject(); + } + this._startNavigating(); + instruction.router = this; + return this.pipeline.process(instruction).then((function() { + return $__0._finishNavigating(); + }), (function() { + return $__0._finishNavigating(); + })).then((function() { + return instruction.canonicalUrl; + })); + }, + _startNavigating: function() { + this.navigating = true; + }, + _finishNavigating: function() { + this.navigating = false; + }, + makeDescendantRouters: function(instruction) { + this.traverseInstructionSync(instruction, (function(instruction, childInstruction) { + childInstruction.router = instruction.router.childRouter(childInstruction.component); + })); + }, + traverseInstructionSync: function(instruction, fn) { + var $__0 = this; + forEach(instruction.viewports, (function(childInstruction, viewportName) { + return fn(instruction, childInstruction); + })); + forEach(instruction.viewports, (function(childInstruction) { + return $__0.traverseInstructionSync(childInstruction, fn); + })); + }, + traverseInstruction: function(instruction, fn) { + if (!instruction) { + return $q.when(); + } + return mapObjAsync(instruction.viewports, (function(childInstruction, viewportName) { + return boolToPromise(fn(childInstruction, viewportName)); + })).then((function() { + return mapObjAsync(instruction.viewports, (function(childInstruction, viewportName) { + return childInstruction.router.traverseInstruction(childInstruction, fn); + })); + })); + }, + activatePorts: function(instruction) { + return this.queryViewports((function(port, name) { + return port.activate(instruction.viewports[name]); + })).then((function() { + return mapObjAsync(instruction.viewports, (function(instruction) { + return instruction.router.activatePorts(instruction); + })); + })); + }, + canDeactivatePorts: function(instruction) { + return this.traversePorts((function(port, name) { + return boolToPromise(port.canDeactivate(instruction.viewports[name])); + })); + }, + traversePorts: function(fn) { + var $__0 = this; + return this.queryViewports(fn).then((function() { + return mapObjAsync($__0.children, (function(child) { + return child.traversePorts(fn); + })); + })); + }, + queryViewports: function(fn) { + return mapObjAsync(this.ports, fn); + }, + recognize: function(url) { + return this.registry.recognize(url); + }, + renavigate: function() { + var renavigateDestination = this.previousUrl || this.lastNavigationAttempt; + if (!this.navigating && renavigateDestination) { + return this.navigate(renavigateDestination); + } else { + return $q.when(); + } + }, + generate: function(name, params) { + return this.registry.generate(name, params); + } + }, {}); +Object.defineProperty(Router, "parameters", {get: function() { + return [[Grammar], [Pipeline], [], []]; + }}); +Object.defineProperty(Router.prototype.generate, "parameters", {get: function() { + return [[$traceurRuntime.type.string], []]; + }}); +var RootRouter = function RootRouter(grammar, pipeline) { + superCall(this, $RootRouter.prototype, "constructor", [grammar, pipeline, null, '/']); + }; +var $RootRouter = RootRouter; +(createClass)(RootRouter, {}, {}, Router); +Object.defineProperty(RootRouter, "parameters", {get: function() { + return [[Grammar], [Pipeline]]; + }}); +var ChildRouter = function ChildRouter(parent, name) { + superCall(this, $ChildRouter.prototype, "constructor", [parent.registry, parent.pipeline, parent, name]); + this.parent = parent; + }; +var $ChildRouter = ChildRouter; +(createClass)(ChildRouter, {}, {}, Router); +function forEach(obj, fn) { + Object.keys(obj).forEach((function(key) { + return fn(obj[key], key); + })); + } +function mapObjAsync(obj, fn) { + return $q.all(mapObj(obj, fn)); + } +function mapObj(obj, fn) { + var result = []; + Object.keys(obj).forEach((function(key) { + return result.push(fn(obj[key], key)); + })); + return result; + } +function boolToPromise(value) { + return value ? $q.when(value) : $q.reject(); + } +return new RootRouter($$grammar, $$pipeline); +}]); + + +angular.module('ngNewRouter').factory('$$grammar', ['$q', function ($q) { +/* + * artisinal, handcrafted subset of the traceur runtime for picky webdevs + */ + +var $defineProperty = Object.defineProperty, + $defineProperties = Object.defineProperties, + $create = Object.create, + $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, + $getOwnPropertyNames = Object.getOwnPropertyNames, + $getPrototypeOf = Object.getPrototypeOf; + +function createClass(ctor, object, staticObject, superClass) { + $defineProperty(object, 'constructor', { + value: ctor, + configurable: true, + enumerable: false, + writable: true + }); + if (arguments.length > 3) { + if (typeof superClass === 'function') + ctor.__proto__ = superClass; + ctor.prototype = $create(getProtoParent(superClass), getDescriptors(object)); + } else { + ctor.prototype = object; + } + $defineProperty(ctor, 'prototype', { + configurable: false, + writable: false + }); + return $defineProperties(ctor, getDescriptors(staticObject)); +} + +function getProtoParent(superClass) { + if (typeof superClass === 'function') { + var prototype = superClass.prototype; + if (Object(prototype) === prototype || prototype === null) + return superClass.prototype; + throw new TypeError('super prototype must be an Object or null'); + } + if (superClass === null) + return null; + throw new TypeError(("Super expression must either be null or a function, not " + typeof superClass + ".")); +} + +function getDescriptors(object) { + var descriptors = {}; + var names = $getOwnPropertyNames(object); + for (var i = 0; i < names.length; i++) { + var name = names[i]; + descriptors[name] = $getOwnPropertyDescriptor(object, name); + } + // TODO: someday you might use symbols and you'll have to re-evaluate + // your life choices that led to the creation of this file + + // var symbols = getOwnPropertySymbols(object); + // for (var i = 0; i < symbols.length; i++) { + // var symbol = symbols[i]; + // descriptors[$traceurRuntime.toProperty(symbol)] = $getOwnPropertyDescriptor(object, $traceurRuntime.toProperty(symbol)); + // } + return descriptors; +} +function superDescriptor(homeObject, name) { + var proto = $getPrototypeOf(homeObject); + do { + var result = $getOwnPropertyDescriptor(proto, name); + if (result) + return result; + proto = $getPrototypeOf(proto); + } while (proto); + return undefined; +} +function superCall(self, homeObject, name, args) { + return superGet(self, homeObject, name).apply(self, args); +} +function superGet(self, homeObject, name) { + var descriptor = superDescriptor(homeObject, name); + if (descriptor) { + if (!descriptor.get) + return descriptor.value; + return descriptor.get.call(self); + } + return undefined; +} + +"use strict"; +var RouteRecognizer = (function() { + var map = (function() { + function Target(path, matcher, delegate) { + this.path = path; + this.matcher = matcher; + this.delegate = delegate; + } + Target.prototype = {to: function(target, callback) { + var delegate = this.delegate; + if (delegate && delegate.willAddRoute) { + target = delegate.willAddRoute(this.matcher.target, target); + } + this.matcher.add(this.path, target); + if (callback) { + if (callback.length === 0) { + throw new Error("You must have an argument in the function passed to `to`"); + } + this.matcher.addChild(this.path, target, callback, this.delegate); + } + return this; + }}; + function Matcher(target) { + this.routes = {}; + this.children = {}; + this.target = target; + } + Matcher.prototype = { + add: function(path, handler) { + this.routes[path] = handler; + }, + addChild: function(path, target, callback, delegate) { + var matcher = new Matcher(target); + this.children[path] = matcher; + var match = generateMatch(path, matcher, delegate); + if (delegate && delegate.contextEntered) { + delegate.contextEntered(target, match); + } + callback(match); + } + }; + function generateMatch(startingPath, matcher, delegate) { + return function(path, nestedCallback) { + var fullPath = startingPath + path; + if (nestedCallback) { + nestedCallback(generateMatch(fullPath, matcher, delegate)); + } else { + return new Target(startingPath + path, matcher, delegate); + } + }; + } + function addRoute(routeArray, path, handler) { + var len = 0; + for (var i = 0, + l = routeArray.length; i < l; i++) { + len += routeArray[i].path.length; + } + path = path.substr(len); + var route = { + path: path, + handler: handler + }; + routeArray.push(route); + } + function eachRoute(baseRoute, matcher, callback, binding) { + var routes = matcher.routes; + for (var path in routes) { + if (routes.hasOwnProperty(path)) { + var routeArray = baseRoute.slice(); + addRoute(routeArray, path, routes[path]); + if (matcher.children[path]) { + eachRoute(routeArray, matcher.children[path], callback, binding); + } else { + callback.call(binding, routeArray); + } + } + } + } + return function(callback, addRouteCallback) { + var matcher = new Matcher(); + callback(generateMatch("", matcher, this.delegate)); + eachRoute([], matcher, function(route) { + if (addRouteCallback) { + addRouteCallback(this, route); + } else { + this.add(route); + } + }, this); + }; + }()); + var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\']; + var escapeRegex = new RegExp('(\\' + specials.join('|\\') + ')', 'g'); + function isArray(test) { + return Object.prototype.toString.call(test) === "[object Array]"; + } + function StaticSegment(string) { + this.string = string; + } + StaticSegment.prototype = { + eachChar: function(callback) { + var string = this.string, + ch; + for (var i = 0, + l = string.length; i < l; i++) { + ch = string.charAt(i); + callback({validChars: ch}); + } + }, + regex: function() { + return this.string.replace(escapeRegex, '\\$1'); + }, + generate: function() { + return this.string; + } + }; + function DynamicSegment(name) { + this.name = name; + } + DynamicSegment.prototype = { + eachChar: function(callback) { + callback({ + invalidChars: "/", + repeat: true + }); + }, + regex: function() { + return "([^/]+)"; + }, + generate: function(params) { + return params[this.name]; + } + }; + function StarSegment(name) { + this.name = name; + } + StarSegment.prototype = { + eachChar: function(callback) { + callback({ + invalidChars: "", + repeat: true + }); + }, + regex: function() { + return "(.+)"; + }, + generate: function(params) { + return params[this.name]; + } + }; + function EpsilonSegment() {} + EpsilonSegment.prototype = { + eachChar: function() {}, + regex: function() { + return ""; + }, + generate: function() { + return ""; + } + }; + function parse(route, names, types) { + if (route.charAt(0) === "/") { + route = route.substr(1); + } + var segments = route.split("/"), + results = []; + for (var i = 0, + l = segments.length; i < l; i++) { + var segment = segments[i], + match; + if (match = segment.match(/^:([^\/]+)$/)) { + results.push(new DynamicSegment(match[1])); + names.push(match[1]); + types.dynamics++; + } else if (match = segment.match(/^\*([^\/]+)$/)) { + results.push(new StarSegment(match[1])); + names.push(match[1]); + types.stars++; + } else if (segment === "") { + results.push(new EpsilonSegment()); + } else { + results.push(new StaticSegment(segment)); + types.statics++; + } + } + return results; + } + function State(charSpec) { + this.charSpec = charSpec; + this.nextStates = []; + } + State.prototype = { + get: function(charSpec) { + var nextStates = this.nextStates; + for (var i = 0, + l = nextStates.length; i < l; i++) { + var child = nextStates[i]; + var isEqual = child.charSpec.validChars === charSpec.validChars; + isEqual = isEqual && child.charSpec.invalidChars === charSpec.invalidChars; + if (isEqual) { + return child; + } + } + }, + put: function(charSpec) { + var state; + if (state = this.get(charSpec)) { + return state; + } + state = new State(charSpec); + this.nextStates.push(state); + if (charSpec.repeat) { + state.nextStates.push(state); + } + return state; + }, + match: function(ch) { + var nextStates = this.nextStates, + child, + charSpec, + chars; + var returned = []; + for (var i = 0, + l = nextStates.length; i < l; i++) { + child = nextStates[i]; + charSpec = child.charSpec; + if (typeof(chars = charSpec.validChars) !== 'undefined') { + if (chars.indexOf(ch) !== -1) { + returned.push(child); + } + } else if (typeof(chars = charSpec.invalidChars) !== 'undefined') { + if (chars.indexOf(ch) === -1) { + returned.push(child); + } + } + } + return returned; + } + }; + function sortSolutions(states) { + return states.sort(function(a, b) { + if (a.types.stars !== b.types.stars) { + return a.types.stars - b.types.stars; + } + if (a.types.stars) { + if (a.types.statics !== b.types.statics) { + return b.types.statics - a.types.statics; + } + if (a.types.dynamics !== b.types.dynamics) { + return b.types.dynamics - a.types.dynamics; + } + } + if (a.types.dynamics !== b.types.dynamics) { + return a.types.dynamics - b.types.dynamics; + } + if (a.types.statics !== b.types.statics) { + return b.types.statics - a.types.statics; + } + return 0; + }); + } + function recognizeChar(states, ch) { + var nextStates = []; + for (var i = 0, + l = states.length; i < l; i++) { + var state = states[i]; + nextStates = nextStates.concat(state.match(ch)); + } + return nextStates; + } + var oCreate = Object.create || function(proto) { + function F() {} + F.prototype = proto; + return new F(); + }; + function RecognizeResults(queryParams) { + this.queryParams = queryParams || {}; + } + RecognizeResults.prototype = oCreate({ + splice: Array.prototype.splice, + slice: Array.prototype.slice, + push: Array.prototype.push, + length: 0, + queryParams: null + }); + function findHandler(state, path, queryParams) { + var handlers = state.handlers, + regex = state.regex; + var captures = path.match(regex), + currentCapture = 1; + var result = new RecognizeResults(queryParams); + for (var i = 0, + l = handlers.length; i < l; i++) { + var handler = handlers[i], + names = handler.names, + params = {}; + for (var j = 0, + m = names.length; j < m; j++) { + params[names[j]] = captures[currentCapture++]; + } + result.push({ + handler: handler.handler, + params: params, + isDynamic: !!names.length + }); + } + return result; + } + function addSegment(currentState, segment) { + segment.eachChar(function(ch) { + var state; + currentState = currentState.put(ch); + }); + return currentState; + } + var RouteRecognizer = function() { + this.rootState = new State(); + this.names = {}; + }; + RouteRecognizer.prototype = { + add: function(routes, options) { + var currentState = this.rootState, + regex = "^", + types = { + statics: 0, + dynamics: 0, + stars: 0 + }, + handlers = [], + allSegments = [], + name; + var isEmpty = true; + for (var i = 0, + l = routes.length; i < l; i++) { + var route = routes[i], + names = []; + var segments = parse(route.path, names, types); + allSegments = allSegments.concat(segments); + for (var j = 0, + m = segments.length; j < m; j++) { + var segment = segments[j]; + if (segment instanceof EpsilonSegment) { + continue; + } + isEmpty = false; + currentState = currentState.put({validChars: "/"}); + regex += "/"; + currentState = addSegment(currentState, segment); + regex += segment.regex(); + } + var handler = { + handler: route.handler, + names: names + }; + handlers.push(handler); + } + if (isEmpty) { + currentState = currentState.put({validChars: "/"}); + regex += "/"; + } + currentState.handlers = handlers; + currentState.regex = new RegExp(regex + "$"); + currentState.types = types; + if (name = options && options.as) { + this.names[name] = { + segments: allSegments, + handlers: handlers + }; + } + }, + handlersFor: function(name) { + var route = this.names[name], + result = []; + if (!route) { + throw new Error("There is no route named " + name); + } + for (var i = 0, + l = route.handlers.length; i < l; i++) { + result.push(route.handlers[i]); + } + return result; + }, + hasRoute: function(name) { + return !!this.names[name]; + }, + generate: function(name, params) { + var route = this.names[name], + output = ""; + if (!route) { + throw new Error("There is no route named " + name); + } + var segments = route.segments; + for (var i = 0, + l = segments.length; i < l; i++) { + var segment = segments[i]; + if (segment instanceof EpsilonSegment) { + continue; + } + output += "/"; + output += segment.generate(params); + } + if (output.charAt(0) !== '/') { + output = '/' + output; + } + if (params && params.queryParams) { + output += this.generateQueryString(params.queryParams, route.handlers); + } + return output; + }, + generateQueryString: function(params, handlers) { + var pairs = []; + var keys = []; + for (var key in params) { + if (params.hasOwnProperty(key)) { + keys.push(key); + } + } + keys.sort(); + for (var i = 0, + len = keys.length; i < len; i++) { + key = keys[i]; + var value = params[key]; + if (value == null) { + continue; + } + var pair = encodeURIComponent(key); + if (isArray(value)) { + for (var j = 0, + l = value.length; j < l; j++) { + var arrayPair = key + '[]' + '=' + encodeURIComponent(value[j]); + pairs.push(arrayPair); + } + } else { + pair += "=" + encodeURIComponent(value); + pairs.push(pair); + } + } + if (pairs.length === 0) { + return ''; + } + return "?" + pairs.join("&"); + }, + parseQueryString: function(queryString) { + var pairs = queryString.split("&"), + queryParams = {}; + for (var i = 0; i < pairs.length; i++) { + var pair = pairs[i].split('='), + key = decodeURIComponent(pair[0]), + keyLength = key.length, + isArray = false, + value; + if (pair.length === 1) { + value = 'true'; + } else { + if (keyLength > 2 && key.slice(keyLength - 2) === '[]') { + isArray = true; + key = key.slice(0, keyLength - 2); + if (!queryParams[key]) { + queryParams[key] = []; + } + } + value = pair[1] ? decodeURIComponent(pair[1]) : ''; + } + if (isArray) { + queryParams[key].push(value); + } else { + queryParams[key] = value; + } + } + return queryParams; + }, + recognize: function(path) { + var states = [this.rootState], + pathLen, + i, + l, + queryStart, + queryParams = {}, + isSlashDropped = false; + queryStart = path.indexOf('?'); + if (queryStart !== -1) { + var queryString = path.substr(queryStart + 1, path.length); + path = path.substr(0, queryStart); + queryParams = this.parseQueryString(queryString); + } + path = decodeURI(path); + if (path.charAt(0) !== "/") { + path = "/" + path; + } + pathLen = path.length; + if (pathLen > 1 && path.charAt(pathLen - 1) === "/") { + path = path.substr(0, pathLen - 1); + isSlashDropped = true; + } + for (i = 0, l = path.length; i < l; i++) { + states = recognizeChar(states, path.charAt(i)); + if (!states.length) { + break; + } + } + var solutions = []; + for (i = 0, l = states.length; i < l; i++) { + if (states[i].handlers) { + solutions.push(states[i]); + } + } + states = sortSolutions(solutions); + var state = solutions[0]; + if (state && state.handlers) { + if (isSlashDropped && state.regex.source.slice(-5) === "(.+)$") { + path = path + "/"; + } + return findHandler(state, path, queryParams); + } + } + }; + RouteRecognizer.prototype.map = map; + RouteRecognizer.VERSION = 'VERSION_STRING_PLACEHOLDER'; + return RouteRecognizer; + }()); +var CHILD_ROUTE_SUFFIX = '/*childRoute'; +var Grammar = function Grammar() { + this.rules = {}; + }; +(createClass)(Grammar, { + config: function(name, config) { + if (name === 'app') { + name = '/'; + } + if (!this.rules[name]) { + this.rules[name] = new CanonicalRecognizer(name); + } + this.rules[name].config(config); + }, + recognize: function(url) { + var componentName = arguments[1] !== (void 0) ? arguments[1] : '/'; + var $__0 = this; + if (typeof url === 'undefined') { + return; + } + var componentRecognizer = this.rules[componentName]; + if (!componentRecognizer) { + return; + } + var context = componentRecognizer.recognize(url); + if (!context) { + return; + } + var lastContextChunk = context[context.length - 1]; + var lastHandler = lastContextChunk.handler; + var lastParams = lastContextChunk.params; + var instruction = { + viewports: {}, + params: lastParams + }; + if (lastParams && lastParams.childRoute) { + var childUrl = '/' + lastParams.childRoute; + instruction.canonicalUrl = lastHandler.rewroteUrl.substr(0, lastHandler.rewroteUrl.length - (lastParams.childRoute.length + 1)); + forEach(lastHandler.components, (function(componentName, viewportName) { + instruction.viewports[viewportName] = $__0.recognize(childUrl, componentName); + })); + instruction.canonicalUrl += instruction.viewports[Object.keys(instruction.viewports)[0]].canonicalUrl; + } else { + instruction.canonicalUrl = lastHandler.rewroteUrl; + forEach(lastHandler.components, (function(componentName, viewportName) { + instruction.viewports[viewportName] = {viewports: {}}; + })); + } + forEach(instruction.viewports, (function(instruction, componentName) { + instruction.component = lastHandler.components[componentName]; + instruction.params = lastParams; + })); + return instruction; + }, + generate: function(name, params) { + var path = ''; + var solution; + do { + solution = null; + forEach(this.rules, (function(recognizer) { + if (recognizer.hasRoute(name)) { + path = recognizer.generate(name, params) + path; + solution = recognizer; + } + })); + if (!solution) { + return ''; + } + name = solution.name; + } while (solution.name !== '/'); + return path; + } + }, {}); +Object.defineProperty(Grammar.prototype.recognize, "parameters", {get: function() { + return [[$traceurRuntime.type.string], []]; + }}); +var CanonicalRecognizer = function CanonicalRecognizer(name) { + this.name = name; + this.rewrites = {}; + this.recognizer = new RouteRecognizer(); + }; +(createClass)(CanonicalRecognizer, { + config: function(mapping) { + var $__0 = this; + if (mapping instanceof Array) { + mapping.forEach((function(nav) { + return $__0.configOne(nav); + })); + } else { + this.configOne(mapping); + } + }, + getCanonicalUrl: function(url) { + if (url[0] === '.') { + url = url.substr(1); + } + if (url === '' || url[0] !== '/') { + url = '/' + url; + } + forEach(this.rewrites, function(toUrl, fromUrl) { + if (fromUrl === '/') { + if (url === '/') { + url = toUrl; + } + } else if (url.indexOf(fromUrl) === 0) { + url = url.replace(fromUrl, toUrl); + } + }); + return url; + }, + configOne: function(mapping) { + var $__0 = this; + if (mapping.redirectTo) { + if (this.rewrites[mapping.path]) { + throw new Error('"' + mapping.path + '" already maps to "' + this.rewrites[mapping.path] + '"'); + } + this.rewrites[mapping.path] = mapping.redirectTo; + return; + } + if (mapping.component) { + if (mapping.components) { + throw new Error('A route config should have either a "component" or "components" property, but not both.'); + } + mapping.components = mapping.component; + delete mapping.component; + } + if (typeof mapping.components === 'string') { + mapping.components = {default: mapping.components}; + } + var aliases; + if (mapping.as) { + aliases = [mapping.as]; + } else { + aliases = mapObj(mapping.components, (function(componentName, viewportName) { + return viewportName + ':' + componentName; + })); + if (mapping.components.default) { + aliases.push(mapping.components.default); + } + } + aliases.forEach((function(alias) { + return $__0.recognizer.add([{ + path: mapping.path, + handler: mapping + }], {as: alias}); + })); + var withChild = copy(mapping); + withChild.path += CHILD_ROUTE_SUFFIX; + this.recognizer.add([{ + path: withChild.path, + handler: withChild + }]); + }, + recognize: function(url) { + var canonicalUrl = this.getCanonicalUrl(url); + var context = this.recognizer.recognize(canonicalUrl); + if (context) { + context[0].handler.rewroteUrl = canonicalUrl; + } + return context; + }, + generate: function(name, params) { + return this.recognizer.generate(name, params); + }, + hasRoute: function(name) { + return this.recognizer.hasRoute(name); + } + }, {}); +function copy(obj) { + return JSON.parse(JSON.stringify(obj)); + } +function forEach(obj, fn) { + Object.keys(obj).forEach((function(key) { + return fn(obj[key], key); + })); + } +function mapObj(obj, fn) { + var result = []; + Object.keys(obj).forEach((function(key) { + return result.push(fn(obj[key], key)); + })); + return result; + } +return new Grammar(); +}]); diff --git a/bower_components/angular-new-router/dist/router.es5.min.js b/bower_components/angular-new-router/dist/router.es5.min.js new file mode 100644 index 00000000..abeb48b0 --- /dev/null +++ b/bower_components/angular-new-router/dist/router.es5.min.js @@ -0,0 +1 @@ +"use strict";function controllerProviderDecorator(t,e){var r=t.register;t.register=function(t,n){return e.register(t,n),r.apply(this,arguments)}}function $controllerIntrospectorProvider(){var t=[],e=null;return{register:function(r,n){angular.isArray(n)&&(n=n[n.length-1]),n.$routeConfig&&(e?e(r,n.$routeConfig):t.push({name:r,config:n.$routeConfig}))},$get:["$componentLoader",function(r){return function(n){for(e=function(t,e){return t=r.component(t),n(t,e)};t.length>0;){var o=t.pop();e(o.name,o.config)}}}]}}function routerFactory(t,e,r,n,o){o(function(t,e){n.config(t,e)}),e.$watch(function(){return r.path()},function(e){t.navigate(e)});var i=t.navigate;return t.navigate=function(t){return i.call(this,t).then(function(t){t&&r.path(t)})},t}function ngViewportDirective(t,e,r,n){function o(t,r,n){return e.invoke(t,r,n.locals)}function i(e,n,i,u,s){function p(){g&&(t.cancel(g),g=null),l&&(l.$destroy(),l=null),v&&(g=t.leave(v),g.then(function(){g=null}),v=null)}var l,f,h,v,g,d,m=i.ngViewport||"default",y=u[0],w=u[1],$=y&&y.$$router||c;$.registerViewport({canDeactivate:function(t){return h&&h.canDeactivate?o(h.canDeactivate,h,t):!0},activate:function(i){var c=a(i);if(c!==d){i.locals.$scope=f=e.$new(),w.$$router=i.router,w.$$template=i.template;var u=i.component,g=s(f,function(e){t.enter(e,null,v||n),p()}),m=i.controller;f[u]=m;var y;if(h&&h.deactivate&&(y=r.when(o(h.deactivate,h,i))),h=m,v=g,l=f,d=c,m.activate){var $=r.when(o(m.activate,m,i));return y?y.then($):$}return y}}},m)}function a(t){return JSON.stringify({path:t.path,component:t.component,params:Object.keys(t.params).reduce(function(e,r){return"childRoute"!==r&&(e[r]=t.params[r]),e},{})})}var c=n;return{restrict:"AE",transclude:"element",terminal:!0,priority:400,require:["?^^ngViewport","ngViewport"],link:i,controller:function(){},controllerAs:"$$ngViewport"}}function ngViewportFillContentDirective(t){return{restrict:"EA",priority:-400,require:"ngViewport",link:function(e,r,n,o){var i=o.$$template;r.html(i);var a=t(r.contents());a(e)}}}function makeComponentString(t){return['',""].join("")}function ngLinkDirective(t,e,r){function n(t,e,n,i){var a=i&&i.$$router||o;if(a){var c,u=n.ngLink||"",s=u.match(LINK_MICROSYNTAX_RE),p=s[1],l=s[2];if(l){var f=r(l);if(f.constant){var h=f();c="."+a.generate(p,h),e.attr("href",c)}else t.$watch(function(){return f(t)},function(t){c="."+a.generate(p,t),e.attr("href",c)},!0)}else c="."+a.generate(p),e.attr("href",c)}}var o=t;return{require:"?^^ngViewport",restrict:"A",link:n}}function anchorLinkDirective(t){return{restrict:"E",link:function(e,r){if("a"===r[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Object.prototype.toString.call(r.prop("href"))?"xlink:href":"href";r.on("click",function(e){var o=r.attr(n);o||e.preventDefault(),t.recognize(o)&&(t.navigate(o),e.preventDefault())})}}}}function setupRoutersStepFactory(){return function(t){return t.router.makeDescendantRouters(t)}}function initLocalsStepFactory(){return function(t){return t.router.traverseInstruction(t,function(t){return t.locals={$router:t.router,$routeParams:t.params||{}}})}}function initControllersStepFactory(t,e){return function(r){return r.router.traverseInstruction(r,function(r){var n,o=e.controllerName(r.component),i=r.locals;try{n=t(o,i)}catch(a){console.warn&&console.warn("Could not instantiate controller",o),n=t(angular.noop,i)}return r.controller=n})}}function runCanDeactivateHookStepFactory(){return function(t){return t.router.canDeactivatePorts(t)}}function runCanActivateHookStepFactory(t){function e(e,r,n){return t.invoke(e,r,{$routeParams:n.params})}return function(t){return t.router.traverseInstruction(t,function(t){var r=t.controller;return!r.canActivate||e(r.canActivate,r,t)})}}function loadTemplatesStepFactory(t,e){return function(r){return r.router.traverseInstruction(r,function(r){var n=t.template(r.component);return e(n).then(function(t){return r.template=t})})}}function activateStepValue(t){return t.router.activatePorts(t)}function pipelineProvider(){var t,e=["$setupRoutersStep","$initLocalsStep","$initControllersStep","$runCanDeactivateHookStep","$runCanActivateHookStep","$loadTemplatesStep","$activateStep"];return{steps:e.slice(0),config:function(t){e=t},$get:["$injector","$q",function(r,n){return t=e.map(function(t){return r.get(t)}),{process:function(e){function r(t){if(0===o.length)return t;var i=o.shift();return n.when(i(e)).then(r)}var o=t.slice(0);return r()}}}]}}function $componentLoaderProvider(){var t="Controller",e=function(e){return e[0].toUpperCase()+e.substr(1)+t},r=function(t){var e=dashCase(t);return"./components/"+e+"/"+e+".html"},n=function(e){return e[0].toLowerCase()+e.substr(1,e.length-t.length-1)};return{$get:function(){return{controllerName:e,template:r,component:n}},setCtrlNameMapping:function(t){return e=t,this},setComponentFromCtrlMapping:function(t){return n=t,this},setTemplateMapping:function(t){return r=t,this}}}function privatePipelineFactory(t){return t}function dashCase(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}angular.module("ngNewRouter",[]).factory("$router",routerFactory).value("$routeParams",{}).provider("$componentLoader",$componentLoaderProvider).provider("$pipeline",pipelineProvider).factory("$$pipeline",privatePipelineFactory).factory("$setupRoutersStep",setupRoutersStepFactory).factory("$initLocalsStep",initLocalsStepFactory).factory("$initControllersStep",initControllersStepFactory).factory("$runCanDeactivateHookStep",runCanDeactivateHookStepFactory).factory("$runCanActivateHookStep",runCanActivateHookStepFactory).factory("$loadTemplatesStep",loadTemplatesStepFactory).value("$activateStep",activateStepValue).directive("ngViewport",ngViewportDirective).directive("ngViewport",ngViewportFillContentDirective).directive("ngLink",ngLinkDirective).directive("a",anchorLinkDirective),angular.module("ng").provider("$controllerIntrospector",$controllerIntrospectorProvider).config(controllerProviderDecorator),controllerProviderDecorator.$inject=["$controllerProvider","$controllerIntrospectorProvider"],routerFactory.$inject=["$$rootRouter","$rootScope","$location","$$grammar","$controllerIntrospector"],ngViewportDirective.$inject=["$animate","$injector","$q","$router"],ngViewportFillContentDirective.$inject=["$compile"];var LINK_MICROSYNTAX_RE=/^(.+?)(?:\((.*)\))?$/;ngLinkDirective.$inject=["$router","$location","$parse"],anchorLinkDirective.$inject=["$router"],initControllersStepFactory.$inject=["$controller","$componentLoader"],runCanActivateHookStepFactory.$inject=["$injector"],loadTemplatesStepFactory.$inject=["$componentLoader","$templateRequest"],privatePipelineFactory.$inject=["$pipeline"],angular.module("ngNewRouter").factory("$$rootRouter",["$q","$$grammar","$$pipeline",function(t,e,r){function n(t,e,r,n){return h(e,"constructor",{value:t,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof n&&(t.__proto__=n),t.prototype=g(o(n),i(e))):t.prototype=e,h(t,"prototype",{configurable:!1,writable:!1}),v(t,i(r))}function o(t){if("function"==typeof t){var e=t.prototype;if(Object(e)===e||null===e)return t.prototype;throw new TypeError("super prototype must be an Object or null")}if(null===t)return null;throw new TypeError("Super expression must either be null or a function, not "+typeof t+".")}function i(t){for(var e={},r=m(t),n=0;n3?("function"==typeof i&&(t.__proto__=i),t.prototype=u(e(i),r(n))):t.prototype=n,a(t,"prototype",{configurable:!1,writable:!1}),c(t,r(o))}function e(t){if("function"==typeof t){var e=t.prototype;if(Object(e)===e||null===e)return t.prototype;throw new TypeError("super prototype must be an Object or null")}if(null===t)return null;throw new TypeError("Super expression must either be null or a function, not "+typeof t+".")}function r(t){for(var e={},r=p(t),n=0;ns;s++){var l,f=c[s];(l=f.match(/^:([^\/]+)$/))?(u.push(new r(l[1])),i.push(l[1]),a.dynamics++):(l=f.match(/^\*([^\/]+)$/))?(u.push(new n(l[1])),i.push(l[1]),a.stars++):""===f?u.push(new o):(u.push(new e(f)),a.statics++)}return u}function a(t){this.charSpec=t,this.nextStates=[]}function c(t){return t.sort(function(t,e){if(t.types.stars!==e.types.stars)return t.types.stars-e.types.stars;if(t.types.stars){if(t.types.statics!==e.types.statics)return e.types.statics-t.types.statics;if(t.types.dynamics!==e.types.dynamics)return e.types.dynamics-t.types.dynamics}return t.types.dynamics!==e.types.dynamics?t.types.dynamics-e.types.dynamics:t.types.statics!==e.types.statics?e.types.statics-t.types.statics:0})}function u(t,e){for(var r=[],n=0,o=t.length;o>n;n++){var i=t[n];r=r.concat(i.match(e))}return r}function s(t){this.queryParams=t||{}}function p(t,e,r){for(var n=t.handlers,o=t.regex,i=e.match(o),a=1,c=new s(r),u=0,p=n.length;p>u;u++){for(var l=n[u],f=l.names,h={},v=0,g=f.length;g>v;v++)h[f[v]]=i[a++];c.push({handler:l.handler,params:h,isDynamic:!!f.length})}return c}function l(t,e){return e.eachChar(function(e){t=t.put(e)}),t}var f=function(){function t(t,e,r){this.path=t,this.matcher=e,this.delegate=r}function e(t){this.routes={},this.children={},this.target=t}function r(e,n,o){return function(i,a){var c=e+i;return a?void a(r(c,n,o)):new t(e+i,n,o)}}function n(t,e,r){for(var n=0,o=0,i=t.length;i>o;o++)n+=t[o].path.length;e=e.substr(n);var a={path:e,handler:r};t.push(a)}function o(t,e,r,i){var a=e.routes;for(var c in a)if(a.hasOwnProperty(c)){var u=t.slice();n(u,c,a[c]),e.children[c]?o(u,e.children[c],r,i):r.call(i,u)}}return t.prototype={to:function(t,e){var r=this.delegate;if(r&&r.willAddRoute&&(t=r.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),e){if(0===e.length)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,e,this.delegate)}return this}},e.prototype={add:function(t,e){this.routes[t]=e},addChild:function(t,n,o,i){var a=new e(n);this.children[t]=a;var c=r(t,a,i);i&&i.contextEntered&&i.contextEntered(n,c),o(c)}},function(t,n){var i=new e;t(r("",i,this.delegate)),o([],i,function(t){n?n(this,t):this.add(t)},this)}}(),h=["/",".","*","+","?","|","(",")","[","]","{","}","\\"],v=new RegExp("(\\"+h.join("|\\")+")","g");e.prototype={eachChar:function(t){for(var e,r=this.string,n=0,o=r.length;o>n;n++)e=r.charAt(n),t({validChars:e})},regex:function(){return this.string.replace(v,"\\$1")},generate:function(){return this.string}},r.prototype={eachChar:function(t){t({invalidChars:"/",repeat:!0})},regex:function(){return"([^/]+)"},generate:function(t){return t[this.name]}},n.prototype={eachChar:function(t){t({invalidChars:"",repeat:!0})},regex:function(){return"(.+)"},generate:function(t){return t[this.name]}},o.prototype={eachChar:function(){},regex:function(){return""},generate:function(){return""}},a.prototype={get:function(t){for(var e=this.nextStates,r=0,n=e.length;n>r;r++){var o=e[r],i=o.charSpec.validChars===t.validChars;if(i=i&&o.charSpec.invalidChars===t.invalidChars)return o}},put:function(t){var e;return(e=this.get(t))?e:(e=new a(t),this.nextStates.push(e),t.repeat&&e.nextStates.push(e),e)},match:function(t){for(var e,r,n,o=this.nextStates,i=[],a=0,c=o.length;c>a;a++)e=o[a],r=e.charSpec,"undefined"!=typeof(n=r.validChars)?-1!==n.indexOf(t)&&i.push(e):"undefined"!=typeof(n=r.invalidChars)&&-1===n.indexOf(t)&&i.push(e);return i}};var g=Object.create||function(t){function e(){}return e.prototype=t,new e};s.prototype=g({splice:Array.prototype.splice,slice:Array.prototype.slice,push:Array.prototype.push,length:0,queryParams:null});var d=function(){this.rootState=new a,this.names={}};return d.prototype={add:function(t,e){for(var r,n=this.rootState,a="^",c={statics:0,dynamics:0,stars:0},u=[],s=[],p=!0,f=0,h=t.length;h>f;f++){var v=t[f],g=[],d=i(v.path,g,c);s=s.concat(d);for(var m=0,y=d.length;y>m;m++){var w=d[m];w instanceof o||(p=!1,n=n.put({validChars:"/"}),a+="/",n=l(n,w),a+=w.regex())}var $={handler:v.handler,names:g};u.push($)}p&&(n=n.put({validChars:"/"}),a+="/"),n.handlers=u,n.regex=new RegExp(a+"$"),n.types=c,(r=e&&e.as)&&(this.names[r]={segments:s,handlers:u})},handlersFor:function(t){var e=this.names[t],r=[];if(!e)throw new Error("There is no route named "+t);for(var n=0,o=e.handlers.length;o>n;n++)r.push(e.handlers[n]);return r},hasRoute:function(t){return!!this.names[t]},generate:function(t,e){var r=this.names[t],n="";if(!r)throw new Error("There is no route named "+t);for(var i=r.segments,a=0,c=i.length;c>a;a++){var u=i[a];u instanceof o||(n+="/",n+=u.generate(e))}return"/"!==n.charAt(0)&&(n="/"+n),e&&e.queryParams&&(n+=this.generateQueryString(e.queryParams,r.handlers)),n},generateQueryString:function(e){var r=[],n=[];for(var o in e)e.hasOwnProperty(o)&&n.push(o);n.sort();for(var i=0,a=n.length;a>i;i++){o=n[i];var c=e[o];if(null!=c){var u=encodeURIComponent(o);if(t(c))for(var s=0,p=c.length;p>s;s++){var l=o+"[]="+encodeURIComponent(c[s]);r.push(l)}else u+="="+encodeURIComponent(c),r.push(u)}}return 0===r.length?"":"?"+r.join("&")},parseQueryString:function(t){for(var e=t.split("&"),r={},n=0;n2&&"[]"===a.slice(c-2)&&(u=!0,a=a.slice(0,c-2),r[a]||(r[a]=[])),o=i[1]?decodeURIComponent(i[1]):""),u?r[a].push(o):r[a]=o}return r},recognize:function(t){var e,r,n,o,i=[this.rootState],a={},s=!1;if(o=t.indexOf("?"),-1!==o){var l=t.substr(o+1,t.length);t=t.substr(0,o),a=this.parseQueryString(l)}for(t=decodeURI(t),"/"!==t.charAt(0)&&(t="/"+t),e=t.length,e>1&&"/"===t.charAt(e-1)&&(t=t.substr(0,e-1),s=!0),r=0,n=t.length;n>r&&(i=u(i,t.charAt(r)),i.length);r++);var f=[];for(r=0,n=i.length;n>r;r++)i[r].handlers&&f.push(i[r]);i=c(f);var h=f[0];return h&&h.handlers?(s&&"(.+)$"===h.regex.source.slice(-5)&&(t+="/"),p(h,t,a)):void 0}},d.prototype.map=f,d.VERSION="VERSION_STRING_PLACEHOLDER",d}()),f="/*childRoute",h=function(){this.rules={}};t(h,{config:function(t,e){"app"===t&&(t="/"),this.rules[t]||(this.rules[t]=new v(t)),this.rules[t].config(e)},recognize:function(t){var e=void 0!==arguments[1]?arguments[1]:"/",r=this;if("undefined"!=typeof t){var n=this.rules[e];if(n){var i=n.recognize(t);if(i){var a=i[i.length-1],c=a.handler,u=a.params,s={viewports:{},params:u};if(u&&u.childRoute){var p="/"+u.childRoute;s.canonicalUrl=c.rewroteUrl.substr(0,c.rewroteUrl.length-(u.childRoute.length+1)),o(c.components,function(t,e){s.viewports[e]=r.recognize(p,t)}),s.canonicalUrl+=s.viewports[Object.keys(s.viewports)[0]].canonicalUrl}else s.canonicalUrl=c.rewroteUrl,o(c.components,function(t,e){s.viewports[e]={viewports:{}}});return o(s.viewports,function(t,e){t.component=c.components[e],t.params=u}),s}}}},generate:function(t,e){var r,n="";do{if(r=null,o(this.rules,function(o){o.hasRoute(t)&&(n=o.generate(t,e)+n,r=o)}),!r)return"";t=r.name}while("/"!==r.name);return n}},{}),Object.defineProperty(h.prototype.recognize,"parameters",{get:function(){return[[$traceurRuntime.type.string],[]]}});var v=function(t){this.name=t,this.rewrites={},this.recognizer=new l};return t(v,{config:function(t){var e=this;t instanceof Array?t.forEach(function(t){return e.configOne(t)}):this.configOne(t)},getCanonicalUrl:function(t){return"."===t[0]&&(t=t.substr(1)),(""===t||"/"!==t[0])&&(t="/"+t),o(this.rewrites,function(e,r){"/"===r?"/"===t&&(t=e):0===t.indexOf(r)&&(t=t.replace(r,e))}),t},configOne:function(t){var e=this;if(t.redirectTo){if(this.rewrites[t.path])throw new Error('"'+t.path+'" already maps to "'+this.rewrites[t.path]+'"');return void(this.rewrites[t.path]=t.redirectTo)}if(t.component){if(t.components)throw new Error('A route config should have either a "component" or "components" property, but not both.');t.components=t.component,delete t.component}"string"==typeof t.components&&(t.components={"default":t.components});var r;t.as?r=[t.as]:(r=i(t.components,function(t,e){return e+":"+t}),t.components["default"]&&r.push(t.components["default"])),r.forEach(function(r){return e.recognizer.add([{path:t.path,handler:t}],{as:r})});var o=n(t);o.path+=f,this.recognizer.add([{path:o.path,handler:o}])},recognize:function(t){var e=this.getCanonicalUrl(t),r=this.recognizer.recognize(e);return r&&(r[0].handler.rewroteUrl=e),r},generate:function(t,e){return this.recognizer.generate(t,e)},hasRoute:function(t){return this.recognizer.hasRoute(t)}},{}),new h}]); \ No newline at end of file diff --git a/bower_components/angular-new-router/dist/router.js b/bower_components/angular-new-router/dist/router.js new file mode 100644 index 00000000..870237b8 --- /dev/null +++ b/bower_components/angular-new-router/dist/router.js @@ -0,0 +1,171 @@ +define(["assert", './grammar', './pipeline'], function($__0,$__2,$__4) { + "use strict"; + if (!$__0 || !$__0.__esModule) + $__0 = {default: $__0}; + if (!$__2 || !$__2.__esModule) + $__2 = {default: $__2}; + if (!$__4 || !$__4.__esModule) + $__4 = {default: $__4}; + var assert = $__0.assert; + var Grammar = $__2.Grammar; + var Pipeline = $__4.Pipeline; + var Router = function Router(grammar, pipeline, parent, name) { + assert.argumentTypes(grammar, Grammar, pipeline, Pipeline, parent, $traceurRuntime.type.any, name, $traceurRuntime.type.any); + this.name = name; + this.parent = parent || null; + this.navigating = false; + this.ports = {}; + this.children = {}; + this.registry = grammar; + this.pipeline = pipeline; + }; + ($traceurRuntime.createClass)(Router, { + childRouter: function() { + var name = arguments[0] !== (void 0) ? arguments[0] : 'default'; + if (!this.children[name]) { + this.children[name] = new ChildRouter(this, name); + } + return this.children[name]; + }, + registerViewport: function(view) { + var name = arguments[1] !== (void 0) ? arguments[1] : 'default'; + this.ports[name] = view; + return this.renavigate(); + }, + config: function(mapping) { + this.registry.config(this.name, mapping); + return this.renavigate(); + }, + navigate: function(url) { + var $__6 = this; + if (this.navigating) { + return Promise.resolve(); + } + this.lastNavigationAttempt = url; + var instruction = this.recognize(url); + if (!instruction) { + return Promise.reject(); + } + this._startNavigating(); + instruction.router = this; + return this.pipeline.process(instruction).then((function() { + return $__6._finishNavigating(); + }), (function() { + return $__6._finishNavigating(); + })).then((function() { + return instruction.canonicalUrl; + })); + }, + _startNavigating: function() { + this.navigating = true; + }, + _finishNavigating: function() { + this.navigating = false; + }, + makeDescendantRouters: function(instruction) { + this.traverseInstructionSync(instruction, (function(instruction, childInstruction) { + childInstruction.router = instruction.router.childRouter(childInstruction.component); + })); + }, + traverseInstructionSync: function(instruction, fn) { + var $__6 = this; + forEach(instruction.viewports, (function(childInstruction, viewportName) { + return fn(instruction, childInstruction); + })); + forEach(instruction.viewports, (function(childInstruction) { + return $__6.traverseInstructionSync(childInstruction, fn); + })); + }, + traverseInstruction: function(instruction, fn) { + if (!instruction) { + return Promise.resolve(); + } + return mapObjAsync(instruction.viewports, (function(childInstruction, viewportName) { + return boolToPromise(fn(childInstruction, viewportName)); + })).then((function() { + return mapObjAsync(instruction.viewports, (function(childInstruction, viewportName) { + return childInstruction.router.traverseInstruction(childInstruction, fn); + })); + })); + }, + activatePorts: function(instruction) { + return this.queryViewports((function(port, name) { + return port.activate(instruction.viewports[name]); + })).then((function() { + return mapObjAsync(instruction.viewports, (function(instruction) { + return instruction.router.activatePorts(instruction); + })); + })); + }, + canDeactivatePorts: function(instruction) { + return this.traversePorts((function(port, name) { + return boolToPromise(port.canDeactivate(instruction.viewports[name])); + })); + }, + traversePorts: function(fn) { + var $__6 = this; + return this.queryViewports(fn).then((function() { + return mapObjAsync($__6.children, (function(child) { + return child.traversePorts(fn); + })); + })); + }, + queryViewports: function(fn) { + return mapObjAsync(this.ports, fn); + }, + recognize: function(url) { + return this.registry.recognize(url); + }, + renavigate: function() { + var renavigateDestination = this.previousUrl || this.lastNavigationAttempt; + if (!this.navigating && renavigateDestination) { + return this.navigate(renavigateDestination); + } else { + return Promise.resolve(); + } + }, + generate: function(name, params) { + assert.argumentTypes(name, $traceurRuntime.type.string, params, $traceurRuntime.type.any); + return this.registry.generate(name, params); + } + }, {}); + Router.parameters = [[Grammar], [Pipeline], [], []]; + Router.prototype.generate.parameters = [[$traceurRuntime.type.string], []]; + var RootRouter = function RootRouter(grammar, pipeline) { + assert.argumentTypes(grammar, Grammar, pipeline, Pipeline); + $traceurRuntime.superCall(this, $RootRouter.prototype, "constructor", [grammar, pipeline, null, '/']); + }; + var $RootRouter = RootRouter; + ($traceurRuntime.createClass)(RootRouter, {}, {}, Router); + RootRouter.parameters = [[Grammar], [Pipeline]]; + var ChildRouter = function ChildRouter(parent, name) { + $traceurRuntime.superCall(this, $ChildRouter.prototype, "constructor", [parent.registry, parent.pipeline, parent, name]); + this.parent = parent; + }; + var $ChildRouter = ChildRouter; + ($traceurRuntime.createClass)(ChildRouter, {}, {}, Router); + function forEach(obj, fn) { + Object.keys(obj).forEach((function(key) { + return fn(obj[key], key); + })); + } + function mapObjAsync(obj, fn) { + return Promise.all(mapObj(obj, fn)); + } + function mapObj(obj, fn) { + var result = []; + Object.keys(obj).forEach((function(key) { + return result.push(fn(obj[key], key)); + })); + return result; + } + function boolToPromise(value) { + return value ? Promise.resolve(value) : Promise.reject(); + } + return { + get RootRouter() { + return RootRouter; + }, + __esModule: true + }; +}); diff --git a/bower_components/angular-route/.bower.json b/bower_components/angular-route/.bower.json new file mode 100644 index 00000000..3ec12de0 --- /dev/null +++ b/bower_components/angular-route/.bower.json @@ -0,0 +1,19 @@ +{ + "name": "angular-route", + "version": "1.4.7", + "main": "./angular-route.js", + "ignore": [], + "dependencies": { + "angular": "1.4.7" + }, + "homepage": "https://github.com/angular/bower-angular-route", + "_release": "1.4.7", + "_resolution": { + "type": "version", + "tag": "v1.4.7", + "commit": "f6f9c6760d15a993776afd5d2fafb456ee1e09d9" + }, + "_source": "git://github.com/angular/bower-angular-route.git", + "_target": "1.x", + "_originalSource": "angular-route" +} \ No newline at end of file diff --git a/bower_components/angular-route/README.md b/bower_components/angular-route/README.md new file mode 100644 index 00000000..2cd4f909 --- /dev/null +++ b/bower_components/angular-route/README.md @@ -0,0 +1,68 @@ +# packaged angular-route + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-route +``` + +Then add `ngRoute` as a dependency for your app: + +```javascript +angular.module('myApp', [require('angular-route')]); +``` + +### bower + +```shell +bower install angular-route +``` + +Add a ` +``` + +Then add `ngRoute` as a dependency for your app: + +```javascript +angular.module('myApp', ['ngRoute']); +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/api/ngRoute). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/bower_components/angular-route/angular-route.js b/bower_components/angular-route/angular-route.js new file mode 100644 index 00000000..f212064d --- /dev/null +++ b/bower_components/angular-route/angular-route.js @@ -0,0 +1,991 @@ +/** + * @license AngularJS v1.4.7 + * (c) 2010-2015 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window, angular, undefined) {'use strict'; + +/** + * @ngdoc module + * @name ngRoute + * @description + * + * # ngRoute + * + * The `ngRoute` module provides routing and deeplinking services and directives for angular apps. + * + * ## Example + * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`. + * + * + *
+ */ + /* global -ngRouteModule */ +var ngRouteModule = angular.module('ngRoute', ['ng']). + provider('$route', $RouteProvider), + $routeMinErr = angular.$$minErr('ngRoute'); + +/** + * @ngdoc provider + * @name $routeProvider + * + * @description + * + * Used for configuring routes. + * + * ## Example + * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`. + * + * ## Dependencies + * Requires the {@link ngRoute `ngRoute`} module to be installed. + */ +function $RouteProvider() { + function inherit(parent, extra) { + return angular.extend(Object.create(parent), extra); + } + + var routes = {}; + + /** + * @ngdoc method + * @name $routeProvider#when + * + * @param {string} path Route path (matched against `$location.path`). If `$location.path` + * contains redundant trailing slash or is missing one, the route will still match and the + * `$location.path` will be updated to add or drop the trailing slash to exactly match the + * route definition. + * + * * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up + * to the next slash are matched and stored in `$routeParams` under the given `name` + * when the route matches. + * * `path` can contain named groups starting with a colon and ending with a star: + * e.g.`:name*`. All characters are eagerly stored in `$routeParams` under the given `name` + * when the route matches. + * * `path` can contain optional named groups with a question mark: e.g.`:name?`. + * + * For example, routes like `/color/:color/largecode/:largecode*\/edit` will match + * `/color/brown/largecode/code/with/slashes/edit` and extract: + * + * * `color: brown` + * * `largecode: code/with/slashes`. + * + * + * @param {Object} route Mapping information to be assigned to `$route.current` on route + * match. + * + * Object properties: + * + * - `controller` – `{(string|function()=}` – Controller fn that should be associated with + * newly created scope or the name of a {@link angular.Module#controller registered + * controller} if passed as a string. + * - `controllerAs` – `{string=}` – An identifier name for a reference to the controller. + * If present, the controller will be published to scope under the `controllerAs` name. + * - `template` – `{string=|function()=}` – html template as a string or a function that + * returns an html template as a string which should be used by {@link + * ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives. + * This property takes precedence over `templateUrl`. + * + * If `template` is a function, it will be called with the following parameters: + * + * - `{Array.}` - route parameters extracted from the current + * `$location.path()` by applying the current route + * + * - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html + * template that should be used by {@link ngRoute.directive:ngView ngView}. + * + * If `templateUrl` is a function, it will be called with the following parameters: + * + * - `{Array.}` - route parameters extracted from the current + * `$location.path()` by applying the current route + * + * - `resolve` - `{Object.=}` - An optional map of dependencies which should + * be injected into the controller. If any of these dependencies are promises, the router + * will wait for them all to be resolved or one to be rejected before the controller is + * instantiated. + * If all the promises are resolved successfully, the values of the resolved promises are + * injected and {@link ngRoute.$route#$routeChangeSuccess $routeChangeSuccess} event is + * fired. If any of the promises are rejected the + * {@link ngRoute.$route#$routeChangeError $routeChangeError} event is fired. The map object + * is: + * + * - `key` – `{string}`: a name of a dependency to be injected into the controller. + * - `factory` - `{string|function}`: If `string` then it is an alias for a service. + * Otherwise if function, then it is {@link auto.$injector#invoke injected} + * and the return value is treated as the dependency. If the result is a promise, it is + * resolved before its value is injected into the controller. Be aware that + * `ngRoute.$routeParams` will still refer to the previous route within these resolve + * functions. Use `$route.current.params` to access the new route parameters, instead. + * + * - `redirectTo` – {(string|function())=} – value to update + * {@link ng.$location $location} path with and trigger route redirection. + * + * If `redirectTo` is a function, it will be called with the following parameters: + * + * - `{Object.}` - route parameters extracted from the current + * `$location.path()` by applying the current route templateUrl. + * - `{string}` - current `$location.path()` + * - `{Object}` - current `$location.search()` + * + * The custom `redirectTo` function is expected to return a string which will be used + * to update `$location.path()` and `$location.search()`. + * + * - `[reloadOnSearch=true]` - {boolean=} - reload route when only `$location.search()` + * or `$location.hash()` changes. + * + * If the option is set to `false` and url in the browser changes, then + * `$routeUpdate` event is broadcasted on the root scope. + * + * - `[caseInsensitiveMatch=false]` - {boolean=} - match routes without being case sensitive + * + * If the option is set to `true`, then the particular route can be matched without being + * case sensitive + * + * @returns {Object} self + * + * @description + * Adds a new route definition to the `$route` service. + */ + this.when = function(path, route) { + //copy original route object to preserve params inherited from proto chain + var routeCopy = angular.copy(route); + if (angular.isUndefined(routeCopy.reloadOnSearch)) { + routeCopy.reloadOnSearch = true; + } + if (angular.isUndefined(routeCopy.caseInsensitiveMatch)) { + routeCopy.caseInsensitiveMatch = this.caseInsensitiveMatch; + } + routes[path] = angular.extend( + routeCopy, + path && pathRegExp(path, routeCopy) + ); + + // create redirection for trailing slashes + if (path) { + var redirectPath = (path[path.length - 1] == '/') + ? path.substr(0, path.length - 1) + : path + '/'; + + routes[redirectPath] = angular.extend( + {redirectTo: path}, + pathRegExp(redirectPath, routeCopy) + ); + } + + return this; + }; + + /** + * @ngdoc property + * @name $routeProvider#caseInsensitiveMatch + * @description + * + * A boolean property indicating if routes defined + * using this provider should be matched using a case insensitive + * algorithm. Defaults to `false`. + */ + this.caseInsensitiveMatch = false; + + /** + * @param path {string} path + * @param opts {Object} options + * @return {?Object} + * + * @description + * Normalizes the given path, returning a regular expression + * and the original path. + * + * Inspired by pathRexp in visionmedia/express/lib/utils.js. + */ + function pathRegExp(path, opts) { + var insensitive = opts.caseInsensitiveMatch, + ret = { + originalPath: path, + regexp: path + }, + keys = ret.keys = []; + + path = path + .replace(/([().])/g, '\\$1') + .replace(/(\/)?:(\w+)([\?\*])?/g, function(_, slash, key, option) { + var optional = option === '?' ? option : null; + var star = option === '*' ? option : null; + keys.push({ name: key, optional: !!optional }); + slash = slash || ''; + return '' + + (optional ? '' : slash) + + '(?:' + + (optional ? slash : '') + + (star && '(.+?)' || '([^/]+)') + + (optional || '') + + ')' + + (optional || ''); + }) + .replace(/([\/$\*])/g, '\\$1'); + + ret.regexp = new RegExp('^' + path + '$', insensitive ? 'i' : ''); + return ret; + } + + /** + * @ngdoc method + * @name $routeProvider#otherwise + * + * @description + * Sets route definition that will be used on route change when no other route definition + * is matched. + * + * @param {Object|string} params Mapping information to be assigned to `$route.current`. + * If called with a string, the value maps to `redirectTo`. + * @returns {Object} self + */ + this.otherwise = function(params) { + if (typeof params === 'string') { + params = {redirectTo: params}; + } + this.when(null, params); + return this; + }; + + + this.$get = ['$rootScope', + '$location', + '$routeParams', + '$q', + '$injector', + '$templateRequest', + '$sce', + function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) { + + /** + * @ngdoc service + * @name $route + * @requires $location + * @requires $routeParams + * + * @property {Object} current Reference to the current route definition. + * The route definition contains: + * + * - `controller`: The controller constructor as define in route definition. + * - `locals`: A map of locals which is used by {@link ng.$controller $controller} service for + * controller instantiation. The `locals` contain + * the resolved values of the `resolve` map. Additionally the `locals` also contain: + * + * - `$scope` - The current route scope. + * - `$template` - The current route template HTML. + * + * @property {Object} routes Object with all route configuration Objects as its properties. + * + * @description + * `$route` is used for deep-linking URLs to controllers and views (HTML partials). + * It watches `$location.url()` and tries to map the path to an existing route definition. + * + * Requires the {@link ngRoute `ngRoute`} module to be installed. + * + * You can define routes through {@link ngRoute.$routeProvider $routeProvider}'s API. + * + * The `$route` service is typically used in conjunction with the + * {@link ngRoute.directive:ngView `ngView`} directive and the + * {@link ngRoute.$routeParams `$routeParams`} service. + * + * @example + * This example shows how changing the URL hash causes the `$route` to match a route against the + * URL, and the `ngView` pulls in the partial. + * + * + * + *
+ * Choose: + * Moby | + * Moby: Ch1 | + * Gatsby | + * Gatsby: Ch4 | + * Scarlet Letter
+ * + *
+ * + *
+ * + *
$location.path() = {{$location.path()}}
+ *
$route.current.templateUrl = {{$route.current.templateUrl}}
+ *
$route.current.params = {{$route.current.params}}
+ *
$route.current.scope.name = {{$route.current.scope.name}}
+ *
$routeParams = {{$routeParams}}
+ *
+ *
+ * + * + * controller: {{name}}
+ * Book Id: {{params.bookId}}
+ *
+ * + * + * controller: {{name}}
+ * Book Id: {{params.bookId}}
+ * Chapter Id: {{params.chapterId}} + *
+ * + * + * angular.module('ngRouteExample', ['ngRoute']) + * + * .controller('MainController', function($scope, $route, $routeParams, $location) { + * $scope.$route = $route; + * $scope.$location = $location; + * $scope.$routeParams = $routeParams; + * }) + * + * .controller('BookController', function($scope, $routeParams) { + * $scope.name = "BookController"; + * $scope.params = $routeParams; + * }) + * + * .controller('ChapterController', function($scope, $routeParams) { + * $scope.name = "ChapterController"; + * $scope.params = $routeParams; + * }) + * + * .config(function($routeProvider, $locationProvider) { + * $routeProvider + * .when('/Book/:bookId', { + * templateUrl: 'book.html', + * controller: 'BookController', + * resolve: { + * // I will cause a 1 second delay + * delay: function($q, $timeout) { + * var delay = $q.defer(); + * $timeout(delay.resolve, 1000); + * return delay.promise; + * } + * } + * }) + * .when('/Book/:bookId/ch/:chapterId', { + * templateUrl: 'chapter.html', + * controller: 'ChapterController' + * }); + * + * // configure html5 to get links working on jsfiddle + * $locationProvider.html5Mode(true); + * }); + * + * + * + * + * it('should load and compile correct template', function() { + * element(by.linkText('Moby: Ch1')).click(); + * var content = element(by.css('[ng-view]')).getText(); + * expect(content).toMatch(/controller\: ChapterController/); + * expect(content).toMatch(/Book Id\: Moby/); + * expect(content).toMatch(/Chapter Id\: 1/); + * + * element(by.partialLinkText('Scarlet')).click(); + * + * content = element(by.css('[ng-view]')).getText(); + * expect(content).toMatch(/controller\: BookController/); + * expect(content).toMatch(/Book Id\: Scarlet/); + * }); + * + *
+ */ + + /** + * @ngdoc event + * @name $route#$routeChangeStart + * @eventType broadcast on root scope + * @description + * Broadcasted before a route change. At this point the route services starts + * resolving all of the dependencies needed for the route change to occur. + * Typically this involves fetching the view template as well as any dependencies + * defined in `resolve` route property. Once all of the dependencies are resolved + * `$routeChangeSuccess` is fired. + * + * The route change (and the `$location` change that triggered it) can be prevented + * by calling `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} + * for more details about event object. + * + * @param {Object} angularEvent Synthetic event object. + * @param {Route} next Future route information. + * @param {Route} current Current route information. + */ + + /** + * @ngdoc event + * @name $route#$routeChangeSuccess + * @eventType broadcast on root scope + * @description + * Broadcasted after a route change has happened successfully. + * The `resolve` dependencies are now available in the `current.locals` property. + * + * {@link ngRoute.directive:ngView ngView} listens for the directive + * to instantiate the controller and render the view. + * + * @param {Object} angularEvent Synthetic event object. + * @param {Route} current Current route information. + * @param {Route|Undefined} previous Previous route information, or undefined if current is + * first route entered. + */ + + /** + * @ngdoc event + * @name $route#$routeChangeError + * @eventType broadcast on root scope + * @description + * Broadcasted if any of the resolve promises are rejected. + * + * @param {Object} angularEvent Synthetic event object + * @param {Route} current Current route information. + * @param {Route} previous Previous route information. + * @param {Route} rejection Rejection of the promise. Usually the error of the failed promise. + */ + + /** + * @ngdoc event + * @name $route#$routeUpdate + * @eventType broadcast on root scope + * @description + * The `reloadOnSearch` property has been set to false, and we are reusing the same + * instance of the Controller. + * + * @param {Object} angularEvent Synthetic event object + * @param {Route} current Current/previous route information. + */ + + var forceReload = false, + preparedRoute, + preparedRouteIsUpdateOnly, + $route = { + routes: routes, + + /** + * @ngdoc method + * @name $route#reload + * + * @description + * Causes `$route` service to reload the current route even if + * {@link ng.$location $location} hasn't changed. + * + * As a result of that, {@link ngRoute.directive:ngView ngView} + * creates new scope and reinstantiates the controller. + */ + reload: function() { + forceReload = true; + $rootScope.$evalAsync(function() { + // Don't support cancellation of a reload for now... + prepareRoute(); + commitRoute(); + }); + }, + + /** + * @ngdoc method + * @name $route#updateParams + * + * @description + * Causes `$route` service to update the current URL, replacing + * current route parameters with those specified in `newParams`. + * Provided property names that match the route's path segment + * definitions will be interpolated into the location's path, while + * remaining properties will be treated as query params. + * + * @param {!Object} newParams mapping of URL parameter names to values + */ + updateParams: function(newParams) { + if (this.current && this.current.$$route) { + newParams = angular.extend({}, this.current.params, newParams); + $location.path(interpolate(this.current.$$route.originalPath, newParams)); + // interpolate modifies newParams, only query params are left + $location.search(newParams); + } else { + throw $routeMinErr('norout', 'Tried updating route when with no current route'); + } + } + }; + + $rootScope.$on('$locationChangeStart', prepareRoute); + $rootScope.$on('$locationChangeSuccess', commitRoute); + + return $route; + + ///////////////////////////////////////////////////// + + /** + * @param on {string} current url + * @param route {Object} route regexp to match the url against + * @return {?Object} + * + * @description + * Check if the route matches the current url. + * + * Inspired by match in + * visionmedia/express/lib/router/router.js. + */ + function switchRouteMatcher(on, route) { + var keys = route.keys, + params = {}; + + if (!route.regexp) return null; + + var m = route.regexp.exec(on); + if (!m) return null; + + for (var i = 1, len = m.length; i < len; ++i) { + var key = keys[i - 1]; + + var val = m[i]; + + if (key && val) { + params[key.name] = val; + } + } + return params; + } + + function prepareRoute($locationEvent) { + var lastRoute = $route.current; + + preparedRoute = parseRoute(); + preparedRouteIsUpdateOnly = preparedRoute && lastRoute && preparedRoute.$$route === lastRoute.$$route + && angular.equals(preparedRoute.pathParams, lastRoute.pathParams) + && !preparedRoute.reloadOnSearch && !forceReload; + + if (!preparedRouteIsUpdateOnly && (lastRoute || preparedRoute)) { + if ($rootScope.$broadcast('$routeChangeStart', preparedRoute, lastRoute).defaultPrevented) { + if ($locationEvent) { + $locationEvent.preventDefault(); + } + } + } + } + + function commitRoute() { + var lastRoute = $route.current; + var nextRoute = preparedRoute; + + if (preparedRouteIsUpdateOnly) { + lastRoute.params = nextRoute.params; + angular.copy(lastRoute.params, $routeParams); + $rootScope.$broadcast('$routeUpdate', lastRoute); + } else if (nextRoute || lastRoute) { + forceReload = false; + $route.current = nextRoute; + if (nextRoute) { + if (nextRoute.redirectTo) { + if (angular.isString(nextRoute.redirectTo)) { + $location.path(interpolate(nextRoute.redirectTo, nextRoute.params)).search(nextRoute.params) + .replace(); + } else { + $location.url(nextRoute.redirectTo(nextRoute.pathParams, $location.path(), $location.search())) + .replace(); + } + } + } + + $q.when(nextRoute). + then(function() { + if (nextRoute) { + var locals = angular.extend({}, nextRoute.resolve), + template, templateUrl; + + angular.forEach(locals, function(value, key) { + locals[key] = angular.isString(value) ? + $injector.get(value) : $injector.invoke(value, null, null, key); + }); + + if (angular.isDefined(template = nextRoute.template)) { + if (angular.isFunction(template)) { + template = template(nextRoute.params); + } + } else if (angular.isDefined(templateUrl = nextRoute.templateUrl)) { + if (angular.isFunction(templateUrl)) { + templateUrl = templateUrl(nextRoute.params); + } + if (angular.isDefined(templateUrl)) { + nextRoute.loadedTemplateUrl = $sce.valueOf(templateUrl); + template = $templateRequest(templateUrl); + } + } + if (angular.isDefined(template)) { + locals['$template'] = template; + } + return $q.all(locals); + } + }). + then(function(locals) { + // after route change + if (nextRoute == $route.current) { + if (nextRoute) { + nextRoute.locals = locals; + angular.copy(nextRoute.params, $routeParams); + } + $rootScope.$broadcast('$routeChangeSuccess', nextRoute, lastRoute); + } + }, function(error) { + if (nextRoute == $route.current) { + $rootScope.$broadcast('$routeChangeError', nextRoute, lastRoute, error); + } + }); + } + } + + + /** + * @returns {Object} the current active route, by matching it against the URL + */ + function parseRoute() { + // Match a route + var params, match; + angular.forEach(routes, function(route, path) { + if (!match && (params = switchRouteMatcher($location.path(), route))) { + match = inherit(route, { + params: angular.extend({}, $location.search(), params), + pathParams: params}); + match.$$route = route; + } + }); + // No route matched; fallback to "otherwise" route + return match || routes[null] && inherit(routes[null], {params: {}, pathParams:{}}); + } + + /** + * @returns {string} interpolation of the redirect path with the parameters + */ + function interpolate(string, params) { + var result = []; + angular.forEach((string || '').split(':'), function(segment, i) { + if (i === 0) { + result.push(segment); + } else { + var segmentMatch = segment.match(/(\w+)(?:[?*])?(.*)/); + var key = segmentMatch[1]; + result.push(params[key]); + result.push(segmentMatch[2] || ''); + delete params[key]; + } + }); + return result.join(''); + } + }]; +} + +ngRouteModule.provider('$routeParams', $RouteParamsProvider); + + +/** + * @ngdoc service + * @name $routeParams + * @requires $route + * + * @description + * The `$routeParams` service allows you to retrieve the current set of route parameters. + * + * Requires the {@link ngRoute `ngRoute`} module to be installed. + * + * The route parameters are a combination of {@link ng.$location `$location`}'s + * {@link ng.$location#search `search()`} and {@link ng.$location#path `path()`}. + * The `path` parameters are extracted when the {@link ngRoute.$route `$route`} path is matched. + * + * In case of parameter name collision, `path` params take precedence over `search` params. + * + * The service guarantees that the identity of the `$routeParams` object will remain unchanged + * (but its properties will likely change) even when a route change occurs. + * + * Note that the `$routeParams` are only updated *after* a route change completes successfully. + * This means that you cannot rely on `$routeParams` being correct in route resolve functions. + * Instead you can use `$route.current.params` to access the new route's parameters. + * + * @example + * ```js + * // Given: + * // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby + * // Route: /Chapter/:chapterId/Section/:sectionId + * // + * // Then + * $routeParams ==> {chapterId:'1', sectionId:'2', search:'moby'} + * ``` + */ +function $RouteParamsProvider() { + this.$get = function() { return {}; }; +} + +ngRouteModule.directive('ngView', ngViewFactory); +ngRouteModule.directive('ngView', ngViewFillContentFactory); + + +/** + * @ngdoc directive + * @name ngView + * @restrict ECA + * + * @description + * # Overview + * `ngView` is a directive that complements the {@link ngRoute.$route $route} service by + * including the rendered template of the current route into the main layout (`index.html`) file. + * Every time the current route changes, the included view changes with it according to the + * configuration of the `$route` service. + * + * Requires the {@link ngRoute `ngRoute`} module to be installed. + * + * @animations + * enter - animation is used to bring new content into the browser. + * leave - animation is used to animate existing content away. + * + * The enter and leave animation occur concurrently. + * + * @scope + * @priority 400 + * @param {string=} onload Expression to evaluate whenever the view updates. + * + * @param {string=} autoscroll Whether `ngView` should call {@link ng.$anchorScroll + * $anchorScroll} to scroll the viewport after the view is updated. + * + * - If the attribute is not set, disable scrolling. + * - If the attribute is set without value, enable scrolling. + * - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated + * as an expression yields a truthy value. + * @example + + +
+ Choose: + Moby | + Moby: Ch1 | + Gatsby | + Gatsby: Ch4 | + Scarlet Letter
+ +
+
+
+
+ +
$location.path() = {{main.$location.path()}}
+
$route.current.templateUrl = {{main.$route.current.templateUrl}}
+
$route.current.params = {{main.$route.current.params}}
+
$routeParams = {{main.$routeParams}}
+
+
+ + +
+ controller: {{book.name}}
+ Book Id: {{book.params.bookId}}
+
+
+ + +
+ controller: {{chapter.name}}
+ Book Id: {{chapter.params.bookId}}
+ Chapter Id: {{chapter.params.chapterId}} +
+
+ + + .view-animate-container { + position:relative; + height:100px!important; + background:white; + border:1px solid black; + height:40px; + overflow:hidden; + } + + .view-animate { + padding:10px; + } + + .view-animate.ng-enter, .view-animate.ng-leave { + transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s; + + display:block; + width:100%; + border-left:1px solid black; + + position:absolute; + top:0; + left:0; + right:0; + bottom:0; + padding:10px; + } + + .view-animate.ng-enter { + left:100%; + } + .view-animate.ng-enter.ng-enter-active { + left:0; + } + .view-animate.ng-leave.ng-leave-active { + left:-100%; + } + + + + angular.module('ngViewExample', ['ngRoute', 'ngAnimate']) + .config(['$routeProvider', '$locationProvider', + function($routeProvider, $locationProvider) { + $routeProvider + .when('/Book/:bookId', { + templateUrl: 'book.html', + controller: 'BookCtrl', + controllerAs: 'book' + }) + .when('/Book/:bookId/ch/:chapterId', { + templateUrl: 'chapter.html', + controller: 'ChapterCtrl', + controllerAs: 'chapter' + }); + + $locationProvider.html5Mode(true); + }]) + .controller('MainCtrl', ['$route', '$routeParams', '$location', + function($route, $routeParams, $location) { + this.$route = $route; + this.$location = $location; + this.$routeParams = $routeParams; + }]) + .controller('BookCtrl', ['$routeParams', function($routeParams) { + this.name = "BookCtrl"; + this.params = $routeParams; + }]) + .controller('ChapterCtrl', ['$routeParams', function($routeParams) { + this.name = "ChapterCtrl"; + this.params = $routeParams; + }]); + + + + + it('should load and compile correct template', function() { + element(by.linkText('Moby: Ch1')).click(); + var content = element(by.css('[ng-view]')).getText(); + expect(content).toMatch(/controller\: ChapterCtrl/); + expect(content).toMatch(/Book Id\: Moby/); + expect(content).toMatch(/Chapter Id\: 1/); + + element(by.partialLinkText('Scarlet')).click(); + + content = element(by.css('[ng-view]')).getText(); + expect(content).toMatch(/controller\: BookCtrl/); + expect(content).toMatch(/Book Id\: Scarlet/); + }); + +
+ */ + + +/** + * @ngdoc event + * @name ngView#$viewContentLoaded + * @eventType emit on the current ngView scope + * @description + * Emitted every time the ngView content is reloaded. + */ +ngViewFactory.$inject = ['$route', '$anchorScroll', '$animate']; +function ngViewFactory($route, $anchorScroll, $animate) { + return { + restrict: 'ECA', + terminal: true, + priority: 400, + transclude: 'element', + link: function(scope, $element, attr, ctrl, $transclude) { + var currentScope, + currentElement, + previousLeaveAnimation, + autoScrollExp = attr.autoscroll, + onloadExp = attr.onload || ''; + + scope.$on('$routeChangeSuccess', update); + update(); + + function cleanupLastView() { + if (previousLeaveAnimation) { + $animate.cancel(previousLeaveAnimation); + previousLeaveAnimation = null; + } + + if (currentScope) { + currentScope.$destroy(); + currentScope = null; + } + if (currentElement) { + previousLeaveAnimation = $animate.leave(currentElement); + previousLeaveAnimation.then(function() { + previousLeaveAnimation = null; + }); + currentElement = null; + } + } + + function update() { + var locals = $route.current && $route.current.locals, + template = locals && locals.$template; + + if (angular.isDefined(template)) { + var newScope = scope.$new(); + var current = $route.current; + + // Note: This will also link all children of ng-view that were contained in the original + // html. If that content contains controllers, ... they could pollute/change the scope. + // However, using ng-view on an element with additional content does not make sense... + // Note: We can't remove them in the cloneAttchFn of $transclude as that + // function is called before linking the content, which would apply child + // directives to non existing elements. + var clone = $transclude(newScope, function(clone) { + $animate.enter(clone, null, currentElement || $element).then(function onNgViewEnter() { + if (angular.isDefined(autoScrollExp) + && (!autoScrollExp || scope.$eval(autoScrollExp))) { + $anchorScroll(); + } + }); + cleanupLastView(); + }); + + currentElement = clone; + currentScope = current.scope = newScope; + currentScope.$emit('$viewContentLoaded'); + currentScope.$eval(onloadExp); + } else { + cleanupLastView(); + } + } + } + }; +} + +// This directive is called during the $transclude call of the first `ngView` directive. +// It will replace and compile the content of the element with the loaded template. +// We need this directive so that the element content is already filled when +// the link function of another directive on the same element as ngView +// is called. +ngViewFillContentFactory.$inject = ['$compile', '$controller', '$route']; +function ngViewFillContentFactory($compile, $controller, $route) { + return { + restrict: 'ECA', + priority: -400, + link: function(scope, $element) { + var current = $route.current, + locals = current.locals; + + $element.html(locals.$template); + + var link = $compile($element.contents()); + + if (current.controller) { + locals.$scope = scope; + var controller = $controller(current.controller, locals); + if (current.controllerAs) { + scope[current.controllerAs] = controller; + } + $element.data('$ngControllerController', controller); + $element.children().data('$ngControllerController', controller); + } + + link(scope); + } + }; +} + + +})(window, window.angular); diff --git a/bower_components/angular-route/angular-route.min.js b/bower_components/angular-route/angular-route.min.js new file mode 100644 index 00000000..4fe8359b --- /dev/null +++ b/bower_components/angular-route/angular-route.min.js @@ -0,0 +1,15 @@ +/* + AngularJS v1.4.7 + (c) 2010-2015 Google, Inc. http://angularjs.org + License: MIT +*/ +(function(p,c,C){'use strict';function v(r,h,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,f,b,d,y){function z(){k&&(g.cancel(k),k=null);l&&(l.$destroy(),l=null);m&&(k=g.leave(m),k.then(function(){k=null}),m=null)}function x(){var b=r.current&&r.current.locals;if(c.isDefined(b&&b.$template)){var b=a.$new(),d=r.current;m=y(b,function(b){g.enter(b,null,m||f).then(function(){!c.isDefined(t)||t&&!a.$eval(t)||h()});z()});l=d.scope=b;l.$emit("$viewContentLoaded"); +l.$eval(w)}else z()}var l,m,k,t=b.autoscroll,w=b.onload||"";a.$on("$routeChangeSuccess",x);x()}}}function A(c,h,g){return{restrict:"ECA",priority:-400,link:function(a,f){var b=g.current,d=b.locals;f.html(d.$template);var y=c(f.contents());b.controller&&(d.$scope=a,d=h(b.controller,d),b.controllerAs&&(a[b.controllerAs]=d),f.data("$ngControllerController",d),f.children().data("$ngControllerController",d));y(a)}}}p=c.module("ngRoute",["ng"]).provider("$route",function(){function r(a,f){return c.extend(Object.create(a), +f)}function h(a,c){var b=c.caseInsensitiveMatch,d={originalPath:a,regexp:a},g=d.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,c,b,d){a="?"===d?d:null;d="*"===d?d:null;g.push({name:b,optional:!!a});c=c||"";return""+(a?"":c)+"(?:"+(a?c:"")+(d&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");d.regexp=new RegExp("^"+a+"$",b?"i":"");return d}var g={};this.when=function(a,f){var b=c.copy(f);c.isUndefined(b.reloadOnSearch)&&(b.reloadOnSearch=!0); +c.isUndefined(b.caseInsensitiveMatch)&&(b.caseInsensitiveMatch=this.caseInsensitiveMatch);g[a]=c.extend(b,a&&h(a,b));if(a){var d="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";g[d]=c.extend({redirectTo:a},h(d,b))}return this};this.caseInsensitiveMatch=!1;this.otherwise=function(a){"string"===typeof a&&(a={redirectTo:a});this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(a,f,b,d,h,p,x){function l(b){var e=s.current; +(v=(n=k())&&e&&n.$$route===e.$$route&&c.equals(n.pathParams,e.pathParams)&&!n.reloadOnSearch&&!w)||!e&&!n||a.$broadcast("$routeChangeStart",n,e).defaultPrevented&&b&&b.preventDefault()}function m(){var u=s.current,e=n;if(v)u.params=e.params,c.copy(u.params,b),a.$broadcast("$routeUpdate",u);else if(e||u)w=!1,(s.current=e)&&e.redirectTo&&(c.isString(e.redirectTo)?f.path(t(e.redirectTo,e.params)).search(e.params).replace():f.url(e.redirectTo(e.pathParams,f.path(),f.search())).replace()),d.when(e).then(function(){if(e){var a= +c.extend({},e.resolve),b,f;c.forEach(a,function(b,e){a[e]=c.isString(b)?h.get(b):h.invoke(b,null,null,e)});c.isDefined(b=e.template)?c.isFunction(b)&&(b=b(e.params)):c.isDefined(f=e.templateUrl)&&(c.isFunction(f)&&(f=f(e.params)),c.isDefined(f)&&(e.loadedTemplateUrl=x.valueOf(f),b=p(f)));c.isDefined(b)&&(a.$template=b);return d.all(a)}}).then(function(f){e==s.current&&(e&&(e.locals=f,c.copy(e.params,b)),a.$broadcast("$routeChangeSuccess",e,u))},function(b){e==s.current&&a.$broadcast("$routeChangeError", +e,u,b)})}function k(){var a,b;c.forEach(g,function(d,g){var q;if(q=!b){var h=f.path();q=d.keys;var l={};if(d.regexp)if(h=d.regexp.exec(h)){for(var k=1,m=h.length;k", + "license": "MIT", + "bugs": { + "url": "https://github.com/angular/angular.js/issues" + }, + "homepage": "http://angularjs.org" +} diff --git a/bower_components/angular-sanitize/.bower.json b/bower_components/angular-sanitize/.bower.json new file mode 100644 index 00000000..a4ea6a41 --- /dev/null +++ b/bower_components/angular-sanitize/.bower.json @@ -0,0 +1,19 @@ +{ + "name": "angular-sanitize", + "version": "1.3.20", + "main": "./angular-sanitize.js", + "ignore": [], + "dependencies": { + "angular": "1.3.20" + }, + "homepage": "https://github.com/angular/bower-angular-sanitize", + "_release": "1.3.20", + "_resolution": { + "type": "version", + "tag": "v1.3.20", + "commit": "1072923abc9a6bc076e0625ae115b7b8f3ed70d1" + }, + "_source": "git://github.com/angular/bower-angular-sanitize.git", + "_target": "1.3.x", + "_originalSource": "angular-sanitize" +} \ No newline at end of file diff --git a/bower_components/angular-sanitize/README.md b/bower_components/angular-sanitize/README.md new file mode 100644 index 00000000..b84aaf6d --- /dev/null +++ b/bower_components/angular-sanitize/README.md @@ -0,0 +1,68 @@ +# packaged angular-sanitize + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngSanitize). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-sanitize +``` + +Then add `ngSanitize` as a dependency for your app: + +```javascript +angular.module('myApp', [require('angular-sanitize')]); +``` + +### bower + +```shell +bower install angular-sanitize +``` + +Add a ` +``` + +Then add `ngSanitize` as a dependency for your app: + +```javascript +angular.module('myApp', ['ngSanitize']); +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/api/ngSanitize). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/bower_components/angular-sanitize/angular-sanitize.js b/bower_components/angular-sanitize/angular-sanitize.js new file mode 100644 index 00000000..6285a08a --- /dev/null +++ b/bower_components/angular-sanitize/angular-sanitize.js @@ -0,0 +1,679 @@ +/** + * @license AngularJS v1.3.20 + * (c) 2010-2014 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window, angular, undefined) {'use strict'; + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Any commits to this file should be reviewed with security in mind. * + * Changes to this file can potentially create security vulnerabilities. * + * An approval from 2 Core members with history of modifying * + * this file is required. * + * * + * Does the change somehow allow for arbitrary javascript to be executed? * + * Or allows for someone to change the prototype of built-in objects? * + * Or gives undesired access to variables likes document or window? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +var $sanitizeMinErr = angular.$$minErr('$sanitize'); + +/** + * @ngdoc module + * @name ngSanitize + * @description + * + * # ngSanitize + * + * The `ngSanitize` module provides functionality to sanitize HTML. + * + * + *
+ * + * See {@link ngSanitize.$sanitize `$sanitize`} for usage. + */ + +/* + * HTML Parser By Misko Hevery (misko@hevery.com) + * based on: HTML Parser By John Resig (ejohn.org) + * Original code by Erik Arvidsson, Mozilla Public License + * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js + * + * // Use like so: + * htmlParser(htmlString, { + * start: function(tag, attrs, unary) {}, + * end: function(tag) {}, + * chars: function(text) {}, + * comment: function(text) {} + * }); + * + */ + + +/** + * @ngdoc service + * @name $sanitize + * @kind function + * + * @description + * The input is sanitized by parsing the HTML into tokens. All safe tokens (from a whitelist) are + * then serialized back to properly escaped html string. This means that no unsafe input can make + * it into the returned string, however, since our parser is more strict than a typical browser + * parser, it's possible that some obscure input, which would be recognized as valid HTML by a + * browser, won't make it through the sanitizer. The input may also contain SVG markup. + * The whitelist is configured using the functions `aHrefSanitizationWhitelist` and + * `imgSrcSanitizationWhitelist` of {@link ng.$compileProvider `$compileProvider`}. + * + * @param {string} html HTML input. + * @returns {string} Sanitized HTML. + * + * @example + + + +
+ Snippet: + + + + + + + + + + + + + + + + + + + + + + + + + +
DirectiveHowSourceRendered
ng-bind-htmlAutomatically uses $sanitize
<div ng-bind-html="snippet">
</div>
ng-bind-htmlBypass $sanitize by explicitly trusting the dangerous value +
<div ng-bind-html="deliberatelyTrustDangerousSnippet()">
+</div>
+
ng-bindAutomatically escapes
<div ng-bind="snippet">
</div>
+
+
+ + it('should sanitize the html snippet by default', function() { + expect(element(by.css('#bind-html-with-sanitize div')).getInnerHtml()). + toBe('

an html\nclick here\nsnippet

'); + }); + + it('should inline raw snippet if bound to a trusted value', function() { + expect(element(by.css('#bind-html-with-trust div')).getInnerHtml()). + toBe("

an html\n" + + "click here\n" + + "snippet

"); + }); + + it('should escape snippet without any filter', function() { + expect(element(by.css('#bind-default div')).getInnerHtml()). + toBe("<p style=\"color:blue\">an html\n" + + "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" + + "snippet</p>"); + }); + + it('should update', function() { + element(by.model('snippet')).clear(); + element(by.model('snippet')).sendKeys('new text'); + expect(element(by.css('#bind-html-with-sanitize div')).getInnerHtml()). + toBe('new text'); + expect(element(by.css('#bind-html-with-trust div')).getInnerHtml()).toBe( + 'new text'); + expect(element(by.css('#bind-default div')).getInnerHtml()).toBe( + "new <b onclick=\"alert(1)\">text</b>"); + }); +
+
+ */ +function $SanitizeProvider() { + this.$get = ['$$sanitizeUri', function($$sanitizeUri) { + return function(html) { + var buf = []; + htmlParser(html, htmlSanitizeWriter(buf, function(uri, isImage) { + return !/^unsafe/.test($$sanitizeUri(uri, isImage)); + })); + return buf.join(''); + }; + }]; +} + +function sanitizeText(chars) { + var buf = []; + var writer = htmlSanitizeWriter(buf, angular.noop); + writer.chars(chars); + return buf.join(''); +} + + +// Regular Expressions for parsing tags and attributes +var START_TAG_REGEXP = + /^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/, + END_TAG_REGEXP = /^<\/\s*([\w:-]+)[^>]*>/, + ATTR_REGEXP = /([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g, + BEGIN_TAG_REGEXP = /^/g, + DOCTYPE_REGEXP = /]*?)>/i, + CDATA_REGEXP = //g, + SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, + // Match everything outside of normal chars and " (quote character) + NON_ALPHANUMERIC_REGEXP = /([^\#-~| |!])/g; + + +// Good source of info about elements and attributes +// http://dev.w3.org/html5/spec/Overview.html#semantics +// http://simon.html5.org/html-elements + +// Safe Void Elements - HTML5 +// http://dev.w3.org/html5/spec/Overview.html#void-elements +var voidElements = makeMap("area,br,col,hr,img,wbr"); + +// Elements that you can, intentionally, leave open (and which close themselves) +// http://dev.w3.org/html5/spec/Overview.html#optional-tags +var optionalEndTagBlockElements = makeMap("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"), + optionalEndTagInlineElements = makeMap("rp,rt"), + optionalEndTagElements = angular.extend({}, + optionalEndTagInlineElements, + optionalEndTagBlockElements); + +// Safe Block Elements - HTML5 +var blockElements = angular.extend({}, optionalEndTagBlockElements, makeMap("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")); + +// Inline Elements - HTML5 +var inlineElements = angular.extend({}, optionalEndTagInlineElements, makeMap("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")); + +// SVG Elements +// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Elements +var svgElements = makeMap("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"); + +// Special Elements (can contain anything) +var specialElements = makeMap("script,style"); + +var validElements = angular.extend({}, + voidElements, + blockElements, + inlineElements, + optionalEndTagElements, + svgElements); + +//Attributes that have href and hence need to be sanitized +var uriAttrs = makeMap("background,cite,href,longdesc,src,usemap,xlink:href"); + +var htmlAttrs = makeMap('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'); + +// SVG attributes (without "id" and "name" attributes) +// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes +var svgAttrs = makeMap('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'); + +var validAttrs = angular.extend({}, + uriAttrs, + svgAttrs, + htmlAttrs); + +function makeMap(str) { + var obj = {}, items = str.split(','), i; + for (i = 0; i < items.length; i++) obj[items[i]] = true; + return obj; +} + + +/** + * @example + * htmlParser(htmlString, { + * start: function(tag, attrs, unary) {}, + * end: function(tag) {}, + * chars: function(text) {}, + * comment: function(text) {} + * }); + * + * @param {string} html string + * @param {object} handler + */ +function htmlParser(html, handler) { + if (typeof html !== 'string') { + if (html === null || typeof html === 'undefined') { + html = ''; + } else { + html = '' + html; + } + } + var index, chars, match, stack = [], last = html, text; + stack.last = function() { return stack[stack.length - 1]; }; + + while (html) { + text = ''; + chars = true; + + // Make sure we're not in a script or style element + if (!stack.last() || !specialElements[stack.last()]) { + + // Comment + if (html.indexOf("", index) === index) { + if (handler.comment) handler.comment(html.substring(4, index)); + html = html.substring(index + 3); + chars = false; + } + // DOCTYPE + } else if (DOCTYPE_REGEXP.test(html)) { + match = html.match(DOCTYPE_REGEXP); + + if (match) { + html = html.replace(match[0], ''); + chars = false; + } + // end tag + } else if (BEGING_END_TAGE_REGEXP.test(html)) { + match = html.match(END_TAG_REGEXP); + + if (match) { + html = html.substring(match[0].length); + match[0].replace(END_TAG_REGEXP, parseEndTag); + chars = false; + } + + // start tag + } else if (BEGIN_TAG_REGEXP.test(html)) { + match = html.match(START_TAG_REGEXP); + + if (match) { + // We only have a valid start-tag if there is a '>'. + if (match[4]) { + html = html.substring(match[0].length); + match[0].replace(START_TAG_REGEXP, parseStartTag); + } + chars = false; + } else { + // no ending tag found --- this piece should be encoded as an entity. + text += '<'; + html = html.substring(1); + } + } + + if (chars) { + index = html.indexOf("<"); + + text += index < 0 ? html : html.substring(0, index); + html = index < 0 ? "" : html.substring(index); + + if (handler.chars) handler.chars(decodeEntities(text)); + } + + } else { + // IE versions 9 and 10 do not understand the regex '[^]', so using a workaround with [\W\w]. + html = html.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'), + function(all, text) { + text = text.replace(COMMENT_REGEXP, "$1").replace(CDATA_REGEXP, "$1"); + + if (handler.chars) handler.chars(decodeEntities(text)); + + return ""; + }); + + parseEndTag("", stack.last()); + } + + if (html == last) { + throw $sanitizeMinErr('badparse', "The sanitizer was unable to parse the following block " + + "of html: {0}", html); + } + last = html; + } + + // Clean up any remaining tags + parseEndTag(); + + function parseStartTag(tag, tagName, rest, unary) { + tagName = angular.lowercase(tagName); + if (blockElements[tagName]) { + while (stack.last() && inlineElements[stack.last()]) { + parseEndTag("", stack.last()); + } + } + + if (optionalEndTagElements[tagName] && stack.last() == tagName) { + parseEndTag("", tagName); + } + + unary = voidElements[tagName] || !!unary; + + if (!unary) + stack.push(tagName); + + var attrs = {}; + + rest.replace(ATTR_REGEXP, + function(match, name, doubleQuotedValue, singleQuotedValue, unquotedValue) { + var value = doubleQuotedValue + || singleQuotedValue + || unquotedValue + || ''; + + attrs[name] = decodeEntities(value); + }); + if (handler.start) handler.start(tagName, attrs, unary); + } + + function parseEndTag(tag, tagName) { + var pos = 0, i; + tagName = angular.lowercase(tagName); + if (tagName) + // Find the closest opened tag of the same type + for (pos = stack.length - 1; pos >= 0; pos--) + if (stack[pos] == tagName) + break; + + if (pos >= 0) { + // Close all the open elements, up the stack + for (i = stack.length - 1; i >= pos; i--) + if (handler.end) handler.end(stack[i]); + + // Remove the open elements from the stack + stack.length = pos; + } + } +} + +var hiddenPre=document.createElement("pre"); +/** + * decodes all entities into regular string + * @param value + * @returns {string} A string with decoded entities. + */ +function decodeEntities(value) { + if (!value) { return ''; } + + hiddenPre.innerHTML = value.replace(//g, '>'); +} + +/** + * create an HTML/XML writer which writes to buffer + * @param {Array} buf use buf.jain('') to get out sanitized html string + * @returns {object} in the form of { + * start: function(tag, attrs, unary) {}, + * end: function(tag) {}, + * chars: function(text) {}, + * comment: function(text) {} + * } + */ +function htmlSanitizeWriter(buf, uriValidator) { + var ignore = false; + var out = angular.bind(buf, buf.push); + return { + start: function(tag, attrs, unary) { + tag = angular.lowercase(tag); + if (!ignore && specialElements[tag]) { + ignore = tag; + } + if (!ignore && validElements[tag] === true) { + out('<'); + out(tag); + angular.forEach(attrs, function(value, key) { + var lkey=angular.lowercase(key); + var isImage = (tag === 'img' && lkey === 'src') || (lkey === 'background'); + if (validAttrs[lkey] === true && + (uriAttrs[lkey] !== true || uriValidator(value, isImage))) { + out(' '); + out(key); + out('="'); + out(encodeEntities(value)); + out('"'); + } + }); + out(unary ? '/>' : '>'); + } + }, + end: function(tag) { + tag = angular.lowercase(tag); + if (!ignore && validElements[tag] === true) { + out(''); + } + if (tag == ignore) { + ignore = false; + } + }, + chars: function(chars) { + if (!ignore) { + out(encodeEntities(chars)); + } + } + }; +} + + +// define ngSanitize module and register $sanitize service +angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider); + +/* global sanitizeText: false */ + +/** + * @ngdoc filter + * @name linky + * @kind function + * + * @description + * Finds links in text input and turns them into html links. Supports http/https/ftp/mailto and + * plain email address links. + * + * Requires the {@link ngSanitize `ngSanitize`} module to be installed. + * + * @param {string} text Input text. + * @param {string} target Window (_blank|_self|_parent|_top) or named frame to open links in. + * @returns {string} Html-linkified text. + * + * @usage + + * + * @example + + + +
+ Snippet: + + + + + + + + + + + + + + + + + + + + + +
FilterSourceRendered
linky filter +
<div ng-bind-html="snippet | linky">
</div>
+
+
+
linky target +
<div ng-bind-html="snippetWithTarget | linky:'_blank'">
</div>
+
+
+
no filter
<div ng-bind="snippet">
</div>
+ + + it('should linkify the snippet with urls', function() { + expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()). + toBe('Pretty text with some links: http://angularjs.org/, us@somewhere.org, ' + + 'another@somewhere.org, and one more: ftp://127.0.0.1/.'); + expect(element.all(by.css('#linky-filter a')).count()).toEqual(4); + }); + + it('should not linkify snippet without the linky filter', function() { + expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText()). + toBe('Pretty text with some links: http://angularjs.org/, mailto:us@somewhere.org, ' + + 'another@somewhere.org, and one more: ftp://127.0.0.1/.'); + expect(element.all(by.css('#escaped-html a')).count()).toEqual(0); + }); + + it('should update', function() { + element(by.model('snippet')).clear(); + element(by.model('snippet')).sendKeys('new http://link.'); + expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()). + toBe('new http://link.'); + expect(element.all(by.css('#linky-filter a')).count()).toEqual(1); + expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText()) + .toBe('new http://link.'); + }); + + it('should work with the target property', function() { + expect(element(by.id('linky-target')). + element(by.binding("snippetWithTarget | linky:'_blank'")).getText()). + toBe('http://angularjs.org/'); + expect(element(by.css('#linky-target a')).getAttribute('target')).toEqual('_blank'); + }); + + + */ +angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) { + var LINKY_URL_REGEXP = + /((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/i, + MAILTO_REGEXP = /^mailto:/i; + + return function(text, target) { + if (!text) return text; + var match; + var raw = text; + var html = []; + var url; + var i; + while ((match = raw.match(LINKY_URL_REGEXP))) { + // We can not end in these as they are sometimes found at the end of the sentence + url = match[0]; + // if we did not match ftp/http/www/mailto then assume mailto + if (!match[2] && !match[4]) { + url = (match[3] ? 'http://' : 'mailto:') + url; + } + i = match.index; + addText(raw.substr(0, i)); + addLink(url, match[0].replace(MAILTO_REGEXP, '')); + raw = raw.substring(i + match[0].length); + } + addText(raw); + return $sanitize(html.join('')); + + function addText(text) { + if (!text) { + return; + } + html.push(sanitizeText(text)); + } + + function addLink(url, text) { + html.push(''); + addText(text); + html.push(''); + } + }; +}]); + + +})(window, window.angular); diff --git a/bower_components/angular-sanitize/angular-sanitize.min.js b/bower_components/angular-sanitize/angular-sanitize.min.js new file mode 100644 index 00000000..453a1fa5 --- /dev/null +++ b/bower_components/angular-sanitize/angular-sanitize.min.js @@ -0,0 +1,16 @@ +/* + AngularJS v1.3.20 + (c) 2010-2014 Google, Inc. http://angularjs.org + License: MIT +*/ +(function(n,h,p){'use strict';function E(a){var e=[];r(e,h.noop).chars(a);return e.join("")}function g(a){var e={};a=a.split(",");var d;for(d=0;d=c;d--)e.end&&e.end(f[d]);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()&&w[f.last()])a=a.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+f.last()+"[^>]*>","i"),function(a,b){b=b.replace(H,"$1").replace(I,"$1");e.chars&&e.chars(q(b));return""}),c("",f.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e",b)===b&&(e.comment&& +e.comment(a.substring(4,b)),a=a.substring(b+3),k=!1);else if(x.test(a)){if(b=a.match(x))a=a.replace(b[0],""),k=!1}else if(J.test(a)){if(b=a.match(y))a=a.substring(b[0].length),b[0].replace(y,c),k=!1}else K.test(a)&&((b=a.match(z))?(b[4]&&(a=a.substring(b[0].length),b[0].replace(z,d)),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),e.chars&&e.chars(q(l)))}if(a==m)throw L("badparse",a);m=a}c()}function q(a){if(!a)return"";A.innerHTML=a.replace(//g,">")}function r(a,e){var d=!1,c=h.bind(a,a.push);return{start:function(a,k,f){a=h.lowercase(a);!d&&w[a]&&(d=a);d||!0!==C[a]||(c("<"),c(a),h.forEach(k,function(d,f){var k=h.lowercase(f),g="img"===a&&"src"===k||"background"=== +k;!0!==O[k]||!0===D[k]&&!e(d,g)||(c(" "),c(f),c('="'),c(B(d)),c('"'))}),c(f?"/>":">"))},end:function(a){a=h.lowercase(a);d||!0!==C[a]||(c(""));a==d&&(d=!1)},chars:function(a){d||c(B(a))}}}var L=h.$$minErr("$sanitize"),z=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,y=/^<\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^]*?)>/i, +I=/"\u201d\u2019]/i,d=/^mailto:/i;return function(c,b){function k(a){a&&g.push(E(a))}function f(a,c){g.push("');k(c);g.push("")}if(!c)return c;for(var m,l=c,g=[],n,p;m=l.match(e);)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(d,"")),l=l.substring(p+m[0].length);k(l);return a(g.join(""))}}])})(window,window.angular); +//# sourceMappingURL=angular-sanitize.min.js.map diff --git a/bower_components/angular-sanitize/angular-sanitize.min.js.map b/bower_components/angular-sanitize/angular-sanitize.min.js.map new file mode 100644 index 00000000..01041298 --- /dev/null +++ b/bower_components/angular-sanitize/angular-sanitize.min.js.map @@ -0,0 +1,8 @@ +{ +"version":3, +"file":"angular-sanitize.min.js", +"lineCount":15, +"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA6JtCC,QAASA,EAAY,CAACC,CAAD,CAAQ,CAC3B,IAAIC,EAAM,EACGC,EAAAC,CAAmBF,CAAnBE,CAAwBN,CAAAO,KAAxBD,CACbH,MAAA,CAAaA,CAAb,CACA,OAAOC,EAAAI,KAAA,CAAS,EAAT,CAJoB,CAmG7BC,QAASA,EAAO,CAACC,CAAD,CAAM,CAAA,IAChBC,EAAM,EAAIC,EAAAA,CAAQF,CAAAG,MAAA,CAAU,GAAV,CAAtB,KAAsCC,CACtC,KAAKA,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBF,CAAAG,OAAhB,CAA8BD,CAAA,EAA9B,CAAmCH,CAAA,CAAIC,CAAA,CAAME,CAAN,CAAJ,CAAA,CAAgB,CAAA,CACnD,OAAOH,EAHa,CAmBtBK,QAASA,EAAU,CAACC,CAAD,CAAOC,CAAP,CAAgB,CAiGjCC,QAASA,EAAa,CAACC,CAAD,CAAMC,CAAN,CAAeC,CAAf,CAAqBC,CAArB,CAA4B,CAChDF,CAAA,CAAUrB,CAAAwB,UAAA,CAAkBH,CAAlB,CACV,IAAII,CAAA,CAAcJ,CAAd,CAAJ,CACE,IAAA,CAAOK,CAAAC,KAAA,EAAP,EAAuBC,CAAA,CAAeF,CAAAC,KAAA,EAAf,CAAvB,CAAA,CACEE,CAAA,CAAY,EAAZ,CAAgBH,CAAAC,KAAA,EAAhB,CAIAG,EAAA,CAAuBT,CAAvB,CAAJ,EAAuCK,CAAAC,KAAA,EAAvC,EAAuDN,CAAvD,EACEQ,CAAA,CAAY,EAAZ,CAAgBR,CAAhB,CAKF,EAFAE,CAEA,CAFQQ,CAAA,CAAaV,CAAb,CAER,EA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FV,CAGAuE,EAAA,CAAQ3D,CAAR,CACA7B,EAAAe,KAAA,CAAU,MAAV,CAX0B,CA5B5B,GAAKc,CAAAA,CAAL,CAAW,MAAOA,EAMlB,KALA,IAAIV,CAAJ,CACIyE,EAAM/D,CADV,CAEI7B,EAAO,EAFX,CAGI0F,CAHJ,CAII7F,CACJ,CAAQsB,CAAR,CAAgByE,CAAAzE,MAAA,CAAUkE,CAAV,CAAhB,CAAA,CAEEK,CAQA,CARMvE,CAAA,CAAM,CAAN,CAQN,CANKA,CAAA,CAAM,CAAN,CAML,EANkBA,CAAA,CAAM,CAAN,CAMlB,GALEuE,CAKF,EALSvE,CAAA,CAAM,CAAN,CAAA,CAAW,SAAX,CAAuB,SAKhC,EAL6CuE,CAK7C,EAHA7F,CAGA,CAHIsB,CAAAS,MAGJ,CAFA4D,CAAA,CAAQI,CAAAC,OAAA,CAAW,CAAX,CAAchG,CAAd,CAAR,CAEA,CADA4F,CAAA,CAAQC,CAAR,CAAavE,CAAA,CAAM,CAAN,CAAAF,QAAA,CAAiBqE,CAAjB,CAAgC,EAAhC,CAAb,CACA,CAAAM,CAAA,CAAMA,CAAArD,UAAA,CAAc1C,CAAd,CAAkBsB,CAAA,CAAM,CAAN,CAAArB,OAAlB,CAER0F,EAAA,CAAQI,CAAR,CACA,OAAOR,EAAA,CAAUpF,CAAAT,KAAA,CAAU,EAAV,CAAV,CApBqB,CAL+C,CAAlC,CAA7C,CA9mBsC,CAArC,CAAD,CAiqBGT,MAjqBH,CAiqBWA,MAAAC,QAjqBX;", +"sources":["angular-sanitize.js"], +"names":["window","angular","undefined","sanitizeText","chars","buf","htmlSanitizeWriter","writer","noop","join","makeMap","str","obj","items","split","i","length","htmlParser","html","handler","parseStartTag","tag","tagName","rest","unary","lowercase","blockElements","stack","last","inlineElements","parseEndTag","optionalEndTagElements","voidElements","push","attrs","replace","ATTR_REGEXP","match","name","doubleQuotedValue","singleQuotedValue","unquotedValue","decodeEntities","start","pos","end","index","text","stack.last","specialElements","RegExp","all","COMMENT_REGEXP","CDATA_REGEXP","indexOf","lastIndexOf","comment","substring","DOCTYPE_REGEXP","test","BEGING_END_TAGE_REGEXP","END_TAG_REGEXP","BEGIN_TAG_REGEXP","START_TAG_REGEXP","$sanitizeMinErr","value","hiddenPre","innerHTML","textContent","encodeEntities","SURROGATE_PAIR_REGEXP","hi","charCodeAt","low","NON_ALPHANUMERIC_REGEXP","uriValidator","ignore","out","bind","validElements","forEach","key","lkey","isImage","validAttrs","uriAttrs","$$minErr","optionalEndTagBlockElements","optionalEndTagInlineElements","extend","svgElements","htmlAttrs","svgAttrs","document","createElement","module","provider","$SanitizeProvider","$get","$$sanitizeUri","uri","filter","$sanitize","LINKY_URL_REGEXP","MAILTO_REGEXP","target","addText","addLink","url","isDefined","raw","substr"] +} diff --git a/bower_components/angular-sanitize/bower.json b/bower_components/angular-sanitize/bower.json new file mode 100644 index 00000000..81659fd0 --- /dev/null +++ b/bower_components/angular-sanitize/bower.json @@ -0,0 +1,9 @@ +{ + "name": "angular-sanitize", + "version": "1.3.20", + "main": "./angular-sanitize.js", + "ignore": [], + "dependencies": { + "angular": "1.3.20" + } +} diff --git a/bower_components/angular-sanitize/index.js b/bower_components/angular-sanitize/index.js new file mode 100644 index 00000000..dd5d22e4 --- /dev/null +++ b/bower_components/angular-sanitize/index.js @@ -0,0 +1,2 @@ +require('./angular-sanitize'); +module.exports = 'ngSanitize'; diff --git a/bower_components/angular-sanitize/package.json b/bower_components/angular-sanitize/package.json new file mode 100644 index 00000000..2c89248c --- /dev/null +++ b/bower_components/angular-sanitize/package.json @@ -0,0 +1,26 @@ +{ + "name": "angular-sanitize", + "version": "1.3.20", + "description": "AngularJS module for sanitizing HTML", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/angular/angular.js.git" + }, + "keywords": [ + "angular", + "framework", + "browser", + "html", + "client-side" + ], + "author": "Angular Core Team ", + "license": "MIT", + "bugs": { + "url": "https://github.com/angular/angular.js/issues" + }, + "homepage": "http://angularjs.org" +} diff --git a/bower_components/angular/.bower.json b/bower_components/angular/.bower.json new file mode 100644 index 00000000..1836e6b4 --- /dev/null +++ b/bower_components/angular/.bower.json @@ -0,0 +1,17 @@ +{ + "name": "angular", + "version": "1.4.7", + "main": "./angular.js", + "ignore": [], + "dependencies": {}, + "homepage": "https://github.com/angular/bower-angular", + "_release": "1.4.7", + "_resolution": { + "type": "version", + "tag": "v1.4.7", + "commit": "6bdc6b4855b416bf029105324080ca7d6aca0e9f" + }, + "_source": "git://github.com/angular/bower-angular.git", + "_target": "1.4.7", + "_originalSource": "angular" +} \ No newline at end of file diff --git a/bower_components/angular/README.md b/bower_components/angular/README.md new file mode 100644 index 00000000..d1bc0edd --- /dev/null +++ b/bower_components/angular/README.md @@ -0,0 +1,64 @@ +# packaged angular + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular +``` + +Then add a ` +``` + +Or `require('angular')` from your code. + +### bower + +```shell +bower install angular +``` + +Then add a ` +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/bower_components/angular/angular-csp.css b/bower_components/angular/angular-csp.css new file mode 100644 index 00000000..f3cd926c --- /dev/null +++ b/bower_components/angular/angular-csp.css @@ -0,0 +1,21 @@ +/* Include this file in your html if you are using the CSP mode. */ + +@charset "UTF-8"; + +[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], +.ng-cloak, .x-ng-cloak, +.ng-hide:not(.ng-hide-animate) { + display: none !important; +} + +ng\:form { + display: block; +} + +.ng-animate-shim { + visibility:hidden; +} + +.ng-anchor { + position:absolute; +} diff --git a/bower_components/angular/angular.js b/bower_components/angular/angular.js new file mode 100644 index 00000000..34a93c1c --- /dev/null +++ b/bower_components/angular/angular.js @@ -0,0 +1,28904 @@ +/** + * @license AngularJS v1.4.7 + * (c) 2010-2015 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window, document, undefined) {'use strict'; + +/** + * @description + * + * This object provides a utility for producing rich Error messages within + * Angular. It can be called as follows: + * + * var exampleMinErr = minErr('example'); + * throw exampleMinErr('one', 'This {0} is {1}', foo, bar); + * + * The above creates an instance of minErr in the example namespace. The + * resulting error will have a namespaced error code of example.one. The + * resulting error will replace {0} with the value of foo, and {1} with the + * value of bar. The object is not restricted in the number of arguments it can + * take. + * + * If fewer arguments are specified than necessary for interpolation, the extra + * interpolation markers will be preserved in the final string. + * + * Since data will be parsed statically during a build step, some restrictions + * are applied with respect to how minErr instances are created and called. + * Instances should have names of the form namespaceMinErr for a minErr created + * using minErr('namespace') . Error codes, namespaces and template strings + * should all be static strings, not variables or general expressions. + * + * @param {string} module The namespace to use for the new minErr instance. + * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning + * error from returned function, for cases when a particular type of error is useful. + * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance + */ + +function minErr(module, ErrorConstructor) { + ErrorConstructor = ErrorConstructor || Error; + return function() { + var SKIP_INDEXES = 2; + + var templateArgs = arguments, + code = templateArgs[0], + message = '[' + (module ? module + ':' : '') + code + '] ', + template = templateArgs[1], + paramPrefix, i; + + message += template.replace(/\{\d+\}/g, function(match) { + var index = +match.slice(1, -1), + shiftedIndex = index + SKIP_INDEXES; + + if (shiftedIndex < templateArgs.length) { + return toDebugString(templateArgs[shiftedIndex]); + } + + return match; + }); + + message += '\nhttp://errors.angularjs.org/1.4.7/' + + (module ? module + '/' : '') + code; + + for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') { + message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' + + encodeURIComponent(toDebugString(templateArgs[i])); + } + + return new ErrorConstructor(message); + }; +} + +/* We need to tell jshint what variables are being exported */ +/* global angular: true, + msie: true, + jqLite: true, + jQuery: true, + slice: true, + splice: true, + push: true, + toString: true, + ngMinErr: true, + angularModule: true, + uid: true, + REGEX_STRING_REGEXP: true, + VALIDITY_STATE_PROPERTY: true, + + lowercase: true, + uppercase: true, + manualLowercase: true, + manualUppercase: true, + nodeName_: true, + isArrayLike: true, + forEach: true, + forEachSorted: true, + reverseParams: true, + nextUid: true, + setHashKey: true, + extend: true, + toInt: true, + inherit: true, + merge: true, + noop: true, + identity: true, + valueFn: true, + isUndefined: true, + isDefined: true, + isObject: true, + isBlankObject: true, + isString: true, + isNumber: true, + isDate: true, + isArray: true, + isFunction: true, + isRegExp: true, + isWindow: true, + isScope: true, + isFile: true, + isFormData: true, + isBlob: true, + isBoolean: true, + isPromiseLike: true, + trim: true, + escapeForRegexp: true, + isElement: true, + makeMap: true, + includes: true, + arrayRemove: true, + copy: true, + shallowCopy: true, + equals: true, + csp: true, + jq: true, + concat: true, + sliceArgs: true, + bind: true, + toJsonReplacer: true, + toJson: true, + fromJson: true, + convertTimezoneToLocal: true, + timezoneToOffset: true, + startingTag: true, + tryDecodeURIComponent: true, + parseKeyValue: true, + toKeyValue: true, + encodeUriSegment: true, + encodeUriQuery: true, + angularInit: true, + bootstrap: true, + getTestability: true, + snake_case: true, + bindJQuery: true, + assertArg: true, + assertArgFn: true, + assertNotHasOwnProperty: true, + getter: true, + getBlockNodes: true, + hasOwnProperty: true, + createMap: true, + + NODE_TYPE_ELEMENT: true, + NODE_TYPE_ATTRIBUTE: true, + NODE_TYPE_TEXT: true, + NODE_TYPE_COMMENT: true, + NODE_TYPE_DOCUMENT: true, + NODE_TYPE_DOCUMENT_FRAGMENT: true, +*/ + +//////////////////////////////////// + +/** + * @ngdoc module + * @name ng + * @module ng + * @description + * + * # ng (core module) + * The ng module is loaded by default when an AngularJS application is started. The module itself + * contains the essential components for an AngularJS application to function. The table below + * lists a high level breakdown of each of the services/factories, filters, directives and testing + * components available within this core module. + * + *
+ */ + +var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/; + +// The name of a form control's ValidityState property. +// This is used so that it's possible for internal tests to create mock ValidityStates. +var VALIDITY_STATE_PROPERTY = 'validity'; + +/** + * @ngdoc function + * @name angular.lowercase + * @module ng + * @kind function + * + * @description Converts the specified string to lowercase. + * @param {string} string String to be converted to lowercase. + * @returns {string} Lowercased string. + */ +var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;}; +var hasOwnProperty = Object.prototype.hasOwnProperty; + +/** + * @ngdoc function + * @name angular.uppercase + * @module ng + * @kind function + * + * @description Converts the specified string to uppercase. + * @param {string} string String to be converted to uppercase. + * @returns {string} Uppercased string. + */ +var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;}; + + +var manualLowercase = function(s) { + /* jshint bitwise: false */ + return isString(s) + ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);}) + : s; +}; +var manualUppercase = function(s) { + /* jshint bitwise: false */ + return isString(s) + ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);}) + : s; +}; + + +// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish +// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods +// with correct but slower alternatives. +if ('i' !== 'I'.toLowerCase()) { + lowercase = manualLowercase; + uppercase = manualUppercase; +} + + +var + msie, // holds major version number for IE, or NaN if UA is not IE. + jqLite, // delay binding since jQuery could be loaded after us. + jQuery, // delay binding + slice = [].slice, + splice = [].splice, + push = [].push, + toString = Object.prototype.toString, + getPrototypeOf = Object.getPrototypeOf, + ngMinErr = minErr('ng'), + + /** @name angular */ + angular = window.angular || (window.angular = {}), + angularModule, + uid = 0; + +/** + * documentMode is an IE-only property + * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx + */ +msie = document.documentMode; + + +/** + * @private + * @param {*} obj + * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments, + * String ...) + */ +function isArrayLike(obj) { + if (obj == null || isWindow(obj)) { + return false; + } + + // Support: iOS 8.2 (not reproducible in simulator) + // "length" in obj used to prevent JIT error (gh-11508) + var length = "length" in Object(obj) && obj.length; + + if (obj.nodeType === NODE_TYPE_ELEMENT && length) { + return true; + } + + return isString(obj) || isArray(obj) || length === 0 || + typeof length === 'number' && length > 0 && (length - 1) in obj; +} + +/** + * @ngdoc function + * @name angular.forEach + * @module ng + * @kind function + * + * @description + * Invokes the `iterator` function once for each item in `obj` collection, which can be either an + * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value` + * is the value of an object property or an array element, `key` is the object property key or + * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional. + * + * It is worth noting that `.forEach` does not iterate over inherited properties because it filters + * using the `hasOwnProperty` method. + * + * Unlike ES262's + * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18), + * Providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just + * return the value provided. + * + ```js + var values = {name: 'misko', gender: 'male'}; + var log = []; + angular.forEach(values, function(value, key) { + this.push(key + ': ' + value); + }, log); + expect(log).toEqual(['name: misko', 'gender: male']); + ``` + * + * @param {Object|Array} obj Object to iterate over. + * @param {Function} iterator Iterator function. + * @param {Object=} context Object to become context (`this`) for the iterator function. + * @returns {Object|Array} Reference to `obj`. + */ + +function forEach(obj, iterator, context) { + var key, length; + if (obj) { + if (isFunction(obj)) { + for (key in obj) { + // Need to check if hasOwnProperty exists, + // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function + if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) { + iterator.call(context, obj[key], key, obj); + } + } + } else if (isArray(obj) || isArrayLike(obj)) { + var isPrimitive = typeof obj !== 'object'; + for (key = 0, length = obj.length; key < length; key++) { + if (isPrimitive || key in obj) { + iterator.call(context, obj[key], key, obj); + } + } + } else if (obj.forEach && obj.forEach !== forEach) { + obj.forEach(iterator, context, obj); + } else if (isBlankObject(obj)) { + // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty + for (key in obj) { + iterator.call(context, obj[key], key, obj); + } + } else if (typeof obj.hasOwnProperty === 'function') { + // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed + for (key in obj) { + if (obj.hasOwnProperty(key)) { + iterator.call(context, obj[key], key, obj); + } + } + } else { + // Slow path for objects which do not have a method `hasOwnProperty` + for (key in obj) { + if (hasOwnProperty.call(obj, key)) { + iterator.call(context, obj[key], key, obj); + } + } + } + } + return obj; +} + +function forEachSorted(obj, iterator, context) { + var keys = Object.keys(obj).sort(); + for (var i = 0; i < keys.length; i++) { + iterator.call(context, obj[keys[i]], keys[i]); + } + return keys; +} + + +/** + * when using forEach the params are value, key, but it is often useful to have key, value. + * @param {function(string, *)} iteratorFn + * @returns {function(*, string)} + */ +function reverseParams(iteratorFn) { + return function(value, key) { iteratorFn(key, value); }; +} + +/** + * A consistent way of creating unique IDs in angular. + * + * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before + * we hit number precision issues in JavaScript. + * + * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M + * + * @returns {number} an unique alpha-numeric string + */ +function nextUid() { + return ++uid; +} + + +/** + * Set or clear the hashkey for an object. + * @param obj object + * @param h the hashkey (!truthy to delete the hashkey) + */ +function setHashKey(obj, h) { + if (h) { + obj.$$hashKey = h; + } else { + delete obj.$$hashKey; + } +} + + +function baseExtend(dst, objs, deep) { + var h = dst.$$hashKey; + + for (var i = 0, ii = objs.length; i < ii; ++i) { + var obj = objs[i]; + if (!isObject(obj) && !isFunction(obj)) continue; + var keys = Object.keys(obj); + for (var j = 0, jj = keys.length; j < jj; j++) { + var key = keys[j]; + var src = obj[key]; + + if (deep && isObject(src)) { + if (isDate(src)) { + dst[key] = new Date(src.valueOf()); + } else if (isRegExp(src)) { + dst[key] = new RegExp(src); + } else { + if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {}; + baseExtend(dst[key], [src], true); + } + } else { + dst[key] = src; + } + } + } + + setHashKey(dst, h); + return dst; +} + +/** + * @ngdoc function + * @name angular.extend + * @module ng + * @kind function + * + * @description + * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s) + * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so + * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`. + * + * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use + * {@link angular.merge} for this. + * + * @param {Object} dst Destination object. + * @param {...Object} src Source object(s). + * @returns {Object} Reference to `dst`. + */ +function extend(dst) { + return baseExtend(dst, slice.call(arguments, 1), false); +} + + +/** +* @ngdoc function +* @name angular.merge +* @module ng +* @kind function +* +* @description +* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s) +* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so +* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`. +* +* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source +* objects, performing a deep copy. +* +* @param {Object} dst Destination object. +* @param {...Object} src Source object(s). +* @returns {Object} Reference to `dst`. +*/ +function merge(dst) { + return baseExtend(dst, slice.call(arguments, 1), true); +} + + + +function toInt(str) { + return parseInt(str, 10); +} + + +function inherit(parent, extra) { + return extend(Object.create(parent), extra); +} + +/** + * @ngdoc function + * @name angular.noop + * @module ng + * @kind function + * + * @description + * A function that performs no operations. This function can be useful when writing code in the + * functional style. + ```js + function foo(callback) { + var result = calculateResult(); + (callback || angular.noop)(result); + } + ``` + */ +function noop() {} +noop.$inject = []; + + +/** + * @ngdoc function + * @name angular.identity + * @module ng + * @kind function + * + * @description + * A function that returns its first argument. This function is useful when writing code in the + * functional style. + * + ```js + function transformer(transformationFn, value) { + return (transformationFn || angular.identity)(value); + }; + ``` + * @param {*} value to be returned. + * @returns {*} the value passed in. + */ +function identity($) {return $;} +identity.$inject = []; + + +function valueFn(value) {return function() {return value;};} + +function hasCustomToString(obj) { + return isFunction(obj.toString) && obj.toString !== Object.prototype.toString; +} + + +/** + * @ngdoc function + * @name angular.isUndefined + * @module ng + * @kind function + * + * @description + * Determines if a reference is undefined. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is undefined. + */ +function isUndefined(value) {return typeof value === 'undefined';} + + +/** + * @ngdoc function + * @name angular.isDefined + * @module ng + * @kind function + * + * @description + * Determines if a reference is defined. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is defined. + */ +function isDefined(value) {return typeof value !== 'undefined';} + + +/** + * @ngdoc function + * @name angular.isObject + * @module ng + * @kind function + * + * @description + * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not + * considered to be objects. Note that JavaScript arrays are objects. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is an `Object` but not `null`. + */ +function isObject(value) { + // http://jsperf.com/isobject4 + return value !== null && typeof value === 'object'; +} + + +/** + * Determine if a value is an object with a null prototype + * + * @returns {boolean} True if `value` is an `Object` with a null prototype + */ +function isBlankObject(value) { + return value !== null && typeof value === 'object' && !getPrototypeOf(value); +} + + +/** + * @ngdoc function + * @name angular.isString + * @module ng + * @kind function + * + * @description + * Determines if a reference is a `String`. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is a `String`. + */ +function isString(value) {return typeof value === 'string';} + + +/** + * @ngdoc function + * @name angular.isNumber + * @module ng + * @kind function + * + * @description + * Determines if a reference is a `Number`. + * + * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`. + * + * If you wish to exclude these then you can use the native + * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite) + * method. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is a `Number`. + */ +function isNumber(value) {return typeof value === 'number';} + + +/** + * @ngdoc function + * @name angular.isDate + * @module ng + * @kind function + * + * @description + * Determines if a value is a date. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is a `Date`. + */ +function isDate(value) { + return toString.call(value) === '[object Date]'; +} + + +/** + * @ngdoc function + * @name angular.isArray + * @module ng + * @kind function + * + * @description + * Determines if a reference is an `Array`. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is an `Array`. + */ +var isArray = Array.isArray; + +/** + * @ngdoc function + * @name angular.isFunction + * @module ng + * @kind function + * + * @description + * Determines if a reference is a `Function`. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is a `Function`. + */ +function isFunction(value) {return typeof value === 'function';} + + +/** + * Determines if a value is a regular expression object. + * + * @private + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is a `RegExp`. + */ +function isRegExp(value) { + return toString.call(value) === '[object RegExp]'; +} + + +/** + * Checks if `obj` is a window object. + * + * @private + * @param {*} obj Object to check + * @returns {boolean} True if `obj` is a window obj. + */ +function isWindow(obj) { + return obj && obj.window === obj; +} + + +function isScope(obj) { + return obj && obj.$evalAsync && obj.$watch; +} + + +function isFile(obj) { + return toString.call(obj) === '[object File]'; +} + + +function isFormData(obj) { + return toString.call(obj) === '[object FormData]'; +} + + +function isBlob(obj) { + return toString.call(obj) === '[object Blob]'; +} + + +function isBoolean(value) { + return typeof value === 'boolean'; +} + + +function isPromiseLike(obj) { + return obj && isFunction(obj.then); +} + + +var TYPED_ARRAY_REGEXP = /^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/; +function isTypedArray(value) { + return TYPED_ARRAY_REGEXP.test(toString.call(value)); +} + + +var trim = function(value) { + return isString(value) ? value.trim() : value; +}; + +// Copied from: +// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021 +// Prereq: s is a string. +var escapeForRegexp = function(s) { + return s.replace(/([-()\[\]{}+?*.$\^|,:#= 0) { + array.splice(index, 1); + } + return index; +} + +/** + * @ngdoc function + * @name angular.copy + * @module ng + * @kind function + * + * @description + * Creates a deep copy of `source`, which should be an object or an array. + * + * * If no destination is supplied, a copy of the object or array is created. + * * If a destination is provided, all of its elements (for arrays) or properties (for objects) + * are deleted and then all elements/properties from the source are copied to it. + * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned. + * * If `source` is identical to 'destination' an exception will be thrown. + * + * @param {*} source The source that will be used to make a copy. + * Can be any type, including primitives, `null`, and `undefined`. + * @param {(Object|Array)=} destination Destination into which the source is copied. If + * provided, must be of the same type as `source`. + * @returns {*} The copy or updated `destination`, if `destination` was specified. + * + * @example + + +
+
+ Name:
+ E-mail:
+ Gender: male + female
+ + +
+
form = {{user | json}}
+
master = {{master | json}}
+
+ + +
+
+ */ +function copy(source, destination, stackSource, stackDest) { + if (isWindow(source) || isScope(source)) { + throw ngMinErr('cpws', + "Can't copy! Making copies of Window or Scope instances is not supported."); + } + if (isTypedArray(destination)) { + throw ngMinErr('cpta', + "Can't copy! TypedArray destination cannot be mutated."); + } + + if (!destination) { + destination = source; + if (isObject(source)) { + var index; + if (stackSource && (index = stackSource.indexOf(source)) !== -1) { + return stackDest[index]; + } + + // TypedArray, Date and RegExp have specific copy functionality and must be + // pushed onto the stack before returning. + // Array and other objects create the base object and recurse to copy child + // objects. The array/object will be pushed onto the stack when recursed. + if (isArray(source)) { + return copy(source, [], stackSource, stackDest); + } else if (isTypedArray(source)) { + destination = new source.constructor(source); + } else if (isDate(source)) { + destination = new Date(source.getTime()); + } else if (isRegExp(source)) { + destination = new RegExp(source.source, source.toString().match(/[^\/]*$/)[0]); + destination.lastIndex = source.lastIndex; + } else if (isFunction(source.cloneNode)) { + destination = source.cloneNode(true); + } else { + var emptyObject = Object.create(getPrototypeOf(source)); + return copy(source, emptyObject, stackSource, stackDest); + } + + if (stackDest) { + stackSource.push(source); + stackDest.push(destination); + } + } + } else { + if (source === destination) throw ngMinErr('cpi', + "Can't copy! Source and destination are identical."); + + stackSource = stackSource || []; + stackDest = stackDest || []; + + if (isObject(source)) { + stackSource.push(source); + stackDest.push(destination); + } + + var result, key; + if (isArray(source)) { + destination.length = 0; + for (var i = 0; i < source.length; i++) { + destination.push(copy(source[i], null, stackSource, stackDest)); + } + } else { + var h = destination.$$hashKey; + if (isArray(destination)) { + destination.length = 0; + } else { + forEach(destination, function(value, key) { + delete destination[key]; + }); + } + if (isBlankObject(source)) { + // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty + for (key in source) { + destination[key] = copy(source[key], null, stackSource, stackDest); + } + } else if (source && typeof source.hasOwnProperty === 'function') { + // Slow path, which must rely on hasOwnProperty + for (key in source) { + if (source.hasOwnProperty(key)) { + destination[key] = copy(source[key], null, stackSource, stackDest); + } + } + } else { + // Slowest path --- hasOwnProperty can't be called as a method + for (key in source) { + if (hasOwnProperty.call(source, key)) { + destination[key] = copy(source[key], null, stackSource, stackDest); + } + } + } + setHashKey(destination,h); + } + } + return destination; +} + +/** + * Creates a shallow copy of an object, an array or a primitive. + * + * Assumes that there are no proto properties for objects. + */ +function shallowCopy(src, dst) { + if (isArray(src)) { + dst = dst || []; + + for (var i = 0, ii = src.length; i < ii; i++) { + dst[i] = src[i]; + } + } else if (isObject(src)) { + dst = dst || {}; + + for (var key in src) { + if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) { + dst[key] = src[key]; + } + } + } + + return dst || src; +} + + +/** + * @ngdoc function + * @name angular.equals + * @module ng + * @kind function + * + * @description + * Determines if two objects or two values are equivalent. Supports value types, regular + * expressions, arrays and objects. + * + * Two objects or values are considered equivalent if at least one of the following is true: + * + * * Both objects or values pass `===` comparison. + * * Both objects or values are of the same type and all of their properties are equal by + * comparing them with `angular.equals`. + * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal) + * * Both values represent the same regular expression (In JavaScript, + * /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual + * representation matches). + * + * During a property comparison, properties of `function` type and properties with names + * that begin with `$` are ignored. + * + * Scope and DOMWindow objects are being compared only by identify (`===`). + * + * @param {*} o1 Object or value to compare. + * @param {*} o2 Object or value to compare. + * @returns {boolean} True if arguments are equal. + */ +function equals(o1, o2) { + if (o1 === o2) return true; + if (o1 === null || o2 === null) return false; + if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN + var t1 = typeof o1, t2 = typeof o2, length, key, keySet; + if (t1 == t2) { + if (t1 == 'object') { + if (isArray(o1)) { + if (!isArray(o2)) return false; + if ((length = o1.length) == o2.length) { + for (key = 0; key < length; key++) { + if (!equals(o1[key], o2[key])) return false; + } + return true; + } + } else if (isDate(o1)) { + if (!isDate(o2)) return false; + return equals(o1.getTime(), o2.getTime()); + } else if (isRegExp(o1)) { + return isRegExp(o2) ? o1.toString() == o2.toString() : false; + } else { + if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) || + isArray(o2) || isDate(o2) || isRegExp(o2)) return false; + keySet = createMap(); + for (key in o1) { + if (key.charAt(0) === '$' || isFunction(o1[key])) continue; + if (!equals(o1[key], o2[key])) return false; + keySet[key] = true; + } + for (key in o2) { + if (!(key in keySet) && + key.charAt(0) !== '$' && + isDefined(o2[key]) && + !isFunction(o2[key])) return false; + } + return true; + } + } + } + return false; +} + +var csp = function() { + if (!isDefined(csp.rules)) { + + + var ngCspElement = (document.querySelector('[ng-csp]') || + document.querySelector('[data-ng-csp]')); + + if (ngCspElement) { + var ngCspAttribute = ngCspElement.getAttribute('ng-csp') || + ngCspElement.getAttribute('data-ng-csp'); + csp.rules = { + noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1), + noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1) + }; + } else { + csp.rules = { + noUnsafeEval: noUnsafeEval(), + noInlineStyle: false + }; + } + } + + return csp.rules; + + function noUnsafeEval() { + try { + /* jshint -W031, -W054 */ + new Function(''); + /* jshint +W031, +W054 */ + return false; + } catch (e) { + return true; + } + } +}; + +/** + * @ngdoc directive + * @module ng + * @name ngJq + * + * @element ANY + * @param {string=} ngJq the name of the library available under `window` + * to be used for angular.element + * @description + * Use this directive to force the angular.element library. This should be + * used to force either jqLite by leaving ng-jq blank or setting the name of + * the jquery variable under window (eg. jQuery). + * + * Since angular looks for this directive when it is loaded (doesn't wait for the + * DOMContentLoaded event), it must be placed on an element that comes before the script + * which loads angular. Also, only the first instance of `ng-jq` will be used and all + * others ignored. + * + * @example + * This example shows how to force jqLite using the `ngJq` directive to the `html` tag. + ```html + + + ... + ... + + ``` + * @example + * This example shows how to use a jQuery based library of a different name. + * The library name must be available at the top most 'window'. + ```html + + + ... + ... + + ``` + */ +var jq = function() { + if (isDefined(jq.name_)) return jq.name_; + var el; + var i, ii = ngAttrPrefixes.length, prefix, name; + for (i = 0; i < ii; ++i) { + prefix = ngAttrPrefixes[i]; + if (el = document.querySelector('[' + prefix.replace(':', '\\:') + 'jq]')) { + name = el.getAttribute(prefix + 'jq'); + break; + } + } + + return (jq.name_ = name); +}; + +function concat(array1, array2, index) { + return array1.concat(slice.call(array2, index)); +} + +function sliceArgs(args, startIndex) { + return slice.call(args, startIndex || 0); +} + + +/* jshint -W101 */ +/** + * @ngdoc function + * @name angular.bind + * @module ng + * @kind function + * + * @description + * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for + * `fn`). You can supply optional `args` that are prebound to the function. This feature is also + * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as + * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application). + * + * @param {Object} self Context which `fn` should be evaluated in. + * @param {function()} fn Function to be bound. + * @param {...*} args Optional arguments to be prebound to the `fn` function call. + * @returns {function()} Function that wraps the `fn` with all the specified bindings. + */ +/* jshint +W101 */ +function bind(self, fn) { + var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : []; + if (isFunction(fn) && !(fn instanceof RegExp)) { + return curryArgs.length + ? function() { + return arguments.length + ? fn.apply(self, concat(curryArgs, arguments, 0)) + : fn.apply(self, curryArgs); + } + : function() { + return arguments.length + ? fn.apply(self, arguments) + : fn.call(self); + }; + } else { + // in IE, native methods are not functions so they cannot be bound (note: they don't need to be) + return fn; + } +} + + +function toJsonReplacer(key, value) { + var val = value; + + if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') { + val = undefined; + } else if (isWindow(value)) { + val = '$WINDOW'; + } else if (value && document === value) { + val = '$DOCUMENT'; + } else if (isScope(value)) { + val = '$SCOPE'; + } + + return val; +} + + +/** + * @ngdoc function + * @name angular.toJson + * @module ng + * @kind function + * + * @description + * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be + * stripped since angular uses this notation internally. + * + * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON. + * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace. + * If set to an integer, the JSON output will contain that many spaces per indentation. + * @returns {string|undefined} JSON-ified string representing `obj`. + */ +function toJson(obj, pretty) { + if (typeof obj === 'undefined') return undefined; + if (!isNumber(pretty)) { + pretty = pretty ? 2 : null; + } + return JSON.stringify(obj, toJsonReplacer, pretty); +} + + +/** + * @ngdoc function + * @name angular.fromJson + * @module ng + * @kind function + * + * @description + * Deserializes a JSON string. + * + * @param {string} json JSON string to deserialize. + * @returns {Object|Array|string|number} Deserialized JSON string. + */ +function fromJson(json) { + return isString(json) + ? JSON.parse(json) + : json; +} + + +function timezoneToOffset(timezone, fallback) { + var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000; + return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset; +} + + +function addDateMinutes(date, minutes) { + date = new Date(date.getTime()); + date.setMinutes(date.getMinutes() + minutes); + return date; +} + + +function convertTimezoneToLocal(date, timezone, reverse) { + reverse = reverse ? -1 : 1; + var timezoneOffset = timezoneToOffset(timezone, date.getTimezoneOffset()); + return addDateMinutes(date, reverse * (timezoneOffset - date.getTimezoneOffset())); +} + + +/** + * @returns {string} Returns the string representation of the element. + */ +function startingTag(element) { + element = jqLite(element).clone(); + try { + // turns out IE does not let you set .html() on elements which + // are not allowed to have children. So we just ignore it. + element.empty(); + } catch (e) {} + var elemHtml = jqLite('
').append(element).html(); + try { + return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) : + elemHtml. + match(/^(<[^>]+>)/)[1]. + replace(/^<([\w\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); }); + } catch (e) { + return lowercase(elemHtml); + } + +} + + +///////////////////////////////////////////////// + +/** + * Tries to decode the URI component without throwing an exception. + * + * @private + * @param str value potential URI component to check. + * @returns {boolean} True if `value` can be decoded + * with the decodeURIComponent function. + */ +function tryDecodeURIComponent(value) { + try { + return decodeURIComponent(value); + } catch (e) { + // Ignore any invalid uri component + } +} + + +/** + * Parses an escaped url query string into key-value pairs. + * @returns {Object.} + */ +function parseKeyValue(/**string*/keyValue) { + var obj = {}; + forEach((keyValue || "").split('&'), function(keyValue) { + var splitPoint, key, val; + if (keyValue) { + key = keyValue = keyValue.replace(/\+/g,'%20'); + splitPoint = keyValue.indexOf('='); + if (splitPoint !== -1) { + key = keyValue.substring(0, splitPoint); + val = keyValue.substring(splitPoint + 1); + } + key = tryDecodeURIComponent(key); + if (isDefined(key)) { + val = isDefined(val) ? tryDecodeURIComponent(val) : true; + if (!hasOwnProperty.call(obj, key)) { + obj[key] = val; + } else if (isArray(obj[key])) { + obj[key].push(val); + } else { + obj[key] = [obj[key],val]; + } + } + } + }); + return obj; +} + +function toKeyValue(obj) { + var parts = []; + forEach(obj, function(value, key) { + if (isArray(value)) { + forEach(value, function(arrayValue) { + parts.push(encodeUriQuery(key, true) + + (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true))); + }); + } else { + parts.push(encodeUriQuery(key, true) + + (value === true ? '' : '=' + encodeUriQuery(value, true))); + } + }); + return parts.length ? parts.join('&') : ''; +} + + +/** + * We need our custom method because encodeURIComponent is too aggressive and doesn't follow + * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path + * segments: + * segment = *pchar + * pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + * pct-encoded = "%" HEXDIG HEXDIG + * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + * sub-delims = "!" / "$" / "&" / "'" / "(" / ")" + * / "*" / "+" / "," / ";" / "=" + */ +function encodeUriSegment(val) { + return encodeUriQuery(val, true). + replace(/%26/gi, '&'). + replace(/%3D/gi, '='). + replace(/%2B/gi, '+'); +} + + +/** + * This method is intended for encoding *key* or *value* parts of query component. We need a custom + * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be + * encoded per http://tools.ietf.org/html/rfc3986: + * query = *( pchar / "/" / "?" ) + * pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + * pct-encoded = "%" HEXDIG HEXDIG + * sub-delims = "!" / "$" / "&" / "'" / "(" / ")" + * / "*" / "+" / "," / ";" / "=" + */ +function encodeUriQuery(val, pctEncodeSpaces) { + return encodeURIComponent(val). + replace(/%40/gi, '@'). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%3B/gi, ';'). + replace(/%20/g, (pctEncodeSpaces ? '%20' : '+')); +} + +var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; + +function getNgAttribute(element, ngAttr) { + var attr, i, ii = ngAttrPrefixes.length; + for (i = 0; i < ii; ++i) { + attr = ngAttrPrefixes[i] + ngAttr; + if (isString(attr = element.getAttribute(attr))) { + return attr; + } + } + return null; +} + +/** + * @ngdoc directive + * @name ngApp + * @module ng + * + * @element ANY + * @param {angular.Module} ngApp an optional application + * {@link angular.module module} name to load. + * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be + * created in "strict-di" mode. This means that the application will fail to invoke functions which + * do not use explicit function annotation (and are thus unsuitable for minification), as described + * in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in + * tracking down the root of these bugs. + * + * @description + * + * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive + * designates the **root element** of the application and is typically placed near the root element + * of the page - e.g. on the `` or `` tags. + * + * Only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp` + * found in the document will be used to define the root element to auto-bootstrap as an + * application. To run multiple applications in an HTML document you must manually bootstrap them using + * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other. + * + * You can specify an **AngularJS module** to be used as the root module for the application. This + * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It + * should contain the application code needed or have dependencies on other modules that will + * contain the code. See {@link angular.module} for more information. + * + * In the example below if the `ngApp` directive were not placed on the `html` element then the + * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}` + * would not be resolved to `3`. + * + * `ngApp` is the easiest, and most common way to bootstrap an application. + * + + +
+ I can add: {{a}} + {{b}} = {{ a+b }} +
+
+ + angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) { + $scope.a = 1; + $scope.b = 2; + }); + +
+ * + * Using `ngStrictDi`, you would see something like this: + * + + +
+
+ I can add: {{a}} + {{b}} = {{ a+b }} + +

This renders because the controller does not fail to + instantiate, by using explicit annotation style (see + script.js for details) +

+
+ +
+ Name:
+ Hello, {{name}}! + +

This renders because the controller does not fail to + instantiate, by using explicit annotation style + (see script.js for details) +

+
+ +
+ I can add: {{a}} + {{b}} = {{ a+b }} + +

The controller could not be instantiated, due to relying + on automatic function annotations (which are disabled in + strict mode). As such, the content of this section is not + interpolated, and there should be an error in your web console. +

+
+
+
+ + angular.module('ngAppStrictDemo', []) + // BadController will fail to instantiate, due to relying on automatic function annotation, + // rather than an explicit annotation + .controller('BadController', function($scope) { + $scope.a = 1; + $scope.b = 2; + }) + // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated, + // due to using explicit annotations using the array style and $inject property, respectively. + .controller('GoodController1', ['$scope', function($scope) { + $scope.a = 1; + $scope.b = 2; + }]) + .controller('GoodController2', GoodController2); + function GoodController2($scope) { + $scope.name = "World"; + } + GoodController2.$inject = ['$scope']; + + + div[ng-controller] { + margin-bottom: 1em; + -webkit-border-radius: 4px; + border-radius: 4px; + border: 1px solid; + padding: .5em; + } + div[ng-controller^=Good] { + border-color: #d6e9c6; + background-color: #dff0d8; + color: #3c763d; + } + div[ng-controller^=Bad] { + border-color: #ebccd1; + background-color: #f2dede; + color: #a94442; + margin-bottom: 0; + } + +
+ */ +function angularInit(element, bootstrap) { + var appElement, + module, + config = {}; + + // The element `element` has priority over any other element + forEach(ngAttrPrefixes, function(prefix) { + var name = prefix + 'app'; + + if (!appElement && element.hasAttribute && element.hasAttribute(name)) { + appElement = element; + module = element.getAttribute(name); + } + }); + forEach(ngAttrPrefixes, function(prefix) { + var name = prefix + 'app'; + var candidate; + + if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) { + appElement = candidate; + module = candidate.getAttribute(name); + } + }); + if (appElement) { + config.strictDi = getNgAttribute(appElement, "strict-di") !== null; + bootstrap(appElement, module ? [module] : [], config); + } +} + +/** + * @ngdoc function + * @name angular.bootstrap + * @module ng + * @description + * Use this function to manually start up angular application. + * + * See: {@link guide/bootstrap Bootstrap} + * + * Note that Protractor based end-to-end tests cannot use this function to bootstrap manually. + * They must use {@link ng.directive:ngApp ngApp}. + * + * Angular will detect if it has been loaded into the browser more than once and only allow the + * first loaded script to be bootstrapped and will report a warning to the browser console for + * each of the subsequent scripts. This prevents strange results in applications, where otherwise + * multiple instances of Angular try to work on the DOM. + * + * ```html + * + * + * + *
+ * {{greeting}} + *
+ * + * + * + * + * + * ``` + * + * @param {DOMElement} element DOM element which is the root of angular application. + * @param {Array=} modules an array of modules to load into the application. + * Each item in the array should be the name of a predefined module or a (DI annotated) + * function that will be invoked by the injector as a `config` block. + * See: {@link angular.module modules} + * @param {Object=} config an object for defining configuration options for the application. The + * following keys are supported: + * + * * `strictDi` - disable automatic function annotation for the application. This is meant to + * assist in finding bugs which break minified code. Defaults to `false`. + * + * @returns {auto.$injector} Returns the newly created injector for this app. + */ +function bootstrap(element, modules, config) { + if (!isObject(config)) config = {}; + var defaultConfig = { + strictDi: false + }; + config = extend(defaultConfig, config); + var doBootstrap = function() { + element = jqLite(element); + + if (element.injector()) { + var tag = (element[0] === document) ? 'document' : startingTag(element); + //Encode angle brackets to prevent input from being sanitized to empty string #8683 + throw ngMinErr( + 'btstrpd', + "App Already Bootstrapped with this Element '{0}'", + tag.replace(//,'>')); + } + + modules = modules || []; + modules.unshift(['$provide', function($provide) { + $provide.value('$rootElement', element); + }]); + + if (config.debugInfoEnabled) { + // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`. + modules.push(['$compileProvider', function($compileProvider) { + $compileProvider.debugInfoEnabled(true); + }]); + } + + modules.unshift('ng'); + var injector = createInjector(modules, config.strictDi); + injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', + function bootstrapApply(scope, element, compile, injector) { + scope.$apply(function() { + element.data('$injector', injector); + compile(element)(scope); + }); + }] + ); + return injector; + }; + + var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/; + var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/; + + if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) { + config.debugInfoEnabled = true; + window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, ''); + } + + if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) { + return doBootstrap(); + } + + window.name = window.name.replace(NG_DEFER_BOOTSTRAP, ''); + angular.resumeBootstrap = function(extraModules) { + forEach(extraModules, function(module) { + modules.push(module); + }); + return doBootstrap(); + }; + + if (isFunction(angular.resumeDeferredBootstrap)) { + angular.resumeDeferredBootstrap(); + } +} + +/** + * @ngdoc function + * @name angular.reloadWithDebugInfo + * @module ng + * @description + * Use this function to reload the current application with debug information turned on. + * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`. + * + * See {@link ng.$compileProvider#debugInfoEnabled} for more. + */ +function reloadWithDebugInfo() { + window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name; + window.location.reload(); +} + +/** + * @name angular.getTestability + * @module ng + * @description + * Get the testability service for the instance of Angular on the given + * element. + * @param {DOMElement} element DOM element which is the root of angular application. + */ +function getTestability(rootElement) { + var injector = angular.element(rootElement).injector(); + if (!injector) { + throw ngMinErr('test', + 'no injector found for element argument to getTestability'); + } + return injector.get('$$testability'); +} + +var SNAKE_CASE_REGEXP = /[A-Z]/g; +function snake_case(name, separator) { + separator = separator || '_'; + return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) { + return (pos ? separator : '') + letter.toLowerCase(); + }); +} + +var bindJQueryFired = false; +var skipDestroyOnNextJQueryCleanData; +function bindJQuery() { + var originalCleanData; + + if (bindJQueryFired) { + return; + } + + // bind to jQuery if present; + var jqName = jq(); + jQuery = isUndefined(jqName) ? window.jQuery : // use jQuery (if present) + !jqName ? undefined : // use jqLite + window[jqName]; // use jQuery specified by `ngJq` + + // Use jQuery if it exists with proper functionality, otherwise default to us. + // Angular 1.2+ requires jQuery 1.7+ for on()/off() support. + // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older + // versions. It will not work for sure with jQuery <1.7, though. + if (jQuery && jQuery.fn.on) { + jqLite = jQuery; + extend(jQuery.fn, { + scope: JQLitePrototype.scope, + isolateScope: JQLitePrototype.isolateScope, + controller: JQLitePrototype.controller, + injector: JQLitePrototype.injector, + inheritedData: JQLitePrototype.inheritedData + }); + + // All nodes removed from the DOM via various jQuery APIs like .remove() + // are passed through jQuery.cleanData. Monkey-patch this method to fire + // the $destroy event on all removed nodes. + originalCleanData = jQuery.cleanData; + jQuery.cleanData = function(elems) { + var events; + if (!skipDestroyOnNextJQueryCleanData) { + for (var i = 0, elem; (elem = elems[i]) != null; i++) { + events = jQuery._data(elem, "events"); + if (events && events.$destroy) { + jQuery(elem).triggerHandler('$destroy'); + } + } + } else { + skipDestroyOnNextJQueryCleanData = false; + } + originalCleanData(elems); + }; + } else { + jqLite = JQLite; + } + + angular.element = jqLite; + + // Prevent double-proxying. + bindJQueryFired = true; +} + +/** + * throw error if the argument is falsy. + */ +function assertArg(arg, name, reason) { + if (!arg) { + throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required")); + } + return arg; +} + +function assertArgFn(arg, name, acceptArrayAnnotation) { + if (acceptArrayAnnotation && isArray(arg)) { + arg = arg[arg.length - 1]; + } + + assertArg(isFunction(arg), name, 'not a function, got ' + + (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); + return arg; +} + +/** + * throw error if the name given is hasOwnProperty + * @param {String} name the name to test + * @param {String} context the context in which the name is used, such as module or directive + */ +function assertNotHasOwnProperty(name, context) { + if (name === 'hasOwnProperty') { + throw ngMinErr('badname', "hasOwnProperty is not a valid {0} name", context); + } +} + +/** + * Return the value accessible from the object by path. Any undefined traversals are ignored + * @param {Object} obj starting object + * @param {String} path path to traverse + * @param {boolean} [bindFnToScope=true] + * @returns {Object} value as accessible by path + */ +//TODO(misko): this function needs to be removed +function getter(obj, path, bindFnToScope) { + if (!path) return obj; + var keys = path.split('.'); + var key; + var lastInstance = obj; + var len = keys.length; + + for (var i = 0; i < len; i++) { + key = keys[i]; + if (obj) { + obj = (lastInstance = obj)[key]; + } + } + if (!bindFnToScope && isFunction(obj)) { + return bind(lastInstance, obj); + } + return obj; +} + +/** + * Return the DOM siblings between the first and last node in the given array. + * @param {Array} array like object + * @returns {Array} the inputted object or a jqLite collection containing the nodes + */ +function getBlockNodes(nodes) { + // TODO(perf): update `nodes` instead of creating a new object? + var node = nodes[0]; + var endNode = nodes[nodes.length - 1]; + var blockNodes; + + for (var i = 1; node !== endNode && (node = node.nextSibling); i++) { + if (blockNodes || nodes[i] !== node) { + if (!blockNodes) { + blockNodes = jqLite(slice.call(nodes, 0, i)); + } + blockNodes.push(node); + } + } + + return blockNodes || nodes; +} + + +/** + * Creates a new object without a prototype. This object is useful for lookup without having to + * guard against prototypically inherited properties via hasOwnProperty. + * + * Related micro-benchmarks: + * - http://jsperf.com/object-create2 + * - http://jsperf.com/proto-map-lookup/2 + * - http://jsperf.com/for-in-vs-object-keys2 + * + * @returns {Object} + */ +function createMap() { + return Object.create(null); +} + +var NODE_TYPE_ELEMENT = 1; +var NODE_TYPE_ATTRIBUTE = 2; +var NODE_TYPE_TEXT = 3; +var NODE_TYPE_COMMENT = 8; +var NODE_TYPE_DOCUMENT = 9; +var NODE_TYPE_DOCUMENT_FRAGMENT = 11; + +/** + * @ngdoc type + * @name angular.Module + * @module ng + * @description + * + * Interface for configuring angular {@link angular.module modules}. + */ + +function setupModuleLoader(window) { + + var $injectorMinErr = minErr('$injector'); + var ngMinErr = minErr('ng'); + + function ensure(obj, name, factory) { + return obj[name] || (obj[name] = factory()); + } + + var angular = ensure(window, 'angular', Object); + + // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap + angular.$$minErr = angular.$$minErr || minErr; + + return ensure(angular, 'module', function() { + /** @type {Object.} */ + var modules = {}; + + /** + * @ngdoc function + * @name angular.module + * @module ng + * @description + * + * The `angular.module` is a global place for creating, registering and retrieving Angular + * modules. + * All modules (angular core or 3rd party) that should be available to an application must be + * registered using this mechanism. + * + * Passing one argument retrieves an existing {@link angular.Module}, + * whereas passing more than one argument creates a new {@link angular.Module} + * + * + * # Module + * + * A module is a collection of services, directives, controllers, filters, and configuration information. + * `angular.module` is used to configure the {@link auto.$injector $injector}. + * + * ```js + * // Create a new module + * var myModule = angular.module('myModule', []); + * + * // register a new service + * myModule.value('appName', 'MyCoolApp'); + * + * // configure existing services inside initialization blocks. + * myModule.config(['$locationProvider', function($locationProvider) { + * // Configure existing providers + * $locationProvider.hashPrefix('!'); + * }]); + * ``` + * + * Then you can create an injector and load your modules like this: + * + * ```js + * var injector = angular.injector(['ng', 'myModule']) + * ``` + * + * However it's more likely that you'll just use + * {@link ng.directive:ngApp ngApp} or + * {@link angular.bootstrap} to simplify this process for you. + * + * @param {!string} name The name of the module to create or retrieve. + * @param {!Array.=} requires If specified then new module is being created. If + * unspecified then the module is being retrieved for further configuration. + * @param {Function=} configFn Optional configuration function for the module. Same as + * {@link angular.Module#config Module#config()}. + * @returns {module} new module with the {@link angular.Module} api. + */ + return function module(name, requires, configFn) { + var assertNotHasOwnProperty = function(name, context) { + if (name === 'hasOwnProperty') { + throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context); + } + }; + + assertNotHasOwnProperty(name, 'module'); + if (requires && modules.hasOwnProperty(name)) { + modules[name] = null; + } + return ensure(modules, name, function() { + if (!requires) { + throw $injectorMinErr('nomod', "Module '{0}' is not available! You either misspelled " + + "the module name or forgot to load it. If registering a module ensure that you " + + "specify the dependencies as the second argument.", name); + } + + /** @type {!Array.>} */ + var invokeQueue = []; + + /** @type {!Array.} */ + var configBlocks = []; + + /** @type {!Array.} */ + var runBlocks = []; + + var config = invokeLater('$injector', 'invoke', 'push', configBlocks); + + /** @type {angular.Module} */ + var moduleInstance = { + // Private state + _invokeQueue: invokeQueue, + _configBlocks: configBlocks, + _runBlocks: runBlocks, + + /** + * @ngdoc property + * @name angular.Module#requires + * @module ng + * + * @description + * Holds the list of modules which the injector will load before the current module is + * loaded. + */ + requires: requires, + + /** + * @ngdoc property + * @name angular.Module#name + * @module ng + * + * @description + * Name of the module. + */ + name: name, + + + /** + * @ngdoc method + * @name angular.Module#provider + * @module ng + * @param {string} name service name + * @param {Function} providerType Construction function for creating new instance of the + * service. + * @description + * See {@link auto.$provide#provider $provide.provider()}. + */ + provider: invokeLaterAndSetModuleName('$provide', 'provider'), + + /** + * @ngdoc method + * @name angular.Module#factory + * @module ng + * @param {string} name service name + * @param {Function} providerFunction Function for creating new instance of the service. + * @description + * See {@link auto.$provide#factory $provide.factory()}. + */ + factory: invokeLaterAndSetModuleName('$provide', 'factory'), + + /** + * @ngdoc method + * @name angular.Module#service + * @module ng + * @param {string} name service name + * @param {Function} constructor A constructor function that will be instantiated. + * @description + * See {@link auto.$provide#service $provide.service()}. + */ + service: invokeLaterAndSetModuleName('$provide', 'service'), + + /** + * @ngdoc method + * @name angular.Module#value + * @module ng + * @param {string} name service name + * @param {*} object Service instance object. + * @description + * See {@link auto.$provide#value $provide.value()}. + */ + value: invokeLater('$provide', 'value'), + + /** + * @ngdoc method + * @name angular.Module#constant + * @module ng + * @param {string} name constant name + * @param {*} object Constant value. + * @description + * Because the constant are fixed, they get applied before other provide methods. + * See {@link auto.$provide#constant $provide.constant()}. + */ + constant: invokeLater('$provide', 'constant', 'unshift'), + + /** + * @ngdoc method + * @name angular.Module#decorator + * @module ng + * @param {string} The name of the service to decorate. + * @param {Function} This function will be invoked when the service needs to be + * instantiated and should return the decorated service instance. + * @description + * See {@link auto.$provide#decorator $provide.decorator()}. + */ + decorator: invokeLaterAndSetModuleName('$provide', 'decorator'), + + /** + * @ngdoc method + * @name angular.Module#animation + * @module ng + * @param {string} name animation name + * @param {Function} animationFactory Factory function for creating new instance of an + * animation. + * @description + * + * **NOTE**: animations take effect only if the **ngAnimate** module is loaded. + * + * + * Defines an animation hook that can be later used with + * {@link $animate $animate} service and directives that use this service. + * + * ```js + * module.animation('.animation-name', function($inject1, $inject2) { + * return { + * eventName : function(element, done) { + * //code to run the animation + * //once complete, then run done() + * return function cancellationFunction(element) { + * //code to cancel the animation + * } + * } + * } + * }) + * ``` + * + * See {@link ng.$animateProvider#register $animateProvider.register()} and + * {@link ngAnimate ngAnimate module} for more information. + */ + animation: invokeLaterAndSetModuleName('$animateProvider', 'register'), + + /** + * @ngdoc method + * @name angular.Module#filter + * @module ng + * @param {string} name Filter name - this must be a valid angular expression identifier + * @param {Function} filterFactory Factory function for creating new instance of filter. + * @description + * See {@link ng.$filterProvider#register $filterProvider.register()}. + * + *
+ * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`. + * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace + * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores + * (`myapp_subsection_filterx`). + *
+ */ + filter: invokeLaterAndSetModuleName('$filterProvider', 'register'), + + /** + * @ngdoc method + * @name angular.Module#controller + * @module ng + * @param {string|Object} name Controller name, or an object map of controllers where the + * keys are the names and the values are the constructors. + * @param {Function} constructor Controller constructor function. + * @description + * See {@link ng.$controllerProvider#register $controllerProvider.register()}. + */ + controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'), + + /** + * @ngdoc method + * @name angular.Module#directive + * @module ng + * @param {string|Object} name Directive name, or an object map of directives where the + * keys are the names and the values are the factories. + * @param {Function} directiveFactory Factory function for creating new instance of + * directives. + * @description + * See {@link ng.$compileProvider#directive $compileProvider.directive()}. + */ + directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'), + + /** + * @ngdoc method + * @name angular.Module#config + * @module ng + * @param {Function} configFn Execute this function on module load. Useful for service + * configuration. + * @description + * Use this method to register work which needs to be performed on module loading. + * For more about how to configure services, see + * {@link providers#provider-recipe Provider Recipe}. + */ + config: config, + + /** + * @ngdoc method + * @name angular.Module#run + * @module ng + * @param {Function} initializationFn Execute this function after injector creation. + * Useful for application initialization. + * @description + * Use this method to register work which should be performed when the injector is done + * loading all modules. + */ + run: function(block) { + runBlocks.push(block); + return this; + } + }; + + if (configFn) { + config(configFn); + } + + return moduleInstance; + + /** + * @param {string} provider + * @param {string} method + * @param {String=} insertMethod + * @returns {angular.Module} + */ + function invokeLater(provider, method, insertMethod, queue) { + if (!queue) queue = invokeQueue; + return function() { + queue[insertMethod || 'push']([provider, method, arguments]); + return moduleInstance; + }; + } + + /** + * @param {string} provider + * @param {string} method + * @returns {angular.Module} + */ + function invokeLaterAndSetModuleName(provider, method) { + return function(recipeName, factoryFunction) { + if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name; + invokeQueue.push([provider, method, arguments]); + return moduleInstance; + }; + } + }); + }; + }); + +} + +/* global: toDebugString: true */ + +function serializeObject(obj) { + var seen = []; + + return JSON.stringify(obj, function(key, val) { + val = toJsonReplacer(key, val); + if (isObject(val)) { + + if (seen.indexOf(val) >= 0) return '...'; + + seen.push(val); + } + return val; + }); +} + +function toDebugString(obj) { + if (typeof obj === 'function') { + return obj.toString().replace(/ \{[\s\S]*$/, ''); + } else if (isUndefined(obj)) { + return 'undefined'; + } else if (typeof obj !== 'string') { + return serializeObject(obj); + } + return obj; +} + +/* global angularModule: true, + version: true, + + $CompileProvider, + + htmlAnchorDirective, + inputDirective, + inputDirective, + formDirective, + scriptDirective, + selectDirective, + styleDirective, + optionDirective, + ngBindDirective, + ngBindHtmlDirective, + ngBindTemplateDirective, + ngClassDirective, + ngClassEvenDirective, + ngClassOddDirective, + ngCloakDirective, + ngControllerDirective, + ngFormDirective, + ngHideDirective, + ngIfDirective, + ngIncludeDirective, + ngIncludeFillContentDirective, + ngInitDirective, + ngNonBindableDirective, + ngPluralizeDirective, + ngRepeatDirective, + ngShowDirective, + ngStyleDirective, + ngSwitchDirective, + ngSwitchWhenDirective, + ngSwitchDefaultDirective, + ngOptionsDirective, + ngTranscludeDirective, + ngModelDirective, + ngListDirective, + ngChangeDirective, + patternDirective, + patternDirective, + requiredDirective, + requiredDirective, + minlengthDirective, + minlengthDirective, + maxlengthDirective, + maxlengthDirective, + ngValueDirective, + ngModelOptionsDirective, + ngAttributeAliasDirectives, + ngEventDirectives, + + $AnchorScrollProvider, + $AnimateProvider, + $CoreAnimateCssProvider, + $$CoreAnimateQueueProvider, + $$CoreAnimateRunnerProvider, + $BrowserProvider, + $CacheFactoryProvider, + $ControllerProvider, + $DocumentProvider, + $ExceptionHandlerProvider, + $FilterProvider, + $$ForceReflowProvider, + $InterpolateProvider, + $IntervalProvider, + $$HashMapProvider, + $HttpProvider, + $HttpParamSerializerProvider, + $HttpParamSerializerJQLikeProvider, + $HttpBackendProvider, + $xhrFactoryProvider, + $LocationProvider, + $LogProvider, + $ParseProvider, + $RootScopeProvider, + $QProvider, + $$QProvider, + $$SanitizeUriProvider, + $SceProvider, + $SceDelegateProvider, + $SnifferProvider, + $TemplateCacheProvider, + $TemplateRequestProvider, + $$TestabilityProvider, + $TimeoutProvider, + $$RAFProvider, + $WindowProvider, + $$jqLiteProvider, + $$CookieReaderProvider +*/ + + +/** + * @ngdoc object + * @name angular.version + * @module ng + * @description + * An object that contains information about the current AngularJS version. + * + * This object has the following properties: + * + * - `full` – `{string}` – Full version string, such as "0.9.18". + * - `major` – `{number}` – Major version number, such as "0". + * - `minor` – `{number}` – Minor version number, such as "9". + * - `dot` – `{number}` – Dot version number, such as "18". + * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat". + */ +var version = { + full: '1.4.7', // all of these placeholder strings will be replaced by grunt's + major: 1, // package task + minor: 4, + dot: 7, + codeName: 'dark-luminescence' +}; + + +function publishExternalAPI(angular) { + extend(angular, { + 'bootstrap': bootstrap, + 'copy': copy, + 'extend': extend, + 'merge': merge, + 'equals': equals, + 'element': jqLite, + 'forEach': forEach, + 'injector': createInjector, + 'noop': noop, + 'bind': bind, + 'toJson': toJson, + 'fromJson': fromJson, + 'identity': identity, + 'isUndefined': isUndefined, + 'isDefined': isDefined, + 'isString': isString, + 'isFunction': isFunction, + 'isObject': isObject, + 'isNumber': isNumber, + 'isElement': isElement, + 'isArray': isArray, + 'version': version, + 'isDate': isDate, + 'lowercase': lowercase, + 'uppercase': uppercase, + 'callbacks': {counter: 0}, + 'getTestability': getTestability, + '$$minErr': minErr, + '$$csp': csp, + 'reloadWithDebugInfo': reloadWithDebugInfo + }); + + angularModule = setupModuleLoader(window); + + angularModule('ng', ['ngLocale'], ['$provide', + function ngModule($provide) { + // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it. + $provide.provider({ + $$sanitizeUri: $$SanitizeUriProvider + }); + $provide.provider('$compile', $CompileProvider). + directive({ + a: htmlAnchorDirective, + input: inputDirective, + textarea: inputDirective, + form: formDirective, + script: scriptDirective, + select: selectDirective, + style: styleDirective, + option: optionDirective, + ngBind: ngBindDirective, + ngBindHtml: ngBindHtmlDirective, + ngBindTemplate: ngBindTemplateDirective, + ngClass: ngClassDirective, + ngClassEven: ngClassEvenDirective, + ngClassOdd: ngClassOddDirective, + ngCloak: ngCloakDirective, + ngController: ngControllerDirective, + ngForm: ngFormDirective, + ngHide: ngHideDirective, + ngIf: ngIfDirective, + ngInclude: ngIncludeDirective, + ngInit: ngInitDirective, + ngNonBindable: ngNonBindableDirective, + ngPluralize: ngPluralizeDirective, + ngRepeat: ngRepeatDirective, + ngShow: ngShowDirective, + ngStyle: ngStyleDirective, + ngSwitch: ngSwitchDirective, + ngSwitchWhen: ngSwitchWhenDirective, + ngSwitchDefault: ngSwitchDefaultDirective, + ngOptions: ngOptionsDirective, + ngTransclude: ngTranscludeDirective, + ngModel: ngModelDirective, + ngList: ngListDirective, + ngChange: ngChangeDirective, + pattern: patternDirective, + ngPattern: patternDirective, + required: requiredDirective, + ngRequired: requiredDirective, + minlength: minlengthDirective, + ngMinlength: minlengthDirective, + maxlength: maxlengthDirective, + ngMaxlength: maxlengthDirective, + ngValue: ngValueDirective, + ngModelOptions: ngModelOptionsDirective + }). + directive({ + ngInclude: ngIncludeFillContentDirective + }). + directive(ngAttributeAliasDirectives). + directive(ngEventDirectives); + $provide.provider({ + $anchorScroll: $AnchorScrollProvider, + $animate: $AnimateProvider, + $animateCss: $CoreAnimateCssProvider, + $$animateQueue: $$CoreAnimateQueueProvider, + $$AnimateRunner: $$CoreAnimateRunnerProvider, + $browser: $BrowserProvider, + $cacheFactory: $CacheFactoryProvider, + $controller: $ControllerProvider, + $document: $DocumentProvider, + $exceptionHandler: $ExceptionHandlerProvider, + $filter: $FilterProvider, + $$forceReflow: $$ForceReflowProvider, + $interpolate: $InterpolateProvider, + $interval: $IntervalProvider, + $http: $HttpProvider, + $httpParamSerializer: $HttpParamSerializerProvider, + $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider, + $httpBackend: $HttpBackendProvider, + $xhrFactory: $xhrFactoryProvider, + $location: $LocationProvider, + $log: $LogProvider, + $parse: $ParseProvider, + $rootScope: $RootScopeProvider, + $q: $QProvider, + $$q: $$QProvider, + $sce: $SceProvider, + $sceDelegate: $SceDelegateProvider, + $sniffer: $SnifferProvider, + $templateCache: $TemplateCacheProvider, + $templateRequest: $TemplateRequestProvider, + $$testability: $$TestabilityProvider, + $timeout: $TimeoutProvider, + $window: $WindowProvider, + $$rAF: $$RAFProvider, + $$jqLite: $$jqLiteProvider, + $$HashMap: $$HashMapProvider, + $$cookieReader: $$CookieReaderProvider + }); + } + ]); +} + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Any commits to this file should be reviewed with security in mind. * + * Changes to this file can potentially create security vulnerabilities. * + * An approval from 2 Core members with history of modifying * + * this file is required. * + * * + * Does the change somehow allow for arbitrary javascript to be executed? * + * Or allows for someone to change the prototype of built-in objects? * + * Or gives undesired access to variables likes document or window? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/* global JQLitePrototype: true, + addEventListenerFn: true, + removeEventListenerFn: true, + BOOLEAN_ATTR: true, + ALIASED_ATTR: true, +*/ + +////////////////////////////////// +//JQLite +////////////////////////////////// + +/** + * @ngdoc function + * @name angular.element + * @module ng + * @kind function + * + * @description + * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element. + * + * If jQuery is available, `angular.element` is an alias for the + * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element` + * delegates to Angular's built-in subset of jQuery, called "jQuery lite" or "jqLite." + * + *
jqLite is a tiny, API-compatible subset of jQuery that allows + * Angular to manipulate the DOM in a cross-browser compatible way. **jqLite** implements only the most + * commonly needed functionality with the goal of having a very small footprint.
+ * + * To use `jQuery`, simply ensure it is loaded before the `angular.js` file. + * + *
**Note:** all element references in Angular are always wrapped with jQuery or + * jqLite; they are never raw DOM references.
+ * + * ## Angular's jqLite + * jqLite provides only the following jQuery methods: + * + * - [`addClass()`](http://api.jquery.com/addClass/) + * - [`after()`](http://api.jquery.com/after/) + * - [`append()`](http://api.jquery.com/append/) + * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters + * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData + * - [`children()`](http://api.jquery.com/children/) - Does not support selectors + * - [`clone()`](http://api.jquery.com/clone/) + * - [`contents()`](http://api.jquery.com/contents/) + * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`. As a setter, does not convert numbers to strings or append 'px'. + * - [`data()`](http://api.jquery.com/data/) + * - [`detach()`](http://api.jquery.com/detach/) + * - [`empty()`](http://api.jquery.com/empty/) + * - [`eq()`](http://api.jquery.com/eq/) + * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name + * - [`hasClass()`](http://api.jquery.com/hasClass/) + * - [`html()`](http://api.jquery.com/html/) + * - [`next()`](http://api.jquery.com/next/) - Does not support selectors + * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData + * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter + * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors + * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors + * - [`prepend()`](http://api.jquery.com/prepend/) + * - [`prop()`](http://api.jquery.com/prop/) + * - [`ready()`](http://api.jquery.com/ready/) + * - [`remove()`](http://api.jquery.com/remove/) + * - [`removeAttr()`](http://api.jquery.com/removeAttr/) + * - [`removeClass()`](http://api.jquery.com/removeClass/) + * - [`removeData()`](http://api.jquery.com/removeData/) + * - [`replaceWith()`](http://api.jquery.com/replaceWith/) + * - [`text()`](http://api.jquery.com/text/) + * - [`toggleClass()`](http://api.jquery.com/toggleClass/) + * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers. + * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces or event object as parameter + * - [`val()`](http://api.jquery.com/val/) + * - [`wrap()`](http://api.jquery.com/wrap/) + * + * ## jQuery/jqLite Extras + * Angular also provides the following additional methods and events to both jQuery and jqLite: + * + * ### Events + * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event + * on all DOM nodes being removed. This can be used to clean up any 3rd party bindings to the DOM + * element before it is removed. + * + * ### Methods + * - `controller(name)` - retrieves the controller of the current element or its parent. By default + * retrieves controller associated with the `ngController` directive. If `name` is provided as + * camelCase directive name, then the controller for this directive will be retrieved (e.g. + * `'ngModel'`). + * - `injector()` - retrieves the injector of the current element or its parent. + * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current + * element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to + * be enabled. + * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the + * current element. This getter should be used only on elements that contain a directive which starts a new isolate + * scope. Calling `scope()` on this element always returns the original non-isolate scope. + * Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled. + * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top + * parent element is reached. + * + * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery. + * @returns {Object} jQuery object. + */ + +JQLite.expando = 'ng339'; + +var jqCache = JQLite.cache = {}, + jqId = 1, + addEventListenerFn = function(element, type, fn) { + element.addEventListener(type, fn, false); + }, + removeEventListenerFn = function(element, type, fn) { + element.removeEventListener(type, fn, false); + }; + +/* + * !!! This is an undocumented "private" function !!! + */ +JQLite._data = function(node) { + //jQuery always returns an object on cache miss + return this.cache[node[this.expando]] || {}; +}; + +function jqNextId() { return ++jqId; } + + +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var MOUSE_EVENT_MAP= { mouseleave: "mouseout", mouseenter: "mouseover"}; +var jqLiteMinErr = minErr('jqLite'); + +/** + * Converts snake_case to camelCase. + * Also there is special case for Moz prefix starting with upper case letter. + * @param name Name to normalize + */ +function camelCase(name) { + return name. + replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }). + replace(MOZ_HACK_REGEXP, 'Moz$1'); +} + +var SINGLE_TAG_REGEXP = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/; +var HTML_REGEXP = /<|&#?\w+;/; +var TAG_NAME_REGEXP = /<([\w:-]+)/; +var XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi; + +var wrapMap = { + 'option': [1, ''], + + 'thead': [1, '', '
'], + 'col': [2, '', '
'], + 'tr': [2, '', '
'], + 'td': [3, '', '
'], + '_default': [0, "", ""] +}; + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + + +function jqLiteIsTextNode(html) { + return !HTML_REGEXP.test(html); +} + +function jqLiteAcceptsData(node) { + // The window object can accept data but has no nodeType + // Otherwise we are only interested in elements (1) and documents (9) + var nodeType = node.nodeType; + return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT; +} + +function jqLiteHasData(node) { + for (var key in jqCache[node.ng339]) { + return true; + } + return false; +} + +function jqLiteBuildFragment(html, context) { + var tmp, tag, wrap, + fragment = context.createDocumentFragment(), + nodes = [], i; + + if (jqLiteIsTextNode(html)) { + // Convert non-html into a text node + nodes.push(context.createTextNode(html)); + } else { + // Convert html into DOM nodes + tmp = tmp || fragment.appendChild(context.createElement("div")); + tag = (TAG_NAME_REGEXP.exec(html) || ["", ""])[1].toLowerCase(); + wrap = wrapMap[tag] || wrapMap._default; + tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1>") + wrap[2]; + + // Descend through wrappers to the right content + i = wrap[0]; + while (i--) { + tmp = tmp.lastChild; + } + + nodes = concat(nodes, tmp.childNodes); + + tmp = fragment.firstChild; + tmp.textContent = ""; + } + + // Remove wrapper from fragment + fragment.textContent = ""; + fragment.innerHTML = ""; // Clear inner HTML + forEach(nodes, function(node) { + fragment.appendChild(node); + }); + + return fragment; +} + +function jqLiteParseHTML(html, context) { + context = context || document; + var parsed; + + if ((parsed = SINGLE_TAG_REGEXP.exec(html))) { + return [context.createElement(parsed[1])]; + } + + if ((parsed = jqLiteBuildFragment(html, context))) { + return parsed.childNodes; + } + + return []; +} + +///////////////////////////////////////////// +function JQLite(element) { + if (element instanceof JQLite) { + return element; + } + + var argIsString; + + if (isString(element)) { + element = trim(element); + argIsString = true; + } + if (!(this instanceof JQLite)) { + if (argIsString && element.charAt(0) != '<') { + throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element'); + } + return new JQLite(element); + } + + if (argIsString) { + jqLiteAddNodes(this, jqLiteParseHTML(element)); + } else { + jqLiteAddNodes(this, element); + } +} + +function jqLiteClone(element) { + return element.cloneNode(true); +} + +function jqLiteDealoc(element, onlyDescendants) { + if (!onlyDescendants) jqLiteRemoveData(element); + + if (element.querySelectorAll) { + var descendants = element.querySelectorAll('*'); + for (var i = 0, l = descendants.length; i < l; i++) { + jqLiteRemoveData(descendants[i]); + } + } +} + +function jqLiteOff(element, type, fn, unsupported) { + if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument'); + + var expandoStore = jqLiteExpandoStore(element); + var events = expandoStore && expandoStore.events; + var handle = expandoStore && expandoStore.handle; + + if (!handle) return; //no listeners registered + + if (!type) { + for (type in events) { + if (type !== '$destroy') { + removeEventListenerFn(element, type, handle); + } + delete events[type]; + } + } else { + forEach(type.split(' '), function(type) { + if (isDefined(fn)) { + var listenerFns = events[type]; + arrayRemove(listenerFns || [], fn); + if (listenerFns && listenerFns.length > 0) { + return; + } + } + + removeEventListenerFn(element, type, handle); + delete events[type]; + }); + } +} + +function jqLiteRemoveData(element, name) { + var expandoId = element.ng339; + var expandoStore = expandoId && jqCache[expandoId]; + + if (expandoStore) { + if (name) { + delete expandoStore.data[name]; + return; + } + + if (expandoStore.handle) { + if (expandoStore.events.$destroy) { + expandoStore.handle({}, '$destroy'); + } + jqLiteOff(element); + } + delete jqCache[expandoId]; + element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it + } +} + + +function jqLiteExpandoStore(element, createIfNecessary) { + var expandoId = element.ng339, + expandoStore = expandoId && jqCache[expandoId]; + + if (createIfNecessary && !expandoStore) { + element.ng339 = expandoId = jqNextId(); + expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined}; + } + + return expandoStore; +} + + +function jqLiteData(element, key, value) { + if (jqLiteAcceptsData(element)) { + + var isSimpleSetter = isDefined(value); + var isSimpleGetter = !isSimpleSetter && key && !isObject(key); + var massGetter = !key; + var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter); + var data = expandoStore && expandoStore.data; + + if (isSimpleSetter) { // data('key', value) + data[key] = value; + } else { + if (massGetter) { // data() + return data; + } else { + if (isSimpleGetter) { // data('key') + // don't force creation of expandoStore if it doesn't exist yet + return data && data[key]; + } else { // mass-setter: data({key1: val1, key2: val2}) + extend(data, key); + } + } + } + } +} + +function jqLiteHasClass(element, selector) { + if (!element.getAttribute) return false; + return ((" " + (element.getAttribute('class') || '') + " ").replace(/[\n\t]/g, " "). + indexOf(" " + selector + " ") > -1); +} + +function jqLiteRemoveClass(element, cssClasses) { + if (cssClasses && element.setAttribute) { + forEach(cssClasses.split(' '), function(cssClass) { + element.setAttribute('class', trim( + (" " + (element.getAttribute('class') || '') + " ") + .replace(/[\n\t]/g, " ") + .replace(" " + trim(cssClass) + " ", " ")) + ); + }); + } +} + +function jqLiteAddClass(element, cssClasses) { + if (cssClasses && element.setAttribute) { + var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ') + .replace(/[\n\t]/g, " "); + + forEach(cssClasses.split(' '), function(cssClass) { + cssClass = trim(cssClass); + if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) { + existingClasses += cssClass + ' '; + } + }); + + element.setAttribute('class', trim(existingClasses)); + } +} + + +function jqLiteAddNodes(root, elements) { + // THIS CODE IS VERY HOT. Don't make changes without benchmarking. + + if (elements) { + + // if a Node (the most common case) + if (elements.nodeType) { + root[root.length++] = elements; + } else { + var length = elements.length; + + // if an Array or NodeList and not a Window + if (typeof length === 'number' && elements.window !== elements) { + if (length) { + for (var i = 0; i < length; i++) { + root[root.length++] = elements[i]; + } + } + } else { + root[root.length++] = elements; + } + } + } +} + + +function jqLiteController(element, name) { + return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller'); +} + +function jqLiteInheritedData(element, name, value) { + // if element is the document object work with the html element instead + // this makes $(document).scope() possible + if (element.nodeType == NODE_TYPE_DOCUMENT) { + element = element.documentElement; + } + var names = isArray(name) ? name : [name]; + + while (element) { + for (var i = 0, ii = names.length; i < ii; i++) { + if (isDefined(value = jqLite.data(element, names[i]))) return value; + } + + // If dealing with a document fragment node with a host element, and no parent, use the host + // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM + // to lookup parent controllers. + element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host); + } +} + +function jqLiteEmpty(element) { + jqLiteDealoc(element, true); + while (element.firstChild) { + element.removeChild(element.firstChild); + } +} + +function jqLiteRemove(element, keepData) { + if (!keepData) jqLiteDealoc(element); + var parent = element.parentNode; + if (parent) parent.removeChild(element); +} + + +function jqLiteDocumentLoaded(action, win) { + win = win || window; + if (win.document.readyState === 'complete') { + // Force the action to be run async for consistent behaviour + // from the action's point of view + // i.e. it will definitely not be in a $apply + win.setTimeout(action); + } else { + // No need to unbind this handler as load is only ever called once + jqLite(win).on('load', action); + } +} + +////////////////////////////////////////// +// Functions which are declared directly. +////////////////////////////////////////// +var JQLitePrototype = JQLite.prototype = { + ready: function(fn) { + var fired = false; + + function trigger() { + if (fired) return; + fired = true; + fn(); + } + + // check if document is already loaded + if (document.readyState === 'complete') { + setTimeout(trigger); + } else { + this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9 + // we can not use jqLite since we are not done loading and jQuery could be loaded later. + // jshint -W064 + JQLite(window).on('load', trigger); // fallback to window.onload for others + // jshint +W064 + } + }, + toString: function() { + var value = []; + forEach(this, function(e) { value.push('' + e);}); + return '[' + value.join(', ') + ']'; + }, + + eq: function(index) { + return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]); + }, + + length: 0, + push: push, + sort: [].sort, + splice: [].splice +}; + +////////////////////////////////////////// +// Functions iterating getter/setters. +// these functions return self on setter and +// value on get. +////////////////////////////////////////// +var BOOLEAN_ATTR = {}; +forEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) { + BOOLEAN_ATTR[lowercase(value)] = value; +}); +var BOOLEAN_ELEMENTS = {}; +forEach('input,select,option,textarea,button,form,details'.split(','), function(value) { + BOOLEAN_ELEMENTS[value] = true; +}); +var ALIASED_ATTR = { + 'ngMinlength': 'minlength', + 'ngMaxlength': 'maxlength', + 'ngMin': 'min', + 'ngMax': 'max', + 'ngPattern': 'pattern' +}; + +function getBooleanAttrName(element, name) { + // check dom last since we will most likely fail on name + var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; + + // booleanAttr is here twice to minimize DOM access + return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; +} + +function getAliasedAttrName(name) { + return ALIASED_ATTR[name]; +} + +forEach({ + data: jqLiteData, + removeData: jqLiteRemoveData, + hasData: jqLiteHasData +}, function(fn, name) { + JQLite[name] = fn; +}); + +forEach({ + data: jqLiteData, + inheritedData: jqLiteInheritedData, + + scope: function(element) { + // Can't use jqLiteData here directly so we stay compatible with jQuery! + return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']); + }, + + isolateScope: function(element) { + // Can't use jqLiteData here directly so we stay compatible with jQuery! + return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate'); + }, + + controller: jqLiteController, + + injector: function(element) { + return jqLiteInheritedData(element, '$injector'); + }, + + removeAttr: function(element, name) { + element.removeAttribute(name); + }, + + hasClass: jqLiteHasClass, + + css: function(element, name, value) { + name = camelCase(name); + + if (isDefined(value)) { + element.style[name] = value; + } else { + return element.style[name]; + } + }, + + attr: function(element, name, value) { + var nodeType = element.nodeType; + if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) { + return; + } + var lowercasedName = lowercase(name); + if (BOOLEAN_ATTR[lowercasedName]) { + if (isDefined(value)) { + if (!!value) { + element[name] = true; + element.setAttribute(name, lowercasedName); + } else { + element[name] = false; + element.removeAttribute(lowercasedName); + } + } else { + return (element[name] || + (element.attributes.getNamedItem(name) || noop).specified) + ? lowercasedName + : undefined; + } + } else if (isDefined(value)) { + element.setAttribute(name, value); + } else if (element.getAttribute) { + // the extra argument "2" is to get the right thing for a.href in IE, see jQuery code + // some elements (e.g. Document) don't have get attribute, so return undefined + var ret = element.getAttribute(name, 2); + // normalize non-existing attributes to undefined (as jQuery) + return ret === null ? undefined : ret; + } + }, + + prop: function(element, name, value) { + if (isDefined(value)) { + element[name] = value; + } else { + return element[name]; + } + }, + + text: (function() { + getText.$dv = ''; + return getText; + + function getText(element, value) { + if (isUndefined(value)) { + var nodeType = element.nodeType; + return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : ''; + } + element.textContent = value; + } + })(), + + val: function(element, value) { + if (isUndefined(value)) { + if (element.multiple && nodeName_(element) === 'select') { + var result = []; + forEach(element.options, function(option) { + if (option.selected) { + result.push(option.value || option.text); + } + }); + return result.length === 0 ? null : result; + } + return element.value; + } + element.value = value; + }, + + html: function(element, value) { + if (isUndefined(value)) { + return element.innerHTML; + } + jqLiteDealoc(element, true); + element.innerHTML = value; + }, + + empty: jqLiteEmpty +}, function(fn, name) { + /** + * Properties: writes return selection, reads return first value + */ + JQLite.prototype[name] = function(arg1, arg2) { + var i, key; + var nodeCount = this.length; + + // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it + // in a way that survives minification. + // jqLiteEmpty takes no arguments but is a setter. + if (fn !== jqLiteEmpty && + (isUndefined((fn.length == 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) { + if (isObject(arg1)) { + + // we are a write, but the object properties are the key/values + for (i = 0; i < nodeCount; i++) { + if (fn === jqLiteData) { + // data() takes the whole object in jQuery + fn(this[i], arg1); + } else { + for (key in arg1) { + fn(this[i], key, arg1[key]); + } + } + } + // return self for chaining + return this; + } else { + // we are a read, so read the first child. + // TODO: do we still need this? + var value = fn.$dv; + // Only if we have $dv do we iterate over all, otherwise it is just the first element. + var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount; + for (var j = 0; j < jj; j++) { + var nodeValue = fn(this[j], arg1, arg2); + value = value ? value + nodeValue : nodeValue; + } + return value; + } + } else { + // we are a write, so apply to all children + for (i = 0; i < nodeCount; i++) { + fn(this[i], arg1, arg2); + } + // return self for chaining + return this; + } + }; +}); + +function createEventHandler(element, events) { + var eventHandler = function(event, type) { + // jQuery specific api + event.isDefaultPrevented = function() { + return event.defaultPrevented; + }; + + var eventFns = events[type || event.type]; + var eventFnsLength = eventFns ? eventFns.length : 0; + + if (!eventFnsLength) return; + + if (isUndefined(event.immediatePropagationStopped)) { + var originalStopImmediatePropagation = event.stopImmediatePropagation; + event.stopImmediatePropagation = function() { + event.immediatePropagationStopped = true; + + if (event.stopPropagation) { + event.stopPropagation(); + } + + if (originalStopImmediatePropagation) { + originalStopImmediatePropagation.call(event); + } + }; + } + + event.isImmediatePropagationStopped = function() { + return event.immediatePropagationStopped === true; + }; + + // Copy event handlers in case event handlers array is modified during execution. + if ((eventFnsLength > 1)) { + eventFns = shallowCopy(eventFns); + } + + for (var i = 0; i < eventFnsLength; i++) { + if (!event.isImmediatePropagationStopped()) { + eventFns[i].call(element, event); + } + } + }; + + // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all + // events on `element` + eventHandler.elem = element; + return eventHandler; +} + +////////////////////////////////////////// +// Functions iterating traversal. +// These functions chain results into a single +// selector. +////////////////////////////////////////// +forEach({ + removeData: jqLiteRemoveData, + + on: function jqLiteOn(element, type, fn, unsupported) { + if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters'); + + // Do not add event handlers to non-elements because they will not be cleaned up. + if (!jqLiteAcceptsData(element)) { + return; + } + + var expandoStore = jqLiteExpandoStore(element, true); + var events = expandoStore.events; + var handle = expandoStore.handle; + + if (!handle) { + handle = expandoStore.handle = createEventHandler(element, events); + } + + // http://jsperf.com/string-indexof-vs-split + var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type]; + var i = types.length; + + while (i--) { + type = types[i]; + var eventFns = events[type]; + + if (!eventFns) { + events[type] = []; + + if (type === 'mouseenter' || type === 'mouseleave') { + // Refer to jQuery's implementation of mouseenter & mouseleave + // Read about mouseenter and mouseleave: + // http://www.quirksmode.org/js/events_mouse.html#link8 + + jqLiteOn(element, MOUSE_EVENT_MAP[type], function(event) { + var target = this, related = event.relatedTarget; + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if (!related || (related !== target && !target.contains(related))) { + handle(event, type); + } + }); + + } else { + if (type !== '$destroy') { + addEventListenerFn(element, type, handle); + } + } + eventFns = events[type]; + } + eventFns.push(fn); + } + }, + + off: jqLiteOff, + + one: function(element, type, fn) { + element = jqLite(element); + + //add the listener twice so that when it is called + //you can remove the original function and still be + //able to call element.off(ev, fn) normally + element.on(type, function onFn() { + element.off(type, fn); + element.off(type, onFn); + }); + element.on(type, fn); + }, + + replaceWith: function(element, replaceNode) { + var index, parent = element.parentNode; + jqLiteDealoc(element); + forEach(new JQLite(replaceNode), function(node) { + if (index) { + parent.insertBefore(node, index.nextSibling); + } else { + parent.replaceChild(node, element); + } + index = node; + }); + }, + + children: function(element) { + var children = []; + forEach(element.childNodes, function(element) { + if (element.nodeType === NODE_TYPE_ELEMENT) { + children.push(element); + } + }); + return children; + }, + + contents: function(element) { + return element.contentDocument || element.childNodes || []; + }, + + append: function(element, node) { + var nodeType = element.nodeType; + if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return; + + node = new JQLite(node); + + for (var i = 0, ii = node.length; i < ii; i++) { + var child = node[i]; + element.appendChild(child); + } + }, + + prepend: function(element, node) { + if (element.nodeType === NODE_TYPE_ELEMENT) { + var index = element.firstChild; + forEach(new JQLite(node), function(child) { + element.insertBefore(child, index); + }); + } + }, + + wrap: function(element, wrapNode) { + wrapNode = jqLite(wrapNode).eq(0).clone()[0]; + var parent = element.parentNode; + if (parent) { + parent.replaceChild(wrapNode, element); + } + wrapNode.appendChild(element); + }, + + remove: jqLiteRemove, + + detach: function(element) { + jqLiteRemove(element, true); + }, + + after: function(element, newElement) { + var index = element, parent = element.parentNode; + newElement = new JQLite(newElement); + + for (var i = 0, ii = newElement.length; i < ii; i++) { + var node = newElement[i]; + parent.insertBefore(node, index.nextSibling); + index = node; + } + }, + + addClass: jqLiteAddClass, + removeClass: jqLiteRemoveClass, + + toggleClass: function(element, selector, condition) { + if (selector) { + forEach(selector.split(' '), function(className) { + var classCondition = condition; + if (isUndefined(classCondition)) { + classCondition = !jqLiteHasClass(element, className); + } + (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className); + }); + } + }, + + parent: function(element) { + var parent = element.parentNode; + return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null; + }, + + next: function(element) { + return element.nextElementSibling; + }, + + find: function(element, selector) { + if (element.getElementsByTagName) { + return element.getElementsByTagName(selector); + } else { + return []; + } + }, + + clone: jqLiteClone, + + triggerHandler: function(element, event, extraParameters) { + + var dummyEvent, eventFnsCopy, handlerArgs; + var eventName = event.type || event; + var expandoStore = jqLiteExpandoStore(element); + var events = expandoStore && expandoStore.events; + var eventFns = events && events[eventName]; + + if (eventFns) { + // Create a dummy event to pass to the handlers + dummyEvent = { + preventDefault: function() { this.defaultPrevented = true; }, + isDefaultPrevented: function() { return this.defaultPrevented === true; }, + stopImmediatePropagation: function() { this.immediatePropagationStopped = true; }, + isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; }, + stopPropagation: noop, + type: eventName, + target: element + }; + + // If a custom event was provided then extend our dummy event with it + if (event.type) { + dummyEvent = extend(dummyEvent, event); + } + + // Copy event handlers in case event handlers array is modified during execution. + eventFnsCopy = shallowCopy(eventFns); + handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent]; + + forEach(eventFnsCopy, function(fn) { + if (!dummyEvent.isImmediatePropagationStopped()) { + fn.apply(element, handlerArgs); + } + }); + } + } +}, function(fn, name) { + /** + * chaining functions + */ + JQLite.prototype[name] = function(arg1, arg2, arg3) { + var value; + + for (var i = 0, ii = this.length; i < ii; i++) { + if (isUndefined(value)) { + value = fn(this[i], arg1, arg2, arg3); + if (isDefined(value)) { + // any function which returns a value needs to be wrapped + value = jqLite(value); + } + } else { + jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3)); + } + } + return isDefined(value) ? value : this; + }; + + // bind legacy bind/unbind to on/off + JQLite.prototype.bind = JQLite.prototype.on; + JQLite.prototype.unbind = JQLite.prototype.off; +}); + + +// Provider for private $$jqLite service +function $$jqLiteProvider() { + this.$get = function $$jqLite() { + return extend(JQLite, { + hasClass: function(node, classes) { + if (node.attr) node = node[0]; + return jqLiteHasClass(node, classes); + }, + addClass: function(node, classes) { + if (node.attr) node = node[0]; + return jqLiteAddClass(node, classes); + }, + removeClass: function(node, classes) { + if (node.attr) node = node[0]; + return jqLiteRemoveClass(node, classes); + } + }); + }; +} + +/** + * Computes a hash of an 'obj'. + * Hash of a: + * string is string + * number is number as string + * object is either result of calling $$hashKey function on the object or uniquely generated id, + * that is also assigned to the $$hashKey property of the object. + * + * @param obj + * @returns {string} hash string such that the same input will have the same hash string. + * The resulting string key is in 'type:hashKey' format. + */ +function hashKey(obj, nextUidFn) { + var key = obj && obj.$$hashKey; + + if (key) { + if (typeof key === 'function') { + key = obj.$$hashKey(); + } + return key; + } + + var objType = typeof obj; + if (objType == 'function' || (objType == 'object' && obj !== null)) { + key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)(); + } else { + key = objType + ':' + obj; + } + + return key; +} + +/** + * HashMap which can use objects as keys + */ +function HashMap(array, isolatedUid) { + if (isolatedUid) { + var uid = 0; + this.nextUid = function() { + return ++uid; + }; + } + forEach(array, this.put, this); +} +HashMap.prototype = { + /** + * Store key value pair + * @param key key to store can be any type + * @param value value to store can be any type + */ + put: function(key, value) { + this[hashKey(key, this.nextUid)] = value; + }, + + /** + * @param key + * @returns {Object} the value for the key + */ + get: function(key) { + return this[hashKey(key, this.nextUid)]; + }, + + /** + * Remove the key/value pair + * @param key + */ + remove: function(key) { + var value = this[key = hashKey(key, this.nextUid)]; + delete this[key]; + return value; + } +}; + +var $$HashMapProvider = [function() { + this.$get = [function() { + return HashMap; + }]; +}]; + +/** + * @ngdoc function + * @module ng + * @name angular.injector + * @kind function + * + * @description + * Creates an injector object that can be used for retrieving services as well as for + * dependency injection (see {@link guide/di dependency injection}). + * + * @param {Array.} modules A list of module functions or their aliases. See + * {@link angular.module}. The `ng` module must be explicitly added. + * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which + * disallows argument name annotation inference. + * @returns {injector} Injector object. See {@link auto.$injector $injector}. + * + * @example + * Typical usage + * ```js + * // create an injector + * var $injector = angular.injector(['ng']); + * + * // use the injector to kick off your application + * // use the type inference to auto inject arguments, or use implicit injection + * $injector.invoke(function($rootScope, $compile, $document) { + * $compile($document)($rootScope); + * $rootScope.$digest(); + * }); + * ``` + * + * Sometimes you want to get access to the injector of a currently running Angular app + * from outside Angular. Perhaps, you want to inject and compile some markup after the + * application has been bootstrapped. You can do this using the extra `injector()` added + * to JQuery/jqLite elements. See {@link angular.element}. + * + * *This is fairly rare but could be the case if a third party library is injecting the + * markup.* + * + * In the following example a new block of HTML containing a `ng-controller` + * directive is added to the end of the document body by JQuery. We then compile and link + * it into the current AngularJS scope. + * + * ```js + * var $div = $('
{{content.label}}
'); + * $(document.body).append($div); + * + * angular.element(document).injector().invoke(function($compile) { + * var scope = angular.element($div).scope(); + * $compile($div)(scope); + * }); + * ``` + */ + + +/** + * @ngdoc module + * @name auto + * @description + * + * Implicit module which gets automatically added to each {@link auto.$injector $injector}. + */ + +var FN_ARGS = /^[^\(]*\(\s*([^\)]*)\)/m; +var FN_ARG_SPLIT = /,/; +var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/; +var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; +var $injectorMinErr = minErr('$injector'); + +function anonFn(fn) { + // For anonymous functions, showing at the very least the function signature can help in + // debugging. + var fnText = fn.toString().replace(STRIP_COMMENTS, ''), + args = fnText.match(FN_ARGS); + if (args) { + return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')'; + } + return 'fn'; +} + +function annotate(fn, strictDi, name) { + var $inject, + fnText, + argDecl, + last; + + if (typeof fn === 'function') { + if (!($inject = fn.$inject)) { + $inject = []; + if (fn.length) { + if (strictDi) { + if (!isString(name) || !name) { + name = fn.name || anonFn(fn); + } + throw $injectorMinErr('strictdi', + '{0} is not using explicit annotation and cannot be invoked in strict mode', name); + } + fnText = fn.toString().replace(STRIP_COMMENTS, ''); + argDecl = fnText.match(FN_ARGS); + forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) { + arg.replace(FN_ARG, function(all, underscore, name) { + $inject.push(name); + }); + }); + } + fn.$inject = $inject; + } + } else if (isArray(fn)) { + last = fn.length - 1; + assertArgFn(fn[last], 'fn'); + $inject = fn.slice(0, last); + } else { + assertArgFn(fn, 'fn', true); + } + return $inject; +} + +/////////////////////////////////////// + +/** + * @ngdoc service + * @name $injector + * + * @description + * + * `$injector` is used to retrieve object instances as defined by + * {@link auto.$provide provider}, instantiate types, invoke methods, + * and load modules. + * + * The following always holds true: + * + * ```js + * var $injector = angular.injector(); + * expect($injector.get('$injector')).toBe($injector); + * expect($injector.invoke(function($injector) { + * return $injector; + * })).toBe($injector); + * ``` + * + * # Injection Function Annotation + * + * JavaScript does not have annotations, and annotations are needed for dependency injection. The + * following are all valid ways of annotating function with injection arguments and are equivalent. + * + * ```js + * // inferred (only works if code not minified/obfuscated) + * $injector.invoke(function(serviceA){}); + * + * // annotated + * function explicit(serviceA) {}; + * explicit.$inject = ['serviceA']; + * $injector.invoke(explicit); + * + * // inline + * $injector.invoke(['serviceA', function(serviceA){}]); + * ``` + * + * ## Inference + * + * In JavaScript calling `toString()` on a function returns the function definition. The definition + * can then be parsed and the function arguments can be extracted. This method of discovering + * annotations is disallowed when the injector is in strict mode. + * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the + * argument names. + * + * ## `$inject` Annotation + * By adding an `$inject` property onto a function the injection parameters can be specified. + * + * ## Inline + * As an array of injection names, where the last item in the array is the function to call. + */ + +/** + * @ngdoc method + * @name $injector#get + * + * @description + * Return an instance of the service. + * + * @param {string} name The name of the instance to retrieve. + * @param {string=} caller An optional string to provide the origin of the function call for error messages. + * @return {*} The instance. + */ + +/** + * @ngdoc method + * @name $injector#invoke + * + * @description + * Invoke the method and supply the method arguments from the `$injector`. + * + * @param {Function|Array.} fn The injectable function to invoke. Function parameters are + * injected according to the {@link guide/di $inject Annotation} rules. + * @param {Object=} self The `this` for the invoked method. + * @param {Object=} locals Optional object. If preset then any argument names are read from this + * object first, before the `$injector` is consulted. + * @returns {*} the value returned by the invoked `fn` function. + */ + +/** + * @ngdoc method + * @name $injector#has + * + * @description + * Allows the user to query if the particular service exists. + * + * @param {string} name Name of the service to query. + * @returns {boolean} `true` if injector has given service. + */ + +/** + * @ngdoc method + * @name $injector#instantiate + * @description + * Create a new instance of JS type. The method takes a constructor function, invokes the new + * operator, and supplies all of the arguments to the constructor function as specified by the + * constructor annotation. + * + * @param {Function} Type Annotated constructor function. + * @param {Object=} locals Optional object. If preset then any argument names are read from this + * object first, before the `$injector` is consulted. + * @returns {Object} new instance of `Type`. + */ + +/** + * @ngdoc method + * @name $injector#annotate + * + * @description + * Returns an array of service names which the function is requesting for injection. This API is + * used by the injector to determine which services need to be injected into the function when the + * function is invoked. There are three ways in which the function can be annotated with the needed + * dependencies. + * + * # Argument names + * + * The simplest form is to extract the dependencies from the arguments of the function. This is done + * by converting the function into a string using `toString()` method and extracting the argument + * names. + * ```js + * // Given + * function MyController($scope, $route) { + * // ... + * } + * + * // Then + * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']); + * ``` + * + * You can disallow this method by using strict injection mode. + * + * This method does not work with code minification / obfuscation. For this reason the following + * annotation strategies are supported. + * + * # The `$inject` property + * + * If a function has an `$inject` property and its value is an array of strings, then the strings + * represent names of services to be injected into the function. + * ```js + * // Given + * var MyController = function(obfuscatedScope, obfuscatedRoute) { + * // ... + * } + * // Define function dependencies + * MyController['$inject'] = ['$scope', '$route']; + * + * // Then + * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']); + * ``` + * + * # The array notation + * + * It is often desirable to inline Injected functions and that's when setting the `$inject` property + * is very inconvenient. In these situations using the array notation to specify the dependencies in + * a way that survives minification is a better choice: + * + * ```js + * // We wish to write this (not minification / obfuscation safe) + * injector.invoke(function($compile, $rootScope) { + * // ... + * }); + * + * // We are forced to write break inlining + * var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) { + * // ... + * }; + * tmpFn.$inject = ['$compile', '$rootScope']; + * injector.invoke(tmpFn); + * + * // To better support inline function the inline annotation is supported + * injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) { + * // ... + * }]); + * + * // Therefore + * expect(injector.annotate( + * ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}]) + * ).toEqual(['$compile', '$rootScope']); + * ``` + * + * @param {Function|Array.} fn Function for which dependent service names need to + * be retrieved as described above. + * + * @param {boolean=} [strictDi=false] Disallow argument name annotation inference. + * + * @returns {Array.} The names of the services which the function requires. + */ + + + + +/** + * @ngdoc service + * @name $provide + * + * @description + * + * The {@link auto.$provide $provide} service has a number of methods for registering components + * with the {@link auto.$injector $injector}. Many of these functions are also exposed on + * {@link angular.Module}. + * + * An Angular **service** is a singleton object created by a **service factory**. These **service + * factories** are functions which, in turn, are created by a **service provider**. + * The **service providers** are constructor functions. When instantiated they must contain a + * property called `$get`, which holds the **service factory** function. + * + * When you request a service, the {@link auto.$injector $injector} is responsible for finding the + * correct **service provider**, instantiating it and then calling its `$get` **service factory** + * function to get the instance of the **service**. + * + * Often services have no configuration options and there is no need to add methods to the service + * provider. The provider will be no more than a constructor function with a `$get` property. For + * these cases the {@link auto.$provide $provide} service has additional helper methods to register + * services without specifying a provider. + * + * * {@link auto.$provide#provider provider(provider)} - registers a **service provider** with the + * {@link auto.$injector $injector} + * * {@link auto.$provide#constant constant(obj)} - registers a value/object that can be accessed by + * providers and services. + * * {@link auto.$provide#value value(obj)} - registers a value/object that can only be accessed by + * services, not providers. + * * {@link auto.$provide#factory factory(fn)} - registers a service **factory function**, `fn`, + * that will be wrapped in a **service provider** object, whose `$get` property will contain the + * given factory function. + * * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class` + * that will be wrapped in a **service provider** object, whose `$get` property will instantiate + * a new object using the given constructor function. + * + * See the individual methods for more information and examples. + */ + +/** + * @ngdoc method + * @name $provide#provider + * @description + * + * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions + * are constructor functions, whose instances are responsible for "providing" a factory for a + * service. + * + * Service provider names start with the name of the service they provide followed by `Provider`. + * For example, the {@link ng.$log $log} service has a provider called + * {@link ng.$logProvider $logProvider}. + * + * Service provider objects can have additional methods which allow configuration of the provider + * and its service. Importantly, you can configure what kind of service is created by the `$get` + * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a + * method {@link ng.$logProvider#debugEnabled debugEnabled} + * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the + * console or not. + * + * @param {string} name The name of the instance. NOTE: the provider will be available under `name + + 'Provider'` key. + * @param {(Object|function())} provider If the provider is: + * + * - `Object`: then it should have a `$get` method. The `$get` method will be invoked using + * {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created. + * - `Constructor`: a new instance of the provider will be created using + * {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`. + * + * @returns {Object} registered provider instance + + * @example + * + * The following example shows how to create a simple event tracking service and register it using + * {@link auto.$provide#provider $provide.provider()}. + * + * ```js + * // Define the eventTracker provider + * function EventTrackerProvider() { + * var trackingUrl = '/track'; + * + * // A provider method for configuring where the tracked events should been saved + * this.setTrackingUrl = function(url) { + * trackingUrl = url; + * }; + * + * // The service factory function + * this.$get = ['$http', function($http) { + * var trackedEvents = {}; + * return { + * // Call this to track an event + * event: function(event) { + * var count = trackedEvents[event] || 0; + * count += 1; + * trackedEvents[event] = count; + * return count; + * }, + * // Call this to save the tracked events to the trackingUrl + * save: function() { + * $http.post(trackingUrl, trackedEvents); + * } + * }; + * }]; + * } + * + * describe('eventTracker', function() { + * var postSpy; + * + * beforeEach(module(function($provide) { + * // Register the eventTracker provider + * $provide.provider('eventTracker', EventTrackerProvider); + * })); + * + * beforeEach(module(function(eventTrackerProvider) { + * // Configure eventTracker provider + * eventTrackerProvider.setTrackingUrl('/custom-track'); + * })); + * + * it('tracks events', inject(function(eventTracker) { + * expect(eventTracker.event('login')).toEqual(1); + * expect(eventTracker.event('login')).toEqual(2); + * })); + * + * it('saves to the tracking url', inject(function(eventTracker, $http) { + * postSpy = spyOn($http, 'post'); + * eventTracker.event('login'); + * eventTracker.save(); + * expect(postSpy).toHaveBeenCalled(); + * expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track'); + * expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track'); + * expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 }); + * })); + * }); + * ``` + */ + +/** + * @ngdoc method + * @name $provide#factory + * @description + * + * Register a **service factory**, which will be called to return the service instance. + * This is short for registering a service where its provider consists of only a `$get` property, + * which is the given service factory function. + * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to + * configure your service in a provider. + * + * @param {string} name The name of the instance. + * @param {Function|Array.} $getFn The injectable $getFn for the instance creation. + * Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`. + * @returns {Object} registered provider instance + * + * @example + * Here is an example of registering a service + * ```js + * $provide.factory('ping', ['$http', function($http) { + * return function ping() { + * return $http.send('/ping'); + * }; + * }]); + * ``` + * You would then inject and use this service like this: + * ```js + * someModule.controller('Ctrl', ['ping', function(ping) { + * ping(); + * }]); + * ``` + */ + + +/** + * @ngdoc method + * @name $provide#service + * @description + * + * Register a **service constructor**, which will be invoked with `new` to create the service + * instance. + * This is short for registering a service where its provider's `$get` property is the service + * constructor function that will be used to instantiate the service instance. + * + * You should use {@link auto.$provide#service $provide.service(class)} if you define your service + * as a type/class. + * + * @param {string} name The name of the instance. + * @param {Function|Array.} constructor An injectable class (constructor function) + * that will be instantiated. + * @returns {Object} registered provider instance + * + * @example + * Here is an example of registering a service using + * {@link auto.$provide#service $provide.service(class)}. + * ```js + * var Ping = function($http) { + * this.$http = $http; + * }; + * + * Ping.$inject = ['$http']; + * + * Ping.prototype.send = function() { + * return this.$http.get('/ping'); + * }; + * $provide.service('ping', Ping); + * ``` + * You would then inject and use this service like this: + * ```js + * someModule.controller('Ctrl', ['ping', function(ping) { + * ping.send(); + * }]); + * ``` + */ + + +/** + * @ngdoc method + * @name $provide#value + * @description + * + * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a + * number, an array, an object or a function. This is short for registering a service where its + * provider's `$get` property is a factory function that takes no arguments and returns the **value + * service**. + * + * Value services are similar to constant services, except that they cannot be injected into a + * module configuration function (see {@link angular.Module#config}) but they can be overridden by + * an Angular + * {@link auto.$provide#decorator decorator}. + * + * @param {string} name The name of the instance. + * @param {*} value The value. + * @returns {Object} registered provider instance + * + * @example + * Here are some examples of creating value services. + * ```js + * $provide.value('ADMIN_USER', 'admin'); + * + * $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 }); + * + * $provide.value('halfOf', function(value) { + * return value / 2; + * }); + * ``` + */ + + +/** + * @ngdoc method + * @name $provide#constant + * @description + * + * Register a **constant service**, such as a string, a number, an array, an object or a function, + * with the {@link auto.$injector $injector}. Unlike {@link auto.$provide#value value} it can be + * injected into a module configuration function (see {@link angular.Module#config}) and it cannot + * be overridden by an Angular {@link auto.$provide#decorator decorator}. + * + * @param {string} name The name of the constant. + * @param {*} value The constant value. + * @returns {Object} registered instance + * + * @example + * Here a some examples of creating constants: + * ```js + * $provide.constant('SHARD_HEIGHT', 306); + * + * $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']); + * + * $provide.constant('double', function(value) { + * return value * 2; + * }); + * ``` + */ + + +/** + * @ngdoc method + * @name $provide#decorator + * @description + * + * Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator + * intercepts the creation of a service, allowing it to override or modify the behaviour of the + * service. The object returned by the decorator may be the original service, or a new service + * object which replaces or wraps and delegates to the original service. + * + * @param {string} name The name of the service to decorate. + * @param {Function|Array.} decorator This function will be invoked when the service needs to be + * instantiated and should return the decorated service instance. The function is called using + * the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable. + * Local injection arguments: + * + * * `$delegate` - The original service instance, which can be monkey patched, configured, + * decorated or delegated to. + * + * @example + * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting + * calls to {@link ng.$log#error $log.warn()}. + * ```js + * $provide.decorator('$log', ['$delegate', function($delegate) { + * $delegate.warn = $delegate.error; + * return $delegate; + * }]); + * ``` + */ + + +function createInjector(modulesToLoad, strictDi) { + strictDi = (strictDi === true); + var INSTANTIATING = {}, + providerSuffix = 'Provider', + path = [], + loadedModules = new HashMap([], true), + providerCache = { + $provide: { + provider: supportObject(provider), + factory: supportObject(factory), + service: supportObject(service), + value: supportObject(value), + constant: supportObject(constant), + decorator: decorator + } + }, + providerInjector = (providerCache.$injector = + createInternalInjector(providerCache, function(serviceName, caller) { + if (angular.isString(caller)) { + path.push(caller); + } + throw $injectorMinErr('unpr', "Unknown provider: {0}", path.join(' <- ')); + })), + instanceCache = {}, + instanceInjector = (instanceCache.$injector = + createInternalInjector(instanceCache, function(serviceName, caller) { + var provider = providerInjector.get(serviceName + providerSuffix, caller); + return instanceInjector.invoke(provider.$get, provider, undefined, serviceName); + })); + + + forEach(loadModules(modulesToLoad), function(fn) { if (fn) instanceInjector.invoke(fn); }); + + return instanceInjector; + + //////////////////////////////////// + // $provider + //////////////////////////////////// + + function supportObject(delegate) { + return function(key, value) { + if (isObject(key)) { + forEach(key, reverseParams(delegate)); + } else { + return delegate(key, value); + } + }; + } + + function provider(name, provider_) { + assertNotHasOwnProperty(name, 'service'); + if (isFunction(provider_) || isArray(provider_)) { + provider_ = providerInjector.instantiate(provider_); + } + if (!provider_.$get) { + throw $injectorMinErr('pget', "Provider '{0}' must define $get factory method.", name); + } + return providerCache[name + providerSuffix] = provider_; + } + + function enforceReturnValue(name, factory) { + return function enforcedReturnValue() { + var result = instanceInjector.invoke(factory, this); + if (isUndefined(result)) { + throw $injectorMinErr('undef', "Provider '{0}' must return a value from $get factory method.", name); + } + return result; + }; + } + + function factory(name, factoryFn, enforce) { + return provider(name, { + $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn + }); + } + + function service(name, constructor) { + return factory(name, ['$injector', function($injector) { + return $injector.instantiate(constructor); + }]); + } + + function value(name, val) { return factory(name, valueFn(val), false); } + + function constant(name, value) { + assertNotHasOwnProperty(name, 'constant'); + providerCache[name] = value; + instanceCache[name] = value; + } + + function decorator(serviceName, decorFn) { + var origProvider = providerInjector.get(serviceName + providerSuffix), + orig$get = origProvider.$get; + + origProvider.$get = function() { + var origInstance = instanceInjector.invoke(orig$get, origProvider); + return instanceInjector.invoke(decorFn, null, {$delegate: origInstance}); + }; + } + + //////////////////////////////////// + // Module Loading + //////////////////////////////////// + function loadModules(modulesToLoad) { + assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array'); + var runBlocks = [], moduleFn; + forEach(modulesToLoad, function(module) { + if (loadedModules.get(module)) return; + loadedModules.put(module, true); + + function runInvokeQueue(queue) { + var i, ii; + for (i = 0, ii = queue.length; i < ii; i++) { + var invokeArgs = queue[i], + provider = providerInjector.get(invokeArgs[0]); + + provider[invokeArgs[1]].apply(provider, invokeArgs[2]); + } + } + + try { + if (isString(module)) { + moduleFn = angularModule(module); + runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks); + runInvokeQueue(moduleFn._invokeQueue); + runInvokeQueue(moduleFn._configBlocks); + } else if (isFunction(module)) { + runBlocks.push(providerInjector.invoke(module)); + } else if (isArray(module)) { + runBlocks.push(providerInjector.invoke(module)); + } else { + assertArgFn(module, 'module'); + } + } catch (e) { + if (isArray(module)) { + module = module[module.length - 1]; + } + if (e.message && e.stack && e.stack.indexOf(e.message) == -1) { + // Safari & FF's stack traces don't contain error.message content + // unlike those of Chrome and IE + // So if stack doesn't contain message, we create a new string that contains both. + // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here. + /* jshint -W022 */ + e = e.message + '\n' + e.stack; + } + throw $injectorMinErr('modulerr', "Failed to instantiate module {0} due to:\n{1}", + module, e.stack || e.message || e); + } + }); + return runBlocks; + } + + //////////////////////////////////// + // internal Injector + //////////////////////////////////// + + function createInternalInjector(cache, factory) { + + function getService(serviceName, caller) { + if (cache.hasOwnProperty(serviceName)) { + if (cache[serviceName] === INSTANTIATING) { + throw $injectorMinErr('cdep', 'Circular dependency found: {0}', + serviceName + ' <- ' + path.join(' <- ')); + } + return cache[serviceName]; + } else { + try { + path.unshift(serviceName); + cache[serviceName] = INSTANTIATING; + return cache[serviceName] = factory(serviceName, caller); + } catch (err) { + if (cache[serviceName] === INSTANTIATING) { + delete cache[serviceName]; + } + throw err; + } finally { + path.shift(); + } + } + } + + function invoke(fn, self, locals, serviceName) { + if (typeof locals === 'string') { + serviceName = locals; + locals = null; + } + + var args = [], + $inject = createInjector.$$annotate(fn, strictDi, serviceName), + length, i, + key; + + for (i = 0, length = $inject.length; i < length; i++) { + key = $inject[i]; + if (typeof key !== 'string') { + throw $injectorMinErr('itkn', + 'Incorrect injection token! Expected service name as string, got {0}', key); + } + args.push( + locals && locals.hasOwnProperty(key) + ? locals[key] + : getService(key, serviceName) + ); + } + if (isArray(fn)) { + fn = fn[length]; + } + + // http://jsperf.com/angularjs-invoke-apply-vs-switch + // #5388 + return fn.apply(self, args); + } + + function instantiate(Type, locals, serviceName) { + // Check if Type is annotated and use just the given function at n-1 as parameter + // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]); + // Object creation: http://jsperf.com/create-constructor/2 + var instance = Object.create((isArray(Type) ? Type[Type.length - 1] : Type).prototype || null); + var returnedValue = invoke(Type, instance, locals, serviceName); + + return isObject(returnedValue) || isFunction(returnedValue) ? returnedValue : instance; + } + + return { + invoke: invoke, + instantiate: instantiate, + get: getService, + annotate: createInjector.$$annotate, + has: function(name) { + return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name); + } + }; + } +} + +createInjector.$$annotate = annotate; + +/** + * @ngdoc provider + * @name $anchorScrollProvider + * + * @description + * Use `$anchorScrollProvider` to disable automatic scrolling whenever + * {@link ng.$location#hash $location.hash()} changes. + */ +function $AnchorScrollProvider() { + + var autoScrollingEnabled = true; + + /** + * @ngdoc method + * @name $anchorScrollProvider#disableAutoScrolling + * + * @description + * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to + * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.
+ * Use this method to disable automatic scrolling. + * + * If automatic scrolling is disabled, one must explicitly call + * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the + * current hash. + */ + this.disableAutoScrolling = function() { + autoScrollingEnabled = false; + }; + + /** + * @ngdoc service + * @name $anchorScroll + * @kind function + * @requires $window + * @requires $location + * @requires $rootScope + * + * @description + * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the + * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified + * in the + * [HTML5 spec](http://dev.w3.org/html5/spec/Overview.html#the-indicated-part-of-the-document). + * + * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to + * match any anchor whenever it changes. This can be disabled by calling + * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}. + * + * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a + * vertical scroll-offset (either fixed or dynamic). + * + * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of + * {@link ng.$location#hash $location.hash()} will be used. + * + * @property {(number|function|jqLite)} yOffset + * If set, specifies a vertical scroll-offset. This is often useful when there are fixed + * positioned elements at the top of the page, such as navbars, headers etc. + * + * `yOffset` can be specified in various ways: + * - **number**: A fixed number of pixels to be used as offset.

+ * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return + * a number representing the offset (in pixels).

+ * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from + * the top of the page to the element's bottom will be used as offset.
+ * **Note**: The element will be taken into account only as long as its `position` is set to + * `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust + * their height and/or positioning according to the viewport's size. + * + *
+ *
+ * In order for `yOffset` to work properly, scrolling should take place on the document's root and + * not some child element. + *
+ * + * @example + + +
+ Go to bottom + You're at the bottom! +
+
+ + angular.module('anchorScrollExample', []) + .controller('ScrollController', ['$scope', '$location', '$anchorScroll', + function ($scope, $location, $anchorScroll) { + $scope.gotoBottom = function() { + // set the location.hash to the id of + // the element you wish to scroll to. + $location.hash('bottom'); + + // call $anchorScroll() + $anchorScroll(); + }; + }]); + + + #scrollArea { + height: 280px; + overflow: auto; + } + + #bottom { + display: block; + margin-top: 2000px; + } + +
+ * + *
+ * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value). + * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details. + * + * @example + + + +
+ Anchor {{x}} of 5 +
+
+ + angular.module('anchorScrollOffsetExample', []) + .run(['$anchorScroll', function($anchorScroll) { + $anchorScroll.yOffset = 50; // always scroll by 50 extra pixels + }]) + .controller('headerCtrl', ['$anchorScroll', '$location', '$scope', + function ($anchorScroll, $location, $scope) { + $scope.gotoAnchor = function(x) { + var newHash = 'anchor' + x; + if ($location.hash() !== newHash) { + // set the $location.hash to `newHash` and + // $anchorScroll will automatically scroll to it + $location.hash('anchor' + x); + } else { + // call $anchorScroll() explicitly, + // since $location.hash hasn't changed + $anchorScroll(); + } + }; + } + ]); + + + body { + padding-top: 50px; + } + + .anchor { + border: 2px dashed DarkOrchid; + padding: 10px 10px 200px 10px; + } + + .fixed-header { + background-color: rgba(0, 0, 0, 0.2); + height: 50px; + position: fixed; + top: 0; left: 0; right: 0; + } + + .fixed-header > a { + display: inline-block; + margin: 5px 15px; + } + +
+ */ + this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) { + var document = $window.document; + + // Helper function to get first anchor from a NodeList + // (using `Array#some()` instead of `angular#forEach()` since it's more performant + // and working in all supported browsers.) + function getFirstAnchor(list) { + var result = null; + Array.prototype.some.call(list, function(element) { + if (nodeName_(element) === 'a') { + result = element; + return true; + } + }); + return result; + } + + function getYOffset() { + + var offset = scroll.yOffset; + + if (isFunction(offset)) { + offset = offset(); + } else if (isElement(offset)) { + var elem = offset[0]; + var style = $window.getComputedStyle(elem); + if (style.position !== 'fixed') { + offset = 0; + } else { + offset = elem.getBoundingClientRect().bottom; + } + } else if (!isNumber(offset)) { + offset = 0; + } + + return offset; + } + + function scrollTo(elem) { + if (elem) { + elem.scrollIntoView(); + + var offset = getYOffset(); + + if (offset) { + // `offset` is the number of pixels we should scroll UP in order to align `elem` properly. + // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the + // top of the viewport. + // + // IF the number of pixels from the top of `elem` to the end of the page's content is less + // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some + // way down the page. + // + // This is often the case for elements near the bottom of the page. + // + // In such cases we do not need to scroll the whole `offset` up, just the difference between + // the top of the element and the offset, which is enough to align the top of `elem` at the + // desired position. + var elemTop = elem.getBoundingClientRect().top; + $window.scrollBy(0, elemTop - offset); + } + } else { + $window.scrollTo(0, 0); + } + } + + function scroll(hash) { + hash = isString(hash) ? hash : $location.hash(); + var elm; + + // empty hash, scroll to the top of the page + if (!hash) scrollTo(null); + + // element with given id + else if ((elm = document.getElementById(hash))) scrollTo(elm); + + // first anchor with given name :-D + else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm); + + // no element and hash == 'top', scroll to the top of the page + else if (hash === 'top') scrollTo(null); + } + + // does not scroll when user clicks on anchor link that is currently on + // (no url change, no $location.hash() change), browser native does scroll + if (autoScrollingEnabled) { + $rootScope.$watch(function autoScrollWatch() {return $location.hash();}, + function autoScrollWatchAction(newVal, oldVal) { + // skip the initial scroll if $location.hash is empty + if (newVal === oldVal && newVal === '') return; + + jqLiteDocumentLoaded(function() { + $rootScope.$evalAsync(scroll); + }); + }); + } + + return scroll; + }]; +} + +var $animateMinErr = minErr('$animate'); +var ELEMENT_NODE = 1; +var NG_ANIMATE_CLASSNAME = 'ng-animate'; + +function mergeClasses(a,b) { + if (!a && !b) return ''; + if (!a) return b; + if (!b) return a; + if (isArray(a)) a = a.join(' '); + if (isArray(b)) b = b.join(' '); + return a + ' ' + b; +} + +function extractElementNode(element) { + for (var i = 0; i < element.length; i++) { + var elm = element[i]; + if (elm.nodeType === ELEMENT_NODE) { + return elm; + } + } +} + +function splitClasses(classes) { + if (isString(classes)) { + classes = classes.split(' '); + } + + // Use createMap() to prevent class assumptions involving property names in + // Object.prototype + var obj = createMap(); + forEach(classes, function(klass) { + // sometimes the split leaves empty string values + // incase extra spaces were applied to the options + if (klass.length) { + obj[klass] = true; + } + }); + return obj; +} + +// if any other type of options value besides an Object value is +// passed into the $animate.method() animation then this helper code +// will be run which will ignore it. While this patch is not the +// greatest solution to this, a lot of existing plugins depend on +// $animate to either call the callback (< 1.2) or return a promise +// that can be changed. This helper function ensures that the options +// are wiped clean incase a callback function is provided. +function prepareAnimateOptions(options) { + return isObject(options) + ? options + : {}; +} + +var $$CoreAnimateRunnerProvider = function() { + this.$get = ['$q', '$$rAF', function($q, $$rAF) { + function AnimateRunner() {} + AnimateRunner.all = noop; + AnimateRunner.chain = noop; + AnimateRunner.prototype = { + end: noop, + cancel: noop, + resume: noop, + pause: noop, + complete: noop, + then: function(pass, fail) { + return $q(function(resolve) { + $$rAF(function() { + resolve(); + }); + }).then(pass, fail); + } + }; + return AnimateRunner; + }]; +}; + +// this is prefixed with Core since it conflicts with +// the animateQueueProvider defined in ngAnimate/animateQueue.js +var $$CoreAnimateQueueProvider = function() { + var postDigestQueue = new HashMap(); + var postDigestElements = []; + + this.$get = ['$$AnimateRunner', '$rootScope', + function($$AnimateRunner, $rootScope) { + return { + enabled: noop, + on: noop, + off: noop, + pin: noop, + + push: function(element, event, options, domOperation) { + domOperation && domOperation(); + + options = options || {}; + options.from && element.css(options.from); + options.to && element.css(options.to); + + if (options.addClass || options.removeClass) { + addRemoveClassesPostDigest(element, options.addClass, options.removeClass); + } + + return new $$AnimateRunner(); // jshint ignore:line + } + }; + + + function updateData(data, classes, value) { + var changed = false; + if (classes) { + classes = isString(classes) ? classes.split(' ') : + isArray(classes) ? classes : []; + forEach(classes, function(className) { + if (className) { + changed = true; + data[className] = value; + } + }); + } + return changed; + } + + function handleCSSClassChanges() { + forEach(postDigestElements, function(element) { + var data = postDigestQueue.get(element); + if (data) { + var existing = splitClasses(element.attr('class')); + var toAdd = ''; + var toRemove = ''; + forEach(data, function(status, className) { + var hasClass = !!existing[className]; + if (status !== hasClass) { + if (status) { + toAdd += (toAdd.length ? ' ' : '') + className; + } else { + toRemove += (toRemove.length ? ' ' : '') + className; + } + } + }); + + forEach(element, function(elm) { + toAdd && jqLiteAddClass(elm, toAdd); + toRemove && jqLiteRemoveClass(elm, toRemove); + }); + postDigestQueue.remove(element); + } + }); + postDigestElements.length = 0; + } + + + function addRemoveClassesPostDigest(element, add, remove) { + var data = postDigestQueue.get(element) || {}; + + var classesAdded = updateData(data, add, true); + var classesRemoved = updateData(data, remove, false); + + if (classesAdded || classesRemoved) { + + postDigestQueue.put(element, data); + postDigestElements.push(element); + + if (postDigestElements.length === 1) { + $rootScope.$$postDigest(handleCSSClassChanges); + } + } + } + }]; +}; + +/** + * @ngdoc provider + * @name $animateProvider + * + * @description + * Default implementation of $animate that doesn't perform any animations, instead just + * synchronously performs DOM updates and resolves the returned runner promise. + * + * In order to enable animations the `ngAnimate` module has to be loaded. + * + * To see the functional implementation check out `src/ngAnimate/animate.js`. + */ +var $AnimateProvider = ['$provide', function($provide) { + var provider = this; + + this.$$registeredAnimations = Object.create(null); + + /** + * @ngdoc method + * @name $animateProvider#register + * + * @description + * Registers a new injectable animation factory function. The factory function produces the + * animation object which contains callback functions for each event that is expected to be + * animated. + * + * * `eventFn`: `function(element, ... , doneFunction, options)` + * The element to animate, the `doneFunction` and the options fed into the animation. Depending + * on the type of animation additional arguments will be injected into the animation function. The + * list below explains the function signatures for the different animation methods: + * + * - setClass: function(element, addedClasses, removedClasses, doneFunction, options) + * - addClass: function(element, addedClasses, doneFunction, options) + * - removeClass: function(element, removedClasses, doneFunction, options) + * - enter, leave, move: function(element, doneFunction, options) + * - animate: function(element, fromStyles, toStyles, doneFunction, options) + * + * Make sure to trigger the `doneFunction` once the animation is fully complete. + * + * ```js + * return { + * //enter, leave, move signature + * eventFn : function(element, done, options) { + * //code to run the animation + * //once complete, then run done() + * return function endFunction(wasCancelled) { + * //code to cancel the animation + * } + * } + * } + * ``` + * + * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to). + * @param {Function} factory The factory function that will be executed to return the animation + * object. + */ + this.register = function(name, factory) { + if (name && name.charAt(0) !== '.') { + throw $animateMinErr('notcsel', "Expecting class selector starting with '.' got '{0}'.", name); + } + + var key = name + '-animation'; + provider.$$registeredAnimations[name.substr(1)] = key; + $provide.factory(key, factory); + }; + + /** + * @ngdoc method + * @name $animateProvider#classNameFilter + * + * @description + * Sets and/or returns the CSS class regular expression that is checked when performing + * an animation. Upon bootstrap the classNameFilter value is not set at all and will + * therefore enable $animate to attempt to perform an animation on any element that is triggered. + * When setting the `classNameFilter` value, animations will only be performed on elements + * that successfully match the filter expression. This in turn can boost performance + * for low-powered devices as well as applications containing a lot of structural operations. + * @param {RegExp=} expression The className expression which will be checked against all animations + * @return {RegExp} The current CSS className expression value. If null then there is no expression value + */ + this.classNameFilter = function(expression) { + if (arguments.length === 1) { + this.$$classNameFilter = (expression instanceof RegExp) ? expression : null; + if (this.$$classNameFilter) { + var reservedRegex = new RegExp("(\\s+|\\/)" + NG_ANIMATE_CLASSNAME + "(\\s+|\\/)"); + if (reservedRegex.test(this.$$classNameFilter.toString())) { + throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.', NG_ANIMATE_CLASSNAME); + + } + } + } + return this.$$classNameFilter; + }; + + this.$get = ['$$animateQueue', function($$animateQueue) { + function domInsert(element, parentElement, afterElement) { + // if for some reason the previous element was removed + // from the dom sometime before this code runs then let's + // just stick to using the parent element as the anchor + if (afterElement) { + var afterNode = extractElementNode(afterElement); + if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) { + afterElement = null; + } + } + afterElement ? afterElement.after(element) : parentElement.prepend(element); + } + + /** + * @ngdoc service + * @name $animate + * @description The $animate service exposes a series of DOM utility methods that provide support + * for animation hooks. The default behavior is the application of DOM operations, however, + * when an animation is detected (and animations are enabled), $animate will do the heavy lifting + * to ensure that animation runs with the triggered DOM operation. + * + * By default $animate doesn't trigger an animations. This is because the `ngAnimate` module isn't + * included and only when it is active then the animation hooks that `$animate` triggers will be + * functional. Once active then all structural `ng-` directives will trigger animations as they perform + * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`, + * `ngShow`, `ngHide` and `ngMessages` also provide support for animations. + * + * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives. + * + * To learn more about enabling animation support, click here to visit the + * {@link ngAnimate ngAnimate module page}. + */ + return { + // we don't call it directly since non-existant arguments may + // be interpreted as null within the sub enabled function + + /** + * + * @ngdoc method + * @name $animate#on + * @kind function + * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...) + * has fired on the given element or among any of its children. Once the listener is fired, the provided callback + * is fired with the following params: + * + * ```js + * $animate.on('enter', container, + * function callback(element, phase) { + * // cool we detected an enter animation within the container + * } + * ); + * ``` + * + * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...) + * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself + * as well as among its children + * @param {Function} callback the callback function that will be fired when the listener is triggered + * + * The arguments present in the callback function are: + * * `element` - The captured DOM element that the animation was fired on. + * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends). + */ + on: $$animateQueue.on, + + /** + * + * @ngdoc method + * @name $animate#off + * @kind function + * @description Deregisters an event listener based on the event which has been associated with the provided element. This method + * can be used in three different ways depending on the arguments: + * + * ```js + * // remove all the animation event listeners listening for `enter` + * $animate.off('enter'); + * + * // remove all the animation event listeners listening for `enter` on the given element and its children + * $animate.off('enter', container); + * + * // remove the event listener function provided by `listenerFn` that is set + * // to listen for `enter` on the given `element` as well as its children + * $animate.off('enter', container, callback); + * ``` + * + * @param {string} event the animation event (e.g. enter, leave, move, addClass, removeClass, etc...) + * @param {DOMElement=} container the container element the event listener was placed on + * @param {Function=} callback the callback function that was registered as the listener + */ + off: $$animateQueue.off, + + /** + * @ngdoc method + * @name $animate#pin + * @kind function + * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists + * outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the + * element despite being outside the realm of the application or within another application. Say for example if the application + * was bootstrapped on an element that is somewhere inside of the `` tag, but we wanted to allow for an element to be situated + * as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind + * that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association. + * + * Note that this feature is only active when the `ngAnimate` module is used. + * + * @param {DOMElement} element the external element that will be pinned + * @param {DOMElement} parentElement the host parent element that will be associated with the external element + */ + pin: $$animateQueue.pin, + + /** + * + * @ngdoc method + * @name $animate#enabled + * @kind function + * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This + * function can be called in four ways: + * + * ```js + * // returns true or false + * $animate.enabled(); + * + * // changes the enabled state for all animations + * $animate.enabled(false); + * $animate.enabled(true); + * + * // returns true or false if animations are enabled for an element + * $animate.enabled(element); + * + * // changes the enabled state for an element and its children + * $animate.enabled(element, true); + * $animate.enabled(element, false); + * ``` + * + * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state + * @param {boolean=} enabled whether or not the animations will be enabled for the element + * + * @return {boolean} whether or not animations are enabled + */ + enabled: $$animateQueue.enabled, + + /** + * @ngdoc method + * @name $animate#cancel + * @kind function + * @description Cancels the provided animation. + * + * @param {Promise} animationPromise The animation promise that is returned when an animation is started. + */ + cancel: function(runner) { + runner.end && runner.end(); + }, + + /** + * + * @ngdoc method + * @name $animate#enter + * @kind function + * @description Inserts the element into the DOM either after the `after` element (if provided) or + * as the first child within the `parent` element and then triggers an animation. + * A promise is returned that will be resolved during the next digest once the animation + * has completed. + * + * @param {DOMElement} element the element which will be inserted into the DOM + * @param {DOMElement} parent the parent element which will append the element as + * a child (so long as the after element is not present) + * @param {DOMElement=} after the sibling element after which the element will be appended + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + enter: function(element, parent, after, options) { + parent = parent && jqLite(parent); + after = after && jqLite(after); + parent = parent || after.parent(); + domInsert(element, parent, after); + return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options)); + }, + + /** + * + * @ngdoc method + * @name $animate#move + * @kind function + * @description Inserts (moves) the element into its new position in the DOM either after + * the `after` element (if provided) or as the first child within the `parent` element + * and then triggers an animation. A promise is returned that will be resolved + * during the next digest once the animation has completed. + * + * @param {DOMElement} element the element which will be moved into the new DOM position + * @param {DOMElement} parent the parent element which will append the element as + * a child (so long as the after element is not present) + * @param {DOMElement=} after the sibling element after which the element will be appended + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + move: function(element, parent, after, options) { + parent = parent && jqLite(parent); + after = after && jqLite(after); + parent = parent || after.parent(); + domInsert(element, parent, after); + return $$animateQueue.push(element, 'move', prepareAnimateOptions(options)); + }, + + /** + * @ngdoc method + * @name $animate#leave + * @kind function + * @description Triggers an animation and then removes the element from the DOM. + * When the function is called a promise is returned that will be resolved during the next + * digest once the animation has completed. + * + * @param {DOMElement} element the element which will be removed from the DOM + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + leave: function(element, options) { + return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() { + element.remove(); + }); + }, + + /** + * @ngdoc method + * @name $animate#addClass + * @kind function + * + * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon + * execution, the addClass operation will only be handled after the next digest and it will not trigger an + * animation if element already contains the CSS class or if the class is removed at a later step. + * Note that class-based animations are treated differently compared to structural animations + * (like enter, move and leave) since the CSS classes may be added/removed at different points + * depending if CSS or JavaScript animations are used. + * + * @param {DOMElement} element the element which the CSS classes will be applied to + * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces) + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + addClass: function(element, className, options) { + options = prepareAnimateOptions(options); + options.addClass = mergeClasses(options.addclass, className); + return $$animateQueue.push(element, 'addClass', options); + }, + + /** + * @ngdoc method + * @name $animate#removeClass + * @kind function + * + * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon + * execution, the removeClass operation will only be handled after the next digest and it will not trigger an + * animation if element does not contain the CSS class or if the class is added at a later step. + * Note that class-based animations are treated differently compared to structural animations + * (like enter, move and leave) since the CSS classes may be added/removed at different points + * depending if CSS or JavaScript animations are used. + * + * @param {DOMElement} element the element which the CSS classes will be applied to + * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces) + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + removeClass: function(element, className, options) { + options = prepareAnimateOptions(options); + options.removeClass = mergeClasses(options.removeClass, className); + return $$animateQueue.push(element, 'removeClass', options); + }, + + /** + * @ngdoc method + * @name $animate#setClass + * @kind function + * + * @description Performs both the addition and removal of a CSS classes on an element and (during the process) + * triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and + * `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has + * passed. Note that class-based animations are treated differently compared to structural animations + * (like enter, move and leave) since the CSS classes may be added/removed at different points + * depending if CSS or JavaScript animations are used. + * + * @param {DOMElement} element the element which the CSS classes will be applied to + * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces) + * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces) + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + setClass: function(element, add, remove, options) { + options = prepareAnimateOptions(options); + options.addClass = mergeClasses(options.addClass, add); + options.removeClass = mergeClasses(options.removeClass, remove); + return $$animateQueue.push(element, 'setClass', options); + }, + + /** + * @ngdoc method + * @name $animate#animate + * @kind function + * + * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element. + * If any detected CSS transition, keyframe or JavaScript matches the provided className value then the animation will take + * on the provided styles. For example, if a transition animation is set for the given className then the provided from and + * to styles will be applied alongside the given transition. If a JavaScript animation is detected then the provided styles + * will be given in as function paramters into the `animate` method (or as apart of the `options` parameter). + * + * @param {DOMElement} element the element which the CSS styles will be applied to + * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation. + * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation. + * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If + * this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element. + * (Note that if no animation is detected then this value will not be appplied to the element.) + * @param {object=} options an optional collection of options/styles that will be applied to the element + * + * @return {Promise} the animation callback promise + */ + animate: function(element, from, to, className, options) { + options = prepareAnimateOptions(options); + options.from = options.from ? extend(options.from, from) : from; + options.to = options.to ? extend(options.to, to) : to; + + className = className || 'ng-inline-animate'; + options.tempClasses = mergeClasses(options.tempClasses, className); + return $$animateQueue.push(element, 'animate', options); + } + }; + }]; +}]; + +/** + * @ngdoc service + * @name $animateCss + * @kind object + * + * @description + * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included, + * then the `$animateCss` service will actually perform animations. + * + * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}. + */ +var $CoreAnimateCssProvider = function() { + this.$get = ['$$rAF', '$q', function($$rAF, $q) { + + var RAFPromise = function() {}; + RAFPromise.prototype = { + done: function(cancel) { + this.defer && this.defer[cancel === true ? 'reject' : 'resolve'](); + }, + end: function() { + this.done(); + }, + cancel: function() { + this.done(true); + }, + getPromise: function() { + if (!this.defer) { + this.defer = $q.defer(); + } + return this.defer.promise; + }, + then: function(f1,f2) { + return this.getPromise().then(f1,f2); + }, + 'catch': function(f1) { + return this.getPromise()['catch'](f1); + }, + 'finally': function(f1) { + return this.getPromise()['finally'](f1); + } + }; + + return function(element, options) { + // there is no point in applying the styles since + // there is no animation that goes on at all in + // this version of $animateCss. + if (options.cleanupStyles) { + options.from = options.to = null; + } + + if (options.from) { + element.css(options.from); + options.from = null; + } + + var closed, runner = new RAFPromise(); + return { + start: run, + end: run + }; + + function run() { + $$rAF(function() { + close(); + if (!closed) { + runner.done(); + } + closed = true; + }); + return runner; + } + + function close() { + if (options.addClass) { + element.addClass(options.addClass); + options.addClass = null; + } + if (options.removeClass) { + element.removeClass(options.removeClass); + options.removeClass = null; + } + if (options.to) { + element.css(options.to); + options.to = null; + } + } + }; + }]; +}; + +/* global stripHash: true */ + +/** + * ! This is a private undocumented service ! + * + * @name $browser + * @requires $log + * @description + * This object has two goals: + * + * - hide all the global state in the browser caused by the window object + * - abstract away all the browser specific features and inconsistencies + * + * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser` + * service, which can be used for convenient testing of the application without the interaction with + * the real browser apis. + */ +/** + * @param {object} window The global window object. + * @param {object} document jQuery wrapped document. + * @param {object} $log window.console or an object with the same interface. + * @param {object} $sniffer $sniffer service + */ +function Browser(window, document, $log, $sniffer) { + var self = this, + rawDocument = document[0], + location = window.location, + history = window.history, + setTimeout = window.setTimeout, + clearTimeout = window.clearTimeout, + pendingDeferIds = {}; + + self.isMock = false; + + var outstandingRequestCount = 0; + var outstandingRequestCallbacks = []; + + // TODO(vojta): remove this temporary api + self.$$completeOutstandingRequest = completeOutstandingRequest; + self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; }; + + /** + * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks` + * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed. + */ + function completeOutstandingRequest(fn) { + try { + fn.apply(null, sliceArgs(arguments, 1)); + } finally { + outstandingRequestCount--; + if (outstandingRequestCount === 0) { + while (outstandingRequestCallbacks.length) { + try { + outstandingRequestCallbacks.pop()(); + } catch (e) { + $log.error(e); + } + } + } + } + } + + function getHash(url) { + var index = url.indexOf('#'); + return index === -1 ? '' : url.substr(index); + } + + /** + * @private + * Note: this method is used only by scenario runner + * TODO(vojta): prefix this method with $$ ? + * @param {function()} callback Function that will be called when no outstanding request + */ + self.notifyWhenNoOutstandingRequests = function(callback) { + if (outstandingRequestCount === 0) { + callback(); + } else { + outstandingRequestCallbacks.push(callback); + } + }; + + ////////////////////////////////////////////////////////////// + // URL API + ////////////////////////////////////////////////////////////// + + var cachedState, lastHistoryState, + lastBrowserUrl = location.href, + baseElement = document.find('base'), + pendingLocation = null; + + cacheState(); + lastHistoryState = cachedState; + + /** + * @name $browser#url + * + * @description + * GETTER: + * Without any argument, this method just returns current value of location.href. + * + * SETTER: + * With at least one argument, this method sets url to new value. + * If html5 history api supported, pushState/replaceState is used, otherwise + * location.href/location.replace is used. + * Returns its own instance to allow chaining + * + * NOTE: this api is intended for use only by the $location service. Please use the + * {@link ng.$location $location service} to change url. + * + * @param {string} url New url (when used as setter) + * @param {boolean=} replace Should new url replace current history record? + * @param {object=} state object to use with pushState/replaceState + */ + self.url = function(url, replace, state) { + // In modern browsers `history.state` is `null` by default; treating it separately + // from `undefined` would cause `$browser.url('/foo')` to change `history.state` + // to undefined via `pushState`. Instead, let's change `undefined` to `null` here. + if (isUndefined(state)) { + state = null; + } + + // Android Browser BFCache causes location, history reference to become stale. + if (location !== window.location) location = window.location; + if (history !== window.history) history = window.history; + + // setter + if (url) { + var sameState = lastHistoryState === state; + + // Don't change anything if previous and current URLs and states match. This also prevents + // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode. + // See https://github.com/angular/angular.js/commit/ffb2701 + if (lastBrowserUrl === url && (!$sniffer.history || sameState)) { + return self; + } + var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url); + lastBrowserUrl = url; + lastHistoryState = state; + // Don't use history API if only the hash changed + // due to a bug in IE10/IE11 which leads + // to not firing a `hashchange` nor `popstate` event + // in some cases (see #9143). + if ($sniffer.history && (!sameBase || !sameState)) { + history[replace ? 'replaceState' : 'pushState'](state, '', url); + cacheState(); + // Do the assignment again so that those two variables are referentially identical. + lastHistoryState = cachedState; + } else { + if (!sameBase || pendingLocation) { + pendingLocation = url; + } + if (replace) { + location.replace(url); + } else if (!sameBase) { + location.href = url; + } else { + location.hash = getHash(url); + } + if (location.href !== url) { + pendingLocation = url; + } + } + return self; + // getter + } else { + // - pendingLocation is needed as browsers don't allow to read out + // the new location.href if a reload happened or if there is a bug like in iOS 9 (see + // https://openradar.appspot.com/22186109). + // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172 + return pendingLocation || location.href.replace(/%27/g,"'"); + } + }; + + /** + * @name $browser#state + * + * @description + * This method is a getter. + * + * Return history.state or null if history.state is undefined. + * + * @returns {object} state + */ + self.state = function() { + return cachedState; + }; + + var urlChangeListeners = [], + urlChangeInit = false; + + function cacheStateAndFireUrlChange() { + pendingLocation = null; + cacheState(); + fireUrlChange(); + } + + function getCurrentState() { + try { + return history.state; + } catch (e) { + // MSIE can reportedly throw when there is no state (UNCONFIRMED). + } + } + + // This variable should be used *only* inside the cacheState function. + var lastCachedState = null; + function cacheState() { + // This should be the only place in $browser where `history.state` is read. + cachedState = getCurrentState(); + cachedState = isUndefined(cachedState) ? null : cachedState; + + // Prevent callbacks fo fire twice if both hashchange & popstate were fired. + if (equals(cachedState, lastCachedState)) { + cachedState = lastCachedState; + } + lastCachedState = cachedState; + } + + function fireUrlChange() { + if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) { + return; + } + + lastBrowserUrl = self.url(); + lastHistoryState = cachedState; + forEach(urlChangeListeners, function(listener) { + listener(self.url(), cachedState); + }); + } + + /** + * @name $browser#onUrlChange + * + * @description + * Register callback function that will be called, when url changes. + * + * It's only called when the url is changed from outside of angular: + * - user types different url into address bar + * - user clicks on history (forward/back) button + * - user clicks on a link + * + * It's not called when url is changed by $browser.url() method + * + * The listener gets called with new url as parameter. + * + * NOTE: this api is intended for use only by the $location service. Please use the + * {@link ng.$location $location service} to monitor url changes in angular apps. + * + * @param {function(string)} listener Listener function to be called when url changes. + * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous. + */ + self.onUrlChange = function(callback) { + // TODO(vojta): refactor to use node's syntax for events + if (!urlChangeInit) { + // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera) + // don't fire popstate when user change the address bar and don't fire hashchange when url + // changed by push/replaceState + + // html5 history api - popstate event + if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange); + // hashchange event + jqLite(window).on('hashchange', cacheStateAndFireUrlChange); + + urlChangeInit = true; + } + + urlChangeListeners.push(callback); + return callback; + }; + + /** + * @private + * Remove popstate and hashchange handler from window. + * + * NOTE: this api is intended for use only by $rootScope. + */ + self.$$applicationDestroyed = function() { + jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange); + }; + + /** + * Checks whether the url has changed outside of Angular. + * Needs to be exported to be able to check for changes that have been done in sync, + * as hashchange/popstate events fire in async. + */ + self.$$checkUrlChange = fireUrlChange; + + ////////////////////////////////////////////////////////////// + // Misc API + ////////////////////////////////////////////////////////////// + + /** + * @name $browser#baseHref + * + * @description + * Returns current + * (always relative - without domain) + * + * @returns {string} The current base href + */ + self.baseHref = function() { + var href = baseElement.attr('href'); + return href ? href.replace(/^(https?\:)?\/\/[^\/]*/, '') : ''; + }; + + /** + * @name $browser#defer + * @param {function()} fn A function, who's execution should be deferred. + * @param {number=} [delay=0] of milliseconds to defer the function execution. + * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`. + * + * @description + * Executes a fn asynchronously via `setTimeout(fn, delay)`. + * + * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using + * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed + * via `$browser.defer.flush()`. + * + */ + self.defer = function(fn, delay) { + var timeoutId; + outstandingRequestCount++; + timeoutId = setTimeout(function() { + delete pendingDeferIds[timeoutId]; + completeOutstandingRequest(fn); + }, delay || 0); + pendingDeferIds[timeoutId] = true; + return timeoutId; + }; + + + /** + * @name $browser#defer.cancel + * + * @description + * Cancels a deferred task identified with `deferId`. + * + * @param {*} deferId Token returned by the `$browser.defer` function. + * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully + * canceled. + */ + self.defer.cancel = function(deferId) { + if (pendingDeferIds[deferId]) { + delete pendingDeferIds[deferId]; + clearTimeout(deferId); + completeOutstandingRequest(noop); + return true; + } + return false; + }; + +} + +function $BrowserProvider() { + this.$get = ['$window', '$log', '$sniffer', '$document', + function($window, $log, $sniffer, $document) { + return new Browser($window, $document, $log, $sniffer); + }]; +} + +/** + * @ngdoc service + * @name $cacheFactory + * + * @description + * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to + * them. + * + * ```js + * + * var cache = $cacheFactory('cacheId'); + * expect($cacheFactory.get('cacheId')).toBe(cache); + * expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined(); + * + * cache.put("key", "value"); + * cache.put("another key", "another value"); + * + * // We've specified no options on creation + * expect(cache.info()).toEqual({id: 'cacheId', size: 2}); + * + * ``` + * + * + * @param {string} cacheId Name or id of the newly created cache. + * @param {object=} options Options object that specifies the cache behavior. Properties: + * + * - `{number=}` `capacity` — turns the cache into LRU cache. + * + * @returns {object} Newly created cache object with the following set of methods: + * + * - `{object}` `info()` — Returns id, size, and options of cache. + * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns + * it. + * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss. + * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache. + * - `{void}` `removeAll()` — Removes all cached values. + * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory. + * + * @example + + +
+ + + + +

Cached Values

+
+ + : + +
+ +

Cache Info

+
+ + : + +
+
+
+ + angular.module('cacheExampleApp', []). + controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) { + $scope.keys = []; + $scope.cache = $cacheFactory('cacheId'); + $scope.put = function(key, value) { + if (angular.isUndefined($scope.cache.get(key))) { + $scope.keys.push(key); + } + $scope.cache.put(key, angular.isUndefined(value) ? null : value); + }; + }]); + + + p { + margin: 10px 0 3px; + } + +
+ */ +function $CacheFactoryProvider() { + + this.$get = function() { + var caches = {}; + + function cacheFactory(cacheId, options) { + if (cacheId in caches) { + throw minErr('$cacheFactory')('iid', "CacheId '{0}' is already taken!", cacheId); + } + + var size = 0, + stats = extend({}, options, {id: cacheId}), + data = {}, + capacity = (options && options.capacity) || Number.MAX_VALUE, + lruHash = {}, + freshEnd = null, + staleEnd = null; + + /** + * @ngdoc type + * @name $cacheFactory.Cache + * + * @description + * A cache object used to store and retrieve data, primarily used by + * {@link $http $http} and the {@link ng.directive:script script} directive to cache + * templates and other data. + * + * ```js + * angular.module('superCache') + * .factory('superCache', ['$cacheFactory', function($cacheFactory) { + * return $cacheFactory('super-cache'); + * }]); + * ``` + * + * Example test: + * + * ```js + * it('should behave like a cache', inject(function(superCache) { + * superCache.put('key', 'value'); + * superCache.put('another key', 'another value'); + * + * expect(superCache.info()).toEqual({ + * id: 'super-cache', + * size: 2 + * }); + * + * superCache.remove('another key'); + * expect(superCache.get('another key')).toBeUndefined(); + * + * superCache.removeAll(); + * expect(superCache.info()).toEqual({ + * id: 'super-cache', + * size: 0 + * }); + * })); + * ``` + */ + return caches[cacheId] = { + + /** + * @ngdoc method + * @name $cacheFactory.Cache#put + * @kind function + * + * @description + * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be + * retrieved later, and incrementing the size of the cache if the key was not already + * present in the cache. If behaving like an LRU cache, it will also remove stale + * entries from the set. + * + * It will not insert undefined values into the cache. + * + * @param {string} key the key under which the cached data is stored. + * @param {*} value the value to store alongside the key. If it is undefined, the key + * will not be stored. + * @returns {*} the value stored. + */ + put: function(key, value) { + if (isUndefined(value)) return; + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key] || (lruHash[key] = {key: key}); + + refresh(lruEntry); + } + + if (!(key in data)) size++; + data[key] = value; + + if (size > capacity) { + this.remove(staleEnd.key); + } + + return value; + }, + + /** + * @ngdoc method + * @name $cacheFactory.Cache#get + * @kind function + * + * @description + * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object. + * + * @param {string} key the key of the data to be retrieved + * @returns {*} the value stored. + */ + get: function(key) { + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key]; + + if (!lruEntry) return; + + refresh(lruEntry); + } + + return data[key]; + }, + + + /** + * @ngdoc method + * @name $cacheFactory.Cache#remove + * @kind function + * + * @description + * Removes an entry from the {@link $cacheFactory.Cache Cache} object. + * + * @param {string} key the key of the entry to be removed + */ + remove: function(key) { + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key]; + + if (!lruEntry) return; + + if (lruEntry == freshEnd) freshEnd = lruEntry.p; + if (lruEntry == staleEnd) staleEnd = lruEntry.n; + link(lruEntry.n,lruEntry.p); + + delete lruHash[key]; + } + + delete data[key]; + size--; + }, + + + /** + * @ngdoc method + * @name $cacheFactory.Cache#removeAll + * @kind function + * + * @description + * Clears the cache object of any entries. + */ + removeAll: function() { + data = {}; + size = 0; + lruHash = {}; + freshEnd = staleEnd = null; + }, + + + /** + * @ngdoc method + * @name $cacheFactory.Cache#destroy + * @kind function + * + * @description + * Destroys the {@link $cacheFactory.Cache Cache} object entirely, + * removing it from the {@link $cacheFactory $cacheFactory} set. + */ + destroy: function() { + data = null; + stats = null; + lruHash = null; + delete caches[cacheId]; + }, + + + /** + * @ngdoc method + * @name $cacheFactory.Cache#info + * @kind function + * + * @description + * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}. + * + * @returns {object} an object with the following properties: + *
    + *
  • **id**: the id of the cache instance
  • + *
  • **size**: the number of entries kept in the cache instance
  • + *
  • **...**: any additional properties from the options object when creating the + * cache.
  • + *
+ */ + info: function() { + return extend({}, stats, {size: size}); + } + }; + + + /** + * makes the `entry` the freshEnd of the LRU linked list + */ + function refresh(entry) { + if (entry != freshEnd) { + if (!staleEnd) { + staleEnd = entry; + } else if (staleEnd == entry) { + staleEnd = entry.n; + } + + link(entry.n, entry.p); + link(entry, freshEnd); + freshEnd = entry; + freshEnd.n = null; + } + } + + + /** + * bidirectionally links two entries of the LRU linked list + */ + function link(nextEntry, prevEntry) { + if (nextEntry != prevEntry) { + if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify + if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify + } + } + } + + + /** + * @ngdoc method + * @name $cacheFactory#info + * + * @description + * Get information about all the caches that have been created + * + * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info` + */ + cacheFactory.info = function() { + var info = {}; + forEach(caches, function(cache, cacheId) { + info[cacheId] = cache.info(); + }); + return info; + }; + + + /** + * @ngdoc method + * @name $cacheFactory#get + * + * @description + * Get access to a cache object by the `cacheId` used when it was created. + * + * @param {string} cacheId Name or id of a cache to access. + * @returns {object} Cache object identified by the cacheId or undefined if no such cache. + */ + cacheFactory.get = function(cacheId) { + return caches[cacheId]; + }; + + + return cacheFactory; + }; +} + +/** + * @ngdoc service + * @name $templateCache + * + * @description + * The first time a template is used, it is loaded in the template cache for quick retrieval. You + * can load templates directly into the cache in a `script` tag, or by consuming the + * `$templateCache` service directly. + * + * Adding via the `script` tag: + * + * ```html + * + * ``` + * + * **Note:** the `script` tag containing the template does not need to be included in the `head` of + * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE, + * element with ng-app attribute), otherwise the template will be ignored. + * + * Adding via the `$templateCache` service: + * + * ```js + * var myApp = angular.module('myApp', []); + * myApp.run(function($templateCache) { + * $templateCache.put('templateId.html', 'This is the content of the template'); + * }); + * ``` + * + * To retrieve the template later, simply use it in your HTML: + * ```html + *
+ * ``` + * + * or get it via Javascript: + * ```js + * $templateCache.get('templateId.html') + * ``` + * + * See {@link ng.$cacheFactory $cacheFactory}. + * + */ +function $TemplateCacheProvider() { + this.$get = ['$cacheFactory', function($cacheFactory) { + return $cacheFactory('templates'); + }]; +} + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Any commits to this file should be reviewed with security in mind. * + * Changes to this file can potentially create security vulnerabilities. * + * An approval from 2 Core members with history of modifying * + * this file is required. * + * * + * Does the change somehow allow for arbitrary javascript to be executed? * + * Or allows for someone to change the prototype of built-in objects? * + * Or gives undesired access to variables likes document or window? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE! + * + * DOM-related variables: + * + * - "node" - DOM Node + * - "element" - DOM Element or Node + * - "$node" or "$element" - jqLite-wrapped node or element + * + * + * Compiler related stuff: + * + * - "linkFn" - linking fn of a single directive + * - "nodeLinkFn" - function that aggregates all linking fns for a particular node + * - "childLinkFn" - function that aggregates all linking fns for child nodes of a particular node + * - "compositeLinkFn" - function that aggregates all linking fns for a compilation root (nodeList) + */ + + +/** + * @ngdoc service + * @name $compile + * @kind function + * + * @description + * Compiles an HTML string or DOM into a template and produces a template function, which + * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together. + * + * The compilation is a process of walking the DOM tree and matching DOM elements to + * {@link ng.$compileProvider#directive directives}. + * + *
+ * **Note:** This document is an in-depth reference of all directive options. + * For a gentle introduction to directives with examples of common use cases, + * see the {@link guide/directive directive guide}. + *
+ * + * ## Comprehensive Directive API + * + * There are many different options for a directive. + * + * The difference resides in the return value of the factory function. + * You can either return a "Directive Definition Object" (see below) that defines the directive properties, + * or just the `postLink` function (all other properties will have the default values). + * + *
+ * **Best Practice:** It's recommended to use the "directive definition object" form. + *
+ * + * Here's an example directive declared with a Directive Definition Object: + * + * ```js + * var myModule = angular.module(...); + * + * myModule.directive('directiveName', function factory(injectables) { + * var directiveDefinitionObject = { + * priority: 0, + * template: '
', // or // function(tElement, tAttrs) { ... }, + * // or + * // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... }, + * transclude: false, + * restrict: 'A', + * templateNamespace: 'html', + * scope: false, + * controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... }, + * controllerAs: 'stringIdentifier', + * bindToController: false, + * require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'], + * compile: function compile(tElement, tAttrs, transclude) { + * return { + * pre: function preLink(scope, iElement, iAttrs, controller) { ... }, + * post: function postLink(scope, iElement, iAttrs, controller) { ... } + * } + * // or + * // return function postLink( ... ) { ... } + * }, + * // or + * // link: { + * // pre: function preLink(scope, iElement, iAttrs, controller) { ... }, + * // post: function postLink(scope, iElement, iAttrs, controller) { ... } + * // } + * // or + * // link: function postLink( ... ) { ... } + * }; + * return directiveDefinitionObject; + * }); + * ``` + * + *
+ * **Note:** Any unspecified options will use the default value. You can see the default values below. + *
+ * + * Therefore the above can be simplified as: + * + * ```js + * var myModule = angular.module(...); + * + * myModule.directive('directiveName', function factory(injectables) { + * var directiveDefinitionObject = { + * link: function postLink(scope, iElement, iAttrs) { ... } + * }; + * return directiveDefinitionObject; + * // or + * // return function postLink(scope, iElement, iAttrs) { ... } + * }); + * ``` + * + * + * + * ### Directive Definition Object + * + * The directive definition object provides instructions to the {@link ng.$compile + * compiler}. The attributes are: + * + * #### `multiElement` + * When this property is set to true, the HTML compiler will collect DOM nodes between + * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them + * together as the directive elements. It is recommended that this feature be used on directives + * which are not strictly behavioural (such as {@link ngClick}), and which + * do not manipulate or replace child nodes (such as {@link ngInclude}). + * + * #### `priority` + * When there are multiple directives defined on a single DOM element, sometimes it + * is necessary to specify the order in which the directives are applied. The `priority` is used + * to sort the directives before their `compile` functions get called. Priority is defined as a + * number. Directives with greater numerical `priority` are compiled first. Pre-link functions + * are also run in priority order, but post-link functions are run in reverse order. The order + * of directives with the same priority is undefined. The default priority is `0`. + * + * #### `terminal` + * If set to true then the current `priority` will be the last set of directives + * which will execute (any directives at the current priority will still execute + * as the order of execution on same `priority` is undefined). Note that expressions + * and other directives used in the directive's template will also be excluded from execution. + * + * #### `scope` + * The scope property can be `true`, an object or a falsy value: + * + * * **falsy:** No scope will be created for the directive. The directive will use its parent's scope. + * + * * **`true`:** A new child scope that prototypically inherits from its parent will be created for + * the directive's element. If multiple directives on the same element request a new scope, + * only one new scope is created. The new scope rule does not apply for the root of the template + * since the root of the template always gets a new scope. + * + * * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's element. The + * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent + * scope. This is useful when creating reusable components, which should not accidentally read or modify + * data in the parent scope. + * + * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the + * directive's element. These local properties are useful for aliasing values for templates. The keys in + * the object hash map to the name of the property on the isolate scope; the values define how the property + * is bound to the parent scope, via matching attributes on the directive's element: + * + * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is + * always a string since DOM attributes are strings. If no `attr` name is specified then the + * attribute name is assumed to be the same as the local name. + * Given `` and widget definition + * of `scope: { localName:'@myAttr' }`, then widget scope property `localName` will reflect + * the interpolated value of `hello {{name}}`. As the `name` attribute changes so will the + * `localName` property on the widget scope. The `name` is read from the parent scope (not + * component scope). + * + * * `=` or `=attr` - set up bi-directional binding between a local scope property and the + * parent scope property of name defined via the value of the `attr` attribute. If no `attr` + * name is specified then the attribute name is assumed to be the same as the local name. + * Given `` and widget definition of + * `scope: { localModel:'=myAttr' }`, then widget scope property `localModel` will reflect the + * value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected + * in `localModel` and any changes in `localModel` will reflect in `parentModel`. If the parent + * scope property doesn't exist, it will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception. You + * can avoid this behavior using `=?` or `=?attr` in order to flag the property as optional. If + * you want to shallow watch for changes (i.e. $watchCollection instead of $watch) you can use + * `=*` or `=*attr` (`=*?` or `=*?attr` if the property is optional). + * + * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. + * If no `attr` name is specified then the attribute name is assumed to be the same as the + * local name. Given `` and widget definition of + * `scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to + * a function wrapper for the `count = count + value` expression. Often it's desirable to + * pass data from the isolated scope via an expression to the parent scope, this can be + * done by passing a map of local variable names and values into the expression wrapper fn. + * For example, if the expression is `increment(amount)` then we can specify the amount value + * by calling the `localFn` as `localFn({amount: 22})`. + * + * In general it's possible to apply more than one directive to one element, but there might be limitations + * depending on the type of scope required by the directives. The following points will help explain these limitations. + * For simplicity only two directives are taken into account, but it is also applicable for several directives: + * + * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope + * * **child scope** + **no scope** => Both directives will share one single child scope + * * **child scope** + **child scope** => Both directives will share one single child scope + * * **isolated scope** + **no scope** => The isolated directive will use it's own created isolated scope. The other directive will use + * its parent's scope + * * **isolated scope** + **child scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives cannot + * be applied to the same element. + * * **isolated scope** + **isolated scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives + * cannot be applied to the same element. + * + * + * #### `bindToController` + * When an isolate scope is used for a component (see above), and `controllerAs` is used, `bindToController: true` will + * allow a component to have its properties bound to the controller, rather than to scope. When the controller + * is instantiated, the initial values of the isolate scope bindings are already available. + * + * #### `controller` + * Controller constructor function. The controller is instantiated before the + * pre-linking phase and can be accessed by other directives (see + * `require` attribute). This allows the directives to communicate with each other and augment + * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals: + * + * * `$scope` - Current scope associated with the element + * * `$element` - Current element + * * `$attrs` - Current attributes object for the element + * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope: + * `function([scope], cloneLinkingFn, futureParentElement)`. + * * `scope`: optional argument to override the scope. + * * `cloneLinkingFn`: optional argument to create clones of the original transcluded content. + * * `futureParentElement`: + * * defines the parent to which the `cloneLinkingFn` will add the cloned elements. + * * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`. + * * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements) + * and when the `cloneLinkinFn` is passed, + * as those elements need to created and cloned in a special way when they are defined outside their + * usual containers (e.g. like ``). + * * See also the `directive.templateNamespace` property. + * + * + * #### `require` + * Require another directive and inject its controller as the fourth argument to the linking function. The + * `require` takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the + * injected argument will be an array in corresponding order. If no such directive can be + * found, or if the directive does not have a controller, then an error is raised (unless no link function + * is specified, in which case error checking is skipped). The name can be prefixed with: + * + * * (no prefix) - Locate the required controller on the current element. Throw an error if not found. + * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found. + * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found. + * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found. + * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass + * `null` to the `link` fn if not found. + * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass + * `null` to the `link` fn if not found. + * + * + * #### `controllerAs` + * Identifier name for a reference to the controller in the directive's scope. + * This allows the controller to be referenced from the directive template. This is especially + * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible + * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the + * `controllerAs` reference might overwrite a property that already exists on the parent scope. + * + * + * #### `restrict` + * String of subset of `EACM` which restricts the directive to a specific directive + * declaration style. If omitted, the defaults (elements and attributes) are used. + * + * * `E` - Element name (default): `` + * * `A` - Attribute (default): `
` + * * `C` - Class: `
` + * * `M` - Comment: `` + * + * + * #### `templateNamespace` + * String representing the document type used by the markup in the template. + * AngularJS needs this information as those elements need to be created and cloned + * in a special way when they are defined outside their usual containers like `` and ``. + * + * * `html` - All root nodes in the template are HTML. Root nodes may also be + * top-level elements such as `` or ``. + * * `svg` - The root nodes in the template are SVG elements (excluding ``). + * * `math` - The root nodes in the template are MathML elements (excluding ``). + * + * If no `templateNamespace` is specified, then the namespace is considered to be `html`. + * + * #### `template` + * HTML markup that may: + * * Replace the contents of the directive's element (default). + * * Replace the directive's element itself (if `replace` is true - DEPRECATED). + * * Wrap the contents of the directive's element (if `transclude` is true). + * + * Value may be: + * + * * A string. For example `
{{delete_str}}
`. + * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile` + * function api below) and returns a string value. + * + * + * #### `templateUrl` + * This is similar to `template` but the template is loaded from the specified URL, asynchronously. + * + * Because template loading is asynchronous the compiler will suspend compilation of directives on that element + * for later when the template has been resolved. In the meantime it will continue to compile and link + * sibling and parent elements as though this element had not contained any directives. + * + * The compiler does not suspend the entire compilation to wait for templates to be loaded because this + * would result in the whole app "stalling" until all templates are loaded asynchronously - even in the + * case when only one deeply nested directive has `templateUrl`. + * + * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache} + * + * You can specify `templateUrl` as a string representing the URL or as a function which takes two + * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns + * a string value representing the url. In either case, the template URL is passed through {@link + * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}. + * + * + * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0) + * specify what the template should replace. Defaults to `false`. + * + * * `true` - the template will replace the directive's element. + * * `false` - the template will replace the contents of the directive's element. + * + * The replacement process migrates all of the attributes / classes from the old element to the new + * one. See the {@link guide/directive#template-expanding-directive + * Directives Guide} for an example. + * + * There are very few scenarios where element replacement is required for the application function, + * the main one being reusable custom components that are used within SVG contexts + * (because SVG doesn't work with custom elements in the DOM tree). + * + * #### `transclude` + * Extract the contents of the element where the directive appears and make it available to the directive. + * The contents are compiled and provided to the directive as a **transclusion function**. See the + * {@link $compile#transclusion Transclusion} section below. + * + * There are two kinds of transclusion depending upon whether you want to transclude just the contents of the + * directive's element or the entire element: + * + * * `true` - transclude the content (i.e. the child nodes) of the directive's element. + * * `'element'` - transclude the whole of the directive's element including any directives on this + * element that defined at a lower priority than this directive. When used, the `template` + * property is ignored. + * + * + * #### `compile` + * + * ```js + * function compile(tElement, tAttrs, transclude) { ... } + * ``` + * + * The compile function deals with transforming the template DOM. Since most directives do not do + * template transformation, it is not used often. The compile function takes the following arguments: + * + * * `tElement` - template element - The element where the directive has been declared. It is + * safe to do template transformation on the element and child elements only. + * + * * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared + * between all directive compile functions. + * + * * `transclude` - [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)` + * + *
+ * **Note:** The template instance and the link instance may be different objects if the template has + * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that + * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration + * should be done in a linking function rather than in a compile function. + *
+ + *
+ * **Note:** The compile function cannot handle directives that recursively use themselves in their + * own templates or compile functions. Compiling these directives results in an infinite loop and a + * stack overflow errors. + * + * This can be avoided by manually using $compile in the postLink function to imperatively compile + * a directive's template instead of relying on automatic template compilation via `template` or + * `templateUrl` declaration or manual compilation inside the compile function. + *
+ * + *
+ * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it + * e.g. does not know about the right outer scope. Please use the transclude function that is passed + * to the link function instead. + *
+ + * A compile function can have a return value which can be either a function or an object. + * + * * returning a (post-link) function - is equivalent to registering the linking function via the + * `link` property of the config object when the compile function is empty. + * + * * returning an object with function(s) registered via `pre` and `post` properties - allows you to + * control when a linking function should be called during the linking phase. See info about + * pre-linking and post-linking functions below. + * + * + * #### `link` + * This property is used only if the `compile` property is not defined. + * + * ```js + * function link(scope, iElement, iAttrs, controller, transcludeFn) { ... } + * ``` + * + * The link function is responsible for registering DOM listeners as well as updating the DOM. It is + * executed after the template has been cloned. This is where most of the directive logic will be + * put. + * + * * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the + * directive for registering {@link ng.$rootScope.Scope#$watch watches}. + * + * * `iElement` - instance element - The element where the directive is to be used. It is safe to + * manipulate the children of the element only in `postLink` function since the children have + * already been linked. + * + * * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared + * between all directive linking functions. + * + * * `controller` - the directive's required controller instance(s) - Instances are shared + * among all directives, which allows the directives to use the controllers as a communication + * channel. The exact value depends on the directive's `require` property: + * * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one + * * `string`: the controller instance + * * `array`: array of controller instances + * + * If a required controller cannot be found, and it is optional, the instance is `null`, + * otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown. + * + * Note that you can also require the directive's own controller - it will be made available like + * any other controller. + * + * * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope. + * This is the same as the `$transclude` + * parameter of directive controllers, see there for details. + * `function([scope], cloneLinkingFn, futureParentElement)`. + * + * #### Pre-linking function + * + * Executed before the child elements are linked. Not safe to do DOM transformation since the + * compiler linking function will fail to locate the correct elements for linking. + * + * #### Post-linking function + * + * Executed after the child elements are linked. + * + * Note that child elements that contain `templateUrl` directives will not have been compiled + * and linked since they are waiting for their template to load asynchronously and their own + * compilation and linking has been suspended until that occurs. + * + * It is safe to do DOM transformation in the post-linking function on elements that are not waiting + * for their async templates to be resolved. + * + * + * ### Transclusion + * + * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and + * copying them to another part of the DOM, while maintaining their connection to the original AngularJS + * scope from where they were taken. + * + * Transclusion is used (often with {@link ngTransclude}) to insert the + * original contents of a directive's element into a specified place in the template of the directive. + * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded + * content has access to the properties on the scope from which it was taken, even if the directive + * has isolated scope. + * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}. + * + * This makes it possible for the widget to have private state for its template, while the transcluded + * content has access to its originating scope. + * + *
+ * **Note:** When testing an element transclude directive you must not place the directive at the root of the + * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives + * Testing Transclusion Directives}. + *
+ * + * #### Transclusion Functions + * + * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion + * function** to the directive's `link` function and `controller`. This transclusion function is a special + * **linking function** that will return the compiled contents linked to a new transclusion scope. + * + *
+ * If you are just using {@link ngTransclude} then you don't need to worry about this function, since + * ngTransclude will deal with it for us. + *
+ * + * If you want to manually control the insertion and removal of the transcluded content in your directive + * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery + * object that contains the compiled DOM, which is linked to the correct transclusion scope. + * + * When you call a transclusion function you can pass in a **clone attach function**. This function accepts + * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded + * content and the `scope` is the newly created transclusion scope, to which the clone is bound. + * + *
+ * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a translude function + * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope. + *
+ * + * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone + * attach function**: + * + * ```js + * var transcludedContent, transclusionScope; + * + * $transclude(function(clone, scope) { + * element.append(clone); + * transcludedContent = clone; + * transclusionScope = scope; + * }); + * ``` + * + * Later, if you want to remove the transcluded content from your DOM then you should also destroy the + * associated transclusion scope: + * + * ```js + * transcludedContent.remove(); + * transclusionScope.$destroy(); + * ``` + * + *
+ * **Best Practice**: if you intend to add and remove transcluded content manually in your directive + * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it), + * then you are also responsible for calling `$destroy` on the transclusion scope. + *
+ * + * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat} + * automatically destroy their transluded clones as necessary so you do not need to worry about this if + * you are simply using {@link ngTransclude} to inject the transclusion into your directive. + * + * + * #### Transclusion Scopes + * + * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion + * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed + * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it + * was taken. + * + * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look + * like this: + * + * ```html + *
+ *
+ *
+ *
+ *
+ *
+ * ``` + * + * The `$parent` scope hierarchy will look like this: + * + * ``` + * - $rootScope + * - isolate + * - transclusion + * ``` + * + * but the scopes will inherit prototypically from different scopes to their `$parent`. + * + * ``` + * - $rootScope + * - transclusion + * - isolate + * ``` + * + * + * ### Attributes + * + * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the + * `link()` or `compile()` functions. It has a variety of uses. + * + * accessing *Normalized attribute names:* + * Directives like 'ngBind' can be expressed in many ways: 'ng:bind', `data-ng-bind`, or 'x-ng-bind'. + * the attributes object allows for normalized access to + * the attributes. + * + * * *Directive inter-communication:* All directives share the same instance of the attributes + * object which allows the directives to use the attributes object as inter directive + * communication. + * + * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object + * allowing other directives to read the interpolated value. + * + * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes + * that contain interpolation (e.g. `src="{{bar}}"`). Not only is this very efficient but it's also + * the only way to easily get the actual value because during the linking phase the interpolation + * hasn't been evaluated yet and so the value is at this time set to `undefined`. + * + * ```js + * function linkingFn(scope, elm, attrs, ctrl) { + * // get the attribute value + * console.log(attrs.ngModel); + * + * // change the attribute + * attrs.$set('ngModel', 'new value'); + * + * // observe changes to interpolated attribute + * attrs.$observe('ngModel', function(value) { + * console.log('ngModel has changed value to ' + value); + * }); + * } + * ``` + * + * ## Example + * + *
+ * **Note**: Typically directives are registered with `module.directive`. The example below is + * to illustrate how `$compile` works. + *
+ * + + + +
+
+
+
+
+
+ + it('should auto compile', function() { + var textarea = $('textarea'); + var output = $('div[compile]'); + // The initial state reads 'Hello Angular'. + expect(output.getText()).toBe('Hello Angular'); + textarea.clear(); + textarea.sendKeys('{{name}}!'); + expect(output.getText()).toBe('Angular!'); + }); + +
+ + * + * + * @param {string|DOMElement} element Element or HTML string to compile into a template function. + * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED. + * + *
+ * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it + * e.g. will not use the right outer scope. Please pass the transclude function as a + * `parentBoundTranscludeFn` to the link function instead. + *
+ * + * @param {number} maxPriority only apply directives lower than given priority (Only effects the + * root element(s), not their children) + * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template + * (a DOM element/tree) to a scope. Where: + * + * * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to. + * * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the + * `template` and call the `cloneAttachFn` function allowing the caller to attach the + * cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is + * called as:
`cloneAttachFn(clonedElement, scope)` where: + * + * * `clonedElement` - is a clone of the original `element` passed into the compiler. + * * `scope` - is the current scope with which the linking function is working with. + * + * * `options` - An optional object hash with linking options. If `options` is provided, then the following + * keys may be used to control linking behavior: + * + * * `parentBoundTranscludeFn` - the transclude function made available to + * directives; if given, it will be passed through to the link functions of + * directives found in `element` during compilation. + * * `transcludeControllers` - an object hash with keys that map controller names + * to controller instances; if given, it will make the controllers + * available to directives. + * * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add + * the cloned elements; only needed for transcludes that are allowed to contain non html + * elements (e.g. SVG elements). See also the directive.controller property. + * + * Calling the linking function returns the element of the template. It is either the original + * element passed in, or the clone of the element if the `cloneAttachFn` is provided. + * + * After linking the view is not updated until after a call to $digest which typically is done by + * Angular automatically. + * + * If you need access to the bound view, there are two ways to do it: + * + * - If you are not asking the linking function to clone the template, create the DOM element(s) + * before you send them to the compiler and keep this reference around. + * ```js + * var element = $compile('

{{total}}

')(scope); + * ``` + * + * - if on the other hand, you need the element to be cloned, the view reference from the original + * example would not point to the clone, but rather to the original template that was cloned. In + * this case, you can access the clone via the cloneAttachFn: + * ```js + * var templateElement = angular.element('

{{total}}

'), + * scope = ....; + * + * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) { + * //attach the clone to DOM document at the right place + * }); + * + * //now we have reference to the cloned DOM via `clonedElement` + * ``` + * + * + * For information on how the compiler works, see the + * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide. + */ + +var $compileMinErr = minErr('$compile'); + +/** + * @ngdoc provider + * @name $compileProvider + * + * @description + */ +$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider']; +function $CompileProvider($provide, $$sanitizeUriProvider) { + var hasDirectives = {}, + Suffix = 'Directive', + COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\w\-]+)\s+(.*)$/, + CLASS_DIRECTIVE_REGEXP = /(([\w\-]+)(?:\:([^;]+))?;?)/, + ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'), + REQUIRE_PREFIX_REGEXP = /^(?:(\^\^?)?(\?)?(\^\^?)?)?/; + + // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes + // The assumption is that future DOM event attribute names will begin with + // 'on' and be composed of only English letters. + var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/; + + function parseIsolateBindings(scope, directiveName, isController) { + var LOCAL_REGEXP = /^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/; + + var bindings = {}; + + forEach(scope, function(definition, scopeName) { + var match = definition.match(LOCAL_REGEXP); + + if (!match) { + throw $compileMinErr('iscp', + "Invalid {3} for directive '{0}'." + + " Definition: {... {1}: '{2}' ...}", + directiveName, scopeName, definition, + (isController ? "controller bindings definition" : + "isolate scope definition")); + } + + bindings[scopeName] = { + mode: match[1][0], + collection: match[2] === '*', + optional: match[3] === '?', + attrName: match[4] || scopeName + }; + }); + + return bindings; + } + + function parseDirectiveBindings(directive, directiveName) { + var bindings = { + isolateScope: null, + bindToController: null + }; + if (isObject(directive.scope)) { + if (directive.bindToController === true) { + bindings.bindToController = parseIsolateBindings(directive.scope, + directiveName, true); + bindings.isolateScope = {}; + } else { + bindings.isolateScope = parseIsolateBindings(directive.scope, + directiveName, false); + } + } + if (isObject(directive.bindToController)) { + bindings.bindToController = + parseIsolateBindings(directive.bindToController, directiveName, true); + } + if (isObject(bindings.bindToController)) { + var controller = directive.controller; + var controllerAs = directive.controllerAs; + if (!controller) { + // There is no controller, there may or may not be a controllerAs property + throw $compileMinErr('noctrl', + "Cannot bind to controller without directive '{0}'s controller.", + directiveName); + } else if (!identifierForController(controller, controllerAs)) { + // There is a controller, but no identifier or controllerAs property + throw $compileMinErr('noident', + "Cannot bind to controller without identifier for directive '{0}'.", + directiveName); + } + } + return bindings; + } + + function assertValidDirectiveName(name) { + var letter = name.charAt(0); + if (!letter || letter !== lowercase(letter)) { + throw $compileMinErr('baddir', "Directive name '{0}' is invalid. The first character must be a lowercase letter", name); + } + if (name !== name.trim()) { + throw $compileMinErr('baddir', + "Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces", + name); + } + } + + /** + * @ngdoc method + * @name $compileProvider#directive + * @kind function + * + * @description + * Register a new directive with the compiler. + * + * @param {string|Object} name Name of the directive in camel-case (i.e. ngBind which + * will match as ng-bind), or an object map of directives where the keys are the + * names and the values are the factories. + * @param {Function|Array} directiveFactory An injectable directive factory function. See + * {@link guide/directive} for more info. + * @returns {ng.$compileProvider} Self for chaining. + */ + this.directive = function registerDirective(name, directiveFactory) { + assertNotHasOwnProperty(name, 'directive'); + if (isString(name)) { + assertValidDirectiveName(name); + assertArg(directiveFactory, 'directiveFactory'); + if (!hasDirectives.hasOwnProperty(name)) { + hasDirectives[name] = []; + $provide.factory(name + Suffix, ['$injector', '$exceptionHandler', + function($injector, $exceptionHandler) { + var directives = []; + forEach(hasDirectives[name], function(directiveFactory, index) { + try { + var directive = $injector.invoke(directiveFactory); + if (isFunction(directive)) { + directive = { compile: valueFn(directive) }; + } else if (!directive.compile && directive.link) { + directive.compile = valueFn(directive.link); + } + directive.priority = directive.priority || 0; + directive.index = index; + directive.name = directive.name || name; + directive.require = directive.require || (directive.controller && directive.name); + directive.restrict = directive.restrict || 'EA'; + var bindings = directive.$$bindings = + parseDirectiveBindings(directive, directive.name); + if (isObject(bindings.isolateScope)) { + directive.$$isolateBindings = bindings.isolateScope; + } + directive.$$moduleName = directiveFactory.$$moduleName; + directives.push(directive); + } catch (e) { + $exceptionHandler(e); + } + }); + return directives; + }]); + } + hasDirectives[name].push(directiveFactory); + } else { + forEach(name, reverseParams(registerDirective)); + } + return this; + }; + + + /** + * @ngdoc method + * @name $compileProvider#aHrefSanitizationWhitelist + * @kind function + * + * @description + * Retrieves or overrides the default regular expression that is used for whitelisting of safe + * urls during a[href] sanitization. + * + * The sanitization is a security measure aimed at preventing XSS attacks via html links. + * + * Any url about to be assigned to a[href] via data-binding is first normalized and turned into + * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist` + * regular expression. If a match is found, the original url is written into the dom. Otherwise, + * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM. + * + * @param {RegExp=} regexp New regexp to whitelist urls with. + * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for + * chaining otherwise. + */ + this.aHrefSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp); + return this; + } else { + return $$sanitizeUriProvider.aHrefSanitizationWhitelist(); + } + }; + + + /** + * @ngdoc method + * @name $compileProvider#imgSrcSanitizationWhitelist + * @kind function + * + * @description + * Retrieves or overrides the default regular expression that is used for whitelisting of safe + * urls during img[src] sanitization. + * + * The sanitization is a security measure aimed at prevent XSS attacks via html links. + * + * Any url about to be assigned to img[src] via data-binding is first normalized and turned into + * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist` + * regular expression. If a match is found, the original url is written into the dom. Otherwise, + * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM. + * + * @param {RegExp=} regexp New regexp to whitelist urls with. + * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for + * chaining otherwise. + */ + this.imgSrcSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp); + return this; + } else { + return $$sanitizeUriProvider.imgSrcSanitizationWhitelist(); + } + }; + + /** + * @ngdoc method + * @name $compileProvider#debugInfoEnabled + * + * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the + * current debugInfoEnabled state + * @returns {*} current value if used as getter or itself (chaining) if used as setter + * + * @kind function + * + * @description + * Call this method to enable/disable various debug runtime information in the compiler such as adding + * binding information and a reference to the current scope on to DOM elements. + * If enabled, the compiler will add the following to DOM elements that have been bound to the scope + * * `ng-binding` CSS class + * * `$binding` data property containing an array of the binding expressions + * + * You may want to disable this in production for a significant performance boost. See + * {@link guide/production#disabling-debug-data Disabling Debug Data} for more. + * + * The default value is true. + */ + var debugInfoEnabled = true; + this.debugInfoEnabled = function(enabled) { + if (isDefined(enabled)) { + debugInfoEnabled = enabled; + return this; + } + return debugInfoEnabled; + }; + + this.$get = [ + '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', + '$controller', '$rootScope', '$document', '$sce', '$animate', '$$sanitizeUri', + function($injector, $interpolate, $exceptionHandler, $templateRequest, $parse, + $controller, $rootScope, $document, $sce, $animate, $$sanitizeUri) { + + var Attributes = function(element, attributesToCopy) { + if (attributesToCopy) { + var keys = Object.keys(attributesToCopy); + var i, l, key; + + for (i = 0, l = keys.length; i < l; i++) { + key = keys[i]; + this[key] = attributesToCopy[key]; + } + } else { + this.$attr = {}; + } + + this.$$element = element; + }; + + Attributes.prototype = { + /** + * @ngdoc method + * @name $compile.directive.Attributes#$normalize + * @kind function + * + * @description + * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or + * `data-`) to its normalized, camelCase form. + * + * Also there is special case for Moz prefix starting with upper case letter. + * + * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives} + * + * @param {string} name Name to normalize + */ + $normalize: directiveNormalize, + + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$addClass + * @kind function + * + * @description + * Adds the CSS class value specified by the classVal parameter to the element. If animations + * are enabled then an animation will be triggered for the class addition. + * + * @param {string} classVal The className value that will be added to the element + */ + $addClass: function(classVal) { + if (classVal && classVal.length > 0) { + $animate.addClass(this.$$element, classVal); + } + }, + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$removeClass + * @kind function + * + * @description + * Removes the CSS class value specified by the classVal parameter from the element. If + * animations are enabled then an animation will be triggered for the class removal. + * + * @param {string} classVal The className value that will be removed from the element + */ + $removeClass: function(classVal) { + if (classVal && classVal.length > 0) { + $animate.removeClass(this.$$element, classVal); + } + }, + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$updateClass + * @kind function + * + * @description + * Adds and removes the appropriate CSS class values to the element based on the difference + * between the new and old CSS class values (specified as newClasses and oldClasses). + * + * @param {string} newClasses The current CSS className value + * @param {string} oldClasses The former CSS className value + */ + $updateClass: function(newClasses, oldClasses) { + var toAdd = tokenDifference(newClasses, oldClasses); + if (toAdd && toAdd.length) { + $animate.addClass(this.$$element, toAdd); + } + + var toRemove = tokenDifference(oldClasses, newClasses); + if (toRemove && toRemove.length) { + $animate.removeClass(this.$$element, toRemove); + } + }, + + /** + * Set a normalized attribute on the element in a way such that all directives + * can share the attribute. This function properly handles boolean attributes. + * @param {string} key Normalized key. (ie ngAttribute) + * @param {string|boolean} value The value to set. If `null` attribute will be deleted. + * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute. + * Defaults to true. + * @param {string=} attrName Optional none normalized name. Defaults to key. + */ + $set: function(key, value, writeAttr, attrName) { + // TODO: decide whether or not to throw an error if "class" + //is set through this function since it may cause $updateClass to + //become unstable. + + var node = this.$$element[0], + booleanKey = getBooleanAttrName(node, key), + aliasedKey = getAliasedAttrName(key), + observer = key, + nodeName; + + if (booleanKey) { + this.$$element.prop(key, value); + attrName = booleanKey; + } else if (aliasedKey) { + this[aliasedKey] = value; + observer = aliasedKey; + } + + this[key] = value; + + // translate normalized key to actual key + if (attrName) { + this.$attr[key] = attrName; + } else { + attrName = this.$attr[key]; + if (!attrName) { + this.$attr[key] = attrName = snake_case(key, '-'); + } + } + + nodeName = nodeName_(this.$$element); + + if ((nodeName === 'a' && key === 'href') || + (nodeName === 'img' && key === 'src')) { + // sanitize a[href] and img[src] values + this[key] = value = $$sanitizeUri(value, key === 'src'); + } else if (nodeName === 'img' && key === 'srcset') { + // sanitize img[srcset] values + var result = ""; + + // first check if there are spaces because it's not the same pattern + var trimmedSrcset = trim(value); + // ( 999x ,| 999w ,| ,|, ) + var srcPattern = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/; + var pattern = /\s/.test(trimmedSrcset) ? srcPattern : /(,)/; + + // split srcset into tuple of uri and descriptor except for the last item + var rawUris = trimmedSrcset.split(pattern); + + // for each tuples + var nbrUrisWith2parts = Math.floor(rawUris.length / 2); + for (var i = 0; i < nbrUrisWith2parts; i++) { + var innerIdx = i * 2; + // sanitize the uri + result += $$sanitizeUri(trim(rawUris[innerIdx]), true); + // add the descriptor + result += (" " + trim(rawUris[innerIdx + 1])); + } + + // split the last item into uri and descriptor + var lastTuple = trim(rawUris[i * 2]).split(/\s/); + + // sanitize the last uri + result += $$sanitizeUri(trim(lastTuple[0]), true); + + // and add the last descriptor if any + if (lastTuple.length === 2) { + result += (" " + trim(lastTuple[1])); + } + this[key] = value = result; + } + + if (writeAttr !== false) { + if (value === null || isUndefined(value)) { + this.$$element.removeAttr(attrName); + } else { + this.$$element.attr(attrName, value); + } + } + + // fire observers + var $$observers = this.$$observers; + $$observers && forEach($$observers[observer], function(fn) { + try { + fn(value); + } catch (e) { + $exceptionHandler(e); + } + }); + }, + + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$observe + * @kind function + * + * @description + * Observes an interpolated attribute. + * + * The observer function will be invoked once during the next `$digest` following + * compilation. The observer is then invoked whenever the interpolated value + * changes. + * + * @param {string} key Normalized key. (ie ngAttribute) . + * @param {function(interpolatedValue)} fn Function that will be called whenever + the interpolated value of the attribute changes. + * See the {@link guide/directive#text-and-attribute-bindings Directives} guide for more info. + * @returns {function()} Returns a deregistration function for this observer. + */ + $observe: function(key, fn) { + var attrs = this, + $$observers = (attrs.$$observers || (attrs.$$observers = createMap())), + listeners = ($$observers[key] || ($$observers[key] = [])); + + listeners.push(fn); + $rootScope.$evalAsync(function() { + if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) { + // no one registered attribute interpolation function, so lets call it manually + fn(attrs[key]); + } + }); + + return function() { + arrayRemove(listeners, fn); + }; + } + }; + + + function safeAddClass($element, className) { + try { + $element.addClass(className); + } catch (e) { + // ignore, since it means that we are trying to set class on + // SVG element, where class name is read-only. + } + } + + + var startSymbol = $interpolate.startSymbol(), + endSymbol = $interpolate.endSymbol(), + denormalizeTemplate = (startSymbol == '{{' || endSymbol == '}}') + ? identity + : function denormalizeTemplate(template) { + return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol); + }, + NG_ATTR_BINDING = /^ngAttr[A-Z]/; + + compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) { + var bindings = $element.data('$binding') || []; + + if (isArray(binding)) { + bindings = bindings.concat(binding); + } else { + bindings.push(binding); + } + + $element.data('$binding', bindings); + } : noop; + + compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) { + safeAddClass($element, 'ng-binding'); + } : noop; + + compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) { + var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope'; + $element.data(dataName, scope); + } : noop; + + compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) { + safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope'); + } : noop; + + return compile; + + //================================ + + function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, + previousCompileContext) { + if (!($compileNodes instanceof jqLite)) { + // jquery always rewraps, whereas we need to preserve the original selector so that we can + // modify it. + $compileNodes = jqLite($compileNodes); + } + // We can not compile top level text elements since text nodes can be merged and we will + // not be able to attach scope data to them, so we will wrap them in + forEach($compileNodes, function(node, index) { + if (node.nodeType == NODE_TYPE_TEXT && node.nodeValue.match(/\S+/) /* non-empty */ ) { + $compileNodes[index] = jqLite(node).wrap('').parent()[0]; + } + }); + var compositeLinkFn = + compileNodes($compileNodes, transcludeFn, $compileNodes, + maxPriority, ignoreDirective, previousCompileContext); + compile.$$addScopeClass($compileNodes); + var namespace = null; + return function publicLinkFn(scope, cloneConnectFn, options) { + assertArg(scope, 'scope'); + + options = options || {}; + var parentBoundTranscludeFn = options.parentBoundTranscludeFn, + transcludeControllers = options.transcludeControllers, + futureParentElement = options.futureParentElement; + + // When `parentBoundTranscludeFn` is passed, it is a + // `controllersBoundTransclude` function (it was previously passed + // as `transclude` to directive.link) so we must unwrap it to get + // its `boundTranscludeFn` + if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) { + parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude; + } + + if (!namespace) { + namespace = detectNamespaceForChildElements(futureParentElement); + } + var $linkNode; + if (namespace !== 'html') { + // When using a directive with replace:true and templateUrl the $compileNodes + // (or a child element inside of them) + // might change, so we need to recreate the namespace adapted compileNodes + // for call to the link function. + // Note: This will already clone the nodes... + $linkNode = jqLite( + wrapTemplate(namespace, jqLite('
').append($compileNodes).html()) + ); + } else if (cloneConnectFn) { + // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart + // and sometimes changes the structure of the DOM. + $linkNode = JQLitePrototype.clone.call($compileNodes); + } else { + $linkNode = $compileNodes; + } + + if (transcludeControllers) { + for (var controllerName in transcludeControllers) { + $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance); + } + } + + compile.$$addScopeInfo($linkNode, scope); + + if (cloneConnectFn) cloneConnectFn($linkNode, scope); + if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn); + return $linkNode; + }; + } + + function detectNamespaceForChildElements(parentElement) { + // TODO: Make this detect MathML as well... + var node = parentElement && parentElement[0]; + if (!node) { + return 'html'; + } else { + return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html'; + } + } + + /** + * Compile function matches each node in nodeList against the directives. Once all directives + * for a particular node are collected their compile functions are executed. The compile + * functions return values - the linking functions - are combined into a composite linking + * function, which is the a linking function for the node. + * + * @param {NodeList} nodeList an array of nodes or NodeList to compile + * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the + * scope argument is auto-generated to the new child of the transcluded parent scope. + * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then + * the rootElement must be set the jqLite collection of the compile root. This is + * needed so that the jqLite collection items can be replaced with widgets. + * @param {number=} maxPriority Max directive priority. + * @returns {Function} A composite linking function of all of the matched directives or null. + */ + function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective, + previousCompileContext) { + var linkFns = [], + attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound; + + for (var i = 0; i < nodeList.length; i++) { + attrs = new Attributes(); + + // we must always refer to nodeList[i] since the nodes can be replaced underneath us. + directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined, + ignoreDirective); + + nodeLinkFn = (directives.length) + ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, + null, [], [], previousCompileContext) + : null; + + if (nodeLinkFn && nodeLinkFn.scope) { + compile.$$addScopeClass(attrs.$$element); + } + + childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || + !(childNodes = nodeList[i].childNodes) || + !childNodes.length) + ? null + : compileNodes(childNodes, + nodeLinkFn ? ( + (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement) + && nodeLinkFn.transclude) : transcludeFn); + + if (nodeLinkFn || childLinkFn) { + linkFns.push(i, nodeLinkFn, childLinkFn); + linkFnFound = true; + nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn; + } + + //use the previous context only for the first element in the virtual group + previousCompileContext = null; + } + + // return a linking function if we have found anything, null otherwise + return linkFnFound ? compositeLinkFn : null; + + function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) { + var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn; + var stableNodeList; + + + if (nodeLinkFnFound) { + // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our + // offsets don't get screwed up + var nodeListLength = nodeList.length; + stableNodeList = new Array(nodeListLength); + + // create a sparse array by only copying the elements which have a linkFn + for (i = 0; i < linkFns.length; i+=3) { + idx = linkFns[i]; + stableNodeList[idx] = nodeList[idx]; + } + } else { + stableNodeList = nodeList; + } + + for (i = 0, ii = linkFns.length; i < ii;) { + node = stableNodeList[linkFns[i++]]; + nodeLinkFn = linkFns[i++]; + childLinkFn = linkFns[i++]; + + if (nodeLinkFn) { + if (nodeLinkFn.scope) { + childScope = scope.$new(); + compile.$$addScopeInfo(jqLite(node), childScope); + var destroyBindings = nodeLinkFn.$$destroyBindings; + if (destroyBindings) { + nodeLinkFn.$$destroyBindings = null; + childScope.$on('$destroyed', destroyBindings); + } + } else { + childScope = scope; + } + + if (nodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn( + scope, nodeLinkFn.transclude, parentBoundTranscludeFn); + + } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) { + childBoundTranscludeFn = parentBoundTranscludeFn; + + } else if (!parentBoundTranscludeFn && transcludeFn) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn); + + } else { + childBoundTranscludeFn = null; + } + + nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn, + nodeLinkFn); + + } else if (childLinkFn) { + childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn); + } + } + } + } + + function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { + + var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { + + if (!transcludedScope) { + transcludedScope = scope.$new(false, containingScope); + transcludedScope.$$transcluded = true; + } + + return transcludeFn(transcludedScope, cloneFn, { + parentBoundTranscludeFn: previousBoundTranscludeFn, + transcludeControllers: controllers, + futureParentElement: futureParentElement + }); + }; + + return boundTranscludeFn; + } + + /** + * Looks for directives on the given node and adds them to the directive collection which is + * sorted. + * + * @param node Node to search. + * @param directives An array to which the directives are added to. This array is sorted before + * the function returns. + * @param attrs The shared attrs object which is used to populate the normalized attributes. + * @param {number=} maxPriority Max directive priority. + */ + function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) { + var nodeType = node.nodeType, + attrsMap = attrs.$attr, + match, + className; + + switch (nodeType) { + case NODE_TYPE_ELEMENT: /* Element */ + // use the node name: + addDirective(directives, + directiveNormalize(nodeName_(node)), 'E', maxPriority, ignoreDirective); + + // iterate over the attributes + for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes, + j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) { + var attrStartName = false; + var attrEndName = false; + + attr = nAttrs[j]; + name = attr.name; + value = trim(attr.value); + + // support ngAttr attribute binding + ngAttrName = directiveNormalize(name); + if (isNgAttr = NG_ATTR_BINDING.test(ngAttrName)) { + name = name.replace(PREFIX_REGEXP, '') + .substr(8).replace(/_(.)/g, function(match, letter) { + return letter.toUpperCase(); + }); + } + + var directiveNName = ngAttrName.replace(/(Start|End)$/, ''); + if (directiveIsMultiElement(directiveNName)) { + if (ngAttrName === directiveNName + 'Start') { + attrStartName = name; + attrEndName = name.substr(0, name.length - 5) + 'end'; + name = name.substr(0, name.length - 6); + } + } + + nName = directiveNormalize(name.toLowerCase()); + attrsMap[nName] = name; + if (isNgAttr || !attrs.hasOwnProperty(nName)) { + attrs[nName] = value; + if (getBooleanAttrName(node, nName)) { + attrs[nName] = true; // presence means true + } + } + addAttrInterpolateDirective(node, directives, value, nName, isNgAttr); + addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName, + attrEndName); + } + + // use class as directive + className = node.className; + if (isObject(className)) { + // Maybe SVGAnimatedString + className = className.animVal; + } + if (isString(className) && className !== '') { + while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) { + nName = directiveNormalize(match[2]); + if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) { + attrs[nName] = trim(match[3]); + } + className = className.substr(match.index + match[0].length); + } + } + break; + case NODE_TYPE_TEXT: /* Text Node */ + if (msie === 11) { + // Workaround for #11781 + while (node.parentNode && node.nextSibling && node.nextSibling.nodeType === NODE_TYPE_TEXT) { + node.nodeValue = node.nodeValue + node.nextSibling.nodeValue; + node.parentNode.removeChild(node.nextSibling); + } + } + addTextInterpolateDirective(directives, node.nodeValue); + break; + case NODE_TYPE_COMMENT: /* Comment */ + try { + match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue); + if (match) { + nName = directiveNormalize(match[1]); + if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) { + attrs[nName] = trim(match[2]); + } + } + } catch (e) { + // turns out that under some circumstances IE9 throws errors when one attempts to read + // comment's node value. + // Just ignore it and continue. (Can't seem to reproduce in test case.) + } + break; + } + + directives.sort(byPriority); + return directives; + } + + /** + * Given a node with an directive-start it collects all of the siblings until it finds + * directive-end. + * @param node + * @param attrStart + * @param attrEnd + * @returns {*} + */ + function groupScan(node, attrStart, attrEnd) { + var nodes = []; + var depth = 0; + if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) { + do { + if (!node) { + throw $compileMinErr('uterdir', + "Unterminated attribute, found '{0}' but no matching '{1}' found.", + attrStart, attrEnd); + } + if (node.nodeType == NODE_TYPE_ELEMENT) { + if (node.hasAttribute(attrStart)) depth++; + if (node.hasAttribute(attrEnd)) depth--; + } + nodes.push(node); + node = node.nextSibling; + } while (depth > 0); + } else { + nodes.push(node); + } + + return jqLite(nodes); + } + + /** + * Wrapper for linking function which converts normal linking function into a grouped + * linking function. + * @param linkFn + * @param attrStart + * @param attrEnd + * @returns {Function} + */ + function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) { + return function(scope, element, attrs, controllers, transcludeFn) { + element = groupScan(element[0], attrStart, attrEnd); + return linkFn(scope, element, attrs, controllers, transcludeFn); + }; + } + + /** + * Once the directives have been collected, their compile functions are executed. This method + * is responsible for inlining directive templates as well as terminating the application + * of the directives if the terminal directive has been reached. + * + * @param {Array} directives Array of collected directives to execute their compile function. + * this needs to be pre-sorted by priority order. + * @param {Node} compileNode The raw DOM node to apply the compile functions to + * @param {Object} templateAttrs The shared attribute function + * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the + * scope argument is auto-generated to the new + * child of the transcluded parent scope. + * @param {JQLite} jqCollection If we are working on the root of the compile tree then this + * argument has the root jqLite array so that we can replace nodes + * on it. + * @param {Object=} originalReplaceDirective An optional directive that will be ignored when + * compiling the transclusion. + * @param {Array.} preLinkFns + * @param {Array.} postLinkFns + * @param {Object} previousCompileContext Context used for previous compilation of the current + * node + * @returns {Function} linkFn + */ + function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, + jqCollection, originalReplaceDirective, preLinkFns, postLinkFns, + previousCompileContext) { + previousCompileContext = previousCompileContext || {}; + + var terminalPriority = -Number.MAX_VALUE, + newScopeDirective = previousCompileContext.newScopeDirective, + controllerDirectives = previousCompileContext.controllerDirectives, + newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective, + templateDirective = previousCompileContext.templateDirective, + nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective, + hasTranscludeDirective = false, + hasTemplate = false, + hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective, + $compileNode = templateAttrs.$$element = jqLite(compileNode), + directive, + directiveName, + $template, + replaceDirective = originalReplaceDirective, + childTranscludeFn = transcludeFn, + linkFn, + directiveValue; + + // executes all directives on the current element + for (var i = 0, ii = directives.length; i < ii; i++) { + directive = directives[i]; + var attrStart = directive.$$start; + var attrEnd = directive.$$end; + + // collect multiblock sections + if (attrStart) { + $compileNode = groupScan(compileNode, attrStart, attrEnd); + } + $template = undefined; + + if (terminalPriority > directive.priority) { + break; // prevent further processing of directives + } + + if (directiveValue = directive.scope) { + + // skip the check for directives with async templates, we'll check the derived sync + // directive when the template arrives + if (!directive.templateUrl) { + if (isObject(directiveValue)) { + // This directive is trying to add an isolated scope. + // Check that there is no scope of any kind already + assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective, + directive, $compileNode); + newIsolateScopeDirective = directive; + } else { + // This directive is trying to add a child scope. + // Check that there is no isolated scope already + assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive, + $compileNode); + } + } + + newScopeDirective = newScopeDirective || directive; + } + + directiveName = directive.name; + + if (!directive.templateUrl && directive.controller) { + directiveValue = directive.controller; + controllerDirectives = controllerDirectives || createMap(); + assertNoDuplicate("'" + directiveName + "' controller", + controllerDirectives[directiveName], directive, $compileNode); + controllerDirectives[directiveName] = directive; + } + + if (directiveValue = directive.transclude) { + hasTranscludeDirective = true; + + // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion. + // This option should only be used by directives that know how to safely handle element transclusion, + // where the transcluded nodes are added or replaced after linking. + if (!directive.$$tlb) { + assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode); + nonTlbTranscludeDirective = directive; + } + + if (directiveValue == 'element') { + hasElementTranscludeDirective = true; + terminalPriority = directive.priority; + $template = $compileNode; + $compileNode = templateAttrs.$$element = + jqLite(document.createComment(' ' + directiveName + ': ' + + templateAttrs[directiveName] + ' ')); + compileNode = $compileNode[0]; + replaceWith(jqCollection, sliceArgs($template), compileNode); + + childTranscludeFn = compile($template, transcludeFn, terminalPriority, + replaceDirective && replaceDirective.name, { + // Don't pass in: + // - controllerDirectives - otherwise we'll create duplicates controllers + // - newIsolateScopeDirective or templateDirective - combining templates with + // element transclusion doesn't make sense. + // + // We need only nonTlbTranscludeDirective so that we prevent putting transclusion + // on the same element more than once. + nonTlbTranscludeDirective: nonTlbTranscludeDirective + }); + } else { + $template = jqLite(jqLiteClone(compileNode)).contents(); + $compileNode.empty(); // clear contents + childTranscludeFn = compile($template, transcludeFn); + } + } + + if (directive.template) { + hasTemplate = true; + assertNoDuplicate('template', templateDirective, directive, $compileNode); + templateDirective = directive; + + directiveValue = (isFunction(directive.template)) + ? directive.template($compileNode, templateAttrs) + : directive.template; + + directiveValue = denormalizeTemplate(directiveValue); + + if (directive.replace) { + replaceDirective = directive; + if (jqLiteIsTextNode(directiveValue)) { + $template = []; + } else { + $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue))); + } + compileNode = $template[0]; + + if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) { + throw $compileMinErr('tplrt', + "Template for directive '{0}' must have exactly one root element. {1}", + directiveName, ''); + } + + replaceWith(jqCollection, $compileNode, compileNode); + + var newTemplateAttrs = {$attr: {}}; + + // combine directives from the original node and from the template: + // - take the array of directives for this element + // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed) + // - collect directives from the template and sort them by priority + // - combine directives as: processed + template + unprocessed + var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs); + var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1)); + + if (newIsolateScopeDirective) { + markDirectivesAsIsolate(templateDirectives); + } + directives = directives.concat(templateDirectives).concat(unprocessedDirectives); + mergeTemplateAttributes(templateAttrs, newTemplateAttrs); + + ii = directives.length; + } else { + $compileNode.html(directiveValue); + } + } + + if (directive.templateUrl) { + hasTemplate = true; + assertNoDuplicate('template', templateDirective, directive, $compileNode); + templateDirective = directive; + + if (directive.replace) { + replaceDirective = directive; + } + + nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode, + templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, { + controllerDirectives: controllerDirectives, + newScopeDirective: (newScopeDirective !== directive) && newScopeDirective, + newIsolateScopeDirective: newIsolateScopeDirective, + templateDirective: templateDirective, + nonTlbTranscludeDirective: nonTlbTranscludeDirective + }); + ii = directives.length; + } else if (directive.compile) { + try { + linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn); + if (isFunction(linkFn)) { + addLinkFns(null, linkFn, attrStart, attrEnd); + } else if (linkFn) { + addLinkFns(linkFn.pre, linkFn.post, attrStart, attrEnd); + } + } catch (e) { + $exceptionHandler(e, startingTag($compileNode)); + } + } + + if (directive.terminal) { + nodeLinkFn.terminal = true; + terminalPriority = Math.max(terminalPriority, directive.priority); + } + + } + + nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true; + nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective; + nodeLinkFn.templateOnThisElement = hasTemplate; + nodeLinkFn.transclude = childTranscludeFn; + + previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective; + + // might be normal or delayed nodeLinkFn depending on if templateUrl is present + return nodeLinkFn; + + //////////////////// + + function addLinkFns(pre, post, attrStart, attrEnd) { + if (pre) { + if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd); + pre.require = directive.require; + pre.directiveName = directiveName; + if (newIsolateScopeDirective === directive || directive.$$isolateScope) { + pre = cloneAndAnnotateFn(pre, {isolateScope: true}); + } + preLinkFns.push(pre); + } + if (post) { + if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd); + post.require = directive.require; + post.directiveName = directiveName; + if (newIsolateScopeDirective === directive || directive.$$isolateScope) { + post = cloneAndAnnotateFn(post, {isolateScope: true}); + } + postLinkFns.push(post); + } + } + + + function getControllers(directiveName, require, $element, elementControllers) { + var value; + + if (isString(require)) { + var match = require.match(REQUIRE_PREFIX_REGEXP); + var name = require.substring(match[0].length); + var inheritType = match[1] || match[3]; + var optional = match[2] === '?'; + + //If only parents then start at the parent element + if (inheritType === '^^') { + $element = $element.parent(); + //Otherwise attempt getting the controller from elementControllers in case + //the element is transcluded (and has no data) and to avoid .data if possible + } else { + value = elementControllers && elementControllers[name]; + value = value && value.instance; + } + + if (!value) { + var dataName = '$' + name + 'Controller'; + value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName); + } + + if (!value && !optional) { + throw $compileMinErr('ctreq', + "Controller '{0}', required by directive '{1}', can't be found!", + name, directiveName); + } + } else if (isArray(require)) { + value = []; + for (var i = 0, ii = require.length; i < ii; i++) { + value[i] = getControllers(directiveName, require[i], $element, elementControllers); + } + } + + return value || null; + } + + function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope) { + var elementControllers = createMap(); + for (var controllerKey in controllerDirectives) { + var directive = controllerDirectives[controllerKey]; + var locals = { + $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope, + $element: $element, + $attrs: attrs, + $transclude: transcludeFn + }; + + var controller = directive.controller; + if (controller == '@') { + controller = attrs[directive.name]; + } + + var controllerInstance = $controller(controller, locals, true, directive.controllerAs); + + // For directives with element transclusion the element is a comment, + // but jQuery .data doesn't support attaching data to comment nodes as it's hard to + // clean up (http://bugs.jquery.com/ticket/8335). + // Instead, we save the controllers for the element in a local hash and attach to .data + // later, once we have the actual element. + elementControllers[directive.name] = controllerInstance; + if (!hasElementTranscludeDirective) { + $element.data('$' + directive.name + 'Controller', controllerInstance.instance); + } + } + return elementControllers; + } + + function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn, + thisLinkFn) { + var i, ii, linkFn, controller, isolateScope, elementControllers, transcludeFn, $element, + attrs; + + if (compileNode === linkNode) { + attrs = templateAttrs; + $element = templateAttrs.$$element; + } else { + $element = jqLite(linkNode); + attrs = new Attributes($element, templateAttrs); + } + + if (newIsolateScopeDirective) { + isolateScope = scope.$new(true); + } + + if (boundTranscludeFn) { + // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn` + // is later passed as `parentBoundTranscludeFn` to `publicLinkFn` + transcludeFn = controllersBoundTransclude; + transcludeFn.$$boundTransclude = boundTranscludeFn; + } + + if (controllerDirectives) { + elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope); + } + + if (newIsolateScopeDirective) { + // Initialize isolate scope bindings for new isolate scope directive. + compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective || + templateDirective === newIsolateScopeDirective.$$originalDirective))); + compile.$$addScopeClass($element, true); + isolateScope.$$isolateBindings = + newIsolateScopeDirective.$$isolateBindings; + initializeDirectiveBindings(scope, attrs, isolateScope, + isolateScope.$$isolateBindings, + newIsolateScopeDirective, isolateScope); + } + if (elementControllers) { + // Initialize bindToController bindings for new/isolate scopes + var scopeDirective = newIsolateScopeDirective || newScopeDirective; + var bindings; + var controllerForBindings; + if (scopeDirective && elementControllers[scopeDirective.name]) { + bindings = scopeDirective.$$bindings.bindToController; + controller = elementControllers[scopeDirective.name]; + + if (controller && controller.identifier && bindings) { + controllerForBindings = controller; + thisLinkFn.$$destroyBindings = + initializeDirectiveBindings(scope, attrs, controller.instance, + bindings, scopeDirective); + } + } + for (i in elementControllers) { + controller = elementControllers[i]; + var controllerResult = controller(); + + if (controllerResult !== controller.instance) { + // If the controller constructor has a return value, overwrite the instance + // from setupControllers and update the element data + controller.instance = controllerResult; + $element.data('$' + i + 'Controller', controllerResult); + if (controller === controllerForBindings) { + // Remove and re-install bindToController bindings + thisLinkFn.$$destroyBindings(); + thisLinkFn.$$destroyBindings = + initializeDirectiveBindings(scope, attrs, controllerResult, bindings, scopeDirective); + } + } + } + } + + // PRELINKING + for (i = 0, ii = preLinkFns.length; i < ii; i++) { + linkFn = preLinkFns[i]; + invokeLinkFn(linkFn, + linkFn.isolateScope ? isolateScope : scope, + $element, + attrs, + linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers), + transcludeFn + ); + } + + // RECURSION + // We only pass the isolate scope, if the isolate directive has a template, + // otherwise the child elements do not belong to the isolate directive. + var scopeToChild = scope; + if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) { + scopeToChild = isolateScope; + } + childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn); + + // POSTLINKING + for (i = postLinkFns.length - 1; i >= 0; i--) { + linkFn = postLinkFns[i]; + invokeLinkFn(linkFn, + linkFn.isolateScope ? isolateScope : scope, + $element, + attrs, + linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers), + transcludeFn + ); + } + + // This is the function that is injected as `$transclude`. + // Note: all arguments are optional! + function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) { + var transcludeControllers; + + // No scope passed in: + if (!isScope(scope)) { + futureParentElement = cloneAttachFn; + cloneAttachFn = scope; + scope = undefined; + } + + if (hasElementTranscludeDirective) { + transcludeControllers = elementControllers; + } + if (!futureParentElement) { + futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element; + } + return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild); + } + } + } + + function markDirectivesAsIsolate(directives) { + // mark all directives as needing isolate scope. + for (var j = 0, jj = directives.length; j < jj; j++) { + directives[j] = inherit(directives[j], {$$isolateScope: true}); + } + } + + /** + * looks up the directive and decorates it with exception handling and proper parameters. We + * call this the boundDirective. + * + * @param {string} name name of the directive to look up. + * @param {string} location The directive must be found in specific format. + * String containing any of theses characters: + * + * * `E`: element name + * * `A': attribute + * * `C`: class + * * `M`: comment + * @returns {boolean} true if directive was added. + */ + function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName, + endAttrName) { + if (name === ignoreDirective) return null; + var match = null; + if (hasDirectives.hasOwnProperty(name)) { + for (var directive, directives = $injector.get(name + Suffix), + i = 0, ii = directives.length; i < ii; i++) { + try { + directive = directives[i]; + if ((isUndefined(maxPriority) || maxPriority > directive.priority) && + directive.restrict.indexOf(location) != -1) { + if (startAttrName) { + directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName}); + } + tDirectives.push(directive); + match = directive; + } + } catch (e) { $exceptionHandler(e); } + } + } + return match; + } + + + /** + * looks up the directive and returns true if it is a multi-element directive, + * and therefore requires DOM nodes between -start and -end markers to be grouped + * together. + * + * @param {string} name name of the directive to look up. + * @returns true if directive was registered as multi-element. + */ + function directiveIsMultiElement(name) { + if (hasDirectives.hasOwnProperty(name)) { + for (var directive, directives = $injector.get(name + Suffix), + i = 0, ii = directives.length; i < ii; i++) { + directive = directives[i]; + if (directive.multiElement) { + return true; + } + } + } + return false; + } + + /** + * When the element is replaced with HTML template then the new attributes + * on the template need to be merged with the existing attributes in the DOM. + * The desired effect is to have both of the attributes present. + * + * @param {object} dst destination attributes (original DOM) + * @param {object} src source attributes (from the directive template) + */ + function mergeTemplateAttributes(dst, src) { + var srcAttr = src.$attr, + dstAttr = dst.$attr, + $element = dst.$$element; + + // reapply the old attributes to the new element + forEach(dst, function(value, key) { + if (key.charAt(0) != '$') { + if (src[key] && src[key] !== value) { + value += (key === 'style' ? ';' : ' ') + src[key]; + } + dst.$set(key, value, true, srcAttr[key]); + } + }); + + // copy the new attributes on the old attrs object + forEach(src, function(value, key) { + if (key == 'class') { + safeAddClass($element, value); + dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value; + } else if (key == 'style') { + $element.attr('style', $element.attr('style') + ';' + value); + dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value; + // `dst` will never contain hasOwnProperty as DOM parser won't let it. + // You will get an "InvalidCharacterError: DOM Exception 5" error if you + // have an attribute like "has-own-property" or "data-has-own-property", etc. + } else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) { + dst[key] = value; + dstAttr[key] = srcAttr[key]; + } + }); + } + + + function compileTemplateUrl(directives, $compileNode, tAttrs, + $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) { + var linkQueue = [], + afterTemplateNodeLinkFn, + afterTemplateChildLinkFn, + beforeTemplateCompileNode = $compileNode[0], + origAsyncDirective = directives.shift(), + derivedSyncDirective = inherit(origAsyncDirective, { + templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective + }), + templateUrl = (isFunction(origAsyncDirective.templateUrl)) + ? origAsyncDirective.templateUrl($compileNode, tAttrs) + : origAsyncDirective.templateUrl, + templateNamespace = origAsyncDirective.templateNamespace; + + $compileNode.empty(); + + $templateRequest(templateUrl) + .then(function(content) { + var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn; + + content = denormalizeTemplate(content); + + if (origAsyncDirective.replace) { + if (jqLiteIsTextNode(content)) { + $template = []; + } else { + $template = removeComments(wrapTemplate(templateNamespace, trim(content))); + } + compileNode = $template[0]; + + if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) { + throw $compileMinErr('tplrt', + "Template for directive '{0}' must have exactly one root element. {1}", + origAsyncDirective.name, templateUrl); + } + + tempTemplateAttrs = {$attr: {}}; + replaceWith($rootElement, $compileNode, compileNode); + var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs); + + if (isObject(origAsyncDirective.scope)) { + markDirectivesAsIsolate(templateDirectives); + } + directives = templateDirectives.concat(directives); + mergeTemplateAttributes(tAttrs, tempTemplateAttrs); + } else { + compileNode = beforeTemplateCompileNode; + $compileNode.html(content); + } + + directives.unshift(derivedSyncDirective); + + afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs, + childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns, + previousCompileContext); + forEach($rootElement, function(node, i) { + if (node == compileNode) { + $rootElement[i] = $compileNode[0]; + } + }); + afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn); + + while (linkQueue.length) { + var scope = linkQueue.shift(), + beforeTemplateLinkNode = linkQueue.shift(), + linkRootElement = linkQueue.shift(), + boundTranscludeFn = linkQueue.shift(), + linkNode = $compileNode[0]; + + if (scope.$$destroyed) continue; + + if (beforeTemplateLinkNode !== beforeTemplateCompileNode) { + var oldClasses = beforeTemplateLinkNode.className; + + if (!(previousCompileContext.hasElementTranscludeDirective && + origAsyncDirective.replace)) { + // it was cloned therefore we have to clone as well. + linkNode = jqLiteClone(compileNode); + } + replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode); + + // Copy in CSS classes from original node + safeAddClass(jqLite(linkNode), oldClasses); + } + if (afterTemplateNodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn); + } else { + childBoundTranscludeFn = boundTranscludeFn; + } + afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement, + childBoundTranscludeFn, afterTemplateNodeLinkFn); + } + linkQueue = null; + }); + + return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) { + var childBoundTranscludeFn = boundTranscludeFn; + if (scope.$$destroyed) return; + if (linkQueue) { + linkQueue.push(scope, + node, + rootElement, + childBoundTranscludeFn); + } else { + if (afterTemplateNodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn); + } + afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn, + afterTemplateNodeLinkFn); + } + }; + } + + + /** + * Sorting function for bound directives. + */ + function byPriority(a, b) { + var diff = b.priority - a.priority; + if (diff !== 0) return diff; + if (a.name !== b.name) return (a.name < b.name) ? -1 : 1; + return a.index - b.index; + } + + function assertNoDuplicate(what, previousDirective, directive, element) { + + function wrapModuleNameIfDefined(moduleName) { + return moduleName ? + (' (module: ' + moduleName + ')') : + ''; + } + + if (previousDirective) { + throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}', + previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName), + directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element)); + } + } + + + function addTextInterpolateDirective(directives, text) { + var interpolateFn = $interpolate(text, true); + if (interpolateFn) { + directives.push({ + priority: 0, + compile: function textInterpolateCompileFn(templateNode) { + var templateNodeParent = templateNode.parent(), + hasCompileParent = !!templateNodeParent.length; + + // When transcluding a template that has bindings in the root + // we don't have a parent and thus need to add the class during linking fn. + if (hasCompileParent) compile.$$addBindingClass(templateNodeParent); + + return function textInterpolateLinkFn(scope, node) { + var parent = node.parent(); + if (!hasCompileParent) compile.$$addBindingClass(parent); + compile.$$addBindingInfo(parent, interpolateFn.expressions); + scope.$watch(interpolateFn, function interpolateFnWatchAction(value) { + node[0].nodeValue = value; + }); + }; + } + }); + } + } + + + function wrapTemplate(type, template) { + type = lowercase(type || 'html'); + switch (type) { + case 'svg': + case 'math': + var wrapper = document.createElement('div'); + wrapper.innerHTML = '<' + type + '>' + template + ''; + return wrapper.childNodes[0].childNodes; + default: + return template; + } + } + + + function getTrustedContext(node, attrNormalizedName) { + if (attrNormalizedName == "srcdoc") { + return $sce.HTML; + } + var tag = nodeName_(node); + // maction[xlink:href] can source SVG. It's not limited to . + if (attrNormalizedName == "xlinkHref" || + (tag == "form" && attrNormalizedName == "action") || + (tag != "img" && (attrNormalizedName == "src" || + attrNormalizedName == "ngSrc"))) { + return $sce.RESOURCE_URL; + } + } + + + function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) { + var trustedContext = getTrustedContext(node, name); + allOrNothing = ALL_OR_NOTHING_ATTRS[name] || allOrNothing; + + var interpolateFn = $interpolate(value, true, trustedContext, allOrNothing); + + // no interpolation found -> ignore + if (!interpolateFn) return; + + + if (name === "multiple" && nodeName_(node) === "select") { + throw $compileMinErr("selmulti", + "Binding to the 'multiple' attribute is not supported. Element: {0}", + startingTag(node)); + } + + directives.push({ + priority: 100, + compile: function() { + return { + pre: function attrInterpolatePreLinkFn(scope, element, attr) { + var $$observers = (attr.$$observers || (attr.$$observers = createMap())); + + if (EVENT_HANDLER_ATTR_REGEXP.test(name)) { + throw $compileMinErr('nodomevents', + "Interpolations for HTML DOM event attributes are disallowed. Please use the " + + "ng- versions (such as ng-click instead of onclick) instead."); + } + + // If the attribute has changed since last $interpolate()ed + var newValue = attr[name]; + if (newValue !== value) { + // we need to interpolate again since the attribute value has been updated + // (e.g. by another directive's compile function) + // ensure unset/empty values make interpolateFn falsy + interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing); + value = newValue; + } + + // if attribute was updated so that there is no interpolation going on we don't want to + // register any observers + if (!interpolateFn) return; + + // initialize attr object so that it's ready in case we need the value for isolate + // scope initialization, otherwise the value would not be available from isolate + // directive's linking fn during linking phase + attr[name] = interpolateFn(scope); + + ($$observers[name] || ($$observers[name] = [])).$$inter = true; + (attr.$$observers && attr.$$observers[name].$$scope || scope). + $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) { + //special case for class attribute addition + removal + //so that class changes can tap into the animation + //hooks provided by the $animate service. Be sure to + //skip animations when the first digest occurs (when + //both the new and the old values are the same) since + //the CSS classes are the non-interpolated values + if (name === 'class' && newValue != oldValue) { + attr.$updateClass(newValue, oldValue); + } else { + attr.$set(name, newValue); + } + }); + } + }; + } + }); + } + + + /** + * This is a special jqLite.replaceWith, which can replace items which + * have no parents, provided that the containing jqLite collection is provided. + * + * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes + * in the root of the tree. + * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep + * the shell, but replace its DOM node reference. + * @param {Node} newNode The new DOM node. + */ + function replaceWith($rootElement, elementsToRemove, newNode) { + var firstElementToRemove = elementsToRemove[0], + removeCount = elementsToRemove.length, + parent = firstElementToRemove.parentNode, + i, ii; + + if ($rootElement) { + for (i = 0, ii = $rootElement.length; i < ii; i++) { + if ($rootElement[i] == firstElementToRemove) { + $rootElement[i++] = newNode; + for (var j = i, j2 = j + removeCount - 1, + jj = $rootElement.length; + j < jj; j++, j2++) { + if (j2 < jj) { + $rootElement[j] = $rootElement[j2]; + } else { + delete $rootElement[j]; + } + } + $rootElement.length -= removeCount - 1; + + // If the replaced element is also the jQuery .context then replace it + // .context is a deprecated jQuery api, so we should set it only when jQuery set it + // http://api.jquery.com/context/ + if ($rootElement.context === firstElementToRemove) { + $rootElement.context = newNode; + } + break; + } + } + } + + if (parent) { + parent.replaceChild(newNode, firstElementToRemove); + } + + // TODO(perf): what's this document fragment for? is it needed? can we at least reuse it? + var fragment = document.createDocumentFragment(); + fragment.appendChild(firstElementToRemove); + + if (jqLite.hasData(firstElementToRemove)) { + // Copy over user data (that includes Angular's $scope etc.). Don't copy private + // data here because there's no public interface in jQuery to do that and copying over + // event listeners (which is the main use of private data) wouldn't work anyway. + jqLite(newNode).data(jqLite(firstElementToRemove).data()); + + // Remove data of the replaced element. We cannot just call .remove() + // on the element it since that would deallocate scope that is needed + // for the new node. Instead, remove the data "manually". + if (!jQuery) { + delete jqLite.cache[firstElementToRemove[jqLite.expando]]; + } else { + // jQuery 2.x doesn't expose the data storage. Use jQuery.cleanData to clean up after + // the replaced element. The cleanData version monkey-patched by Angular would cause + // the scope to be trashed and we do need the very same scope to work with the new + // element. However, we cannot just cache the non-patched version and use it here as + // that would break if another library patches the method after Angular does (one + // example is jQuery UI). Instead, set a flag indicating scope destroying should be + // skipped this one time. + skipDestroyOnNextJQueryCleanData = true; + jQuery.cleanData([firstElementToRemove]); + } + } + + for (var k = 1, kk = elementsToRemove.length; k < kk; k++) { + var element = elementsToRemove[k]; + jqLite(element).remove(); // must do this way to clean up expando + fragment.appendChild(element); + delete elementsToRemove[k]; + } + + elementsToRemove[0] = newNode; + elementsToRemove.length = 1; + } + + + function cloneAndAnnotateFn(fn, annotation) { + return extend(function() { return fn.apply(null, arguments); }, fn, annotation); + } + + + function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) { + try { + linkFn(scope, $element, attrs, controllers, transcludeFn); + } catch (e) { + $exceptionHandler(e, startingTag($element)); + } + } + + + // Set up $watches for isolate scope and controller bindings. This process + // only occurs for isolate scopes and new scopes with controllerAs. + function initializeDirectiveBindings(scope, attrs, destination, bindings, + directive, newScope) { + var onNewScopeDestroyed; + forEach(bindings, function(definition, scopeName) { + var attrName = definition.attrName, + optional = definition.optional, + mode = definition.mode, // @, =, or & + lastValue, + parentGet, parentSet, compare; + + switch (mode) { + + case '@': + if (!optional && !hasOwnProperty.call(attrs, attrName)) { + destination[scopeName] = attrs[attrName] = void 0; + } + attrs.$observe(attrName, function(value) { + if (isString(value)) { + destination[scopeName] = value; + } + }); + attrs.$$observers[attrName].$$scope = scope; + if (isString(attrs[attrName])) { + // If the attribute has been provided then we trigger an interpolation to ensure + // the value is there for use in the link fn + destination[scopeName] = $interpolate(attrs[attrName])(scope); + } + break; + + case '=': + if (!hasOwnProperty.call(attrs, attrName)) { + if (optional) break; + attrs[attrName] = void 0; + } + if (optional && !attrs[attrName]) break; + + parentGet = $parse(attrs[attrName]); + if (parentGet.literal) { + compare = equals; + } else { + compare = function(a, b) { return a === b || (a !== a && b !== b); }; + } + parentSet = parentGet.assign || function() { + // reset the change, or we will throw this exception on every $digest + lastValue = destination[scopeName] = parentGet(scope); + throw $compileMinErr('nonassign', + "Expression '{0}' used with directive '{1}' is non-assignable!", + attrs[attrName], directive.name); + }; + lastValue = destination[scopeName] = parentGet(scope); + var parentValueWatch = function parentValueWatch(parentValue) { + if (!compare(parentValue, destination[scopeName])) { + // we are out of sync and need to copy + if (!compare(parentValue, lastValue)) { + // parent changed and it has precedence + destination[scopeName] = parentValue; + } else { + // if the parent can be assigned then do so + parentSet(scope, parentValue = destination[scopeName]); + } + } + return lastValue = parentValue; + }; + parentValueWatch.$stateful = true; + var unwatch; + if (definition.collection) { + unwatch = scope.$watchCollection(attrs[attrName], parentValueWatch); + } else { + unwatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal); + } + onNewScopeDestroyed = (onNewScopeDestroyed || []); + onNewScopeDestroyed.push(unwatch); + break; + + case '&': + // Don't assign Object.prototype method to scope + parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop; + + // Don't assign noop to destination if expression is not valid + if (parentGet === noop && optional) break; + + destination[scopeName] = function(locals) { + return parentGet(scope, locals); + }; + break; + } + }); + var destroyBindings = onNewScopeDestroyed ? function destroyBindings() { + for (var i = 0, ii = onNewScopeDestroyed.length; i < ii; ++i) { + onNewScopeDestroyed[i](); + } + } : noop; + if (newScope && destroyBindings !== noop) { + newScope.$on('$destroy', destroyBindings); + return noop; + } + return destroyBindings; + } + }]; +} + +var PREFIX_REGEXP = /^((?:x|data)[\:\-_])/i; +/** + * Converts all accepted directives format into proper directive name. + * @param name Name to normalize + */ +function directiveNormalize(name) { + return camelCase(name.replace(PREFIX_REGEXP, '')); +} + +/** + * @ngdoc type + * @name $compile.directive.Attributes + * + * @description + * A shared object between directive compile / linking functions which contains normalized DOM + * element attributes. The values reflect current binding state `{{ }}`. The normalization is + * needed since all of these are treated as equivalent in Angular: + * + * ``` + * + * ``` + */ + +/** + * @ngdoc property + * @name $compile.directive.Attributes#$attr + * + * @description + * A map of DOM element attribute names to the normalized name. This is + * needed to do reverse lookup from normalized name back to actual name. + */ + + +/** + * @ngdoc method + * @name $compile.directive.Attributes#$set + * @kind function + * + * @description + * Set DOM element attribute value. + * + * + * @param {string} name Normalized element attribute name of the property to modify. The name is + * reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr} + * property to the original name. + * @param {string} value Value to set the attribute to. The value can be an interpolated string. + */ + + + +/** + * Closure compiler type information + */ + +function nodesetLinkingFn( + /* angular.Scope */ scope, + /* NodeList */ nodeList, + /* Element */ rootElement, + /* function(Function) */ boundTranscludeFn +) {} + +function directiveLinkingFn( + /* nodesetLinkingFn */ nodesetLinkingFn, + /* angular.Scope */ scope, + /* Node */ node, + /* Element */ rootElement, + /* function(Function) */ boundTranscludeFn +) {} + +function tokenDifference(str1, str2) { + var values = '', + tokens1 = str1.split(/\s+/), + tokens2 = str2.split(/\s+/); + + outer: + for (var i = 0; i < tokens1.length; i++) { + var token = tokens1[i]; + for (var j = 0; j < tokens2.length; j++) { + if (token == tokens2[j]) continue outer; + } + values += (values.length > 0 ? ' ' : '') + token; + } + return values; +} + +function removeComments(jqNodes) { + jqNodes = jqLite(jqNodes); + var i = jqNodes.length; + + if (i <= 1) { + return jqNodes; + } + + while (i--) { + var node = jqNodes[i]; + if (node.nodeType === NODE_TYPE_COMMENT) { + splice.call(jqNodes, i, 1); + } + } + return jqNodes; +} + +var $controllerMinErr = minErr('$controller'); + + +var CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/; +function identifierForController(controller, ident) { + if (ident && isString(ident)) return ident; + if (isString(controller)) { + var match = CNTRL_REG.exec(controller); + if (match) return match[3]; + } +} + + +/** + * @ngdoc provider + * @name $controllerProvider + * @description + * The {@link ng.$controller $controller service} is used by Angular to create new + * controllers. + * + * This provider allows controller registration via the + * {@link ng.$controllerProvider#register register} method. + */ +function $ControllerProvider() { + var controllers = {}, + globals = false; + + /** + * @ngdoc method + * @name $controllerProvider#register + * @param {string|Object} name Controller name, or an object map of controllers where the keys are + * the names and the values are the constructors. + * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI + * annotations in the array notation). + */ + this.register = function(name, constructor) { + assertNotHasOwnProperty(name, 'controller'); + if (isObject(name)) { + extend(controllers, name); + } else { + controllers[name] = constructor; + } + }; + + /** + * @ngdoc method + * @name $controllerProvider#allowGlobals + * @description If called, allows `$controller` to find controller constructors on `window` + */ + this.allowGlobals = function() { + globals = true; + }; + + + this.$get = ['$injector', '$window', function($injector, $window) { + + /** + * @ngdoc service + * @name $controller + * @requires $injector + * + * @param {Function|string} constructor If called with a function then it's considered to be the + * controller constructor function. Otherwise it's considered to be a string which is used + * to retrieve the controller constructor using the following steps: + * + * * check if a controller with given name is registered via `$controllerProvider` + * * check if evaluating the string on the current scope returns a constructor + * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global + * `window` object (not recommended) + * + * The string can use the `controller as property` syntax, where the controller instance is published + * as the specified property on the `scope`; the `scope` must be injected into `locals` param for this + * to work correctly. + * + * @param {Object} locals Injection locals for Controller. + * @return {Object} Instance of given controller. + * + * @description + * `$controller` service is responsible for instantiating controllers. + * + * It's just a simple call to {@link auto.$injector $injector}, but extracted into + * a service, so that one can override this service with [BC version](https://gist.github.com/1649788). + */ + return function(expression, locals, later, ident) { + // PRIVATE API: + // param `later` --- indicates that the controller's constructor is invoked at a later time. + // If true, $controller will allocate the object with the correct + // prototype chain, but will not invoke the controller until a returned + // callback is invoked. + // param `ident` --- An optional label which overrides the label parsed from the controller + // expression, if any. + var instance, match, constructor, identifier; + later = later === true; + if (ident && isString(ident)) { + identifier = ident; + } + + if (isString(expression)) { + match = expression.match(CNTRL_REG); + if (!match) { + throw $controllerMinErr('ctrlfmt', + "Badly formed controller string '{0}'. " + + "Must match `__name__ as __id__` or `__name__`.", expression); + } + constructor = match[1], + identifier = identifier || match[3]; + expression = controllers.hasOwnProperty(constructor) + ? controllers[constructor] + : getter(locals.$scope, constructor, true) || + (globals ? getter($window, constructor, true) : undefined); + + assertArgFn(expression, constructor, true); + } + + if (later) { + // Instantiate controller later: + // This machinery is used to create an instance of the object before calling the + // controller's constructor itself. + // + // This allows properties to be added to the controller before the constructor is + // invoked. Primarily, this is used for isolate scope bindings in $compile. + // + // This feature is not intended for use by applications, and is thus not documented + // publicly. + // Object creation: http://jsperf.com/create-constructor/2 + var controllerPrototype = (isArray(expression) ? + expression[expression.length - 1] : expression).prototype; + instance = Object.create(controllerPrototype || null); + + if (identifier) { + addIdentifier(locals, identifier, instance, constructor || expression.name); + } + + var instantiate; + return instantiate = extend(function() { + var result = $injector.invoke(expression, instance, locals, constructor); + if (result !== instance && (isObject(result) || isFunction(result))) { + instance = result; + if (identifier) { + // If result changed, re-assign controllerAs value to scope. + addIdentifier(locals, identifier, instance, constructor || expression.name); + } + } + return instance; + }, { + instance: instance, + identifier: identifier + }); + } + + instance = $injector.instantiate(expression, locals, constructor); + + if (identifier) { + addIdentifier(locals, identifier, instance, constructor || expression.name); + } + + return instance; + }; + + function addIdentifier(locals, identifier, instance, name) { + if (!(locals && isObject(locals.$scope))) { + throw minErr('$controller')('noscp', + "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", + name, identifier); + } + + locals.$scope[identifier] = instance; + } + }]; +} + +/** + * @ngdoc service + * @name $document + * @requires $window + * + * @description + * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. + * + * @example + + +
+

$document title:

+

window.document title:

+
+
+ + angular.module('documentExample', []) + .controller('ExampleController', ['$scope', '$document', function($scope, $document) { + $scope.title = $document[0].title; + $scope.windowTitle = angular.element(window.document)[0].title; + }]); + +
+ */ +function $DocumentProvider() { + this.$get = ['$window', function(window) { + return jqLite(window.document); + }]; +} + +/** + * @ngdoc service + * @name $exceptionHandler + * @requires ng.$log + * + * @description + * Any uncaught exception in angular expressions is delegated to this service. + * The default implementation simply delegates to `$log.error` which logs it into + * the browser console. + * + * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by + * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing. + * + * ## Example: + * + * ```js + * angular.module('exceptionOverride', []).factory('$exceptionHandler', function() { + * return function(exception, cause) { + * exception.message += ' (caused by "' + cause + '")'; + * throw exception; + * }; + * }); + * ``` + * + * This example will override the normal action of `$exceptionHandler`, to make angular + * exceptions fail hard when they happen, instead of just logging to the console. + * + *
+ * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind` + * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler} + * (unless executed during a digest). + * + * If you wish, you can manually delegate exceptions, e.g. + * `try { ... } catch(e) { $exceptionHandler(e); }` + * + * @param {Error} exception Exception associated with the error. + * @param {string=} cause optional information about the context in which + * the error was thrown. + * + */ +function $ExceptionHandlerProvider() { + this.$get = ['$log', function($log) { + return function(exception, cause) { + $log.error.apply($log, arguments); + }; + }]; +} + +var $$ForceReflowProvider = function() { + this.$get = ['$document', function($document) { + return function(domNode) { + //the line below will force the browser to perform a repaint so + //that all the animated elements within the animation frame will + //be properly updated and drawn on screen. This is required to + //ensure that the preparation animation is properly flushed so that + //the active state picks up from there. DO NOT REMOVE THIS LINE. + //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH + //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND + //WILL TAKE YEARS AWAY FROM YOUR LIFE. + if (domNode) { + if (!domNode.nodeType && domNode instanceof jqLite) { + domNode = domNode[0]; + } + } else { + domNode = $document[0].body; + } + return domNode.offsetWidth + 1; + }; + }]; +}; + +var APPLICATION_JSON = 'application/json'; +var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'}; +var JSON_START = /^\[|^\{(?!\{)/; +var JSON_ENDS = { + '[': /]$/, + '{': /}$/ +}; +var JSON_PROTECTION_PREFIX = /^\)\]\}',?\n/; +var $httpMinErr = minErr('$http'); +var $httpMinErrLegacyFn = function(method) { + return function() { + throw $httpMinErr('legacy', 'The method `{0}` on the promise returned from `$http` has been disabled.', method); + }; +}; + +function serializeValue(v) { + if (isObject(v)) { + return isDate(v) ? v.toISOString() : toJson(v); + } + return v; +} + + +function $HttpParamSerializerProvider() { + /** + * @ngdoc service + * @name $httpParamSerializer + * @description + * + * Default {@link $http `$http`} params serializer that converts objects to strings + * according to the following rules: + * + * * `{'foo': 'bar'}` results in `foo=bar` + * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object) + * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element) + * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D"` (stringified and encoded representation of an object) + * + * Note that serializer will sort the request parameters alphabetically. + * */ + + this.$get = function() { + return function ngParamSerializer(params) { + if (!params) return ''; + var parts = []; + forEachSorted(params, function(value, key) { + if (value === null || isUndefined(value)) return; + if (isArray(value)) { + forEach(value, function(v, k) { + parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v))); + }); + } else { + parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value))); + } + }); + + return parts.join('&'); + }; + }; +} + +function $HttpParamSerializerJQLikeProvider() { + /** + * @ngdoc service + * @name $httpParamSerializerJQLike + * @description + * + * Alternative {@link $http `$http`} params serializer that follows + * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic. + * The serializer will also sort the params alphabetically. + * + * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property: + * + * ```js + * $http({ + * url: myUrl, + * method: 'GET', + * params: myParams, + * paramSerializer: '$httpParamSerializerJQLike' + * }); + * ``` + * + * It is also possible to set it as the default `paramSerializer` in the + * {@link $httpProvider#defaults `$httpProvider`}. + * + * Additionally, you can inject the serializer and use it explicitly, for example to serialize + * form data for submission: + * + * ```js + * .controller(function($http, $httpParamSerializerJQLike) { + * //... + * + * $http({ + * url: myUrl, + * method: 'POST', + * data: $httpParamSerializerJQLike(myData), + * headers: { + * 'Content-Type': 'application/x-www-form-urlencoded' + * } + * }); + * + * }); + * ``` + * + * */ + this.$get = function() { + return function jQueryLikeParamSerializer(params) { + if (!params) return ''; + var parts = []; + serialize(params, '', true); + return parts.join('&'); + + function serialize(toSerialize, prefix, topLevel) { + if (toSerialize === null || isUndefined(toSerialize)) return; + if (isArray(toSerialize)) { + forEach(toSerialize, function(value, index) { + serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']'); + }); + } else if (isObject(toSerialize) && !isDate(toSerialize)) { + forEachSorted(toSerialize, function(value, key) { + serialize(value, prefix + + (topLevel ? '' : '[') + + key + + (topLevel ? '' : ']')); + }); + } else { + parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize))); + } + } + }; + }; +} + +function defaultHttpResponseTransform(data, headers) { + if (isString(data)) { + // Strip json vulnerability protection prefix and trim whitespace + var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim(); + + if (tempData) { + var contentType = headers('Content-Type'); + if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) { + data = fromJson(tempData); + } + } + } + + return data; +} + +function isJsonLike(str) { + var jsonStart = str.match(JSON_START); + return jsonStart && JSON_ENDS[jsonStart[0]].test(str); +} + +/** + * Parse headers into key value object + * + * @param {string} headers Raw headers as a string + * @returns {Object} Parsed headers as key value object + */ +function parseHeaders(headers) { + var parsed = createMap(), i; + + function fillInParsed(key, val) { + if (key) { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + } + + if (isString(headers)) { + forEach(headers.split('\n'), function(line) { + i = line.indexOf(':'); + fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1))); + }); + } else if (isObject(headers)) { + forEach(headers, function(headerVal, headerKey) { + fillInParsed(lowercase(headerKey), trim(headerVal)); + }); + } + + return parsed; +} + + +/** + * Returns a function that provides access to parsed headers. + * + * Headers are lazy parsed when first requested. + * @see parseHeaders + * + * @param {(string|Object)} headers Headers to provide access to. + * @returns {function(string=)} Returns a getter function which if called with: + * + * - if called with single an argument returns a single header value or null + * - if called with no arguments returns an object containing all headers. + */ +function headersGetter(headers) { + var headersObj; + + return function(name) { + if (!headersObj) headersObj = parseHeaders(headers); + + if (name) { + var value = headersObj[lowercase(name)]; + if (value === void 0) { + value = null; + } + return value; + } + + return headersObj; + }; +} + + +/** + * Chain all given functions + * + * This function is used for both request and response transforming + * + * @param {*} data Data to transform. + * @param {function(string=)} headers HTTP headers getter fn. + * @param {number} status HTTP status code of the response. + * @param {(Function|Array.)} fns Function or an array of functions. + * @returns {*} Transformed data. + */ +function transformData(data, headers, status, fns) { + if (isFunction(fns)) { + return fns(data, headers, status); + } + + forEach(fns, function(fn) { + data = fn(data, headers, status); + }); + + return data; +} + + +function isSuccess(status) { + return 200 <= status && status < 300; +} + + +/** + * @ngdoc provider + * @name $httpProvider + * @description + * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service. + * */ +function $HttpProvider() { + /** + * @ngdoc property + * @name $httpProvider#defaults + * @description + * + * Object containing default values for all {@link ng.$http $http} requests. + * + * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`} + * that will provide the cache for all requests who set their `cache` property to `true`. + * If you set the `defaults.cache = false` then only requests that specify their own custom + * cache object will be cached. See {@link $http#caching $http Caching} for more information. + * + * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token. + * Defaults value is `'XSRF-TOKEN'`. + * + * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the + * XSRF token. Defaults value is `'X-XSRF-TOKEN'`. + * + * - **`defaults.headers`** - {Object} - Default headers for all $http requests. + * Refer to {@link ng.$http#setting-http-headers $http} for documentation on + * setting default headers. + * - **`defaults.headers.common`** + * - **`defaults.headers.post`** + * - **`defaults.headers.put`** + * - **`defaults.headers.patch`** + * + * + * - **`defaults.paramSerializer`** - `{string|function(Object):string}` - A function + * used to the prepare string representation of request parameters (specified as an object). + * If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}. + * Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}. + * + **/ + var defaults = this.defaults = { + // transform incoming response data + transformResponse: [defaultHttpResponseTransform], + + // transform outgoing request data + transformRequest: [function(d) { + return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d; + }], + + // default headers + headers: { + common: { + 'Accept': 'application/json, text/plain, */*' + }, + post: shallowCopy(CONTENT_TYPE_APPLICATION_JSON), + put: shallowCopy(CONTENT_TYPE_APPLICATION_JSON), + patch: shallowCopy(CONTENT_TYPE_APPLICATION_JSON) + }, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + paramSerializer: '$httpParamSerializer' + }; + + var useApplyAsync = false; + /** + * @ngdoc method + * @name $httpProvider#useApplyAsync + * @description + * + * Configure $http service to combine processing of multiple http responses received at around + * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in + * significant performance improvement for bigger applications that make many HTTP requests + * concurrently (common during application bootstrap). + * + * Defaults to false. If no value is specified, returns the current configured value. + * + * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred + * "apply" on the next tick, giving time for subsequent requests in a roughly ~10ms window + * to load and share the same digest cycle. + * + * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. + * otherwise, returns the current configured value. + **/ + this.useApplyAsync = function(value) { + if (isDefined(value)) { + useApplyAsync = !!value; + return this; + } + return useApplyAsync; + }; + + var useLegacyPromise = true; + /** + * @ngdoc method + * @name $httpProvider#useLegacyPromiseExtensions + * @description + * + * Configure `$http` service to return promises without the shorthand methods `success` and `error`. + * This should be used to make sure that applications work without these methods. + * + * Defaults to false. If no value is specified, returns the current configured value. + * + * @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods. + * + * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. + * otherwise, returns the current configured value. + **/ + this.useLegacyPromiseExtensions = function(value) { + if (isDefined(value)) { + useLegacyPromise = !!value; + return this; + } + return useLegacyPromise; + }; + + /** + * @ngdoc property + * @name $httpProvider#interceptors + * @description + * + * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http} + * pre-processing of request or postprocessing of responses. + * + * These service factories are ordered by request, i.e. they are applied in the same order as the + * array, on request, but reverse order, on response. + * + * {@link ng.$http#interceptors Interceptors detailed info} + **/ + var interceptorFactories = this.interceptors = []; + + this.$get = ['$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', + function($httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector) { + + var defaultCache = $cacheFactory('$http'); + + /** + * Make sure that default param serializer is exposed as a function + */ + defaults.paramSerializer = isString(defaults.paramSerializer) ? + $injector.get(defaults.paramSerializer) : defaults.paramSerializer; + + /** + * Interceptors stored in reverse order. Inner interceptors before outer interceptors. + * The reversal is needed so that we can build up the interception chain around the + * server request. + */ + var reversedInterceptors = []; + + forEach(interceptorFactories, function(interceptorFactory) { + reversedInterceptors.unshift(isString(interceptorFactory) + ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory)); + }); + + /** + * @ngdoc service + * @kind function + * @name $http + * @requires ng.$httpBackend + * @requires $cacheFactory + * @requires $rootScope + * @requires $q + * @requires $injector + * + * @description + * The `$http` service is a core Angular service that facilitates communication with the remote + * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest) + * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP). + * + * For unit testing applications that use `$http` service, see + * {@link ngMock.$httpBackend $httpBackend mock}. + * + * For a higher level of abstraction, please check out the {@link ngResource.$resource + * $resource} service. + * + * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by + * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage + * it is important to familiarize yourself with these APIs and the guarantees they provide. + * + * + * ## General usage + * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} — + * that is used to generate an HTTP request and returns a {@link ng.$q promise}. + * + * ```js + * // Simple GET request example: + * $http({ + * method: 'GET', + * url: '/someUrl' + * }).then(function successCallback(response) { + * // this callback will be called asynchronously + * // when the response is available + * }, function errorCallback(response) { + * // called asynchronously if an error occurs + * // or server returns response with an error status. + * }); + * ``` + * + * The response object has these properties: + * + * - **data** – `{string|Object}` – The response body transformed with the transform + * functions. + * - **status** – `{number}` – HTTP status code of the response. + * - **headers** – `{function([headerName])}` – Header getter function. + * - **config** – `{Object}` – The configuration object that was used to generate the request. + * - **statusText** – `{string}` – HTTP status text of the response. + * + * A response status code between 200 and 299 is considered a success status and + * will result in the success callback being called. Note that if the response is a redirect, + * XMLHttpRequest will transparently follow it, meaning that the error callback will not be + * called for such responses. + * + * + * ## Shortcut methods + * + * Shortcut methods are also available. All shortcut methods require passing in the URL, and + * request data must be passed in for POST/PUT requests. An optional config can be passed as the + * last argument. + * + * ```js + * $http.get('/someUrl', config).then(successCallback, errorCallback); + * $http.post('/someUrl', data, config).then(successCallback, errorCallback); + * ``` + * + * Complete list of shortcut methods: + * + * - {@link ng.$http#get $http.get} + * - {@link ng.$http#head $http.head} + * - {@link ng.$http#post $http.post} + * - {@link ng.$http#put $http.put} + * - {@link ng.$http#delete $http.delete} + * - {@link ng.$http#jsonp $http.jsonp} + * - {@link ng.$http#patch $http.patch} + * + * + * ## Writing Unit Tests that use $http + * When unit testing (using {@link ngMock ngMock}), it is necessary to call + * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending + * request using trained responses. + * + * ``` + * $httpBackend.expectGET(...); + * $http.get(...); + * $httpBackend.flush(); + * ``` + * + * ## Deprecation Notice + *
+ * The `$http` legacy promise methods `success` and `error` have been deprecated. + * Use the standard `then` method instead. + * If {@link $httpProvider#useLegacyPromiseExtensions `$httpProvider.useLegacyPromiseExtensions`} is set to + * `false` then these methods will throw {@link $http:legacy `$http/legacy`} error. + *
+ * + * ## Setting HTTP Headers + * + * The $http service will automatically add certain HTTP headers to all requests. These defaults + * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration + * object, which currently contains this default configuration: + * + * - `$httpProvider.defaults.headers.common` (headers that are common for all requests): + * - `Accept: application/json, text/plain, * / *` + * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests) + * - `Content-Type: application/json` + * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests) + * - `Content-Type: application/json` + * + * To add or overwrite these defaults, simply add or remove a property from these configuration + * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object + * with the lowercased HTTP method name as the key, e.g. + * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`. + * + * The defaults can also be set at runtime via the `$http.defaults` object in the same + * fashion. For example: + * + * ``` + * module.run(function($http) { + * $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w' + * }); + * ``` + * + * In addition, you can supply a `headers` property in the config object passed when + * calling `$http(config)`, which overrides the defaults without changing them globally. + * + * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis, + * Use the `headers` property, setting the desired header to `undefined`. For example: + * + * ```js + * var req = { + * method: 'POST', + * url: 'http://example.com', + * headers: { + * 'Content-Type': undefined + * }, + * data: { test: 'test' } + * } + * + * $http(req).then(function(){...}, function(){...}); + * ``` + * + * ## Transforming Requests and Responses + * + * Both requests and responses can be transformed using transformation functions: `transformRequest` + * and `transformResponse`. These properties can be a single function that returns + * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions, + * which allows you to `push` or `unshift` a new transformation function into the transformation chain. + * + * ### Default Transformations + * + * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and + * `defaults.transformResponse` properties. If a request does not provide its own transformations + * then these will be applied. + * + * You can augment or replace the default transformations by modifying these properties by adding to or + * replacing the array. + * + * Angular provides the following default transformations: + * + * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`): + * + * - If the `data` property of the request configuration object contains an object, serialize it + * into JSON format. + * + * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`): + * + * - If XSRF prefix is detected, strip it (see Security Considerations section below). + * - If JSON response is detected, deserialize it using a JSON parser. + * + * + * ### Overriding the Default Transformations Per Request + * + * If you wish override the request/response transformations only for a single request then provide + * `transformRequest` and/or `transformResponse` properties on the configuration object passed + * into `$http`. + * + * Note that if you provide these properties on the config object the default transformations will be + * overwritten. If you wish to augment the default transformations then you must include them in your + * local transformation array. + * + * The following code demonstrates adding a new response transformation to be run after the default response + * transformations have been run. + * + * ```js + * function appendTransform(defaults, transform) { + * + * // We can't guarantee that the default transformation is an array + * defaults = angular.isArray(defaults) ? defaults : [defaults]; + * + * // Append the new transformation to the defaults + * return defaults.concat(transform); + * } + * + * $http({ + * url: '...', + * method: 'GET', + * transformResponse: appendTransform($http.defaults.transformResponse, function(value) { + * return doTransform(value); + * }) + * }); + * ``` + * + * + * ## Caching + * + * To enable caching, set the request configuration `cache` property to `true` (to use default + * cache) or to a custom cache object (built with {@link ng.$cacheFactory `$cacheFactory`}). + * When the cache is enabled, `$http` stores the response from the server in the specified + * cache. The next time the same request is made, the response is served from the cache without + * sending a request to the server. + * + * Note that even if the response is served from cache, delivery of the data is asynchronous in + * the same way that real requests are. + * + * If there are multiple GET requests for the same URL that should be cached using the same + * cache, but the cache is not populated yet, only one request to the server will be made and + * the remaining requests will be fulfilled using the response from the first request. + * + * You can change the default cache to a new object (built with + * {@link ng.$cacheFactory `$cacheFactory`}) by updating the + * {@link ng.$http#defaults `$http.defaults.cache`} property. All requests who set + * their `cache` property to `true` will now use this cache object. + * + * If you set the default cache to `false` then only requests that specify their own custom + * cache object will be cached. + * + * ## Interceptors + * + * Before you start creating interceptors, be sure to understand the + * {@link ng.$q $q and deferred/promise APIs}. + * + * For purposes of global error handling, authentication, or any kind of synchronous or + * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be + * able to intercept requests before they are handed to the server and + * responses before they are handed over to the application code that + * initiated these requests. The interceptors leverage the {@link ng.$q + * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing. + * + * The interceptors are service factories that are registered with the `$httpProvider` by + * adding them to the `$httpProvider.interceptors` array. The factory is called and + * injected with dependencies (if specified) and returns the interceptor. + * + * There are two kinds of interceptors (and two kinds of rejection interceptors): + * + * * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to + * modify the `config` object or create a new one. The function needs to return the `config` + * object directly, or a promise containing the `config` or a new `config` object. + * * `requestError`: interceptor gets called when a previous interceptor threw an error or + * resolved with a rejection. + * * `response`: interceptors get called with http `response` object. The function is free to + * modify the `response` object or create a new one. The function needs to return the `response` + * object directly, or as a promise containing the `response` or a new `response` object. + * * `responseError`: interceptor gets called when a previous interceptor threw an error or + * resolved with a rejection. + * + * + * ```js + * // register the interceptor as a service + * $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) { + * return { + * // optional method + * 'request': function(config) { + * // do something on success + * return config; + * }, + * + * // optional method + * 'requestError': function(rejection) { + * // do something on error + * if (canRecover(rejection)) { + * return responseOrNewPromise + * } + * return $q.reject(rejection); + * }, + * + * + * + * // optional method + * 'response': function(response) { + * // do something on success + * return response; + * }, + * + * // optional method + * 'responseError': function(rejection) { + * // do something on error + * if (canRecover(rejection)) { + * return responseOrNewPromise + * } + * return $q.reject(rejection); + * } + * }; + * }); + * + * $httpProvider.interceptors.push('myHttpInterceptor'); + * + * + * // alternatively, register the interceptor via an anonymous factory + * $httpProvider.interceptors.push(function($q, dependency1, dependency2) { + * return { + * 'request': function(config) { + * // same as above + * }, + * + * 'response': function(response) { + * // same as above + * } + * }; + * }); + * ``` + * + * ## Security Considerations + * + * When designing web applications, consider security threats from: + * + * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx) + * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) + * + * Both server and the client must cooperate in order to eliminate these threats. Angular comes + * pre-configured with strategies that address these issues, but for this to work backend server + * cooperation is required. + * + * ### JSON Vulnerability Protection + * + * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx) + * allows third party website to turn your JSON resource URL into + * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To + * counter this your server can prefix all JSON requests with following string `")]}',\n"`. + * Angular will automatically strip the prefix before processing it as JSON. + * + * For example if your server needs to return: + * ```js + * ['one','two'] + * ``` + * + * which is vulnerable to attack, your server can return: + * ```js + * )]}', + * ['one','two'] + * ``` + * + * Angular will strip the prefix, before processing the JSON. + * + * + * ### Cross Site Request Forgery (XSRF) Protection + * + * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is a technique by which + * an unauthorized site can gain your user's private data. Angular provides a mechanism + * to counter XSRF. When performing XHR requests, the $http service reads a token from a cookie + * (by default, `XSRF-TOKEN`) and sets it as an HTTP header (`X-XSRF-TOKEN`). Since only + * JavaScript that runs on your domain could read the cookie, your server can be assured that + * the XHR came from JavaScript running on your domain. The header will not be set for + * cross-domain requests. + * + * To take advantage of this, your server needs to set a token in a JavaScript readable session + * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the + * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure + * that only JavaScript running on your domain could have sent the request. The token must be + * unique for each user and must be verifiable by the server (to prevent the JavaScript from + * making up its own tokens). We recommend that the token is a digest of your site's + * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) + * for added security. + * + * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName + * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time, + * or the per-request config object. + * + * In order to prevent collisions in environments where multiple Angular apps share the + * same domain or subdomain, we recommend that each application uses unique cookie name. + * + * @param {object} config Object describing the request to be made and how it should be + * processed. The object has following properties: + * + * - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc) + * - **url** – `{string}` – Absolute or relative URL of the resource that is being requested. + * - **params** – `{Object.}` – Map of strings or objects which will be serialized + * with the `paramSerializer` and appended as GET parameters. + * - **data** – `{string|Object}` – Data to be sent as the request message data. + * - **headers** – `{Object}` – Map of strings or functions which return strings representing + * HTTP headers to send to the server. If the return value of a function is null, the + * header will not be sent. Functions accept a config object as an argument. + * - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token. + * - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token. + * - **transformRequest** – + * `{function(data, headersGetter)|Array.}` – + * transform function or an array of such functions. The transform function takes the http + * request body and headers and returns its transformed (typically serialized) version. + * See {@link ng.$http#overriding-the-default-transformations-per-request + * Overriding the Default Transformations} + * - **transformResponse** – + * `{function(data, headersGetter, status)|Array.}` – + * transform function or an array of such functions. The transform function takes the http + * response body, headers and status and returns its transformed (typically deserialized) version. + * See {@link ng.$http#overriding-the-default-transformations-per-request + * Overriding the Default TransformationjqLiks} + * - **paramSerializer** - `{string|function(Object):string}` - A function used to + * prepare the string representation of request parameters (specified as an object). + * If specified as string, it is interpreted as function registered with the + * {@link $injector $injector}, which means you can create your own serializer + * by registering it as a {@link auto.$provide#service service}. + * The default serializer is the {@link $httpParamSerializer $httpParamSerializer}; + * alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike} + * - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the + * GET request, otherwise if a cache instance built with + * {@link ng.$cacheFactory $cacheFactory}, this cache will be used for + * caching. + * - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise} + * that should abort the request when resolved. + * - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the + * XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials) + * for more information. + * - **responseType** - `{string}` - see + * [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype). + * + * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object + * when the request succeeds or fails. + * + * + * @property {Array.} pendingRequests Array of config objects for currently pending + * requests. This is primarily meant to be used for debugging purposes. + * + * + * @example + + +
+ + +
+ + + +
http status code: {{status}}
+
http response data: {{data}}
+
+
+ + angular.module('httpExample', []) + .controller('FetchController', ['$scope', '$http', '$templateCache', + function($scope, $http, $templateCache) { + $scope.method = 'GET'; + $scope.url = 'http-hello.html'; + + $scope.fetch = function() { + $scope.code = null; + $scope.response = null; + + $http({method: $scope.method, url: $scope.url, cache: $templateCache}). + then(function(response) { + $scope.status = response.status; + $scope.data = response.data; + }, function(response) { + $scope.data = response.data || "Request failed"; + $scope.status = response.status; + }); + }; + + $scope.updateModel = function(method, url) { + $scope.method = method; + $scope.url = url; + }; + }]); + + + Hello, $http! + + + var status = element(by.binding('status')); + var data = element(by.binding('data')); + var fetchBtn = element(by.id('fetchbtn')); + var sampleGetBtn = element(by.id('samplegetbtn')); + var sampleJsonpBtn = element(by.id('samplejsonpbtn')); + var invalidJsonpBtn = element(by.id('invalidjsonpbtn')); + + it('should make an xhr GET request', function() { + sampleGetBtn.click(); + fetchBtn.click(); + expect(status.getText()).toMatch('200'); + expect(data.getText()).toMatch(/Hello, \$http!/); + }); + +// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185 +// it('should make a JSONP request to angularjs.org', function() { +// sampleJsonpBtn.click(); +// fetchBtn.click(); +// expect(status.getText()).toMatch('200'); +// expect(data.getText()).toMatch(/Super Hero!/); +// }); + + it('should make JSONP request to invalid URL and invoke the error handler', + function() { + invalidJsonpBtn.click(); + fetchBtn.click(); + expect(status.getText()).toMatch('0'); + expect(data.getText()).toMatch('Request failed'); + }); + +
+ */ + function $http(requestConfig) { + + if (!angular.isObject(requestConfig)) { + throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig); + } + + var config = extend({ + method: 'get', + transformRequest: defaults.transformRequest, + transformResponse: defaults.transformResponse, + paramSerializer: defaults.paramSerializer + }, requestConfig); + + config.headers = mergeHeaders(requestConfig); + config.method = uppercase(config.method); + config.paramSerializer = isString(config.paramSerializer) ? + $injector.get(config.paramSerializer) : config.paramSerializer; + + var serverRequest = function(config) { + var headers = config.headers; + var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest); + + // strip content-type if data is undefined + if (isUndefined(reqData)) { + forEach(headers, function(value, header) { + if (lowercase(header) === 'content-type') { + delete headers[header]; + } + }); + } + + if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) { + config.withCredentials = defaults.withCredentials; + } + + // send request + return sendReq(config, reqData).then(transformResponse, transformResponse); + }; + + var chain = [serverRequest, undefined]; + var promise = $q.when(config); + + // apply interceptors + forEach(reversedInterceptors, function(interceptor) { + if (interceptor.request || interceptor.requestError) { + chain.unshift(interceptor.request, interceptor.requestError); + } + if (interceptor.response || interceptor.responseError) { + chain.push(interceptor.response, interceptor.responseError); + } + }); + + while (chain.length) { + var thenFn = chain.shift(); + var rejectFn = chain.shift(); + + promise = promise.then(thenFn, rejectFn); + } + + if (useLegacyPromise) { + promise.success = function(fn) { + assertArgFn(fn, 'fn'); + + promise.then(function(response) { + fn(response.data, response.status, response.headers, config); + }); + return promise; + }; + + promise.error = function(fn) { + assertArgFn(fn, 'fn'); + + promise.then(null, function(response) { + fn(response.data, response.status, response.headers, config); + }); + return promise; + }; + } else { + promise.success = $httpMinErrLegacyFn('success'); + promise.error = $httpMinErrLegacyFn('error'); + } + + return promise; + + function transformResponse(response) { + // make a copy since the response must be cacheable + var resp = extend({}, response); + if (!response.data) { + resp.data = response.data; + } else { + resp.data = transformData(response.data, response.headers, response.status, config.transformResponse); + } + return (isSuccess(response.status)) + ? resp + : $q.reject(resp); + } + + function executeHeaderFns(headers, config) { + var headerContent, processedHeaders = {}; + + forEach(headers, function(headerFn, header) { + if (isFunction(headerFn)) { + headerContent = headerFn(config); + if (headerContent != null) { + processedHeaders[header] = headerContent; + } + } else { + processedHeaders[header] = headerFn; + } + }); + + return processedHeaders; + } + + function mergeHeaders(config) { + var defHeaders = defaults.headers, + reqHeaders = extend({}, config.headers), + defHeaderName, lowercaseDefHeaderName, reqHeaderName; + + defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]); + + // using for-in instead of forEach to avoid unecessary iteration after header has been found + defaultHeadersIteration: + for (defHeaderName in defHeaders) { + lowercaseDefHeaderName = lowercase(defHeaderName); + + for (reqHeaderName in reqHeaders) { + if (lowercase(reqHeaderName) === lowercaseDefHeaderName) { + continue defaultHeadersIteration; + } + } + + reqHeaders[defHeaderName] = defHeaders[defHeaderName]; + } + + // execute if header value is a function for merged headers + return executeHeaderFns(reqHeaders, shallowCopy(config)); + } + } + + $http.pendingRequests = []; + + /** + * @ngdoc method + * @name $http#get + * + * @description + * Shortcut method to perform `GET` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + + /** + * @ngdoc method + * @name $http#delete + * + * @description + * Shortcut method to perform `DELETE` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + + /** + * @ngdoc method + * @name $http#head + * + * @description + * Shortcut method to perform `HEAD` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + + /** + * @ngdoc method + * @name $http#jsonp + * + * @description + * Shortcut method to perform `JSONP` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request. + * The name of the callback should be the string `JSON_CALLBACK`. + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + createShortMethods('get', 'delete', 'head', 'jsonp'); + + /** + * @ngdoc method + * @name $http#post + * + * @description + * Shortcut method to perform `POST` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request + * @param {*} data Request content + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + + /** + * @ngdoc method + * @name $http#put + * + * @description + * Shortcut method to perform `PUT` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request + * @param {*} data Request content + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + + /** + * @ngdoc method + * @name $http#patch + * + * @description + * Shortcut method to perform `PATCH` request. + * + * @param {string} url Relative or absolute URL specifying the destination of the request + * @param {*} data Request content + * @param {Object=} config Optional configuration object + * @returns {HttpPromise} Future object + */ + createShortMethodsWithData('post', 'put', 'patch'); + + /** + * @ngdoc property + * @name $http#defaults + * + * @description + * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of + * default headers, withCredentials as well as request and response transformations. + * + * See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above. + */ + $http.defaults = defaults; + + + return $http; + + + function createShortMethods(names) { + forEach(arguments, function(name) { + $http[name] = function(url, config) { + return $http(extend({}, config || {}, { + method: name, + url: url + })); + }; + }); + } + + + function createShortMethodsWithData(name) { + forEach(arguments, function(name) { + $http[name] = function(url, data, config) { + return $http(extend({}, config || {}, { + method: name, + url: url, + data: data + })); + }; + }); + } + + + /** + * Makes the request. + * + * !!! ACCESSES CLOSURE VARS: + * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests + */ + function sendReq(config, reqData) { + var deferred = $q.defer(), + promise = deferred.promise, + cache, + cachedResp, + reqHeaders = config.headers, + url = buildUrl(config.url, config.paramSerializer(config.params)); + + $http.pendingRequests.push(config); + promise.then(removePendingReq, removePendingReq); + + + if ((config.cache || defaults.cache) && config.cache !== false && + (config.method === 'GET' || config.method === 'JSONP')) { + cache = isObject(config.cache) ? config.cache + : isObject(defaults.cache) ? defaults.cache + : defaultCache; + } + + if (cache) { + cachedResp = cache.get(url); + if (isDefined(cachedResp)) { + if (isPromiseLike(cachedResp)) { + // cached request has already been sent, but there is no response yet + cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult); + } else { + // serving from cache + if (isArray(cachedResp)) { + resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]); + } else { + resolvePromise(cachedResp, 200, {}, 'OK'); + } + } + } else { + // put the promise for the non-transformed response into cache as a placeholder + cache.put(url, promise); + } + } + + + // if we won't have the response in cache, set the xsrf headers and + // send the request to the backend + if (isUndefined(cachedResp)) { + var xsrfValue = urlIsSameOrigin(config.url) + ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName] + : undefined; + if (xsrfValue) { + reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue; + } + + $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout, + config.withCredentials, config.responseType); + } + + return promise; + + + /** + * Callback registered to $httpBackend(): + * - caches the response if desired + * - resolves the raw $http promise + * - calls $apply + */ + function done(status, response, headersString, statusText) { + if (cache) { + if (isSuccess(status)) { + cache.put(url, [status, response, parseHeaders(headersString), statusText]); + } else { + // remove promise from the cache + cache.remove(url); + } + } + + function resolveHttpPromise() { + resolvePromise(response, status, headersString, statusText); + } + + if (useApplyAsync) { + $rootScope.$applyAsync(resolveHttpPromise); + } else { + resolveHttpPromise(); + if (!$rootScope.$$phase) $rootScope.$apply(); + } + } + + + /** + * Resolves the raw $http promise. + */ + function resolvePromise(response, status, headers, statusText) { + //status: HTTP response status code, 0, -1 (aborted by timeout / promise) + status = status >= -1 ? status : 0; + + (isSuccess(status) ? deferred.resolve : deferred.reject)({ + data: response, + status: status, + headers: headersGetter(headers), + config: config, + statusText: statusText + }); + } + + function resolvePromiseWithResult(result) { + resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText); + } + + function removePendingReq() { + var idx = $http.pendingRequests.indexOf(config); + if (idx !== -1) $http.pendingRequests.splice(idx, 1); + } + } + + + function buildUrl(url, serializedParams) { + if (serializedParams.length > 0) { + url += ((url.indexOf('?') == -1) ? '?' : '&') + serializedParams; + } + return url; + } + }]; +} + +/** + * @ngdoc service + * @name $xhrFactory + * + * @description + * Factory function used to create XMLHttpRequest objects. + * + * Replace or decorate this service to create your own custom XMLHttpRequest objects. + * + * ``` + * angular.module('myApp', []) + * .factory('$xhrFactory', function() { + * return function createXhr(method, url) { + * return new window.XMLHttpRequest({mozSystem: true}); + * }; + * }); + * ``` + * + * @param {string} method HTTP method of the request (GET, POST, PUT, ..) + * @param {string} url URL of the request. + */ +function $xhrFactoryProvider() { + this.$get = function() { + return function createXhr() { + return new window.XMLHttpRequest(); + }; + }; +} + +/** + * @ngdoc service + * @name $httpBackend + * @requires $window + * @requires $document + * @requires $xhrFactory + * + * @description + * HTTP backend used by the {@link ng.$http service} that delegates to + * XMLHttpRequest object or JSONP and deals with browser incompatibilities. + * + * You should never need to use this service directly, instead use the higher-level abstractions: + * {@link ng.$http $http} or {@link ngResource.$resource $resource}. + * + * During testing this implementation is swapped with {@link ngMock.$httpBackend mock + * $httpBackend} which can be trained with responses. + */ +function $HttpBackendProvider() { + this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) { + return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]); + }]; +} + +function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { + // TODO(vojta): fix the signature + return function(method, url, post, callback, headers, timeout, withCredentials, responseType) { + $browser.$$incOutstandingRequestCount(); + url = url || $browser.url(); + + if (lowercase(method) == 'jsonp') { + var callbackId = '_' + (callbacks.counter++).toString(36); + callbacks[callbackId] = function(data) { + callbacks[callbackId].data = data; + callbacks[callbackId].called = true; + }; + + var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId), + callbackId, function(status, text) { + completeRequest(callback, status, callbacks[callbackId].data, "", text); + callbacks[callbackId] = noop; + }); + } else { + + var xhr = createXhr(method, url); + + xhr.open(method, url, true); + forEach(headers, function(value, key) { + if (isDefined(value)) { + xhr.setRequestHeader(key, value); + } + }); + + xhr.onload = function requestLoaded() { + var statusText = xhr.statusText || ''; + + // responseText is the old-school way of retrieving response (supported by IE9) + // response/responseType properties were introduced in XHR Level2 spec (supported by IE10) + var response = ('response' in xhr) ? xhr.response : xhr.responseText; + + // normalize IE9 bug (http://bugs.jquery.com/ticket/1450) + var status = xhr.status === 1223 ? 204 : xhr.status; + + // fix status code when it is 0 (0 status is undocumented). + // Occurs when accessing file resources or on Android 4.1 stock browser + // while retrieving files from application cache. + if (status === 0) { + status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0; + } + + completeRequest(callback, + status, + response, + xhr.getAllResponseHeaders(), + statusText); + }; + + var requestError = function() { + // The response is always empty + // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error + completeRequest(callback, -1, null, null, ''); + }; + + xhr.onerror = requestError; + xhr.onabort = requestError; + + if (withCredentials) { + xhr.withCredentials = true; + } + + if (responseType) { + try { + xhr.responseType = responseType; + } catch (e) { + // WebKit added support for the json responseType value on 09/03/2013 + // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are + // known to throw when setting the value "json" as the response type. Other older + // browsers implementing the responseType + // + // The json response type can be ignored if not supported, because JSON payloads are + // parsed on the client-side regardless. + if (responseType !== 'json') { + throw e; + } + } + } + + xhr.send(isUndefined(post) ? null : post); + } + + if (timeout > 0) { + var timeoutId = $browserDefer(timeoutRequest, timeout); + } else if (isPromiseLike(timeout)) { + timeout.then(timeoutRequest); + } + + + function timeoutRequest() { + jsonpDone && jsonpDone(); + xhr && xhr.abort(); + } + + function completeRequest(callback, status, response, headersString, statusText) { + // cancel timeout and subsequent timeout promise resolution + if (isDefined(timeoutId)) { + $browserDefer.cancel(timeoutId); + } + jsonpDone = xhr = null; + + callback(status, response, headersString, statusText); + $browser.$$completeOutstandingRequest(noop); + } + }; + + function jsonpReq(url, callbackId, done) { + // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.: + // - fetches local scripts via XHR and evals them + // - adds and immediately removes script elements from the document + var script = rawDocument.createElement('script'), callback = null; + script.type = "text/javascript"; + script.src = url; + script.async = true; + + callback = function(event) { + removeEventListenerFn(script, "load", callback); + removeEventListenerFn(script, "error", callback); + rawDocument.body.removeChild(script); + script = null; + var status = -1; + var text = "unknown"; + + if (event) { + if (event.type === "load" && !callbacks[callbackId].called) { + event = { type: "error" }; + } + text = event.type; + status = event.type === "error" ? 404 : 200; + } + + if (done) { + done(status, text); + } + }; + + addEventListenerFn(script, "load", callback); + addEventListenerFn(script, "error", callback); + rawDocument.body.appendChild(script); + return callback; + } +} + +var $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate'); +$interpolateMinErr.throwNoconcat = function(text) { + throw $interpolateMinErr('noconcat', + "Error while interpolating: {0}\nStrict Contextual Escaping disallows " + + "interpolations that concatenate multiple expressions when a trusted value is " + + "required. See http://docs.angularjs.org/api/ng.$sce", text); +}; + +$interpolateMinErr.interr = function(text, err) { + return $interpolateMinErr('interr', "Can't interpolate: {0}\n{1}", text, err.toString()); +}; + +/** + * @ngdoc provider + * @name $interpolateProvider + * + * @description + * + * Used for configuring the interpolation markup. Defaults to `{{` and `}}`. + * + * @example + + + +
+ //demo.label// +
+
+ + it('should interpolate binding with custom symbols', function() { + expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.'); + }); + +
+ */ +function $InterpolateProvider() { + var startSymbol = '{{'; + var endSymbol = '}}'; + + /** + * @ngdoc method + * @name $interpolateProvider#startSymbol + * @description + * Symbol to denote start of expression in the interpolated string. Defaults to `{{`. + * + * @param {string=} value new value to set the starting symbol to. + * @returns {string|self} Returns the symbol when used as getter and self if used as setter. + */ + this.startSymbol = function(value) { + if (value) { + startSymbol = value; + return this; + } else { + return startSymbol; + } + }; + + /** + * @ngdoc method + * @name $interpolateProvider#endSymbol + * @description + * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`. + * + * @param {string=} value new value to set the ending symbol to. + * @returns {string|self} Returns the symbol when used as getter and self if used as setter. + */ + this.endSymbol = function(value) { + if (value) { + endSymbol = value; + return this; + } else { + return endSymbol; + } + }; + + + this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) { + var startSymbolLength = startSymbol.length, + endSymbolLength = endSymbol.length, + escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'), + escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g'); + + function escape(ch) { + return '\\\\\\' + ch; + } + + function unescapeText(text) { + return text.replace(escapedStartRegexp, startSymbol). + replace(escapedEndRegexp, endSymbol); + } + + function stringify(value) { + if (value == null) { // null || undefined + return ''; + } + switch (typeof value) { + case 'string': + break; + case 'number': + value = '' + value; + break; + default: + value = toJson(value); + } + + return value; + } + + /** + * @ngdoc service + * @name $interpolate + * @kind function + * + * @requires $parse + * @requires $sce + * + * @description + * + * Compiles a string with markup into an interpolation function. This service is used by the + * HTML {@link ng.$compile $compile} service for data binding. See + * {@link ng.$interpolateProvider $interpolateProvider} for configuring the + * interpolation markup. + * + * + * ```js + * var $interpolate = ...; // injected + * var exp = $interpolate('Hello {{name | uppercase}}!'); + * expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!'); + * ``` + * + * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is + * `true`, the interpolation function will return `undefined` unless all embedded expressions + * evaluate to a value other than `undefined`. + * + * ```js + * var $interpolate = ...; // injected + * var context = {greeting: 'Hello', name: undefined }; + * + * // default "forgiving" mode + * var exp = $interpolate('{{greeting}} {{name}}!'); + * expect(exp(context)).toEqual('Hello !'); + * + * // "allOrNothing" mode + * exp = $interpolate('{{greeting}} {{name}}!', false, null, true); + * expect(exp(context)).toBeUndefined(); + * context.name = 'Angular'; + * expect(exp(context)).toEqual('Hello Angular!'); + * ``` + * + * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior. + * + * ####Escaped Interpolation + * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers + * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash). + * It will be rendered as a regular start/end marker, and will not be interpreted as an expression + * or binding. + * + * This enables web-servers to prevent script injection attacks and defacing attacks, to some + * degree, while also enabling code examples to work without relying on the + * {@link ng.directive:ngNonBindable ngNonBindable} directive. + * + * **For security purposes, it is strongly encouraged that web servers escape user-supplied data, + * replacing angle brackets (<, >) with &lt; and &gt; respectively, and replacing all + * interpolation start/end markers with their escaped counterparts.** + * + * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered + * output when the $interpolate service processes the text. So, for HTML elements interpolated + * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter + * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such, + * this is typically useful only when user-data is used in rendering a template from the server, or + * when otherwise untrusted data is used by a directive. + * + * + * + *
+ *

{{apptitle}}: \{\{ username = "defaced value"; \}\} + *

+ *

{{username}} attempts to inject code which will deface the + * application, but fails to accomplish their task, because the server has correctly + * escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash) + * characters.

+ *

Instead, the result of the attempted script injection is visible, and can be removed + * from the database by an administrator.

+ *
+ *
+ *
+ * + * @param {string} text The text with markup to interpolate. + * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have + * embedded expression in order to return an interpolation function. Strings with no + * embedded expression will return null for the interpolation function. + * @param {string=} trustedContext when provided, the returned function passes the interpolated + * result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult, + * trustedContext)} before returning it. Refer to the {@link ng.$sce $sce} service that + * provides Strict Contextual Escaping for details. + * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined + * unless all embedded expressions evaluate to a value other than `undefined`. + * @returns {function(context)} an interpolation function which is used to compute the + * interpolated string. The function has these parameters: + * + * - `context`: evaluation context for all expressions embedded in the interpolated text + */ + function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) { + allOrNothing = !!allOrNothing; + var startIndex, + endIndex, + index = 0, + expressions = [], + parseFns = [], + textLength = text.length, + exp, + concat = [], + expressionPositions = []; + + while (index < textLength) { + if (((startIndex = text.indexOf(startSymbol, index)) != -1) && + ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1)) { + if (index !== startIndex) { + concat.push(unescapeText(text.substring(index, startIndex))); + } + exp = text.substring(startIndex + startSymbolLength, endIndex); + expressions.push(exp); + parseFns.push($parse(exp, parseStringifyInterceptor)); + index = endIndex + endSymbolLength; + expressionPositions.push(concat.length); + concat.push(''); + } else { + // we did not find an interpolation, so we have to add the remainder to the separators array + if (index !== textLength) { + concat.push(unescapeText(text.substring(index))); + } + break; + } + } + + // Concatenating expressions makes it hard to reason about whether some combination of + // concatenated values are unsafe to use and could easily lead to XSS. By requiring that a + // single expression be used for iframe[src], object[src], etc., we ensure that the value + // that's used is assigned or constructed by some JS code somewhere that is more testable or + // make it obvious that you bound the value to some user controlled value. This helps reduce + // the load when auditing for XSS issues. + if (trustedContext && concat.length > 1) { + $interpolateMinErr.throwNoconcat(text); + } + + if (!mustHaveExpression || expressions.length) { + var compute = function(values) { + for (var i = 0, ii = expressions.length; i < ii; i++) { + if (allOrNothing && isUndefined(values[i])) return; + concat[expressionPositions[i]] = values[i]; + } + return concat.join(''); + }; + + var getValue = function(value) { + return trustedContext ? + $sce.getTrusted(trustedContext, value) : + $sce.valueOf(value); + }; + + return extend(function interpolationFn(context) { + var i = 0; + var ii = expressions.length; + var values = new Array(ii); + + try { + for (; i < ii; i++) { + values[i] = parseFns[i](context); + } + + return compute(values); + } catch (err) { + $exceptionHandler($interpolateMinErr.interr(text, err)); + } + + }, { + // all of these properties are undocumented for now + exp: text, //just for compatibility with regular watchers created via $watch + expressions: expressions, + $$watchDelegate: function(scope, listener) { + var lastValue; + return scope.$watchGroup(parseFns, function interpolateFnWatcher(values, oldValues) { + var currValue = compute(values); + if (isFunction(listener)) { + listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope); + } + lastValue = currValue; + }); + } + }); + } + + function parseStringifyInterceptor(value) { + try { + value = getValue(value); + return allOrNothing && !isDefined(value) ? value : stringify(value); + } catch (err) { + $exceptionHandler($interpolateMinErr.interr(text, err)); + } + } + } + + + /** + * @ngdoc method + * @name $interpolate#startSymbol + * @description + * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`. + * + * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change + * the symbol. + * + * @returns {string} start symbol. + */ + $interpolate.startSymbol = function() { + return startSymbol; + }; + + + /** + * @ngdoc method + * @name $interpolate#endSymbol + * @description + * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`. + * + * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change + * the symbol. + * + * @returns {string} end symbol. + */ + $interpolate.endSymbol = function() { + return endSymbol; + }; + + return $interpolate; + }]; +} + +function $IntervalProvider() { + this.$get = ['$rootScope', '$window', '$q', '$$q', + function($rootScope, $window, $q, $$q) { + var intervals = {}; + + + /** + * @ngdoc service + * @name $interval + * + * @description + * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay` + * milliseconds. + * + * The return value of registering an interval function is a promise. This promise will be + * notified upon each tick of the interval, and will be resolved after `count` iterations, or + * run indefinitely if `count` is not defined. The value of the notification will be the + * number of iterations that have run. + * To cancel an interval, call `$interval.cancel(promise)`. + * + * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to + * move forward by `millis` milliseconds and trigger any functions scheduled to run in that + * time. + * + *
+ * **Note**: Intervals created by this service must be explicitly destroyed when you are finished + * with them. In particular they are not automatically destroyed when a controller's scope or a + * directive's element are destroyed. + * You should take this into consideration and make sure to always cancel the interval at the + * appropriate moment. See the example below for more details on how and when to do this. + *
+ * + * @param {function()} fn A function that should be called repeatedly. + * @param {number} delay Number of milliseconds between each function call. + * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat + * indefinitely. + * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise + * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block. + * @param {...*=} Pass additional parameters to the executed function. + * @returns {promise} A promise which will be notified on each iteration. + * + * @example + * + * + * + * + *
+ *
+ *
+ * Current time is: + *
+ * Blood 1 : {{blood_1}} + * Blood 2 : {{blood_2}} + * + * + * + *
+ *
+ * + *
+ *
+ */ + function interval(fn, delay, count, invokeApply) { + var hasParams = arguments.length > 4, + args = hasParams ? sliceArgs(arguments, 4) : [], + setInterval = $window.setInterval, + clearInterval = $window.clearInterval, + iteration = 0, + skipApply = (isDefined(invokeApply) && !invokeApply), + deferred = (skipApply ? $$q : $q).defer(), + promise = deferred.promise; + + count = isDefined(count) ? count : 0; + + promise.then(null, null, (!hasParams) ? fn : function() { + fn.apply(null, args); + }); + + promise.$$intervalId = setInterval(function tick() { + deferred.notify(iteration++); + + if (count > 0 && iteration >= count) { + deferred.resolve(iteration); + clearInterval(promise.$$intervalId); + delete intervals[promise.$$intervalId]; + } + + if (!skipApply) $rootScope.$apply(); + + }, delay); + + intervals[promise.$$intervalId] = deferred; + + return promise; + } + + + /** + * @ngdoc method + * @name $interval#cancel + * + * @description + * Cancels a task associated with the `promise`. + * + * @param {Promise=} promise returned by the `$interval` function. + * @returns {boolean} Returns `true` if the task was successfully canceled. + */ + interval.cancel = function(promise) { + if (promise && promise.$$intervalId in intervals) { + intervals[promise.$$intervalId].reject('canceled'); + $window.clearInterval(promise.$$intervalId); + delete intervals[promise.$$intervalId]; + return true; + } + return false; + }; + + return interval; + }]; +} + +/** + * @ngdoc service + * @name $locale + * + * @description + * $locale service provides localization rules for various Angular components. As of right now the + * only public api is: + * + * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`) + */ + +var PATH_MATCH = /^([^\?#]*)(\?([^#]*))?(#(.*))?$/, + DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21}; +var $locationMinErr = minErr('$location'); + + +/** + * Encode path using encodeUriSegment, ignoring forward slashes + * + * @param {string} path Path to encode + * @returns {string} + */ +function encodePath(path) { + var segments = path.split('/'), + i = segments.length; + + while (i--) { + segments[i] = encodeUriSegment(segments[i]); + } + + return segments.join('/'); +} + +function parseAbsoluteUrl(absoluteUrl, locationObj) { + var parsedUrl = urlResolve(absoluteUrl); + + locationObj.$$protocol = parsedUrl.protocol; + locationObj.$$host = parsedUrl.hostname; + locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null; +} + + +function parseAppUrl(relativeUrl, locationObj) { + var prefixed = (relativeUrl.charAt(0) !== '/'); + if (prefixed) { + relativeUrl = '/' + relativeUrl; + } + var match = urlResolve(relativeUrl); + locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ? + match.pathname.substring(1) : match.pathname); + locationObj.$$search = parseKeyValue(match.search); + locationObj.$$hash = decodeURIComponent(match.hash); + + // make sure path starts with '/'; + if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') { + locationObj.$$path = '/' + locationObj.$$path; + } +} + + +/** + * + * @param {string} begin + * @param {string} whole + * @returns {string} returns text from whole after begin or undefined if it does not begin with + * expected string. + */ +function beginsWith(begin, whole) { + if (whole.indexOf(begin) === 0) { + return whole.substr(begin.length); + } +} + + +function stripHash(url) { + var index = url.indexOf('#'); + return index == -1 ? url : url.substr(0, index); +} + +function trimEmptyHash(url) { + return url.replace(/(#.+)|#$/, '$1'); +} + + +function stripFile(url) { + return url.substr(0, stripHash(url).lastIndexOf('/') + 1); +} + +/* return the server only (scheme://host:port) */ +function serverBase(url) { + return url.substring(0, url.indexOf('/', url.indexOf('//') + 2)); +} + + +/** + * LocationHtml5Url represents an url + * This object is exposed as $location service when HTML5 mode is enabled and supported + * + * @constructor + * @param {string} appBase application base URL + * @param {string} appBaseNoFile application base URL stripped of any filename + * @param {string} basePrefix url path prefix + */ +function LocationHtml5Url(appBase, appBaseNoFile, basePrefix) { + this.$$html5 = true; + basePrefix = basePrefix || ''; + parseAbsoluteUrl(appBase, this); + + + /** + * Parse given html5 (regular) url string into properties + * @param {string} url HTML5 url + * @private + */ + this.$$parse = function(url) { + var pathUrl = beginsWith(appBaseNoFile, url); + if (!isString(pathUrl)) { + throw $locationMinErr('ipthprfx', 'Invalid url "{0}", missing path prefix "{1}".', url, + appBaseNoFile); + } + + parseAppUrl(pathUrl, this); + + if (!this.$$path) { + this.$$path = '/'; + } + + this.$$compose(); + }; + + /** + * Compose url and update `absUrl` property + * @private + */ + this.$$compose = function() { + var search = toKeyValue(this.$$search), + hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : ''; + + this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash; + this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/' + }; + + this.$$parseLinkUrl = function(url, relHref) { + if (relHref && relHref[0] === '#') { + // special case for links to hash fragments: + // keep the old url and only replace the hash fragment + this.hash(relHref.slice(1)); + return true; + } + var appUrl, prevAppUrl; + var rewrittenUrl; + + if (isDefined(appUrl = beginsWith(appBase, url))) { + prevAppUrl = appUrl; + if (isDefined(appUrl = beginsWith(basePrefix, appUrl))) { + rewrittenUrl = appBaseNoFile + (beginsWith('/', appUrl) || appUrl); + } else { + rewrittenUrl = appBase + prevAppUrl; + } + } else if (isDefined(appUrl = beginsWith(appBaseNoFile, url))) { + rewrittenUrl = appBaseNoFile + appUrl; + } else if (appBaseNoFile == url + '/') { + rewrittenUrl = appBaseNoFile; + } + if (rewrittenUrl) { + this.$$parse(rewrittenUrl); + } + return !!rewrittenUrl; + }; +} + + +/** + * LocationHashbangUrl represents url + * This object is exposed as $location service when developer doesn't opt into html5 mode. + * It also serves as the base class for html5 mode fallback on legacy browsers. + * + * @constructor + * @param {string} appBase application base URL + * @param {string} appBaseNoFile application base URL stripped of any filename + * @param {string} hashPrefix hashbang prefix + */ +function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) { + + parseAbsoluteUrl(appBase, this); + + + /** + * Parse given hashbang url into properties + * @param {string} url Hashbang url + * @private + */ + this.$$parse = function(url) { + var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url); + var withoutHashUrl; + + if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') { + + // The rest of the url starts with a hash so we have + // got either a hashbang path or a plain hash fragment + withoutHashUrl = beginsWith(hashPrefix, withoutBaseUrl); + if (isUndefined(withoutHashUrl)) { + // There was no hashbang prefix so we just have a hash fragment + withoutHashUrl = withoutBaseUrl; + } + + } else { + // There was no hashbang path nor hash fragment: + // If we are in HTML5 mode we use what is left as the path; + // Otherwise we ignore what is left + if (this.$$html5) { + withoutHashUrl = withoutBaseUrl; + } else { + withoutHashUrl = ''; + if (isUndefined(withoutBaseUrl)) { + appBase = url; + this.replace(); + } + } + } + + parseAppUrl(withoutHashUrl, this); + + this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase); + + this.$$compose(); + + /* + * In Windows, on an anchor node on documents loaded from + * the filesystem, the browser will return a pathname + * prefixed with the drive name ('/C:/path') when a + * pathname without a drive is set: + * * a.setAttribute('href', '/foo') + * * a.pathname === '/C:/foo' //true + * + * Inside of Angular, we're always using pathnames that + * do not include drive names for routing. + */ + function removeWindowsDriveName(path, url, base) { + /* + Matches paths for file protocol on windows, + such as /C:/foo/bar, and captures only /foo/bar. + */ + var windowsFilePathExp = /^\/[A-Z]:(\/.*)/; + + var firstPathSegmentMatch; + + //Get the relative path from the input URL. + if (url.indexOf(base) === 0) { + url = url.replace(base, ''); + } + + // The input URL intentionally contains a first path segment that ends with a colon. + if (windowsFilePathExp.exec(url)) { + return path; + } + + firstPathSegmentMatch = windowsFilePathExp.exec(path); + return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path; + } + }; + + /** + * Compose hashbang url and update `absUrl` property + * @private + */ + this.$$compose = function() { + var search = toKeyValue(this.$$search), + hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : ''; + + this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash; + this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : ''); + }; + + this.$$parseLinkUrl = function(url, relHref) { + if (stripHash(appBase) == stripHash(url)) { + this.$$parse(url); + return true; + } + return false; + }; +} + + +/** + * LocationHashbangUrl represents url + * This object is exposed as $location service when html5 history api is enabled but the browser + * does not support it. + * + * @constructor + * @param {string} appBase application base URL + * @param {string} appBaseNoFile application base URL stripped of any filename + * @param {string} hashPrefix hashbang prefix + */ +function LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) { + this.$$html5 = true; + LocationHashbangUrl.apply(this, arguments); + + this.$$parseLinkUrl = function(url, relHref) { + if (relHref && relHref[0] === '#') { + // special case for links to hash fragments: + // keep the old url and only replace the hash fragment + this.hash(relHref.slice(1)); + return true; + } + + var rewrittenUrl; + var appUrl; + + if (appBase == stripHash(url)) { + rewrittenUrl = url; + } else if ((appUrl = beginsWith(appBaseNoFile, url))) { + rewrittenUrl = appBase + hashPrefix + appUrl; + } else if (appBaseNoFile === url + '/') { + rewrittenUrl = appBaseNoFile; + } + if (rewrittenUrl) { + this.$$parse(rewrittenUrl); + } + return !!rewrittenUrl; + }; + + this.$$compose = function() { + var search = toKeyValue(this.$$search), + hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : ''; + + this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash; + // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#' + this.$$absUrl = appBase + hashPrefix + this.$$url; + }; + +} + + +var locationPrototype = { + + /** + * Are we in html5 mode? + * @private + */ + $$html5: false, + + /** + * Has any change been replacing? + * @private + */ + $$replace: false, + + /** + * @ngdoc method + * @name $location#absUrl + * + * @description + * This method is getter only. + * + * Return full url representation with all segments encoded according to rules specified in + * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt). + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var absUrl = $location.absUrl(); + * // => "http://example.com/#/some/path?foo=bar&baz=xoxo" + * ``` + * + * @return {string} full url + */ + absUrl: locationGetter('$$absUrl'), + + /** + * @ngdoc method + * @name $location#url + * + * @description + * This method is getter / setter. + * + * Return url (e.g. `/path?a=b#hash`) when called without any parameter. + * + * Change path, search and hash, when called with parameter and return `$location`. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var url = $location.url(); + * // => "/some/path?foo=bar&baz=xoxo" + * ``` + * + * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`) + * @return {string} url + */ + url: function(url) { + if (isUndefined(url)) { + return this.$$url; + } + + var match = PATH_MATCH.exec(url); + if (match[1] || url === '') this.path(decodeURIComponent(match[1])); + if (match[2] || match[1] || url === '') this.search(match[3] || ''); + this.hash(match[5] || ''); + + return this; + }, + + /** + * @ngdoc method + * @name $location#protocol + * + * @description + * This method is getter only. + * + * Return protocol of current url. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var protocol = $location.protocol(); + * // => "http" + * ``` + * + * @return {string} protocol of current url + */ + protocol: locationGetter('$$protocol'), + + /** + * @ngdoc method + * @name $location#host + * + * @description + * This method is getter only. + * + * Return host of current url. + * + * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var host = $location.host(); + * // => "example.com" + * + * // given url http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo + * host = $location.host(); + * // => "example.com" + * host = location.host; + * // => "example.com:8080" + * ``` + * + * @return {string} host of current url. + */ + host: locationGetter('$$host'), + + /** + * @ngdoc method + * @name $location#port + * + * @description + * This method is getter only. + * + * Return port of current url. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var port = $location.port(); + * // => 80 + * ``` + * + * @return {Number} port + */ + port: locationGetter('$$port'), + + /** + * @ngdoc method + * @name $location#path + * + * @description + * This method is getter / setter. + * + * Return path of current url when called without any parameter. + * + * Change path when called with parameter and return `$location`. + * + * Note: Path should always begin with forward slash (/), this method will add the forward slash + * if it is missing. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var path = $location.path(); + * // => "/some/path" + * ``` + * + * @param {(string|number)=} path New path + * @return {string} path + */ + path: locationGetterSetter('$$path', function(path) { + path = path !== null ? path.toString() : ''; + return path.charAt(0) == '/' ? path : '/' + path; + }), + + /** + * @ngdoc method + * @name $location#search + * + * @description + * This method is getter / setter. + * + * Return search part (as object) of current url when called without any parameter. + * + * Change search part when called with parameter and return `$location`. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo + * var searchObject = $location.search(); + * // => {foo: 'bar', baz: 'xoxo'} + * + * // set foo to 'yipee' + * $location.search('foo', 'yipee'); + * // $location.search() => {foo: 'yipee', baz: 'xoxo'} + * ``` + * + * @param {string|Object.|Object.>} search New search params - string or + * hash object. + * + * When called with a single argument the method acts as a setter, setting the `search` component + * of `$location` to the specified value. + * + * If the argument is a hash object containing an array of values, these values will be encoded + * as duplicate search parameters in the url. + * + * @param {(string|Number|Array|boolean)=} paramValue If `search` is a string or number, then `paramValue` + * will override only a single search property. + * + * If `paramValue` is an array, it will override the property of the `search` component of + * `$location` specified via the first argument. + * + * If `paramValue` is `null`, the property specified via the first argument will be deleted. + * + * If `paramValue` is `true`, the property specified via the first argument will be added with no + * value nor trailing equal sign. + * + * @return {Object} If called with no arguments returns the parsed `search` object. If called with + * one or more arguments returns `$location` object itself. + */ + search: function(search, paramValue) { + switch (arguments.length) { + case 0: + return this.$$search; + case 1: + if (isString(search) || isNumber(search)) { + search = search.toString(); + this.$$search = parseKeyValue(search); + } else if (isObject(search)) { + search = copy(search, {}); + // remove object undefined or null properties + forEach(search, function(value, key) { + if (value == null) delete search[key]; + }); + + this.$$search = search; + } else { + throw $locationMinErr('isrcharg', + 'The first argument of the `$location#search()` call must be a string or an object.'); + } + break; + default: + if (isUndefined(paramValue) || paramValue === null) { + delete this.$$search[search]; + } else { + this.$$search[search] = paramValue; + } + } + + this.$$compose(); + return this; + }, + + /** + * @ngdoc method + * @name $location#hash + * + * @description + * This method is getter / setter. + * + * Return hash fragment when called without any parameter. + * + * Change hash fragment when called with parameter and return `$location`. + * + * + * ```js + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue + * var hash = $location.hash(); + * // => "hashValue" + * ``` + * + * @param {(string|number)=} hash New hash fragment + * @return {string} hash + */ + hash: locationGetterSetter('$$hash', function(hash) { + return hash !== null ? hash.toString() : ''; + }), + + /** + * @ngdoc method + * @name $location#replace + * + * @description + * If called, all changes to $location during current `$digest` will be replacing current history + * record, instead of adding new one. + */ + replace: function() { + this.$$replace = true; + return this; + } +}; + +forEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) { + Location.prototype = Object.create(locationPrototype); + + /** + * @ngdoc method + * @name $location#state + * + * @description + * This method is getter / setter. + * + * Return the history state object when called without any parameter. + * + * Change the history state object when called with one parameter and return `$location`. + * The state object is later passed to `pushState` or `replaceState`. + * + * NOTE: This method is supported only in HTML5 mode and only in browsers supporting + * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support + * older browsers (like IE9 or Android < 4.0), don't use this method. + * + * @param {object=} state State object for pushState or replaceState + * @return {object} state + */ + Location.prototype.state = function(state) { + if (!arguments.length) { + return this.$$state; + } + + if (Location !== LocationHtml5Url || !this.$$html5) { + throw $locationMinErr('nostate', 'History API state support is available only ' + + 'in HTML5 mode and only in browsers supporting HTML5 History API'); + } + // The user might modify `stateObject` after invoking `$location.state(stateObject)` + // but we're changing the $$state reference to $browser.state() during the $digest + // so the modification window is narrow. + this.$$state = isUndefined(state) ? null : state; + + return this; + }; +}); + + +function locationGetter(property) { + return function() { + return this[property]; + }; +} + + +function locationGetterSetter(property, preprocess) { + return function(value) { + if (isUndefined(value)) { + return this[property]; + } + + this[property] = preprocess(value); + this.$$compose(); + + return this; + }; +} + + +/** + * @ngdoc service + * @name $location + * + * @requires $rootElement + * + * @description + * The $location service parses the URL in the browser address bar (based on the + * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL + * available to your application. Changes to the URL in the address bar are reflected into + * $location service and changes to $location are reflected into the browser address bar. + * + * **The $location service:** + * + * - Exposes the current URL in the browser address bar, so you can + * - Watch and observe the URL. + * - Change the URL. + * - Synchronizes the URL with the browser when the user + * - Changes the address bar. + * - Clicks the back or forward button (or clicks a History link). + * - Clicks on a link. + * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash). + * + * For more information see {@link guide/$location Developer Guide: Using $location} + */ + +/** + * @ngdoc provider + * @name $locationProvider + * @description + * Use the `$locationProvider` to configure how the application deep linking paths are stored. + */ +function $LocationProvider() { + var hashPrefix = '', + html5Mode = { + enabled: false, + requireBase: true, + rewriteLinks: true + }; + + /** + * @ngdoc method + * @name $locationProvider#hashPrefix + * @description + * @param {string=} prefix Prefix for hash part (containing path and search) + * @returns {*} current value if used as getter or itself (chaining) if used as setter + */ + this.hashPrefix = function(prefix) { + if (isDefined(prefix)) { + hashPrefix = prefix; + return this; + } else { + return hashPrefix; + } + }; + + /** + * @ngdoc method + * @name $locationProvider#html5Mode + * @description + * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value. + * If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported + * properties: + * - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to + * change urls where supported. Will fall back to hash-prefixed paths in browsers that do not + * support `pushState`. + * - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies + * whether or not a tag is required to be present. If `enabled` and `requireBase` are + * true, and a base tag is not present, an error will be thrown when `$location` is injected. + * See the {@link guide/$location $location guide for more information} + * - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled, + * enables/disables url rewriting for relative links. + * + * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter + */ + this.html5Mode = function(mode) { + if (isBoolean(mode)) { + html5Mode.enabled = mode; + return this; + } else if (isObject(mode)) { + + if (isBoolean(mode.enabled)) { + html5Mode.enabled = mode.enabled; + } + + if (isBoolean(mode.requireBase)) { + html5Mode.requireBase = mode.requireBase; + } + + if (isBoolean(mode.rewriteLinks)) { + html5Mode.rewriteLinks = mode.rewriteLinks; + } + + return this; + } else { + return html5Mode; + } + }; + + /** + * @ngdoc event + * @name $location#$locationChangeStart + * @eventType broadcast on root scope + * @description + * Broadcasted before a URL will change. + * + * This change can be prevented by calling + * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more + * details about event object. Upon successful change + * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired. + * + * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when + * the browser supports the HTML5 History API. + * + * @param {Object} angularEvent Synthetic event object. + * @param {string} newUrl New URL + * @param {string=} oldUrl URL that was before it was changed. + * @param {string=} newState New history state object + * @param {string=} oldState History state object that was before it was changed. + */ + + /** + * @ngdoc event + * @name $location#$locationChangeSuccess + * @eventType broadcast on root scope + * @description + * Broadcasted after a URL was changed. + * + * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when + * the browser supports the HTML5 History API. + * + * @param {Object} angularEvent Synthetic event object. + * @param {string} newUrl New URL + * @param {string=} oldUrl URL that was before it was changed. + * @param {string=} newState New history state object + * @param {string=} oldState History state object that was before it was changed. + */ + + this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window', + function($rootScope, $browser, $sniffer, $rootElement, $window) { + var $location, + LocationMode, + baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to '' + initialUrl = $browser.url(), + appBase; + + if (html5Mode.enabled) { + if (!baseHref && html5Mode.requireBase) { + throw $locationMinErr('nobase', + "$location in HTML5 mode requires a tag to be present!"); + } + appBase = serverBase(initialUrl) + (baseHref || '/'); + LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url; + } else { + appBase = stripHash(initialUrl); + LocationMode = LocationHashbangUrl; + } + var appBaseNoFile = stripFile(appBase); + + $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix); + $location.$$parseLinkUrl(initialUrl, initialUrl); + + $location.$$state = $browser.state(); + + var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i; + + function setBrowserUrlWithFallback(url, replace, state) { + var oldUrl = $location.url(); + var oldState = $location.$$state; + try { + $browser.url(url, replace, state); + + // Make sure $location.state() returns referentially identical (not just deeply equal) + // state object; this makes possible quick checking if the state changed in the digest + // loop. Checking deep equality would be too expensive. + $location.$$state = $browser.state(); + } catch (e) { + // Restore old values if pushState fails + $location.url(oldUrl); + $location.$$state = oldState; + + throw e; + } + } + + $rootElement.on('click', function(event) { + // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser) + // currently we open nice url link and redirect then + + if (!html5Mode.rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which == 2 || event.button == 2) return; + + var elm = jqLite(event.target); + + // traverse the DOM up to find first A tag + while (nodeName_(elm[0]) !== 'a') { + // ignore rewriting if no A tag (reached root element, or no parent - removed from document) + if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return; + } + + var absHref = elm.prop('href'); + // get the actual href attribute - see + // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx + var relHref = elm.attr('href') || elm.attr('xlink:href'); + + if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') { + // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during + // an animation. + absHref = urlResolve(absHref.animVal).href; + } + + // Ignore when url is started with javascript: or mailto: + if (IGNORE_URI_REGEXP.test(absHref)) return; + + if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) { + if ($location.$$parseLinkUrl(absHref, relHref)) { + // We do a preventDefault for all urls that are part of the angular application, + // in html5mode and also without, so that we are able to abort navigation without + // getting double entries in the location history. + event.preventDefault(); + // update location manually + if ($location.absUrl() != $browser.url()) { + $rootScope.$apply(); + // hack to work around FF6 bug 684208 when scenario runner clicks on links + $window.angular['ff-684208-preventDefault'] = true; + } + } + } + }); + + + // rewrite hashbang url <> html5 url + if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) { + $browser.url($location.absUrl(), true); + } + + var initializing = true; + + // update $location when $browser url changes + $browser.onUrlChange(function(newUrl, newState) { + + if (isUndefined(beginsWith(appBaseNoFile, newUrl))) { + // If we are navigating outside of the app then force a reload + $window.location.href = newUrl; + return; + } + + $rootScope.$evalAsync(function() { + var oldUrl = $location.absUrl(); + var oldState = $location.$$state; + var defaultPrevented; + + $location.$$parse(newUrl); + $location.$$state = newState; + + defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, + newState, oldState).defaultPrevented; + + // if the location was changed by a `$locationChangeStart` handler then stop + // processing this location change + if ($location.absUrl() !== newUrl) return; + + if (defaultPrevented) { + $location.$$parse(oldUrl); + $location.$$state = oldState; + setBrowserUrlWithFallback(oldUrl, false, oldState); + } else { + initializing = false; + afterLocationChange(oldUrl, oldState); + } + }); + if (!$rootScope.$$phase) $rootScope.$digest(); + }); + + // update browser + $rootScope.$watch(function $locationWatch() { + var oldUrl = trimEmptyHash($browser.url()); + var newUrl = trimEmptyHash($location.absUrl()); + var oldState = $browser.state(); + var currentReplace = $location.$$replace; + var urlOrStateChanged = oldUrl !== newUrl || + ($location.$$html5 && $sniffer.history && oldState !== $location.$$state); + + if (initializing || urlOrStateChanged) { + initializing = false; + + $rootScope.$evalAsync(function() { + var newUrl = $location.absUrl(); + var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, + $location.$$state, oldState).defaultPrevented; + + // if the location was changed by a `$locationChangeStart` handler then stop + // processing this location change + if ($location.absUrl() !== newUrl) return; + + if (defaultPrevented) { + $location.$$parse(oldUrl); + $location.$$state = oldState; + } else { + if (urlOrStateChanged) { + setBrowserUrlWithFallback(newUrl, currentReplace, + oldState === $location.$$state ? null : $location.$$state); + } + afterLocationChange(oldUrl, oldState); + } + }); + } + + $location.$$replace = false; + + // we don't need to return anything because $evalAsync will make the digest loop dirty when + // there is a change + }); + + return $location; + + function afterLocationChange(oldUrl, oldState) { + $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl, + $location.$$state, oldState); + } +}]; +} + +/** + * @ngdoc service + * @name $log + * @requires $window + * + * @description + * Simple service for logging. Default implementation safely writes the message + * into the browser's console (if present). + * + * The main purpose of this service is to simplify debugging and troubleshooting. + * + * The default is to log `debug` messages. You can use + * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this. + * + * @example + + + angular.module('logExample', []) + .controller('LogController', ['$scope', '$log', function($scope, $log) { + $scope.$log = $log; + $scope.message = 'Hello World!'; + }]); + + +
+

Reload this page with open console, enter text and hit the log button...

+ + + + + + +
+
+
+ */ + +/** + * @ngdoc provider + * @name $logProvider + * @description + * Use the `$logProvider` to configure how the application logs messages + */ +function $LogProvider() { + var debug = true, + self = this; + + /** + * @ngdoc method + * @name $logProvider#debugEnabled + * @description + * @param {boolean=} flag enable or disable debug level messages + * @returns {*} current value if used as getter or itself (chaining) if used as setter + */ + this.debugEnabled = function(flag) { + if (isDefined(flag)) { + debug = flag; + return this; + } else { + return debug; + } + }; + + this.$get = ['$window', function($window) { + return { + /** + * @ngdoc method + * @name $log#log + * + * @description + * Write a log message + */ + log: consoleLog('log'), + + /** + * @ngdoc method + * @name $log#info + * + * @description + * Write an information message + */ + info: consoleLog('info'), + + /** + * @ngdoc method + * @name $log#warn + * + * @description + * Write a warning message + */ + warn: consoleLog('warn'), + + /** + * @ngdoc method + * @name $log#error + * + * @description + * Write an error message + */ + error: consoleLog('error'), + + /** + * @ngdoc method + * @name $log#debug + * + * @description + * Write a debug message + */ + debug: (function() { + var fn = consoleLog('debug'); + + return function() { + if (debug) { + fn.apply(self, arguments); + } + }; + }()) + }; + + function formatError(arg) { + if (arg instanceof Error) { + if (arg.stack) { + arg = (arg.message && arg.stack.indexOf(arg.message) === -1) + ? 'Error: ' + arg.message + '\n' + arg.stack + : arg.stack; + } else if (arg.sourceURL) { + arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line; + } + } + return arg; + } + + function consoleLog(type) { + var console = $window.console || {}, + logFn = console[type] || console.log || noop, + hasApply = false; + + // Note: reading logFn.apply throws an error in IE11 in IE8 document mode. + // The reason behind this is that console.log has type "object" in IE8... + try { + hasApply = !!logFn.apply; + } catch (e) {} + + if (hasApply) { + return function() { + var args = []; + forEach(arguments, function(arg) { + args.push(formatError(arg)); + }); + return logFn.apply(console, args); + }; + } + + // we are IE which either doesn't have window.console => this is noop and we do nothing, + // or we are IE where console.log doesn't have apply so we log at least first 2 args + return function(arg1, arg2) { + logFn(arg1, arg2 == null ? '' : arg2); + }; + } + }]; +} + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Any commits to this file should be reviewed with security in mind. * + * Changes to this file can potentially create security vulnerabilities. * + * An approval from 2 Core members with history of modifying * + * this file is required. * + * * + * Does the change somehow allow for arbitrary javascript to be executed? * + * Or allows for someone to change the prototype of built-in objects? * + * Or gives undesired access to variables likes document or window? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +var $parseMinErr = minErr('$parse'); + +// Sandboxing Angular Expressions +// ------------------------------ +// Angular expressions are generally considered safe because these expressions only have direct +// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by +// obtaining a reference to native JS functions such as the Function constructor. +// +// As an example, consider the following Angular expression: +// +// {}.toString.constructor('alert("evil JS code")') +// +// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits +// against the expression language, but not to prevent exploits that were enabled by exposing +// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good +// practice and therefore we are not even trying to protect against interaction with an object +// explicitly exposed in this way. +// +// In general, it is not possible to access a Window object from an angular expression unless a +// window or some DOM object that has a reference to window is published onto a Scope. +// Similarly we prevent invocations of function known to be dangerous, as well as assignments to +// native objects. +// +// See https://docs.angularjs.org/guide/security + + +function ensureSafeMemberName(name, fullExpression) { + if (name === "__defineGetter__" || name === "__defineSetter__" + || name === "__lookupGetter__" || name === "__lookupSetter__" + || name === "__proto__") { + throw $parseMinErr('isecfld', + 'Attempting to access a disallowed field in Angular expressions! ' + + 'Expression: {0}', fullExpression); + } + return name; +} + +function getStringValue(name, fullExpression) { + // From the JavaScript docs: + // Property names must be strings. This means that non-string objects cannot be used + // as keys in an object. Any non-string object, including a number, is typecasted + // into a string via the toString method. + // + // So, to ensure that we are checking the same `name` that JavaScript would use, + // we cast it to a string, if possible. + // Doing `name + ''` can cause a repl error if the result to `toString` is not a string, + // this is, this will handle objects that misbehave. + name = name + ''; + if (!isString(name)) { + throw $parseMinErr('iseccst', + 'Cannot convert object to primitive value! ' + + 'Expression: {0}', fullExpression); + } + return name; +} + +function ensureSafeObject(obj, fullExpression) { + // nifty check if obj is Function that is fast and works across iframes and other contexts + if (obj) { + if (obj.constructor === obj) { + throw $parseMinErr('isecfn', + 'Referencing Function in Angular expressions is disallowed! Expression: {0}', + fullExpression); + } else if (// isWindow(obj) + obj.window === obj) { + throw $parseMinErr('isecwindow', + 'Referencing the Window in Angular expressions is disallowed! Expression: {0}', + fullExpression); + } else if (// isElement(obj) + obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) { + throw $parseMinErr('isecdom', + 'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}', + fullExpression); + } else if (// block Object so that we can't get hold of dangerous Object.* methods + obj === Object) { + throw $parseMinErr('isecobj', + 'Referencing Object in Angular expressions is disallowed! Expression: {0}', + fullExpression); + } + } + return obj; +} + +var CALL = Function.prototype.call; +var APPLY = Function.prototype.apply; +var BIND = Function.prototype.bind; + +function ensureSafeFunction(obj, fullExpression) { + if (obj) { + if (obj.constructor === obj) { + throw $parseMinErr('isecfn', + 'Referencing Function in Angular expressions is disallowed! Expression: {0}', + fullExpression); + } else if (obj === CALL || obj === APPLY || obj === BIND) { + throw $parseMinErr('isecff', + 'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}', + fullExpression); + } + } +} + +function ensureSafeAssignContext(obj, fullExpression) { + if (obj) { + if (obj === (0).constructor || obj === (false).constructor || obj === ''.constructor || + obj === {}.constructor || obj === [].constructor || obj === Function.constructor) { + throw $parseMinErr('isecaf', + 'Assigning to a constructor is disallowed! Expression: {0}', fullExpression); + } + } +} + +var OPERATORS = createMap(); +forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; }); +var ESCAPE = {"n":"\n", "f":"\f", "r":"\r", "t":"\t", "v":"\v", "'":"'", '"':'"'}; + + +///////////////////////////////////////// + + +/** + * @constructor + */ +var Lexer = function(options) { + this.options = options; +}; + +Lexer.prototype = { + constructor: Lexer, + + lex: function(text) { + this.text = text; + this.index = 0; + this.tokens = []; + + while (this.index < this.text.length) { + var ch = this.text.charAt(this.index); + if (ch === '"' || ch === "'") { + this.readString(ch); + } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) { + this.readNumber(); + } else if (this.isIdent(ch)) { + this.readIdent(); + } else if (this.is(ch, '(){}[].,;:?')) { + this.tokens.push({index: this.index, text: ch}); + this.index++; + } else if (this.isWhitespace(ch)) { + this.index++; + } else { + var ch2 = ch + this.peek(); + var ch3 = ch2 + this.peek(2); + var op1 = OPERATORS[ch]; + var op2 = OPERATORS[ch2]; + var op3 = OPERATORS[ch3]; + if (op1 || op2 || op3) { + var token = op3 ? ch3 : (op2 ? ch2 : ch); + this.tokens.push({index: this.index, text: token, operator: true}); + this.index += token.length; + } else { + this.throwError('Unexpected next character ', this.index, this.index + 1); + } + } + } + return this.tokens; + }, + + is: function(ch, chars) { + return chars.indexOf(ch) !== -1; + }, + + peek: function(i) { + var num = i || 1; + return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false; + }, + + isNumber: function(ch) { + return ('0' <= ch && ch <= '9') && typeof ch === "string"; + }, + + isWhitespace: function(ch) { + // IE treats non-breaking space as \u00A0 + return (ch === ' ' || ch === '\r' || ch === '\t' || + ch === '\n' || ch === '\v' || ch === '\u00A0'); + }, + + isIdent: function(ch) { + return ('a' <= ch && ch <= 'z' || + 'A' <= ch && ch <= 'Z' || + '_' === ch || ch === '$'); + }, + + isExpOperator: function(ch) { + return (ch === '-' || ch === '+' || this.isNumber(ch)); + }, + + throwError: function(error, start, end) { + end = end || this.index; + var colStr = (isDefined(start) + ? 's ' + start + '-' + this.index + ' [' + this.text.substring(start, end) + ']' + : ' ' + end); + throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].', + error, colStr, this.text); + }, + + readNumber: function() { + var number = ''; + var start = this.index; + while (this.index < this.text.length) { + var ch = lowercase(this.text.charAt(this.index)); + if (ch == '.' || this.isNumber(ch)) { + number += ch; + } else { + var peekCh = this.peek(); + if (ch == 'e' && this.isExpOperator(peekCh)) { + number += ch; + } else if (this.isExpOperator(ch) && + peekCh && this.isNumber(peekCh) && + number.charAt(number.length - 1) == 'e') { + number += ch; + } else if (this.isExpOperator(ch) && + (!peekCh || !this.isNumber(peekCh)) && + number.charAt(number.length - 1) == 'e') { + this.throwError('Invalid exponent'); + } else { + break; + } + } + this.index++; + } + this.tokens.push({ + index: start, + text: number, + constant: true, + value: Number(number) + }); + }, + + readIdent: function() { + var start = this.index; + while (this.index < this.text.length) { + var ch = this.text.charAt(this.index); + if (!(this.isIdent(ch) || this.isNumber(ch))) { + break; + } + this.index++; + } + this.tokens.push({ + index: start, + text: this.text.slice(start, this.index), + identifier: true + }); + }, + + readString: function(quote) { + var start = this.index; + this.index++; + var string = ''; + var rawString = quote; + var escape = false; + while (this.index < this.text.length) { + var ch = this.text.charAt(this.index); + rawString += ch; + if (escape) { + if (ch === 'u') { + var hex = this.text.substring(this.index + 1, this.index + 5); + if (!hex.match(/[\da-f]{4}/i)) { + this.throwError('Invalid unicode escape [\\u' + hex + ']'); + } + this.index += 4; + string += String.fromCharCode(parseInt(hex, 16)); + } else { + var rep = ESCAPE[ch]; + string = string + (rep || ch); + } + escape = false; + } else if (ch === '\\') { + escape = true; + } else if (ch === quote) { + this.index++; + this.tokens.push({ + index: start, + text: rawString, + constant: true, + value: string + }); + return; + } else { + string += ch; + } + this.index++; + } + this.throwError('Unterminated quote', start); + } +}; + +var AST = function(lexer, options) { + this.lexer = lexer; + this.options = options; +}; + +AST.Program = 'Program'; +AST.ExpressionStatement = 'ExpressionStatement'; +AST.AssignmentExpression = 'AssignmentExpression'; +AST.ConditionalExpression = 'ConditionalExpression'; +AST.LogicalExpression = 'LogicalExpression'; +AST.BinaryExpression = 'BinaryExpression'; +AST.UnaryExpression = 'UnaryExpression'; +AST.CallExpression = 'CallExpression'; +AST.MemberExpression = 'MemberExpression'; +AST.Identifier = 'Identifier'; +AST.Literal = 'Literal'; +AST.ArrayExpression = 'ArrayExpression'; +AST.Property = 'Property'; +AST.ObjectExpression = 'ObjectExpression'; +AST.ThisExpression = 'ThisExpression'; + +// Internal use only +AST.NGValueParameter = 'NGValueParameter'; + +AST.prototype = { + ast: function(text) { + this.text = text; + this.tokens = this.lexer.lex(text); + + var value = this.program(); + + if (this.tokens.length !== 0) { + this.throwError('is an unexpected token', this.tokens[0]); + } + + return value; + }, + + program: function() { + var body = []; + while (true) { + if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']')) + body.push(this.expressionStatement()); + if (!this.expect(';')) { + return { type: AST.Program, body: body}; + } + } + }, + + expressionStatement: function() { + return { type: AST.ExpressionStatement, expression: this.filterChain() }; + }, + + filterChain: function() { + var left = this.expression(); + var token; + while ((token = this.expect('|'))) { + left = this.filter(left); + } + return left; + }, + + expression: function() { + return this.assignment(); + }, + + assignment: function() { + var result = this.ternary(); + if (this.expect('=')) { + result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='}; + } + return result; + }, + + ternary: function() { + var test = this.logicalOR(); + var alternate; + var consequent; + if (this.expect('?')) { + alternate = this.expression(); + if (this.consume(':')) { + consequent = this.expression(); + return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent}; + } + } + return test; + }, + + logicalOR: function() { + var left = this.logicalAND(); + while (this.expect('||')) { + left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() }; + } + return left; + }, + + logicalAND: function() { + var left = this.equality(); + while (this.expect('&&')) { + left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()}; + } + return left; + }, + + equality: function() { + var left = this.relational(); + var token; + while ((token = this.expect('==','!=','===','!=='))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() }; + } + return left; + }, + + relational: function() { + var left = this.additive(); + var token; + while ((token = this.expect('<', '>', '<=', '>='))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() }; + } + return left; + }, + + additive: function() { + var left = this.multiplicative(); + var token; + while ((token = this.expect('+','-'))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() }; + } + return left; + }, + + multiplicative: function() { + var left = this.unary(); + var token; + while ((token = this.expect('*','/','%'))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() }; + } + return left; + }, + + unary: function() { + var token; + if ((token = this.expect('+', '-', '!'))) { + return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() }; + } else { + return this.primary(); + } + }, + + primary: function() { + var primary; + if (this.expect('(')) { + primary = this.filterChain(); + this.consume(')'); + } else if (this.expect('[')) { + primary = this.arrayDeclaration(); + } else if (this.expect('{')) { + primary = this.object(); + } else if (this.constants.hasOwnProperty(this.peek().text)) { + primary = copy(this.constants[this.consume().text]); + } else if (this.peek().identifier) { + primary = this.identifier(); + } else if (this.peek().constant) { + primary = this.constant(); + } else { + this.throwError('not a primary expression', this.peek()); + } + + var next; + while ((next = this.expect('(', '[', '.'))) { + if (next.text === '(') { + primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() }; + this.consume(')'); + } else if (next.text === '[') { + primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true }; + this.consume(']'); + } else if (next.text === '.') { + primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false }; + } else { + this.throwError('IMPOSSIBLE'); + } + } + return primary; + }, + + filter: function(baseExpression) { + var args = [baseExpression]; + var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true}; + + while (this.expect(':')) { + args.push(this.expression()); + } + + return result; + }, + + parseArguments: function() { + var args = []; + if (this.peekToken().text !== ')') { + do { + args.push(this.expression()); + } while (this.expect(',')); + } + return args; + }, + + identifier: function() { + var token = this.consume(); + if (!token.identifier) { + this.throwError('is not a valid identifier', token); + } + return { type: AST.Identifier, name: token.text }; + }, + + constant: function() { + // TODO check that it is a constant + return { type: AST.Literal, value: this.consume().value }; + }, + + arrayDeclaration: function() { + var elements = []; + if (this.peekToken().text !== ']') { + do { + if (this.peek(']')) { + // Support trailing commas per ES5.1. + break; + } + elements.push(this.expression()); + } while (this.expect(',')); + } + this.consume(']'); + + return { type: AST.ArrayExpression, elements: elements }; + }, + + object: function() { + var properties = [], property; + if (this.peekToken().text !== '}') { + do { + if (this.peek('}')) { + // Support trailing commas per ES5.1. + break; + } + property = {type: AST.Property, kind: 'init'}; + if (this.peek().constant) { + property.key = this.constant(); + } else if (this.peek().identifier) { + property.key = this.identifier(); + } else { + this.throwError("invalid key", this.peek()); + } + this.consume(':'); + property.value = this.expression(); + properties.push(property); + } while (this.expect(',')); + } + this.consume('}'); + + return {type: AST.ObjectExpression, properties: properties }; + }, + + throwError: function(msg, token) { + throw $parseMinErr('syntax', + 'Syntax Error: Token \'{0}\' {1} at column {2} of the expression [{3}] starting at [{4}].', + token.text, msg, (token.index + 1), this.text, this.text.substring(token.index)); + }, + + consume: function(e1) { + if (this.tokens.length === 0) { + throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + } + + var token = this.expect(e1); + if (!token) { + this.throwError('is unexpected, expecting [' + e1 + ']', this.peek()); + } + return token; + }, + + peekToken: function() { + if (this.tokens.length === 0) { + throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + } + return this.tokens[0]; + }, + + peek: function(e1, e2, e3, e4) { + return this.peekAhead(0, e1, e2, e3, e4); + }, + + peekAhead: function(i, e1, e2, e3, e4) { + if (this.tokens.length > i) { + var token = this.tokens[i]; + var t = token.text; + if (t === e1 || t === e2 || t === e3 || t === e4 || + (!e1 && !e2 && !e3 && !e4)) { + return token; + } + } + return false; + }, + + expect: function(e1, e2, e3, e4) { + var token = this.peek(e1, e2, e3, e4); + if (token) { + this.tokens.shift(); + return token; + } + return false; + }, + + + /* `undefined` is not a constant, it is an identifier, + * but using it as an identifier is not supported + */ + constants: { + 'true': { type: AST.Literal, value: true }, + 'false': { type: AST.Literal, value: false }, + 'null': { type: AST.Literal, value: null }, + 'undefined': {type: AST.Literal, value: undefined }, + 'this': {type: AST.ThisExpression } + } +}; + +function ifDefined(v, d) { + return typeof v !== 'undefined' ? v : d; +} + +function plusFn(l, r) { + if (typeof l === 'undefined') return r; + if (typeof r === 'undefined') return l; + return l + r; +} + +function isStateless($filter, filterName) { + var fn = $filter(filterName); + return !fn.$stateful; +} + +function findConstantAndWatchExpressions(ast, $filter) { + var allConstants; + var argsToWatch; + switch (ast.type) { + case AST.Program: + allConstants = true; + forEach(ast.body, function(expr) { + findConstantAndWatchExpressions(expr.expression, $filter); + allConstants = allConstants && expr.expression.constant; + }); + ast.constant = allConstants; + break; + case AST.Literal: + ast.constant = true; + ast.toWatch = []; + break; + case AST.UnaryExpression: + findConstantAndWatchExpressions(ast.argument, $filter); + ast.constant = ast.argument.constant; + ast.toWatch = ast.argument.toWatch; + break; + case AST.BinaryExpression: + findConstantAndWatchExpressions(ast.left, $filter); + findConstantAndWatchExpressions(ast.right, $filter); + ast.constant = ast.left.constant && ast.right.constant; + ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch); + break; + case AST.LogicalExpression: + findConstantAndWatchExpressions(ast.left, $filter); + findConstantAndWatchExpressions(ast.right, $filter); + ast.constant = ast.left.constant && ast.right.constant; + ast.toWatch = ast.constant ? [] : [ast]; + break; + case AST.ConditionalExpression: + findConstantAndWatchExpressions(ast.test, $filter); + findConstantAndWatchExpressions(ast.alternate, $filter); + findConstantAndWatchExpressions(ast.consequent, $filter); + ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant; + ast.toWatch = ast.constant ? [] : [ast]; + break; + case AST.Identifier: + ast.constant = false; + ast.toWatch = [ast]; + break; + case AST.MemberExpression: + findConstantAndWatchExpressions(ast.object, $filter); + if (ast.computed) { + findConstantAndWatchExpressions(ast.property, $filter); + } + ast.constant = ast.object.constant && (!ast.computed || ast.property.constant); + ast.toWatch = [ast]; + break; + case AST.CallExpression: + allConstants = ast.filter ? isStateless($filter, ast.callee.name) : false; + argsToWatch = []; + forEach(ast.arguments, function(expr) { + findConstantAndWatchExpressions(expr, $filter); + allConstants = allConstants && expr.constant; + if (!expr.constant) { + argsToWatch.push.apply(argsToWatch, expr.toWatch); + } + }); + ast.constant = allConstants; + ast.toWatch = ast.filter && isStateless($filter, ast.callee.name) ? argsToWatch : [ast]; + break; + case AST.AssignmentExpression: + findConstantAndWatchExpressions(ast.left, $filter); + findConstantAndWatchExpressions(ast.right, $filter); + ast.constant = ast.left.constant && ast.right.constant; + ast.toWatch = [ast]; + break; + case AST.ArrayExpression: + allConstants = true; + argsToWatch = []; + forEach(ast.elements, function(expr) { + findConstantAndWatchExpressions(expr, $filter); + allConstants = allConstants && expr.constant; + if (!expr.constant) { + argsToWatch.push.apply(argsToWatch, expr.toWatch); + } + }); + ast.constant = allConstants; + ast.toWatch = argsToWatch; + break; + case AST.ObjectExpression: + allConstants = true; + argsToWatch = []; + forEach(ast.properties, function(property) { + findConstantAndWatchExpressions(property.value, $filter); + allConstants = allConstants && property.value.constant; + if (!property.value.constant) { + argsToWatch.push.apply(argsToWatch, property.value.toWatch); + } + }); + ast.constant = allConstants; + ast.toWatch = argsToWatch; + break; + case AST.ThisExpression: + ast.constant = false; + ast.toWatch = []; + break; + } +} + +function getInputs(body) { + if (body.length != 1) return; + var lastExpression = body[0].expression; + var candidate = lastExpression.toWatch; + if (candidate.length !== 1) return candidate; + return candidate[0] !== lastExpression ? candidate : undefined; +} + +function isAssignable(ast) { + return ast.type === AST.Identifier || ast.type === AST.MemberExpression; +} + +function assignableAST(ast) { + if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) { + return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='}; + } +} + +function isLiteral(ast) { + return ast.body.length === 0 || + ast.body.length === 1 && ( + ast.body[0].expression.type === AST.Literal || + ast.body[0].expression.type === AST.ArrayExpression || + ast.body[0].expression.type === AST.ObjectExpression); +} + +function isConstant(ast) { + return ast.constant; +} + +function ASTCompiler(astBuilder, $filter) { + this.astBuilder = astBuilder; + this.$filter = $filter; +} + +ASTCompiler.prototype = { + compile: function(expression, expensiveChecks) { + var self = this; + var ast = this.astBuilder.ast(expression); + this.state = { + nextId: 0, + filters: {}, + expensiveChecks: expensiveChecks, + fn: {vars: [], body: [], own: {}}, + assign: {vars: [], body: [], own: {}}, + inputs: [] + }; + findConstantAndWatchExpressions(ast, self.$filter); + var extra = ''; + var assignable; + this.stage = 'assign'; + if ((assignable = assignableAST(ast))) { + this.state.computing = 'assign'; + var result = this.nextId(); + this.recurse(assignable, result); + this.return_(result); + extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l'); + } + var toWatch = getInputs(ast.body); + self.stage = 'inputs'; + forEach(toWatch, function(watch, key) { + var fnKey = 'fn' + key; + self.state[fnKey] = {vars: [], body: [], own: {}}; + self.state.computing = fnKey; + var intoId = self.nextId(); + self.recurse(watch, intoId); + self.return_(intoId); + self.state.inputs.push(fnKey); + watch.watchId = key; + }); + this.state.computing = 'fn'; + this.stage = 'main'; + this.recurse(ast); + var fnString = + // The build and minification steps remove the string "use strict" from the code, but this is done using a regex. + // This is a workaround for this until we do a better job at only removing the prefix only when we should. + '"' + this.USE + ' ' + this.STRICT + '";\n' + + this.filterPrefix() + + 'var fn=' + this.generateFunction('fn', 's,l,a,i') + + extra + + this.watchFns() + + 'return fn;'; + + /* jshint -W054 */ + var fn = (new Function('$filter', + 'ensureSafeMemberName', + 'ensureSafeObject', + 'ensureSafeFunction', + 'getStringValue', + 'ensureSafeAssignContext', + 'ifDefined', + 'plus', + 'text', + fnString))( + this.$filter, + ensureSafeMemberName, + ensureSafeObject, + ensureSafeFunction, + getStringValue, + ensureSafeAssignContext, + ifDefined, + plusFn, + expression); + /* jshint +W054 */ + this.state = this.stage = undefined; + fn.literal = isLiteral(ast); + fn.constant = isConstant(ast); + return fn; + }, + + USE: 'use', + + STRICT: 'strict', + + watchFns: function() { + var result = []; + var fns = this.state.inputs; + var self = this; + forEach(fns, function(name) { + result.push('var ' + name + '=' + self.generateFunction(name, 's')); + }); + if (fns.length) { + result.push('fn.inputs=[' + fns.join(',') + '];'); + } + return result.join(''); + }, + + generateFunction: function(name, params) { + return 'function(' + params + '){' + + this.varsPrefix(name) + + this.body(name) + + '};'; + }, + + filterPrefix: function() { + var parts = []; + var self = this; + forEach(this.state.filters, function(id, filter) { + parts.push(id + '=$filter(' + self.escape(filter) + ')'); + }); + if (parts.length) return 'var ' + parts.join(',') + ';'; + return ''; + }, + + varsPrefix: function(section) { + return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : ''; + }, + + body: function(section) { + return this.state[section].body.join(''); + }, + + recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) { + var left, right, self = this, args, expression; + recursionFn = recursionFn || noop; + if (!skipWatchIdCheck && isDefined(ast.watchId)) { + intoId = intoId || this.nextId(); + this.if_('i', + this.lazyAssign(intoId, this.computedMember('i', ast.watchId)), + this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true) + ); + return; + } + switch (ast.type) { + case AST.Program: + forEach(ast.body, function(expression, pos) { + self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; }); + if (pos !== ast.body.length - 1) { + self.current().body.push(right, ';'); + } else { + self.return_(right); + } + }); + break; + case AST.Literal: + expression = this.escape(ast.value); + this.assign(intoId, expression); + recursionFn(expression); + break; + case AST.UnaryExpression: + this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; }); + expression = ast.operator + '(' + this.ifDefined(right, 0) + ')'; + this.assign(intoId, expression); + recursionFn(expression); + break; + case AST.BinaryExpression: + this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; }); + this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; }); + if (ast.operator === '+') { + expression = this.plus(left, right); + } else if (ast.operator === '-') { + expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0); + } else { + expression = '(' + left + ')' + ast.operator + '(' + right + ')'; + } + this.assign(intoId, expression); + recursionFn(expression); + break; + case AST.LogicalExpression: + intoId = intoId || this.nextId(); + self.recurse(ast.left, intoId); + self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId)); + recursionFn(intoId); + break; + case AST.ConditionalExpression: + intoId = intoId || this.nextId(); + self.recurse(ast.test, intoId); + self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId)); + recursionFn(intoId); + break; + case AST.Identifier: + intoId = intoId || this.nextId(); + if (nameId) { + nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s'); + nameId.computed = false; + nameId.name = ast.name; + } + ensureSafeMemberName(ast.name); + self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)), + function() { + self.if_(self.stage === 'inputs' || 's', function() { + if (create && create !== 1) { + self.if_( + self.not(self.nonComputedMember('s', ast.name)), + self.lazyAssign(self.nonComputedMember('s', ast.name), '{}')); + } + self.assign(intoId, self.nonComputedMember('s', ast.name)); + }); + }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name)) + ); + if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.name)) { + self.addEnsureSafeObject(intoId); + } + recursionFn(intoId); + break; + case AST.MemberExpression: + left = nameId && (nameId.context = this.nextId()) || this.nextId(); + intoId = intoId || this.nextId(); + self.recurse(ast.object, left, undefined, function() { + self.if_(self.notNull(left), function() { + if (ast.computed) { + right = self.nextId(); + self.recurse(ast.property, right); + self.getStringValue(right); + self.addEnsureSafeMemberName(right); + if (create && create !== 1) { + self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}')); + } + expression = self.ensureSafeObject(self.computedMember(left, right)); + self.assign(intoId, expression); + if (nameId) { + nameId.computed = true; + nameId.name = right; + } + } else { + ensureSafeMemberName(ast.property.name); + if (create && create !== 1) { + self.if_(self.not(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}')); + } + expression = self.nonComputedMember(left, ast.property.name); + if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.property.name)) { + expression = self.ensureSafeObject(expression); + } + self.assign(intoId, expression); + if (nameId) { + nameId.computed = false; + nameId.name = ast.property.name; + } + } + }, function() { + self.assign(intoId, 'undefined'); + }); + recursionFn(intoId); + }, !!create); + break; + case AST.CallExpression: + intoId = intoId || this.nextId(); + if (ast.filter) { + right = self.filter(ast.callee.name); + args = []; + forEach(ast.arguments, function(expr) { + var argument = self.nextId(); + self.recurse(expr, argument); + args.push(argument); + }); + expression = right + '(' + args.join(',') + ')'; + self.assign(intoId, expression); + recursionFn(intoId); + } else { + right = self.nextId(); + left = {}; + args = []; + self.recurse(ast.callee, right, left, function() { + self.if_(self.notNull(right), function() { + self.addEnsureSafeFunction(right); + forEach(ast.arguments, function(expr) { + self.recurse(expr, self.nextId(), undefined, function(argument) { + args.push(self.ensureSafeObject(argument)); + }); + }); + if (left.name) { + if (!self.state.expensiveChecks) { + self.addEnsureSafeObject(left.context); + } + expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')'; + } else { + expression = right + '(' + args.join(',') + ')'; + } + expression = self.ensureSafeObject(expression); + self.assign(intoId, expression); + }, function() { + self.assign(intoId, 'undefined'); + }); + recursionFn(intoId); + }); + } + break; + case AST.AssignmentExpression: + right = this.nextId(); + left = {}; + if (!isAssignable(ast.left)) { + throw $parseMinErr('lval', 'Trying to assing a value to a non l-value'); + } + this.recurse(ast.left, undefined, left, function() { + self.if_(self.notNull(left.context), function() { + self.recurse(ast.right, right); + self.addEnsureSafeObject(self.member(left.context, left.name, left.computed)); + self.addEnsureSafeAssignContext(left.context); + expression = self.member(left.context, left.name, left.computed) + ast.operator + right; + self.assign(intoId, expression); + recursionFn(intoId || expression); + }); + }, 1); + break; + case AST.ArrayExpression: + args = []; + forEach(ast.elements, function(expr) { + self.recurse(expr, self.nextId(), undefined, function(argument) { + args.push(argument); + }); + }); + expression = '[' + args.join(',') + ']'; + this.assign(intoId, expression); + recursionFn(expression); + break; + case AST.ObjectExpression: + args = []; + forEach(ast.properties, function(property) { + self.recurse(property.value, self.nextId(), undefined, function(expr) { + args.push(self.escape( + property.key.type === AST.Identifier ? property.key.name : + ('' + property.key.value)) + + ':' + expr); + }); + }); + expression = '{' + args.join(',') + '}'; + this.assign(intoId, expression); + recursionFn(expression); + break; + case AST.ThisExpression: + this.assign(intoId, 's'); + recursionFn('s'); + break; + case AST.NGValueParameter: + this.assign(intoId, 'v'); + recursionFn('v'); + break; + } + }, + + getHasOwnProperty: function(element, property) { + var key = element + '.' + property; + var own = this.current().own; + if (!own.hasOwnProperty(key)) { + own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')'); + } + return own[key]; + }, + + assign: function(id, value) { + if (!id) return; + this.current().body.push(id, '=', value, ';'); + return id; + }, + + filter: function(filterName) { + if (!this.state.filters.hasOwnProperty(filterName)) { + this.state.filters[filterName] = this.nextId(true); + } + return this.state.filters[filterName]; + }, + + ifDefined: function(id, defaultValue) { + return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')'; + }, + + plus: function(left, right) { + return 'plus(' + left + ',' + right + ')'; + }, + + return_: function(id) { + this.current().body.push('return ', id, ';'); + }, + + if_: function(test, alternate, consequent) { + if (test === true) { + alternate(); + } else { + var body = this.current().body; + body.push('if(', test, '){'); + alternate(); + body.push('}'); + if (consequent) { + body.push('else{'); + consequent(); + body.push('}'); + } + } + }, + + not: function(expression) { + return '!(' + expression + ')'; + }, + + notNull: function(expression) { + return expression + '!=null'; + }, + + nonComputedMember: function(left, right) { + return left + '.' + right; + }, + + computedMember: function(left, right) { + return left + '[' + right + ']'; + }, + + member: function(left, right, computed) { + if (computed) return this.computedMember(left, right); + return this.nonComputedMember(left, right); + }, + + addEnsureSafeObject: function(item) { + this.current().body.push(this.ensureSafeObject(item), ';'); + }, + + addEnsureSafeMemberName: function(item) { + this.current().body.push(this.ensureSafeMemberName(item), ';'); + }, + + addEnsureSafeFunction: function(item) { + this.current().body.push(this.ensureSafeFunction(item), ';'); + }, + + addEnsureSafeAssignContext: function(item) { + this.current().body.push(this.ensureSafeAssignContext(item), ';'); + }, + + ensureSafeObject: function(item) { + return 'ensureSafeObject(' + item + ',text)'; + }, + + ensureSafeMemberName: function(item) { + return 'ensureSafeMemberName(' + item + ',text)'; + }, + + ensureSafeFunction: function(item) { + return 'ensureSafeFunction(' + item + ',text)'; + }, + + getStringValue: function(item) { + this.assign(item, 'getStringValue(' + item + ',text)'); + }, + + ensureSafeAssignContext: function(item) { + return 'ensureSafeAssignContext(' + item + ',text)'; + }, + + lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) { + var self = this; + return function() { + self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck); + }; + }, + + lazyAssign: function(id, value) { + var self = this; + return function() { + self.assign(id, value); + }; + }, + + stringEscapeRegex: /[^ a-zA-Z0-9]/g, + + stringEscapeFn: function(c) { + return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4); + }, + + escape: function(value) { + if (isString(value)) return "'" + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + "'"; + if (isNumber(value)) return value.toString(); + if (value === true) return 'true'; + if (value === false) return 'false'; + if (value === null) return 'null'; + if (typeof value === 'undefined') return 'undefined'; + + throw $parseMinErr('esc', 'IMPOSSIBLE'); + }, + + nextId: function(skip, init) { + var id = 'v' + (this.state.nextId++); + if (!skip) { + this.current().vars.push(id + (init ? '=' + init : '')); + } + return id; + }, + + current: function() { + return this.state[this.state.computing]; + } +}; + + +function ASTInterpreter(astBuilder, $filter) { + this.astBuilder = astBuilder; + this.$filter = $filter; +} + +ASTInterpreter.prototype = { + compile: function(expression, expensiveChecks) { + var self = this; + var ast = this.astBuilder.ast(expression); + this.expression = expression; + this.expensiveChecks = expensiveChecks; + findConstantAndWatchExpressions(ast, self.$filter); + var assignable; + var assign; + if ((assignable = assignableAST(ast))) { + assign = this.recurse(assignable); + } + var toWatch = getInputs(ast.body); + var inputs; + if (toWatch) { + inputs = []; + forEach(toWatch, function(watch, key) { + var input = self.recurse(watch); + watch.input = input; + inputs.push(input); + watch.watchId = key; + }); + } + var expressions = []; + forEach(ast.body, function(expression) { + expressions.push(self.recurse(expression.expression)); + }); + var fn = ast.body.length === 0 ? function() {} : + ast.body.length === 1 ? expressions[0] : + function(scope, locals) { + var lastValue; + forEach(expressions, function(exp) { + lastValue = exp(scope, locals); + }); + return lastValue; + }; + if (assign) { + fn.assign = function(scope, value, locals) { + return assign(scope, locals, value); + }; + } + if (inputs) { + fn.inputs = inputs; + } + fn.literal = isLiteral(ast); + fn.constant = isConstant(ast); + return fn; + }, + + recurse: function(ast, context, create) { + var left, right, self = this, args, expression; + if (ast.input) { + return this.inputs(ast.input, ast.watchId); + } + switch (ast.type) { + case AST.Literal: + return this.value(ast.value, context); + case AST.UnaryExpression: + right = this.recurse(ast.argument); + return this['unary' + ast.operator](right, context); + case AST.BinaryExpression: + left = this.recurse(ast.left); + right = this.recurse(ast.right); + return this['binary' + ast.operator](left, right, context); + case AST.LogicalExpression: + left = this.recurse(ast.left); + right = this.recurse(ast.right); + return this['binary' + ast.operator](left, right, context); + case AST.ConditionalExpression: + return this['ternary?:']( + this.recurse(ast.test), + this.recurse(ast.alternate), + this.recurse(ast.consequent), + context + ); + case AST.Identifier: + ensureSafeMemberName(ast.name, self.expression); + return self.identifier(ast.name, + self.expensiveChecks || isPossiblyDangerousMemberName(ast.name), + context, create, self.expression); + case AST.MemberExpression: + left = this.recurse(ast.object, false, !!create); + if (!ast.computed) { + ensureSafeMemberName(ast.property.name, self.expression); + right = ast.property.name; + } + if (ast.computed) right = this.recurse(ast.property); + return ast.computed ? + this.computedMember(left, right, context, create, self.expression) : + this.nonComputedMember(left, right, self.expensiveChecks, context, create, self.expression); + case AST.CallExpression: + args = []; + forEach(ast.arguments, function(expr) { + args.push(self.recurse(expr)); + }); + if (ast.filter) right = this.$filter(ast.callee.name); + if (!ast.filter) right = this.recurse(ast.callee, true); + return ast.filter ? + function(scope, locals, assign, inputs) { + var values = []; + for (var i = 0; i < args.length; ++i) { + values.push(args[i](scope, locals, assign, inputs)); + } + var value = right.apply(undefined, values, inputs); + return context ? {context: undefined, name: undefined, value: value} : value; + } : + function(scope, locals, assign, inputs) { + var rhs = right(scope, locals, assign, inputs); + var value; + if (rhs.value != null) { + ensureSafeObject(rhs.context, self.expression); + ensureSafeFunction(rhs.value, self.expression); + var values = []; + for (var i = 0; i < args.length; ++i) { + values.push(ensureSafeObject(args[i](scope, locals, assign, inputs), self.expression)); + } + value = ensureSafeObject(rhs.value.apply(rhs.context, values), self.expression); + } + return context ? {value: value} : value; + }; + case AST.AssignmentExpression: + left = this.recurse(ast.left, true, 1); + right = this.recurse(ast.right); + return function(scope, locals, assign, inputs) { + var lhs = left(scope, locals, assign, inputs); + var rhs = right(scope, locals, assign, inputs); + ensureSafeObject(lhs.value, self.expression); + ensureSafeAssignContext(lhs.context); + lhs.context[lhs.name] = rhs; + return context ? {value: rhs} : rhs; + }; + case AST.ArrayExpression: + args = []; + forEach(ast.elements, function(expr) { + args.push(self.recurse(expr)); + }); + return function(scope, locals, assign, inputs) { + var value = []; + for (var i = 0; i < args.length; ++i) { + value.push(args[i](scope, locals, assign, inputs)); + } + return context ? {value: value} : value; + }; + case AST.ObjectExpression: + args = []; + forEach(ast.properties, function(property) { + args.push({key: property.key.type === AST.Identifier ? + property.key.name : + ('' + property.key.value), + value: self.recurse(property.value) + }); + }); + return function(scope, locals, assign, inputs) { + var value = {}; + for (var i = 0; i < args.length; ++i) { + value[args[i].key] = args[i].value(scope, locals, assign, inputs); + } + return context ? {value: value} : value; + }; + case AST.ThisExpression: + return function(scope) { + return context ? {value: scope} : scope; + }; + case AST.NGValueParameter: + return function(scope, locals, assign, inputs) { + return context ? {value: assign} : assign; + }; + } + }, + + 'unary+': function(argument, context) { + return function(scope, locals, assign, inputs) { + var arg = argument(scope, locals, assign, inputs); + if (isDefined(arg)) { + arg = +arg; + } else { + arg = 0; + } + return context ? {value: arg} : arg; + }; + }, + 'unary-': function(argument, context) { + return function(scope, locals, assign, inputs) { + var arg = argument(scope, locals, assign, inputs); + if (isDefined(arg)) { + arg = -arg; + } else { + arg = 0; + } + return context ? {value: arg} : arg; + }; + }, + 'unary!': function(argument, context) { + return function(scope, locals, assign, inputs) { + var arg = !argument(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary+': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var lhs = left(scope, locals, assign, inputs); + var rhs = right(scope, locals, assign, inputs); + var arg = plusFn(lhs, rhs); + return context ? {value: arg} : arg; + }; + }, + 'binary-': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var lhs = left(scope, locals, assign, inputs); + var rhs = right(scope, locals, assign, inputs); + var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0); + return context ? {value: arg} : arg; + }; + }, + 'binary*': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary/': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary%': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary===': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary!==': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary==': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary!=': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary<': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary>': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary<=': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary>=': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary&&': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary||': function(left, right, context) { + return function(scope, locals, assign, inputs) { + var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'ternary?:': function(test, alternate, consequent, context) { + return function(scope, locals, assign, inputs) { + var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + value: function(value, context) { + return function() { return context ? {context: undefined, name: undefined, value: value} : value; }; + }, + identifier: function(name, expensiveChecks, context, create, expression) { + return function(scope, locals, assign, inputs) { + var base = locals && (name in locals) ? locals : scope; + if (create && create !== 1 && base && !(base[name])) { + base[name] = {}; + } + var value = base ? base[name] : undefined; + if (expensiveChecks) { + ensureSafeObject(value, expression); + } + if (context) { + return {context: base, name: name, value: value}; + } else { + return value; + } + }; + }, + computedMember: function(left, right, context, create, expression) { + return function(scope, locals, assign, inputs) { + var lhs = left(scope, locals, assign, inputs); + var rhs; + var value; + if (lhs != null) { + rhs = right(scope, locals, assign, inputs); + rhs = getStringValue(rhs); + ensureSafeMemberName(rhs, expression); + if (create && create !== 1 && lhs && !(lhs[rhs])) { + lhs[rhs] = {}; + } + value = lhs[rhs]; + ensureSafeObject(value, expression); + } + if (context) { + return {context: lhs, name: rhs, value: value}; + } else { + return value; + } + }; + }, + nonComputedMember: function(left, right, expensiveChecks, context, create, expression) { + return function(scope, locals, assign, inputs) { + var lhs = left(scope, locals, assign, inputs); + if (create && create !== 1 && lhs && !(lhs[right])) { + lhs[right] = {}; + } + var value = lhs != null ? lhs[right] : undefined; + if (expensiveChecks || isPossiblyDangerousMemberName(right)) { + ensureSafeObject(value, expression); + } + if (context) { + return {context: lhs, name: right, value: value}; + } else { + return value; + } + }; + }, + inputs: function(input, watchId) { + return function(scope, value, locals, inputs) { + if (inputs) return inputs[watchId]; + return input(scope, value, locals); + }; + } +}; + +/** + * @constructor + */ +var Parser = function(lexer, $filter, options) { + this.lexer = lexer; + this.$filter = $filter; + this.options = options; + this.ast = new AST(this.lexer); + this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) : + new ASTCompiler(this.ast, $filter); +}; + +Parser.prototype = { + constructor: Parser, + + parse: function(text) { + return this.astCompiler.compile(text, this.options.expensiveChecks); + } +}; + +var getterFnCacheDefault = createMap(); +var getterFnCacheExpensive = createMap(); + +function isPossiblyDangerousMemberName(name) { + return name == 'constructor'; +} + +var objectValueOf = Object.prototype.valueOf; + +function getValueOf(value) { + return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value); +} + +/////////////////////////////////// + +/** + * @ngdoc service + * @name $parse + * @kind function + * + * @description + * + * Converts Angular {@link guide/expression expression} into a function. + * + * ```js + * var getter = $parse('user.name'); + * var setter = getter.assign; + * var context = {user:{name:'angular'}}; + * var locals = {user:{name:'local'}}; + * + * expect(getter(context)).toEqual('angular'); + * setter(context, 'newValue'); + * expect(context.user.name).toEqual('newValue'); + * expect(getter(context, locals)).toEqual('local'); + * ``` + * + * + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + * + * The returned function also has the following properties: + * * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript + * literal. + * * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript + * constant literals. + * * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be + * set to a function to change its value on the given context. + * + */ + + +/** + * @ngdoc provider + * @name $parseProvider + * + * @description + * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse} + * service. + */ +function $ParseProvider() { + var cacheDefault = createMap(); + var cacheExpensive = createMap(); + + this.$get = ['$filter', function($filter) { + var noUnsafeEval = csp().noUnsafeEval; + var $parseOptions = { + csp: noUnsafeEval, + expensiveChecks: false + }, + $parseOptionsExpensive = { + csp: noUnsafeEval, + expensiveChecks: true + }; + + return function $parse(exp, interceptorFn, expensiveChecks) { + var parsedExpression, oneTime, cacheKey; + + switch (typeof exp) { + case 'string': + exp = exp.trim(); + cacheKey = exp; + + var cache = (expensiveChecks ? cacheExpensive : cacheDefault); + parsedExpression = cache[cacheKey]; + + if (!parsedExpression) { + if (exp.charAt(0) === ':' && exp.charAt(1) === ':') { + oneTime = true; + exp = exp.substring(2); + } + var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions; + var lexer = new Lexer(parseOptions); + var parser = new Parser(lexer, $filter, parseOptions); + parsedExpression = parser.parse(exp); + if (parsedExpression.constant) { + parsedExpression.$$watchDelegate = constantWatchDelegate; + } else if (oneTime) { + parsedExpression.$$watchDelegate = parsedExpression.literal ? + oneTimeLiteralWatchDelegate : oneTimeWatchDelegate; + } else if (parsedExpression.inputs) { + parsedExpression.$$watchDelegate = inputsWatchDelegate; + } + cache[cacheKey] = parsedExpression; + } + return addInterceptor(parsedExpression, interceptorFn); + + case 'function': + return addInterceptor(exp, interceptorFn); + + default: + return noop; + } + }; + + function expressionInputDirtyCheck(newValue, oldValueOfValue) { + + if (newValue == null || oldValueOfValue == null) { // null/undefined + return newValue === oldValueOfValue; + } + + if (typeof newValue === 'object') { + + // attempt to convert the value to a primitive type + // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can + // be cheaply dirty-checked + newValue = getValueOf(newValue); + + if (typeof newValue === 'object') { + // objects/arrays are not supported - deep-watching them would be too expensive + return false; + } + + // fall-through to the primitive equality check + } + + //Primitive or NaN + return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue); + } + + function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { + var inputExpressions = parsedExpression.inputs; + var lastResult; + + if (inputExpressions.length === 1) { + var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails + inputExpressions = inputExpressions[0]; + return scope.$watch(function expressionInputWatch(scope) { + var newInputValue = inputExpressions(scope); + if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) { + lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]); + oldInputValueOf = newInputValue && getValueOf(newInputValue); + } + return lastResult; + }, listener, objectEquality, prettyPrintExpression); + } + + var oldInputValueOfValues = []; + var oldInputValues = []; + for (var i = 0, ii = inputExpressions.length; i < ii; i++) { + oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails + oldInputValues[i] = null; + } + + return scope.$watch(function expressionInputsWatch(scope) { + var changed = false; + + for (var i = 0, ii = inputExpressions.length; i < ii; i++) { + var newInputValue = inputExpressions[i](scope); + if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) { + oldInputValues[i] = newInputValue; + oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue); + } + } + + if (changed) { + lastResult = parsedExpression(scope, undefined, undefined, oldInputValues); + } + + return lastResult; + }, listener, objectEquality, prettyPrintExpression); + } + + function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) { + var unwatch, lastValue; + return unwatch = scope.$watch(function oneTimeWatch(scope) { + return parsedExpression(scope); + }, function oneTimeListener(value, old, scope) { + lastValue = value; + if (isFunction(listener)) { + listener.apply(this, arguments); + } + if (isDefined(value)) { + scope.$$postDigest(function() { + if (isDefined(lastValue)) { + unwatch(); + } + }); + } + }, objectEquality); + } + + function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) { + var unwatch, lastValue; + return unwatch = scope.$watch(function oneTimeWatch(scope) { + return parsedExpression(scope); + }, function oneTimeListener(value, old, scope) { + lastValue = value; + if (isFunction(listener)) { + listener.call(this, value, old, scope); + } + if (isAllDefined(value)) { + scope.$$postDigest(function() { + if (isAllDefined(lastValue)) unwatch(); + }); + } + }, objectEquality); + + function isAllDefined(value) { + var allDefined = true; + forEach(value, function(val) { + if (!isDefined(val)) allDefined = false; + }); + return allDefined; + } + } + + function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) { + var unwatch; + return unwatch = scope.$watch(function constantWatch(scope) { + return parsedExpression(scope); + }, function constantListener(value, old, scope) { + if (isFunction(listener)) { + listener.apply(this, arguments); + } + unwatch(); + }, objectEquality); + } + + function addInterceptor(parsedExpression, interceptorFn) { + if (!interceptorFn) return parsedExpression; + var watchDelegate = parsedExpression.$$watchDelegate; + + var regularWatch = + watchDelegate !== oneTimeLiteralWatchDelegate && + watchDelegate !== oneTimeWatchDelegate; + + var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) { + var value = parsedExpression(scope, locals, assign, inputs); + return interceptorFn(value, scope, locals); + } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) { + var value = parsedExpression(scope, locals, assign, inputs); + var result = interceptorFn(value, scope, locals); + // we only return the interceptor's result if the + // initial value is defined (for bind-once) + return isDefined(value) ? result : value; + }; + + // Propagate $$watchDelegates other then inputsWatchDelegate + if (parsedExpression.$$watchDelegate && + parsedExpression.$$watchDelegate !== inputsWatchDelegate) { + fn.$$watchDelegate = parsedExpression.$$watchDelegate; + } else if (!interceptorFn.$stateful) { + // If there is an interceptor, but no watchDelegate then treat the interceptor like + // we treat filters - it is assumed to be a pure function unless flagged with $stateful + fn.$$watchDelegate = inputsWatchDelegate; + fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression]; + } + + return fn; + } + }]; +} + +/** + * @ngdoc service + * @name $q + * @requires $rootScope + * + * @description + * A service that helps you run functions asynchronously, and use their return values (or exceptions) + * when they are done processing. + * + * This is an implementation of promises/deferred objects inspired by + * [Kris Kowal's Q](https://github.com/kriskowal/q). + * + * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred + * implementations, and the other which resembles ES6 promises to some degree. + * + * # $q constructor + * + * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver` + * function as the first argument. This is similar to the native Promise implementation from ES6 Harmony, + * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). + * + * While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are + * available yet. + * + * It can be used like so: + * + * ```js + * // for the purpose of this example let's assume that variables `$q` and `okToGreet` + * // are available in the current lexical scope (they could have been injected or passed in). + * + * function asyncGreet(name) { + * // perform some asynchronous operation, resolve or reject the promise when appropriate. + * return $q(function(resolve, reject) { + * setTimeout(function() { + * if (okToGreet(name)) { + * resolve('Hello, ' + name + '!'); + * } else { + * reject('Greeting ' + name + ' is not allowed.'); + * } + * }, 1000); + * }); + * } + * + * var promise = asyncGreet('Robin Hood'); + * promise.then(function(greeting) { + * alert('Success: ' + greeting); + * }, function(reason) { + * alert('Failed: ' + reason); + * }); + * ``` + * + * Note: progress/notify callbacks are not currently supported via the ES6-style interface. + * + * However, the more traditional CommonJS-style usage is still available, and documented below. + * + * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an + * interface for interacting with an object that represents the result of an action that is + * performed asynchronously, and may or may not be finished at any given point in time. + * + * From the perspective of dealing with error handling, deferred and promise APIs are to + * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming. + * + * ```js + * // for the purpose of this example let's assume that variables `$q` and `okToGreet` + * // are available in the current lexical scope (they could have been injected or passed in). + * + * function asyncGreet(name) { + * var deferred = $q.defer(); + * + * setTimeout(function() { + * deferred.notify('About to greet ' + name + '.'); + * + * if (okToGreet(name)) { + * deferred.resolve('Hello, ' + name + '!'); + * } else { + * deferred.reject('Greeting ' + name + ' is not allowed.'); + * } + * }, 1000); + * + * return deferred.promise; + * } + * + * var promise = asyncGreet('Robin Hood'); + * promise.then(function(greeting) { + * alert('Success: ' + greeting); + * }, function(reason) { + * alert('Failed: ' + reason); + * }, function(update) { + * alert('Got notification: ' + update); + * }); + * ``` + * + * At first it might not be obvious why this extra complexity is worth the trouble. The payoff + * comes in the way of guarantees that promise and deferred APIs make, see + * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md. + * + * Additionally the promise api allows for composition that is very hard to do with the + * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach. + * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the + * section on serial or parallel joining of promises. + * + * # The Deferred API + * + * A new instance of deferred is constructed by calling `$q.defer()`. + * + * The purpose of the deferred object is to expose the associated Promise instance as well as APIs + * that can be used for signaling the successful or unsuccessful completion, as well as the status + * of the task. + * + * **Methods** + * + * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection + * constructed via `$q.reject`, the promise will be rejected instead. + * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to + * resolving it with a rejection constructed via `$q.reject`. + * - `notify(value)` - provides updates on the status of the promise's execution. This may be called + * multiple times before the promise is either resolved or rejected. + * + * **Properties** + * + * - promise – `{Promise}` – promise object associated with this deferred. + * + * + * # The Promise API + * + * A new promise instance is created when a deferred instance is created and can be retrieved by + * calling `deferred.promise`. + * + * The purpose of the promise object is to allow for interested parties to get access to the result + * of the deferred task when it completes. + * + * **Methods** + * + * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or + * will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously + * as soon as the result is available. The callbacks are called with a single argument: the result + * or rejection reason. Additionally, the notify callback may be called zero or more times to + * provide a progress indication, before the promise is resolved or rejected. + * + * This method *returns a new promise* which is resolved or rejected via the return value of the + * `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved + * with the value which is resolved in that promise using + * [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)). + * It also notifies via the return value of the `notifyCallback` method. The promise cannot be + * resolved or rejected from the notifyCallback method. + * + * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)` + * + * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise, + * but to do so without modifying the final value. This is useful to release resources or do some + * clean-up that needs to be done whether the promise was rejected or resolved. See the [full + * specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for + * more information. + * + * # Chaining promises + * + * Because calling the `then` method of a promise returns a new derived promise, it is easily + * possible to create a chain of promises: + * + * ```js + * promiseB = promiseA.then(function(result) { + * return result + 1; + * }); + * + * // promiseB will be resolved immediately after promiseA is resolved and its value + * // will be the result of promiseA incremented by 1 + * ``` + * + * It is possible to create chains of any length and since a promise can be resolved with another + * promise (which will defer its resolution further), it is possible to pause/defer resolution of + * the promises at any point in the chain. This makes it possible to implement powerful APIs like + * $http's response interceptors. + * + * + * # Differences between Kris Kowal's Q and $q + * + * There are two main differences: + * + * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation + * mechanism in angular, which means faster propagation of resolution or rejection into your + * models and avoiding unnecessary browser repaints, which would result in flickering UI. + * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains + * all the important functionality needed for common async tasks. + * + * # Testing + * + * ```js + * it('should simulate promise', inject(function($q, $rootScope) { + * var deferred = $q.defer(); + * var promise = deferred.promise; + * var resolvedValue; + * + * promise.then(function(value) { resolvedValue = value; }); + * expect(resolvedValue).toBeUndefined(); + * + * // Simulate resolving of promise + * deferred.resolve(123); + * // Note that the 'then' function does not get called synchronously. + * // This is because we want the promise API to always be async, whether or not + * // it got called synchronously or asynchronously. + * expect(resolvedValue).toBeUndefined(); + * + * // Propagate promise resolution to 'then' functions using $apply(). + * $rootScope.$apply(); + * expect(resolvedValue).toEqual(123); + * })); + * ``` + * + * @param {function(function, function)} resolver Function which is responsible for resolving or + * rejecting the newly created promise. The first parameter is a function which resolves the + * promise, the second parameter is a function which rejects the promise. + * + * @returns {Promise} The newly created promise. + */ +function $QProvider() { + + this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) { + return qFactory(function(callback) { + $rootScope.$evalAsync(callback); + }, $exceptionHandler); + }]; +} + +function $$QProvider() { + this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) { + return qFactory(function(callback) { + $browser.defer(callback); + }, $exceptionHandler); + }]; +} + +/** + * Constructs a promise manager. + * + * @param {function(function)} nextTick Function for executing functions in the next turn. + * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for + * debugging purposes. + * @returns {object} Promise manager. + */ +function qFactory(nextTick, exceptionHandler) { + var $qMinErr = minErr('$q', TypeError); + function callOnce(self, resolveFn, rejectFn) { + var called = false; + function wrap(fn) { + return function(value) { + if (called) return; + called = true; + fn.call(self, value); + }; + } + + return [wrap(resolveFn), wrap(rejectFn)]; + } + + /** + * @ngdoc method + * @name ng.$q#defer + * @kind function + * + * @description + * Creates a `Deferred` object which represents a task which will finish in the future. + * + * @returns {Deferred} Returns a new instance of deferred. + */ + var defer = function() { + return new Deferred(); + }; + + function Promise() { + this.$$state = { status: 0 }; + } + + extend(Promise.prototype, { + then: function(onFulfilled, onRejected, progressBack) { + if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) { + return this; + } + var result = new Deferred(); + + this.$$state.pending = this.$$state.pending || []; + this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]); + if (this.$$state.status > 0) scheduleProcessQueue(this.$$state); + + return result.promise; + }, + + "catch": function(callback) { + return this.then(null, callback); + }, + + "finally": function(callback, progressBack) { + return this.then(function(value) { + return handleCallback(value, true, callback); + }, function(error) { + return handleCallback(error, false, callback); + }, progressBack); + } + }); + + //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native + function simpleBind(context, fn) { + return function(value) { + fn.call(context, value); + }; + } + + function processQueue(state) { + var fn, deferred, pending; + + pending = state.pending; + state.processScheduled = false; + state.pending = undefined; + for (var i = 0, ii = pending.length; i < ii; ++i) { + deferred = pending[i][0]; + fn = pending[i][state.status]; + try { + if (isFunction(fn)) { + deferred.resolve(fn(state.value)); + } else if (state.status === 1) { + deferred.resolve(state.value); + } else { + deferred.reject(state.value); + } + } catch (e) { + deferred.reject(e); + exceptionHandler(e); + } + } + } + + function scheduleProcessQueue(state) { + if (state.processScheduled || !state.pending) return; + state.processScheduled = true; + nextTick(function() { processQueue(state); }); + } + + function Deferred() { + this.promise = new Promise(); + //Necessary to support unbound execution :/ + this.resolve = simpleBind(this, this.resolve); + this.reject = simpleBind(this, this.reject); + this.notify = simpleBind(this, this.notify); + } + + extend(Deferred.prototype, { + resolve: function(val) { + if (this.promise.$$state.status) return; + if (val === this.promise) { + this.$$reject($qMinErr( + 'qcycle', + "Expected promise to be resolved with value other than itself '{0}'", + val)); + } else { + this.$$resolve(val); + } + + }, + + $$resolve: function(val) { + var then, fns; + + fns = callOnce(this, this.$$resolve, this.$$reject); + try { + if ((isObject(val) || isFunction(val))) then = val && val.then; + if (isFunction(then)) { + this.promise.$$state.status = -1; + then.call(val, fns[0], fns[1], this.notify); + } else { + this.promise.$$state.value = val; + this.promise.$$state.status = 1; + scheduleProcessQueue(this.promise.$$state); + } + } catch (e) { + fns[1](e); + exceptionHandler(e); + } + }, + + reject: function(reason) { + if (this.promise.$$state.status) return; + this.$$reject(reason); + }, + + $$reject: function(reason) { + this.promise.$$state.value = reason; + this.promise.$$state.status = 2; + scheduleProcessQueue(this.promise.$$state); + }, + + notify: function(progress) { + var callbacks = this.promise.$$state.pending; + + if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) { + nextTick(function() { + var callback, result; + for (var i = 0, ii = callbacks.length; i < ii; i++) { + result = callbacks[i][0]; + callback = callbacks[i][3]; + try { + result.notify(isFunction(callback) ? callback(progress) : progress); + } catch (e) { + exceptionHandler(e); + } + } + }); + } + } + }); + + /** + * @ngdoc method + * @name $q#reject + * @kind function + * + * @description + * Creates a promise that is resolved as rejected with the specified `reason`. This api should be + * used to forward rejection in a chain of promises. If you are dealing with the last promise in + * a promise chain, you don't need to worry about it. + * + * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of + * `reject` as the `throw` keyword in JavaScript. This also means that if you "catch" an error via + * a promise error callback and you want to forward the error to the promise derived from the + * current promise, you have to "rethrow" the error by returning a rejection constructed via + * `reject`. + * + * ```js + * promiseB = promiseA.then(function(result) { + * // success: do something and resolve promiseB + * // with the old or a new result + * return result; + * }, function(reason) { + * // error: handle the error if possible and + * // resolve promiseB with newPromiseOrValue, + * // otherwise forward the rejection to promiseB + * if (canHandle(reason)) { + * // handle the error and recover + * return newPromiseOrValue; + * } + * return $q.reject(reason); + * }); + * ``` + * + * @param {*} reason Constant, message, exception or an object representing the rejection reason. + * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`. + */ + var reject = function(reason) { + var result = new Deferred(); + result.reject(reason); + return result.promise; + }; + + var makePromise = function makePromise(value, resolved) { + var result = new Deferred(); + if (resolved) { + result.resolve(value); + } else { + result.reject(value); + } + return result.promise; + }; + + var handleCallback = function handleCallback(value, isResolved, callback) { + var callbackOutput = null; + try { + if (isFunction(callback)) callbackOutput = callback(); + } catch (e) { + return makePromise(e, false); + } + if (isPromiseLike(callbackOutput)) { + return callbackOutput.then(function() { + return makePromise(value, isResolved); + }, function(error) { + return makePromise(error, false); + }); + } else { + return makePromise(value, isResolved); + } + }; + + /** + * @ngdoc method + * @name $q#when + * @kind function + * + * @description + * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. + * This is useful when you are dealing with an object that might or might not be a promise, or if + * the promise comes from a source that can't be trusted. + * + * @param {*} value Value or a promise + * @param {Function=} successCallback + * @param {Function=} errorCallback + * @param {Function=} progressCallback + * @returns {Promise} Returns a promise of the passed value or promise + */ + + + var when = function(value, callback, errback, progressBack) { + var result = new Deferred(); + result.resolve(value); + return result.promise.then(callback, errback, progressBack); + }; + + /** + * @ngdoc method + * @name $q#resolve + * @kind function + * + * @description + * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6. + * + * @param {*} value Value or a promise + * @param {Function=} successCallback + * @param {Function=} errorCallback + * @param {Function=} progressCallback + * @returns {Promise} Returns a promise of the passed value or promise + */ + var resolve = when; + + /** + * @ngdoc method + * @name $q#all + * @kind function + * + * @description + * Combines multiple promises into a single promise that is resolved when all of the input + * promises are resolved. + * + * @param {Array.|Object.} promises An array or hash of promises. + * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values, + * each value corresponding to the promise at the same index/key in the `promises` array/hash. + * If any of the promises is resolved with a rejection, this resulting promise will be rejected + * with the same rejection value. + */ + + function all(promises) { + var deferred = new Deferred(), + counter = 0, + results = isArray(promises) ? [] : {}; + + forEach(promises, function(promise, key) { + counter++; + when(promise).then(function(value) { + if (results.hasOwnProperty(key)) return; + results[key] = value; + if (!(--counter)) deferred.resolve(results); + }, function(reason) { + if (results.hasOwnProperty(key)) return; + deferred.reject(reason); + }); + }); + + if (counter === 0) { + deferred.resolve(results); + } + + return deferred.promise; + } + + var $Q = function Q(resolver) { + if (!isFunction(resolver)) { + throw $qMinErr('norslvr', "Expected resolverFn, got '{0}'", resolver); + } + + if (!(this instanceof Q)) { + // More useful when $Q is the Promise itself. + return new Q(resolver); + } + + var deferred = new Deferred(); + + function resolveFn(value) { + deferred.resolve(value); + } + + function rejectFn(reason) { + deferred.reject(reason); + } + + resolver(resolveFn, rejectFn); + + return deferred.promise; + }; + + $Q.defer = defer; + $Q.reject = reject; + $Q.when = when; + $Q.resolve = resolve; + $Q.all = all; + + return $Q; +} + +function $$RAFProvider() { //rAF + this.$get = ['$window', '$timeout', function($window, $timeout) { + var requestAnimationFrame = $window.requestAnimationFrame || + $window.webkitRequestAnimationFrame; + + var cancelAnimationFrame = $window.cancelAnimationFrame || + $window.webkitCancelAnimationFrame || + $window.webkitCancelRequestAnimationFrame; + + var rafSupported = !!requestAnimationFrame; + var raf = rafSupported + ? function(fn) { + var id = requestAnimationFrame(fn); + return function() { + cancelAnimationFrame(id); + }; + } + : function(fn) { + var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666 + return function() { + $timeout.cancel(timer); + }; + }; + + raf.supported = rafSupported; + + return raf; + }]; +} + +/** + * DESIGN NOTES + * + * The design decisions behind the scope are heavily favored for speed and memory consumption. + * + * The typical use of scope is to watch the expressions, which most of the time return the same + * value as last time so we optimize the operation. + * + * Closures construction is expensive in terms of speed as well as memory: + * - No closures, instead use prototypical inheritance for API + * - Internal state needs to be stored on scope directly, which means that private state is + * exposed as $$____ properties + * + * Loop operations are optimized by using while(count--) { ... } + * - this means that in order to keep the same order of execution as addition we have to add + * items to the array at the beginning (unshift) instead of at the end (push) + * + * Child scopes are created and removed often + * - Using an array would be slow since inserts in middle are expensive so we use linked list + * + * There are few watches then a lot of observers. This is why you don't want the observer to be + * implemented in the same way as watch. Watch requires return of initialization function which + * are expensive to construct. + */ + + +/** + * @ngdoc provider + * @name $rootScopeProvider + * @description + * + * Provider for the $rootScope service. + */ + +/** + * @ngdoc method + * @name $rootScopeProvider#digestTtl + * @description + * + * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and + * assuming that the model is unstable. + * + * The current default is 10 iterations. + * + * In complex applications it's possible that the dependencies between `$watch`s will result in + * several digest iterations. However if an application needs more than the default 10 digest + * iterations for its model to stabilize then you should investigate what is causing the model to + * continuously change during the digest. + * + * Increasing the TTL could have performance implications, so you should not change it without + * proper justification. + * + * @param {number} limit The number of digest iterations. + */ + + +/** + * @ngdoc service + * @name $rootScope + * @description + * + * Every application has a single root {@link ng.$rootScope.Scope scope}. + * All other scopes are descendant scopes of the root scope. Scopes provide separation + * between the model and the view, via a mechanism for watching the model for changes. + * They also provide an event emission/broadcast and subscription facility. See the + * {@link guide/scope developer guide on scopes}. + */ +function $RootScopeProvider() { + var TTL = 10; + var $rootScopeMinErr = minErr('$rootScope'); + var lastDirtyWatch = null; + var applyAsyncId = null; + + this.digestTtl = function(value) { + if (arguments.length) { + TTL = value; + } + return TTL; + }; + + function createChildScopeClass(parent) { + function ChildScope() { + this.$$watchers = this.$$nextSibling = + this.$$childHead = this.$$childTail = null; + this.$$listeners = {}; + this.$$listenerCount = {}; + this.$$watchersCount = 0; + this.$id = nextUid(); + this.$$ChildScope = null; + } + ChildScope.prototype = parent; + return ChildScope; + } + + this.$get = ['$injector', '$exceptionHandler', '$parse', '$browser', + function($injector, $exceptionHandler, $parse, $browser) { + + function destroyChildScope($event) { + $event.currentScope.$$destroyed = true; + } + + /** + * @ngdoc type + * @name $rootScope.Scope + * + * @description + * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the + * {@link auto.$injector $injector}. Child scopes are created using the + * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when + * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for + * an in-depth introduction and usage examples. + * + * + * # Inheritance + * A scope can inherit from a parent scope, as in this example: + * ```js + var parent = $rootScope; + var child = parent.$new(); + + parent.salutation = "Hello"; + expect(child.salutation).toEqual('Hello'); + + child.salutation = "Welcome"; + expect(child.salutation).toEqual('Welcome'); + expect(parent.salutation).toEqual('Hello'); + * ``` + * + * When interacting with `Scope` in tests, additional helper methods are available on the + * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional + * details. + * + * + * @param {Object.=} providers Map of service factory which need to be + * provided for the current scope. Defaults to {@link ng}. + * @param {Object.=} instanceCache Provides pre-instantiated services which should + * append/override services provided by `providers`. This is handy + * when unit-testing and having the need to override a default + * service. + * @returns {Object} Newly created scope. + * + */ + function Scope() { + this.$id = nextUid(); + this.$$phase = this.$parent = this.$$watchers = + this.$$nextSibling = this.$$prevSibling = + this.$$childHead = this.$$childTail = null; + this.$root = this; + this.$$destroyed = false; + this.$$listeners = {}; + this.$$listenerCount = {}; + this.$$watchersCount = 0; + this.$$isolateBindings = null; + } + + /** + * @ngdoc property + * @name $rootScope.Scope#$id + * + * @description + * Unique scope ID (monotonically increasing) useful for debugging. + */ + + /** + * @ngdoc property + * @name $rootScope.Scope#$parent + * + * @description + * Reference to the parent scope. + */ + + /** + * @ngdoc property + * @name $rootScope.Scope#$root + * + * @description + * Reference to the root scope. + */ + + Scope.prototype = { + constructor: Scope, + /** + * @ngdoc method + * @name $rootScope.Scope#$new + * @kind function + * + * @description + * Creates a new child {@link ng.$rootScope.Scope scope}. + * + * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event. + * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}. + * + * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is + * desired for the scope and its child scopes to be permanently detached from the parent and + * thus stop participating in model change detection and listener notification by invoking. + * + * @param {boolean} isolate If true, then the scope does not prototypically inherit from the + * parent scope. The scope is isolated, as it can not see parent scope properties. + * When creating widgets, it is useful for the widget to not accidentally read parent + * state. + * + * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent` + * of the newly created scope. Defaults to `this` scope if not provided. + * This is used when creating a transclude scope to correctly place it + * in the scope hierarchy while maintaining the correct prototypical + * inheritance. + * + * @returns {Object} The newly created child scope. + * + */ + $new: function(isolate, parent) { + var child; + + parent = parent || this; + + if (isolate) { + child = new Scope(); + child.$root = this.$root; + } else { + // Only create a child scope class if somebody asks for one, + // but cache it to allow the VM to optimize lookups. + if (!this.$$ChildScope) { + this.$$ChildScope = createChildScopeClass(this); + } + child = new this.$$ChildScope(); + } + child.$parent = parent; + child.$$prevSibling = parent.$$childTail; + if (parent.$$childHead) { + parent.$$childTail.$$nextSibling = child; + parent.$$childTail = child; + } else { + parent.$$childHead = parent.$$childTail = child; + } + + // When the new scope is not isolated or we inherit from `this`, and + // the parent scope is destroyed, the property `$$destroyed` is inherited + // prototypically. In all other cases, this property needs to be set + // when the parent scope is destroyed. + // The listener needs to be added after the parent is set + if (isolate || parent != this) child.$on('$destroy', destroyChildScope); + + return child; + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$watch + * @kind function + * + * @description + * Registers a `listener` callback to be executed whenever the `watchExpression` changes. + * + * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest + * $digest()} and should return the value that will be watched. (`watchExpression` should not change + * its value when executed multiple times with the same input because it may be executed multiple + * times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be + * [idempotent](http://en.wikipedia.org/wiki/Idempotence). + * - The `listener` is called only when the value from the current `watchExpression` and the + * previous call to `watchExpression` are not equal (with the exception of the initial run, + * see below). Inequality is determined according to reference inequality, + * [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators) + * via the `!==` Javascript operator, unless `objectEquality == true` + * (see next point) + * - When `objectEquality == true`, inequality of the `watchExpression` is determined + * according to the {@link angular.equals} function. To save the value of the object for + * later comparison, the {@link angular.copy} function is used. This therefore means that + * watching complex objects will have adverse memory and performance implications. + * - The watch `listener` may change the model, which may trigger other `listener`s to fire. + * This is achieved by rerunning the watchers until no changes are detected. The rerun + * iteration limit is 10 to prevent an infinite loop deadlock. + * + * + * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called, + * you can register a `watchExpression` function with no `listener`. (Be prepared for + * multiple calls to your `watchExpression` because it will execute multiple times in a + * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.) + * + * After a watcher is registered with the scope, the `listener` fn is called asynchronously + * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the + * watcher. In rare cases, this is undesirable because the listener is called when the result + * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you + * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the + * listener was called due to initialization. + * + * + * + * # Example + * ```js + // let's assume that scope was dependency injected as the $rootScope + var scope = $rootScope; + scope.name = 'misko'; + scope.counter = 0; + + expect(scope.counter).toEqual(0); + scope.$watch('name', function(newValue, oldValue) { + scope.counter = scope.counter + 1; + }); + expect(scope.counter).toEqual(0); + + scope.$digest(); + // the listener is always called during the first $digest loop after it was registered + expect(scope.counter).toEqual(1); + + scope.$digest(); + // but now it will not be called unless the value changes + expect(scope.counter).toEqual(1); + + scope.name = 'adam'; + scope.$digest(); + expect(scope.counter).toEqual(2); + + + + // Using a function as a watchExpression + var food; + scope.foodCounter = 0; + expect(scope.foodCounter).toEqual(0); + scope.$watch( + // This function returns the value being watched. It is called for each turn of the $digest loop + function() { return food; }, + // This is the change listener, called when the value returned from the above function changes + function(newValue, oldValue) { + if ( newValue !== oldValue ) { + // Only increment the counter if the value changed + scope.foodCounter = scope.foodCounter + 1; + } + } + ); + // No digest has been run so the counter will be zero + expect(scope.foodCounter).toEqual(0); + + // Run the digest but since food has not changed count will still be zero + scope.$digest(); + expect(scope.foodCounter).toEqual(0); + + // Update food and run digest. Now the counter will increment + food = 'cheeseburger'; + scope.$digest(); + expect(scope.foodCounter).toEqual(1); + + * ``` + * + * + * + * @param {(function()|string)} watchExpression Expression that is evaluated on each + * {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers + * a call to the `listener`. + * + * - `string`: Evaluated as {@link guide/expression expression} + * - `function(scope)`: called with current `scope` as a parameter. + * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value + * of `watchExpression` changes. + * + * - `newVal` contains the current value of the `watchExpression` + * - `oldVal` contains the previous value of the `watchExpression` + * - `scope` refers to the current scope + * @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of + * comparing for reference equality. + * @returns {function()} Returns a deregistration function for this listener. + */ + $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) { + var get = $parse(watchExp); + + if (get.$$watchDelegate) { + return get.$$watchDelegate(this, listener, objectEquality, get, watchExp); + } + var scope = this, + array = scope.$$watchers, + watcher = { + fn: listener, + last: initWatchVal, + get: get, + exp: prettyPrintExpression || watchExp, + eq: !!objectEquality + }; + + lastDirtyWatch = null; + + if (!isFunction(listener)) { + watcher.fn = noop; + } + + if (!array) { + array = scope.$$watchers = []; + } + // we use unshift since we use a while loop in $digest for speed. + // the while loop reads in reverse order. + array.unshift(watcher); + incrementWatchersCount(this, 1); + + return function deregisterWatch() { + if (arrayRemove(array, watcher) >= 0) { + incrementWatchersCount(scope, -1); + } + lastDirtyWatch = null; + }; + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$watchGroup + * @kind function + * + * @description + * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`. + * If any one expression in the collection changes the `listener` is executed. + * + * - The items in the `watchExpressions` array are observed via standard $watch operation and are examined on every + * call to $digest() to see if any items changes. + * - The `listener` is called whenever any expression in the `watchExpressions` array changes. + * + * @param {Array.} watchExpressions Array of expressions that will be individually + * watched using {@link ng.$rootScope.Scope#$watch $watch()} + * + * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any + * expression in `watchExpressions` changes + * The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching + * those of `watchExpression` + * and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching + * those of `watchExpression` + * The `scope` refers to the current scope. + * @returns {function()} Returns a de-registration function for all listeners. + */ + $watchGroup: function(watchExpressions, listener) { + var oldValues = new Array(watchExpressions.length); + var newValues = new Array(watchExpressions.length); + var deregisterFns = []; + var self = this; + var changeReactionScheduled = false; + var firstRun = true; + + if (!watchExpressions.length) { + // No expressions means we call the listener ASAP + var shouldCall = true; + self.$evalAsync(function() { + if (shouldCall) listener(newValues, newValues, self); + }); + return function deregisterWatchGroup() { + shouldCall = false; + }; + } + + if (watchExpressions.length === 1) { + // Special case size of one + return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) { + newValues[0] = value; + oldValues[0] = oldValue; + listener(newValues, (value === oldValue) ? newValues : oldValues, scope); + }); + } + + forEach(watchExpressions, function(expr, i) { + var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) { + newValues[i] = value; + oldValues[i] = oldValue; + if (!changeReactionScheduled) { + changeReactionScheduled = true; + self.$evalAsync(watchGroupAction); + } + }); + deregisterFns.push(unwatchFn); + }); + + function watchGroupAction() { + changeReactionScheduled = false; + + if (firstRun) { + firstRun = false; + listener(newValues, newValues, self); + } else { + listener(newValues, oldValues, self); + } + } + + return function deregisterWatchGroup() { + while (deregisterFns.length) { + deregisterFns.shift()(); + } + }; + }, + + + /** + * @ngdoc method + * @name $rootScope.Scope#$watchCollection + * @kind function + * + * @description + * Shallow watches the properties of an object and fires whenever any of the properties change + * (for arrays, this implies watching the array items; for object maps, this implies watching + * the properties). If a change is detected, the `listener` callback is fired. + * + * - The `obj` collection is observed via standard $watch operation and is examined on every + * call to $digest() to see if any items have been added, removed, or moved. + * - The `listener` is called whenever anything within the `obj` has changed. Examples include + * adding, removing, and moving items belonging to an object or array. + * + * + * # Example + * ```js + $scope.names = ['igor', 'matias', 'misko', 'james']; + $scope.dataCount = 4; + + $scope.$watchCollection('names', function(newNames, oldNames) { + $scope.dataCount = newNames.length; + }); + + expect($scope.dataCount).toEqual(4); + $scope.$digest(); + + //still at 4 ... no changes + expect($scope.dataCount).toEqual(4); + + $scope.names.pop(); + $scope.$digest(); + + //now there's been a change + expect($scope.dataCount).toEqual(3); + * ``` + * + * + * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The + * expression value should evaluate to an object or an array which is observed on each + * {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the + * collection will trigger a call to the `listener`. + * + * @param {function(newCollection, oldCollection, scope)} listener a callback function called + * when a change is detected. + * - The `newCollection` object is the newly modified data obtained from the `obj` expression + * - The `oldCollection` object is a copy of the former collection data. + * Due to performance considerations, the`oldCollection` value is computed only if the + * `listener` function declares two or more arguments. + * - The `scope` argument refers to the current scope. + * + * @returns {function()} Returns a de-registration function for this listener. When the + * de-registration function is executed, the internal watch operation is terminated. + */ + $watchCollection: function(obj, listener) { + $watchCollectionInterceptor.$stateful = true; + + var self = this; + // the current value, updated on each dirty-check run + var newValue; + // a shallow copy of the newValue from the last dirty-check run, + // updated to match newValue during dirty-check run + var oldValue; + // a shallow copy of the newValue from when the last change happened + var veryOldValue; + // only track veryOldValue if the listener is asking for it + var trackVeryOldValue = (listener.length > 1); + var changeDetected = 0; + var changeDetector = $parse(obj, $watchCollectionInterceptor); + var internalArray = []; + var internalObject = {}; + var initRun = true; + var oldLength = 0; + + function $watchCollectionInterceptor(_value) { + newValue = _value; + var newLength, key, bothNaN, newItem, oldItem; + + // If the new value is undefined, then return undefined as the watch may be a one-time watch + if (isUndefined(newValue)) return; + + if (!isObject(newValue)) { // if primitive + if (oldValue !== newValue) { + oldValue = newValue; + changeDetected++; + } + } else if (isArrayLike(newValue)) { + if (oldValue !== internalArray) { + // we are transitioning from something which was not an array into array. + oldValue = internalArray; + oldLength = oldValue.length = 0; + changeDetected++; + } + + newLength = newValue.length; + + if (oldLength !== newLength) { + // if lengths do not match we need to trigger change notification + changeDetected++; + oldValue.length = oldLength = newLength; + } + // copy the items to oldValue and look for changes. + for (var i = 0; i < newLength; i++) { + oldItem = oldValue[i]; + newItem = newValue[i]; + + bothNaN = (oldItem !== oldItem) && (newItem !== newItem); + if (!bothNaN && (oldItem !== newItem)) { + changeDetected++; + oldValue[i] = newItem; + } + } + } else { + if (oldValue !== internalObject) { + // we are transitioning from something which was not an object into object. + oldValue = internalObject = {}; + oldLength = 0; + changeDetected++; + } + // copy the items to oldValue and look for changes. + newLength = 0; + for (key in newValue) { + if (hasOwnProperty.call(newValue, key)) { + newLength++; + newItem = newValue[key]; + oldItem = oldValue[key]; + + if (key in oldValue) { + bothNaN = (oldItem !== oldItem) && (newItem !== newItem); + if (!bothNaN && (oldItem !== newItem)) { + changeDetected++; + oldValue[key] = newItem; + } + } else { + oldLength++; + oldValue[key] = newItem; + changeDetected++; + } + } + } + if (oldLength > newLength) { + // we used to have more keys, need to find them and destroy them. + changeDetected++; + for (key in oldValue) { + if (!hasOwnProperty.call(newValue, key)) { + oldLength--; + delete oldValue[key]; + } + } + } + } + return changeDetected; + } + + function $watchCollectionAction() { + if (initRun) { + initRun = false; + listener(newValue, newValue, self); + } else { + listener(newValue, veryOldValue, self); + } + + // make a copy for the next time a collection is changed + if (trackVeryOldValue) { + if (!isObject(newValue)) { + //primitive + veryOldValue = newValue; + } else if (isArrayLike(newValue)) { + veryOldValue = new Array(newValue.length); + for (var i = 0; i < newValue.length; i++) { + veryOldValue[i] = newValue[i]; + } + } else { // if object + veryOldValue = {}; + for (var key in newValue) { + if (hasOwnProperty.call(newValue, key)) { + veryOldValue[key] = newValue[key]; + } + } + } + } + } + + return this.$watch(changeDetector, $watchCollectionAction); + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$digest + * @kind function + * + * @description + * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and + * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change + * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers} + * until no more listeners are firing. This means that it is possible to get into an infinite + * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of + * iterations exceeds 10. + * + * Usually, you don't call `$digest()` directly in + * {@link ng.directive:ngController controllers} or in + * {@link ng.$compileProvider#directive directives}. + * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within + * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`. + * + * If you want to be notified whenever `$digest()` is called, + * you can register a `watchExpression` function with + * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`. + * + * In unit tests, you may need to call `$digest()` to simulate the scope life cycle. + * + * # Example + * ```js + var scope = ...; + scope.name = 'misko'; + scope.counter = 0; + + expect(scope.counter).toEqual(0); + scope.$watch('name', function(newValue, oldValue) { + scope.counter = scope.counter + 1; + }); + expect(scope.counter).toEqual(0); + + scope.$digest(); + // the listener is always called during the first $digest loop after it was registered + expect(scope.counter).toEqual(1); + + scope.$digest(); + // but now it will not be called unless the value changes + expect(scope.counter).toEqual(1); + + scope.name = 'adam'; + scope.$digest(); + expect(scope.counter).toEqual(2); + * ``` + * + */ + $digest: function() { + var watch, value, last, + watchers, + length, + dirty, ttl = TTL, + next, current, target = this, + watchLog = [], + logIdx, logMsg, asyncTask; + + beginPhase('$digest'); + // Check for changes to browser url that happened in sync before the call to $digest + $browser.$$checkUrlChange(); + + if (this === $rootScope && applyAsyncId !== null) { + // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then + // cancel the scheduled $apply and flush the queue of expressions to be evaluated. + $browser.defer.cancel(applyAsyncId); + flushApplyAsync(); + } + + lastDirtyWatch = null; + + do { // "while dirty" loop + dirty = false; + current = target; + + while (asyncQueue.length) { + try { + asyncTask = asyncQueue.shift(); + asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals); + } catch (e) { + $exceptionHandler(e); + } + lastDirtyWatch = null; + } + + traverseScopesLoop: + do { // "traverse the scopes" loop + if ((watchers = current.$$watchers)) { + // process our watches + length = watchers.length; + while (length--) { + try { + watch = watchers[length]; + // Most common watches are on primitives, in which case we can short + // circuit it with === operator, only when === fails do we use .equals + if (watch) { + if ((value = watch.get(current)) !== (last = watch.last) && + !(watch.eq + ? equals(value, last) + : (typeof value === 'number' && typeof last === 'number' + && isNaN(value) && isNaN(last)))) { + dirty = true; + lastDirtyWatch = watch; + watch.last = watch.eq ? copy(value, null) : value; + watch.fn(value, ((last === initWatchVal) ? value : last), current); + if (ttl < 5) { + logIdx = 4 - ttl; + if (!watchLog[logIdx]) watchLog[logIdx] = []; + watchLog[logIdx].push({ + msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp, + newVal: value, + oldVal: last + }); + } + } else if (watch === lastDirtyWatch) { + // If the most recently dirty watcher is now clean, short circuit since the remaining watchers + // have already been tested. + dirty = false; + break traverseScopesLoop; + } + } + } catch (e) { + $exceptionHandler(e); + } + } + } + + // Insanity Warning: scope depth-first traversal + // yes, this code is a bit crazy, but it works and we have tests to prove it! + // this piece should be kept in sync with the traversal in $broadcast + if (!(next = ((current.$$watchersCount && current.$$childHead) || + (current !== target && current.$$nextSibling)))) { + while (current !== target && !(next = current.$$nextSibling)) { + current = current.$parent; + } + } + } while ((current = next)); + + // `break traverseScopesLoop;` takes us to here + + if ((dirty || asyncQueue.length) && !(ttl--)) { + clearPhase(); + throw $rootScopeMinErr('infdig', + '{0} $digest() iterations reached. Aborting!\n' + + 'Watchers fired in the last 5 iterations: {1}', + TTL, watchLog); + } + + } while (dirty || asyncQueue.length); + + clearPhase(); + + while (postDigestQueue.length) { + try { + postDigestQueue.shift()(); + } catch (e) { + $exceptionHandler(e); + } + } + }, + + + /** + * @ngdoc event + * @name $rootScope.Scope#$destroy + * @eventType broadcast on scope being destroyed + * + * @description + * Broadcasted when a scope and its children are being destroyed. + * + * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to + * clean up DOM bindings before an element is removed from the DOM. + */ + + /** + * @ngdoc method + * @name $rootScope.Scope#$destroy + * @kind function + * + * @description + * Removes the current scope (and all of its children) from the parent scope. Removal implies + * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer + * propagate to the current scope and its children. Removal also implies that the current + * scope is eligible for garbage collection. + * + * The `$destroy()` is usually used by directives such as + * {@link ng.directive:ngRepeat ngRepeat} for managing the + * unrolling of the loop. + * + * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope. + * Application code can register a `$destroy` event handler that will give it a chance to + * perform any necessary cleanup. + * + * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to + * clean up DOM bindings before an element is removed from the DOM. + */ + $destroy: function() { + // We can't destroy a scope that has been already destroyed. + if (this.$$destroyed) return; + var parent = this.$parent; + + this.$broadcast('$destroy'); + this.$$destroyed = true; + + if (this === $rootScope) { + //Remove handlers attached to window when $rootScope is removed + $browser.$$applicationDestroyed(); + } + + incrementWatchersCount(this, -this.$$watchersCount); + for (var eventName in this.$$listenerCount) { + decrementListenerCount(this, this.$$listenerCount[eventName], eventName); + } + + // sever all the references to parent scopes (after this cleanup, the current scope should + // not be retained by any of our references and should be eligible for garbage collection) + if (parent && parent.$$childHead == this) parent.$$childHead = this.$$nextSibling; + if (parent && parent.$$childTail == this) parent.$$childTail = this.$$prevSibling; + if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling; + if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling; + + // Disable listeners, watchers and apply/digest methods + this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop; + this.$on = this.$watch = this.$watchGroup = function() { return noop; }; + this.$$listeners = {}; + + // All of the code below is bogus code that works around V8's memory leak via optimized code + // and inline caches. + // + // see: + // - https://code.google.com/p/v8/issues/detail?id=2073#c26 + // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909 + // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451 + + this.$parent = this.$$nextSibling = this.$$prevSibling = this.$$childHead = + this.$$childTail = this.$root = this.$$watchers = null; + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$eval + * @kind function + * + * @description + * Executes the `expression` on the current scope and returns the result. Any exceptions in + * the expression are propagated (uncaught). This is useful when evaluating Angular + * expressions. + * + * # Example + * ```js + var scope = ng.$rootScope.Scope(); + scope.a = 1; + scope.b = 2; + + expect(scope.$eval('a+b')).toEqual(3); + expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3); + * ``` + * + * @param {(string|function())=} expression An angular expression to be executed. + * + * - `string`: execute using the rules as defined in {@link guide/expression expression}. + * - `function(scope)`: execute the function with the current `scope` parameter. + * + * @param {(object)=} locals Local variables object, useful for overriding values in scope. + * @returns {*} The result of evaluating the expression. + */ + $eval: function(expr, locals) { + return $parse(expr)(this, locals); + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$evalAsync + * @kind function + * + * @description + * Executes the expression on the current scope at a later point in time. + * + * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only + * that: + * + * - it will execute after the function that scheduled the evaluation (preferably before DOM + * rendering). + * - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after + * `expression` execution. + * + * Any exceptions from the execution of the expression are forwarded to the + * {@link ng.$exceptionHandler $exceptionHandler} service. + * + * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle + * will be scheduled. However, it is encouraged to always call code that changes the model + * from within an `$apply` call. That includes code evaluated via `$evalAsync`. + * + * @param {(string|function())=} expression An angular expression to be executed. + * + * - `string`: execute using the rules as defined in {@link guide/expression expression}. + * - `function(scope)`: execute the function with the current `scope` parameter. + * + * @param {(object)=} locals Local variables object, useful for overriding values in scope. + */ + $evalAsync: function(expr, locals) { + // if we are outside of an $digest loop and this is the first time we are scheduling async + // task also schedule async auto-flush + if (!$rootScope.$$phase && !asyncQueue.length) { + $browser.defer(function() { + if (asyncQueue.length) { + $rootScope.$digest(); + } + }); + } + + asyncQueue.push({scope: this, expression: expr, locals: locals}); + }, + + $$postDigest: function(fn) { + postDigestQueue.push(fn); + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$apply + * @kind function + * + * @description + * `$apply()` is used to execute an expression in angular from outside of the angular + * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries). + * Because we are calling into the angular framework we need to perform proper scope life + * cycle of {@link ng.$exceptionHandler exception handling}, + * {@link ng.$rootScope.Scope#$digest executing watches}. + * + * ## Life cycle + * + * # Pseudo-Code of `$apply()` + * ```js + function $apply(expr) { + try { + return $eval(expr); + } catch (e) { + $exceptionHandler(e); + } finally { + $root.$digest(); + } + } + * ``` + * + * + * Scope's `$apply()` method transitions through the following stages: + * + * 1. The {@link guide/expression expression} is executed using the + * {@link ng.$rootScope.Scope#$eval $eval()} method. + * 2. Any exceptions from the execution of the expression are forwarded to the + * {@link ng.$exceptionHandler $exceptionHandler} service. + * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the + * expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method. + * + * + * @param {(string|function())=} exp An angular expression to be executed. + * + * - `string`: execute using the rules as defined in {@link guide/expression expression}. + * - `function(scope)`: execute the function with current `scope` parameter. + * + * @returns {*} The result of evaluating the expression. + */ + $apply: function(expr) { + try { + beginPhase('$apply'); + try { + return this.$eval(expr); + } finally { + clearPhase(); + } + } catch (e) { + $exceptionHandler(e); + } finally { + try { + $rootScope.$digest(); + } catch (e) { + $exceptionHandler(e); + throw e; + } + } + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$applyAsync + * @kind function + * + * @description + * Schedule the invocation of $apply to occur at a later time. The actual time difference + * varies across browsers, but is typically around ~10 milliseconds. + * + * This can be used to queue up multiple expressions which need to be evaluated in the same + * digest. + * + * @param {(string|function())=} exp An angular expression to be executed. + * + * - `string`: execute using the rules as defined in {@link guide/expression expression}. + * - `function(scope)`: execute the function with current `scope` parameter. + */ + $applyAsync: function(expr) { + var scope = this; + expr && applyAsyncQueue.push($applyAsyncExpression); + scheduleApplyAsync(); + + function $applyAsyncExpression() { + scope.$eval(expr); + } + }, + + /** + * @ngdoc method + * @name $rootScope.Scope#$on + * @kind function + * + * @description + * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for + * discussion of event life cycle. + * + * The event listener function format is: `function(event, args...)`. The `event` object + * passed into the listener has the following attributes: + * + * - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or + * `$broadcast`-ed. + * - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the + * event propagates through the scope hierarchy, this property is set to null. + * - `name` - `{string}`: name of the event. + * - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel + * further event propagation (available only for events that were `$emit`-ed). + * - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag + * to true. + * - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called. + * + * @param {string} name Event name to listen on. + * @param {function(event, ...args)} listener Function to call when the event is emitted. + * @returns {function()} Returns a deregistration function for this listener. + */ + $on: function(name, listener) { + var namedListeners = this.$$listeners[name]; + if (!namedListeners) { + this.$$listeners[name] = namedListeners = []; + } + namedListeners.push(listener); + + var current = this; + do { + if (!current.$$listenerCount[name]) { + current.$$listenerCount[name] = 0; + } + current.$$listenerCount[name]++; + } while ((current = current.$parent)); + + var self = this; + return function() { + var indexOfListener = namedListeners.indexOf(listener); + if (indexOfListener !== -1) { + namedListeners[indexOfListener] = null; + decrementListenerCount(self, 1, name); + } + }; + }, + + + /** + * @ngdoc method + * @name $rootScope.Scope#$emit + * @kind function + * + * @description + * Dispatches an event `name` upwards through the scope hierarchy notifying the + * registered {@link ng.$rootScope.Scope#$on} listeners. + * + * The event life cycle starts at the scope on which `$emit` was called. All + * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get + * notified. Afterwards, the event traverses upwards toward the root scope and calls all + * registered listeners along the way. The event will stop propagating if one of the listeners + * cancels it. + * + * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed + * onto the {@link ng.$exceptionHandler $exceptionHandler} service. + * + * @param {string} name Event name to emit. + * @param {...*} args Optional one or more arguments which will be passed onto the event listeners. + * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}). + */ + $emit: function(name, args) { + var empty = [], + namedListeners, + scope = this, + stopPropagation = false, + event = { + name: name, + targetScope: scope, + stopPropagation: function() {stopPropagation = true;}, + preventDefault: function() { + event.defaultPrevented = true; + }, + defaultPrevented: false + }, + listenerArgs = concat([event], arguments, 1), + i, length; + + do { + namedListeners = scope.$$listeners[name] || empty; + event.currentScope = scope; + for (i = 0, length = namedListeners.length; i < length; i++) { + + // if listeners were deregistered, defragment the array + if (!namedListeners[i]) { + namedListeners.splice(i, 1); + i--; + length--; + continue; + } + try { + //allow all listeners attached to the current scope to run + namedListeners[i].apply(null, listenerArgs); + } catch (e) { + $exceptionHandler(e); + } + } + //if any listener on the current scope stops propagation, prevent bubbling + if (stopPropagation) { + event.currentScope = null; + return event; + } + //traverse upwards + scope = scope.$parent; + } while (scope); + + event.currentScope = null; + + return event; + }, + + + /** + * @ngdoc method + * @name $rootScope.Scope#$broadcast + * @kind function + * + * @description + * Dispatches an event `name` downwards to all child scopes (and their children) notifying the + * registered {@link ng.$rootScope.Scope#$on} listeners. + * + * The event life cycle starts at the scope on which `$broadcast` was called. All + * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get + * notified. Afterwards, the event propagates to all direct and indirect scopes of the current + * scope and calls all registered listeners along the way. The event cannot be canceled. + * + * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed + * onto the {@link ng.$exceptionHandler $exceptionHandler} service. + * + * @param {string} name Event name to broadcast. + * @param {...*} args Optional one or more arguments which will be passed onto the event listeners. + * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on} + */ + $broadcast: function(name, args) { + var target = this, + current = target, + next = target, + event = { + name: name, + targetScope: target, + preventDefault: function() { + event.defaultPrevented = true; + }, + defaultPrevented: false + }; + + if (!target.$$listenerCount[name]) return event; + + var listenerArgs = concat([event], arguments, 1), + listeners, i, length; + + //down while you can, then up and next sibling or up and next sibling until back at root + while ((current = next)) { + event.currentScope = current; + listeners = current.$$listeners[name] || []; + for (i = 0, length = listeners.length; i < length; i++) { + // if listeners were deregistered, defragment the array + if (!listeners[i]) { + listeners.splice(i, 1); + i--; + length--; + continue; + } + + try { + listeners[i].apply(null, listenerArgs); + } catch (e) { + $exceptionHandler(e); + } + } + + // Insanity Warning: scope depth-first traversal + // yes, this code is a bit crazy, but it works and we have tests to prove it! + // this piece should be kept in sync with the traversal in $digest + // (though it differs due to having the extra check for $$listenerCount) + if (!(next = ((current.$$listenerCount[name] && current.$$childHead) || + (current !== target && current.$$nextSibling)))) { + while (current !== target && !(next = current.$$nextSibling)) { + current = current.$parent; + } + } + } + + event.currentScope = null; + return event; + } + }; + + var $rootScope = new Scope(); + + //The internal queues. Expose them on the $rootScope for debugging/testing purposes. + var asyncQueue = $rootScope.$$asyncQueue = []; + var postDigestQueue = $rootScope.$$postDigestQueue = []; + var applyAsyncQueue = $rootScope.$$applyAsyncQueue = []; + + return $rootScope; + + + function beginPhase(phase) { + if ($rootScope.$$phase) { + throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase); + } + + $rootScope.$$phase = phase; + } + + function clearPhase() { + $rootScope.$$phase = null; + } + + function incrementWatchersCount(current, count) { + do { + current.$$watchersCount += count; + } while ((current = current.$parent)); + } + + function decrementListenerCount(current, count, name) { + do { + current.$$listenerCount[name] -= count; + + if (current.$$listenerCount[name] === 0) { + delete current.$$listenerCount[name]; + } + } while ((current = current.$parent)); + } + + /** + * function used as an initial value for watchers. + * because it's unique we can easily tell it apart from other values + */ + function initWatchVal() {} + + function flushApplyAsync() { + while (applyAsyncQueue.length) { + try { + applyAsyncQueue.shift()(); + } catch (e) { + $exceptionHandler(e); + } + } + applyAsyncId = null; + } + + function scheduleApplyAsync() { + if (applyAsyncId === null) { + applyAsyncId = $browser.defer(function() { + $rootScope.$apply(flushApplyAsync); + }); + } + } + }]; +} + +/** + * @description + * Private service to sanitize uris for links and images. Used by $compile and $sanitize. + */ +function $$SanitizeUriProvider() { + var aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/, + imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/; + + /** + * @description + * Retrieves or overrides the default regular expression that is used for whitelisting of safe + * urls during a[href] sanitization. + * + * The sanitization is a security measure aimed at prevent XSS attacks via html links. + * + * Any url about to be assigned to a[href] via data-binding is first normalized and turned into + * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist` + * regular expression. If a match is found, the original url is written into the dom. Otherwise, + * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM. + * + * @param {RegExp=} regexp New regexp to whitelist urls with. + * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for + * chaining otherwise. + */ + this.aHrefSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + aHrefSanitizationWhitelist = regexp; + return this; + } + return aHrefSanitizationWhitelist; + }; + + + /** + * @description + * Retrieves or overrides the default regular expression that is used for whitelisting of safe + * urls during img[src] sanitization. + * + * The sanitization is a security measure aimed at prevent XSS attacks via html links. + * + * Any url about to be assigned to img[src] via data-binding is first normalized and turned into + * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist` + * regular expression. If a match is found, the original url is written into the dom. Otherwise, + * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM. + * + * @param {RegExp=} regexp New regexp to whitelist urls with. + * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for + * chaining otherwise. + */ + this.imgSrcSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + imgSrcSanitizationWhitelist = regexp; + return this; + } + return imgSrcSanitizationWhitelist; + }; + + this.$get = function() { + return function sanitizeUri(uri, isImage) { + var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist; + var normalizedVal; + normalizedVal = urlResolve(uri).href; + if (normalizedVal !== '' && !normalizedVal.match(regex)) { + return 'unsafe:' + normalizedVal; + } + return uri; + }; + }; +} + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Any commits to this file should be reviewed with security in mind. * + * Changes to this file can potentially create security vulnerabilities. * + * An approval from 2 Core members with history of modifying * + * this file is required. * + * * + * Does the change somehow allow for arbitrary javascript to be executed? * + * Or allows for someone to change the prototype of built-in objects? * + * Or gives undesired access to variables likes document or window? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +var $sceMinErr = minErr('$sce'); + +var SCE_CONTEXTS = { + HTML: 'html', + CSS: 'css', + URL: 'url', + // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a + // url. (e.g. ng-include, script src, templateUrl) + RESOURCE_URL: 'resourceUrl', + JS: 'js' +}; + +// Helper functions follow. + +function adjustMatcher(matcher) { + if (matcher === 'self') { + return matcher; + } else if (isString(matcher)) { + // Strings match exactly except for 2 wildcards - '*' and '**'. + // '*' matches any character except those from the set ':/.?&'. + // '**' matches any character (like .* in a RegExp). + // More than 2 *'s raises an error as it's ill defined. + if (matcher.indexOf('***') > -1) { + throw $sceMinErr('iwcard', + 'Illegal sequence *** in string matcher. String: {0}', matcher); + } + matcher = escapeForRegexp(matcher). + replace('\\*\\*', '.*'). + replace('\\*', '[^:/.?&;]*'); + return new RegExp('^' + matcher + '$'); + } else if (isRegExp(matcher)) { + // The only other type of matcher allowed is a Regexp. + // Match entire URL / disallow partial matches. + // Flags are reset (i.e. no global, ignoreCase or multiline) + return new RegExp('^' + matcher.source + '$'); + } else { + throw $sceMinErr('imatcher', + 'Matchers may only be "self", string patterns or RegExp objects'); + } +} + + +function adjustMatchers(matchers) { + var adjustedMatchers = []; + if (isDefined(matchers)) { + forEach(matchers, function(matcher) { + adjustedMatchers.push(adjustMatcher(matcher)); + }); + } + return adjustedMatchers; +} + + +/** + * @ngdoc service + * @name $sceDelegate + * @kind function + * + * @description + * + * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict + * Contextual Escaping (SCE)} services to AngularJS. + * + * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of + * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS. This is + * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to + * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things + * work because `$sce` delegates to `$sceDelegate` for these operations. + * + * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service. + * + * The default instance of `$sceDelegate` should work out of the box with little pain. While you + * can override it completely to change the behavior of `$sce`, the common case would + * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting + * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as + * templates. Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist + * $sceDelegateProvider.resourceUrlWhitelist} and {@link + * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} + */ + +/** + * @ngdoc provider + * @name $sceDelegateProvider + * @description + * + * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate + * $sceDelegate} service. This allows one to get/set the whitelists and blacklists used to ensure + * that the URLs used for sourcing Angular templates are safe. Refer {@link + * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and + * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} + * + * For the general details about this service in Angular, read the main page for {@link ng.$sce + * Strict Contextual Escaping (SCE)}. + * + * **Example**: Consider the following case. + * + * - your app is hosted at url `http://myapp.example.com/` + * - but some of your templates are hosted on other domains you control such as + * `http://srv01.assets.example.com/`,  `http://srv02.assets.example.com/`, etc. + * - and you have an open redirect at `http://myapp.example.com/clickThru?...`. + * + * Here is what a secure configuration for this scenario might look like: + * + * ``` + * angular.module('myApp', []).config(function($sceDelegateProvider) { + * $sceDelegateProvider.resourceUrlWhitelist([ + * // Allow same origin resource loads. + * 'self', + * // Allow loading from our assets domain. Notice the difference between * and **. + * 'http://srv*.assets.example.com/**' + * ]); + * + * // The blacklist overrides the whitelist so the open redirect here is blocked. + * $sceDelegateProvider.resourceUrlBlacklist([ + * 'http://myapp.example.com/clickThru**' + * ]); + * }); + * ``` + */ + +function $SceDelegateProvider() { + this.SCE_CONTEXTS = SCE_CONTEXTS; + + // Resource URLs can also be trusted by policy. + var resourceUrlWhitelist = ['self'], + resourceUrlBlacklist = []; + + /** + * @ngdoc method + * @name $sceDelegateProvider#resourceUrlWhitelist + * @kind function + * + * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value + * provided. This must be an array or null. A snapshot of this array is used so further + * changes to the array are ignored. + * + * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items + * allowed in this array. + * + * Note: **an empty whitelist array will block all URLs**! + * + * @return {Array} the currently set whitelist array. + * + * The **default value** when no whitelist has been explicitly set is `['self']` allowing only + * same origin resource requests. + * + * @description + * Sets/Gets the whitelist of trusted resource URLs. + */ + this.resourceUrlWhitelist = function(value) { + if (arguments.length) { + resourceUrlWhitelist = adjustMatchers(value); + } + return resourceUrlWhitelist; + }; + + /** + * @ngdoc method + * @name $sceDelegateProvider#resourceUrlBlacklist + * @kind function + * + * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value + * provided. This must be an array or null. A snapshot of this array is used so further + * changes to the array are ignored. + * + * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items + * allowed in this array. + * + * The typical usage for the blacklist is to **block + * [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as + * these would otherwise be trusted but actually return content from the redirected domain. + * + * Finally, **the blacklist overrides the whitelist** and has the final say. + * + * @return {Array} the currently set blacklist array. + * + * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there + * is no blacklist.) + * + * @description + * Sets/Gets the blacklist of trusted resource URLs. + */ + + this.resourceUrlBlacklist = function(value) { + if (arguments.length) { + resourceUrlBlacklist = adjustMatchers(value); + } + return resourceUrlBlacklist; + }; + + this.$get = ['$injector', function($injector) { + + var htmlSanitizer = function htmlSanitizer(html) { + throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.'); + }; + + if ($injector.has('$sanitize')) { + htmlSanitizer = $injector.get('$sanitize'); + } + + + function matchUrl(matcher, parsedUrl) { + if (matcher === 'self') { + return urlIsSameOrigin(parsedUrl); + } else { + // definitely a regex. See adjustMatchers() + return !!matcher.exec(parsedUrl.href); + } + } + + function isResourceUrlAllowedByPolicy(url) { + var parsedUrl = urlResolve(url.toString()); + var i, n, allowed = false; + // Ensure that at least one item from the whitelist allows this url. + for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) { + if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) { + allowed = true; + break; + } + } + if (allowed) { + // Ensure that no item from the blacklist blocked this url. + for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) { + if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) { + allowed = false; + break; + } + } + } + return allowed; + } + + function generateHolderType(Base) { + var holderType = function TrustedValueHolderType(trustedValue) { + this.$$unwrapTrustedValue = function() { + return trustedValue; + }; + }; + if (Base) { + holderType.prototype = new Base(); + } + holderType.prototype.valueOf = function sceValueOf() { + return this.$$unwrapTrustedValue(); + }; + holderType.prototype.toString = function sceToString() { + return this.$$unwrapTrustedValue().toString(); + }; + return holderType; + } + + var trustedValueHolderBase = generateHolderType(), + byType = {}; + + byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]); + + /** + * @ngdoc method + * @name $sceDelegate#trustAs + * + * @description + * Returns an object that is trusted by angular for use in specified strict + * contextual escaping contexts (such as ng-bind-html, ng-include, any src + * attribute interpolation, any dom event binding attribute interpolation + * such as for onclick, etc.) that uses the provided value. + * See {@link ng.$sce $sce} for enabling strict contextual escaping. + * + * @param {string} type The kind of context in which this value is safe for use. e.g. url, + * resourceUrl, html, js and css. + * @param {*} value The value that that should be considered trusted/safe. + * @returns {*} A value that can be used to stand in for the provided `value` in places + * where Angular expects a $sce.trustAs() return value. + */ + function trustAs(type, trustedValue) { + var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null); + if (!Constructor) { + throw $sceMinErr('icontext', + 'Attempted to trust a value in invalid context. Context: {0}; Value: {1}', + type, trustedValue); + } + if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') { + return trustedValue; + } + // All the current contexts in SCE_CONTEXTS happen to be strings. In order to avoid trusting + // mutable objects, we ensure here that the value passed in is actually a string. + if (typeof trustedValue !== 'string') { + throw $sceMinErr('itype', + 'Attempted to trust a non-string value in a content requiring a string: Context: {0}', + type); + } + return new Constructor(trustedValue); + } + + /** + * @ngdoc method + * @name $sceDelegate#valueOf + * + * @description + * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs + * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link + * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. + * + * If the passed parameter is not a value that had been returned by {@link + * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is. + * + * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} + * call or anything else. + * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs + * `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns + * `value` unchanged. + */ + function valueOf(maybeTrusted) { + if (maybeTrusted instanceof trustedValueHolderBase) { + return maybeTrusted.$$unwrapTrustedValue(); + } else { + return maybeTrusted; + } + } + + /** + * @ngdoc method + * @name $sceDelegate#getTrusted + * + * @description + * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and + * returns the originally supplied value if the queried context type is a supertype of the + * created type. If this condition isn't satisfied, throws an exception. + * + * @param {string} type The kind of context in which this value is to be used. + * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs + * `$sceDelegate.trustAs`} call. + * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs + * `$sceDelegate.trustAs`} if valid in this context. Otherwise, throws an exception. + */ + function getTrusted(type, maybeTrusted) { + if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') { + return maybeTrusted; + } + var constructor = (byType.hasOwnProperty(type) ? byType[type] : null); + if (constructor && maybeTrusted instanceof constructor) { + return maybeTrusted.$$unwrapTrustedValue(); + } + // If we get here, then we may only take one of two actions. + // 1. sanitize the value for the requested type, or + // 2. throw an exception. + if (type === SCE_CONTEXTS.RESOURCE_URL) { + if (isResourceUrlAllowedByPolicy(maybeTrusted)) { + return maybeTrusted; + } else { + throw $sceMinErr('insecurl', + 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', + maybeTrusted.toString()); + } + } else if (type === SCE_CONTEXTS.HTML) { + return htmlSanitizer(maybeTrusted); + } + throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.'); + } + + return { trustAs: trustAs, + getTrusted: getTrusted, + valueOf: valueOf }; + }]; +} + + +/** + * @ngdoc provider + * @name $sceProvider + * @description + * + * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service. + * - enable/disable Strict Contextual Escaping (SCE) in a module + * - override the default implementation with a custom delegate + * + * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}. + */ + +/* jshint maxlen: false*/ + +/** + * @ngdoc service + * @name $sce + * @kind function + * + * @description + * + * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS. + * + * # Strict Contextual Escaping + * + * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain + * contexts to result in a value that is marked as safe to use for that context. One example of + * such a context is binding arbitrary html controlled by the user via `ng-bind-html`. We refer + * to these contexts as privileged or SCE contexts. + * + * As of version 1.2, Angular ships with SCE enabled by default. + * + * Note: When enabled (the default), IE<11 in quirks mode is not supported. In this mode, IE<11 allow + * one to execute arbitrary javascript by the use of the expression() syntax. Refer + * to learn more about them. + * You can ensure your document is in standards mode and not quirks mode by adding `` + * to the top of your HTML document. + * + * SCE assists in writing code in way that (a) is secure by default and (b) makes auditing for + * security vulnerabilities such as XSS, clickjacking, etc. a lot easier. + * + * Here's an example of a binding in a privileged context: + * + * ``` + * + *
+ * ``` + * + * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE + * disabled, this application allows the user to render arbitrary HTML into the DIV. + * In a more realistic example, one may be rendering user comments, blog articles, etc. via + * bindings. (HTML is just one example of a context where rendering user controlled input creates + * security vulnerabilities.) + * + * For the case of HTML, you might use a library, either on the client side, or on the server side, + * to sanitize unsafe HTML before binding to the value and rendering it in the document. + * + * How would you ensure that every place that used these types of bindings was bound to a value that + * was sanitized by your library (or returned as safe for rendering by your server?) How can you + * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some + * properties/fields and forgot to update the binding to the sanitized value? + * + * To be secure by default, you want to ensure that any such bindings are disallowed unless you can + * determine that something explicitly says it's safe to use a value for binding in that + * context. You can then audit your code (a simple grep would do) to ensure that this is only done + * for those values that you can easily tell are safe - because they were received from your server, + * sanitized by your library, etc. You can organize your codebase to help with this - perhaps + * allowing only the files in a specific directory to do this. Ensuring that the internal API + * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task. + * + * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs} + * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to + * obtain values that will be accepted by SCE / privileged contexts. + * + * + * ## How does it work? + * + * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted + * $sce.getTrusted(context, value)} rather than to the value directly. Directives use {@link + * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the + * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals. + * + * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link + * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}. Here's the actual code (slightly + * simplified): + * + * ``` + * var ngBindHtmlDirective = ['$sce', function($sce) { + * return function(scope, element, attr) { + * scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) { + * element.html(value || ''); + * }); + * }; + * }]; + * ``` + * + * ## Impact on loading templates + * + * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as + * `templateUrl`'s specified by {@link guide/directive directives}. + * + * By default, Angular only loads templates from the same domain and protocol as the application + * document. This is done by calling {@link ng.$sce#getTrustedResourceUrl + * $sce.getTrustedResourceUrl} on the template URL. To load templates from other domains and/or + * protocols, you may either either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist + * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value. + * + * *Please note*: + * The browser's + * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest) + * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/) + * policy apply in addition to this and may further restrict whether the template is successfully + * loaded. This means that without the right CORS policy, loading templates from a different domain + * won't work on all browsers. Also, loading templates from `file://` URL does not work on some + * browsers. + * + * ## This feels like too much overhead + * + * It's important to remember that SCE only applies to interpolation expressions. + * + * If your expressions are constant literals, they're automatically trusted and you don't need to + * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g. + * `
`) just works. + * + * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them + * through {@link ng.$sce#getTrusted $sce.getTrusted}. SCE doesn't play a role here. + * + * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load + * templates in `ng-include` from your application's domain without having to even know about SCE. + * It blocks loading templates from other domains or loading templates over http from an https + * served document. You can change these by setting your own custom {@link + * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link + * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs. + * + * This significantly reduces the overhead. It is far easier to pay the small overhead and have an + * application that's secure and can be audited to verify that with much more ease than bolting + * security onto an application later. + * + * + * ## What trusted context types are supported? + * + * | Context | Notes | + * |---------------------|----------------| + * | `$sce.HTML` | For HTML that's safe to source into the application. The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. | + * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. | + * | `$sce.URL` | For URLs that are safe to follow as links. Currently unused (`
Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. | + * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. | + * + * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist}
+ * + * Each element in these arrays must be one of the following: + * + * - **'self'** + * - The special **string**, `'self'`, can be used to match against all URLs of the **same + * domain** as the application document using the **same protocol**. + * - **String** (except the special value `'self'`) + * - The string is matched against the full *normalized / absolute URL* of the resource + * being tested (substring matches are not good enough.) + * - There are exactly **two wildcard sequences** - `*` and `**`. All other characters + * match themselves. + * - `*`: matches zero or more occurrences of any character other than one of the following 6 + * characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'. It's a useful wildcard for use + * in a whitelist. + * - `**`: matches zero or more occurrences of *any* character. As such, it's not + * appropriate for use in a scheme, domain, etc. as it would match too much. (e.g. + * http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might + * not have been the intention.) Its usage at the very end of the path is ok. (e.g. + * http://foo.example.com/templates/**). + * - **RegExp** (*see caveat below*) + * - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax + * (and all the inevitable escaping) makes them *harder to maintain*. It's easy to + * accidentally introduce a bug when one updates a complex expression (imho, all regexes should + * have good test coverage). For instance, the use of `.` in the regex is correct only in a + * small number of cases. A `.` character in the regex used when matching the scheme or a + * subdomain could be matched against a `:` or literal `.` that was likely not intended. It + * is highly recommended to use the string patterns and only fall back to regular expressions + * as a last resort. + * - The regular expression must be an instance of RegExp (i.e. not a string.) It is + * matched against the **entire** *normalized / absolute URL* of the resource being tested + * (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags + * present on the RegExp (such as multiline, global, ignoreCase) are ignored. + * - If you are generating your JavaScript from some other templating engine (not + * recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)), + * remember to escape your regular expression (and be aware that you might need more than + * one level of escaping depending on your templating engine and the way you interpolated + * the value.) Do make use of your platform's escaping mechanism as it might be good + * enough before coding your own. E.g. Ruby has + * [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape) + * and Python has [re.escape](http://docs.python.org/library/re.html#re.escape). + * Javascript lacks a similar built in function for escaping. Take a look at Google + * Closure library's [goog.string.regExpEscape(s)]( + * http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962). + * + * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example. + * + * ## Show me an example using SCE. + * + * + * + *
+ *

+ * User comments
+ * By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when + * $sanitize is available. If $sanitize isn't available, this results in an error instead of an + * exploit. + *
+ *
+ * {{userComment.name}}: + * + *
+ *
+ *
+ *
+ *
+ * + * + * angular.module('mySceApp', ['ngSanitize']) + * .controller('AppController', ['$http', '$templateCache', '$sce', + * function($http, $templateCache, $sce) { + * var self = this; + * $http.get("test_data.json", {cache: $templateCache}).success(function(userComments) { + * self.userComments = userComments; + * }); + * self.explicitlyTrustedHtml = $sce.trustAsHtml( + * 'Hover over this text.'); + * }]); + * + * + * + * [ + * { "name": "Alice", + * "htmlComment": + * "Is anyone reading this?" + * }, + * { "name": "Bob", + * "htmlComment": "Yes! Am I the only other one?" + * } + * ] + * + * + * + * describe('SCE doc demo', function() { + * it('should sanitize untrusted values', function() { + * expect(element.all(by.css('.htmlComment')).first().getInnerHtml()) + * .toBe('Is anyone reading this?'); + * }); + * + * it('should NOT sanitize explicitly trusted values', function() { + * expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe( + * 'Hover over this text.'); + * }); + * }); + * + *
+ * + * + * + * ## Can I disable SCE completely? + * + * Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits + * for little coding overhead. It will be much harder to take an SCE disabled application and + * either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE + * for cases where you have a lot of existing code that was written before SCE was introduced and + * you're migrating them a module at a time. + * + * That said, here's how you can completely disable SCE: + * + * ``` + * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) { + * // Completely disable SCE. For demonstration purposes only! + * // Do not use in new projects. + * $sceProvider.enabled(false); + * }); + * ``` + * + */ +/* jshint maxlen: 100 */ + +function $SceProvider() { + var enabled = true; + + /** + * @ngdoc method + * @name $sceProvider#enabled + * @kind function + * + * @param {boolean=} value If provided, then enables/disables SCE. + * @return {boolean} true if SCE is enabled, false otherwise. + * + * @description + * Enables/disables SCE and returns the current value. + */ + this.enabled = function(value) { + if (arguments.length) { + enabled = !!value; + } + return enabled; + }; + + + /* Design notes on the default implementation for SCE. + * + * The API contract for the SCE delegate + * ------------------------------------- + * The SCE delegate object must provide the following 3 methods: + * + * - trustAs(contextEnum, value) + * This method is used to tell the SCE service that the provided value is OK to use in the + * contexts specified by contextEnum. It must return an object that will be accepted by + * getTrusted() for a compatible contextEnum and return this value. + * + * - valueOf(value) + * For values that were not produced by trustAs(), return them as is. For values that were + * produced by trustAs(), return the corresponding input value to trustAs. Basically, if + * trustAs is wrapping the given values into some type, this operation unwraps it when given + * such a value. + * + * - getTrusted(contextEnum, value) + * This function should return the a value that is safe to use in the context specified by + * contextEnum or throw and exception otherwise. + * + * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be + * opaque or wrapped in some holder object. That happens to be an implementation detail. For + * instance, an implementation could maintain a registry of all trusted objects by context. In + * such a case, trustAs() would return the same object that was passed in. getTrusted() would + * return the same object passed in if it was found in the registry under a compatible context or + * throw an exception otherwise. An implementation might only wrap values some of the time based + * on some criteria. getTrusted() might return a value and not throw an exception for special + * constants or objects even if not wrapped. All such implementations fulfill this contract. + * + * + * A note on the inheritance model for SCE contexts + * ------------------------------------------------ + * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types. This + * is purely an implementation details. + * + * The contract is simply this: + * + * getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value) + * will also succeed. + * + * Inheritance happens to capture this in a natural way. In some future, we + * may not use inheritance anymore. That is OK because no code outside of + * sce.js and sceSpecs.js would need to be aware of this detail. + */ + + this.$get = ['$parse', '$sceDelegate', function( + $parse, $sceDelegate) { + // Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow + // the "expression(javascript expression)" syntax which is insecure. + if (enabled && msie < 8) { + throw $sceMinErr('iequirks', + 'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' + + 'mode. You can fix this by adding the text to the top of your HTML ' + + 'document. See http://docs.angularjs.org/api/ng.$sce for more information.'); + } + + var sce = shallowCopy(SCE_CONTEXTS); + + /** + * @ngdoc method + * @name $sce#isEnabled + * @kind function + * + * @return {Boolean} true if SCE is enabled, false otherwise. If you want to set the value, you + * have to do it at module config time on {@link ng.$sceProvider $sceProvider}. + * + * @description + * Returns a boolean indicating if SCE is enabled. + */ + sce.isEnabled = function() { + return enabled; + }; + sce.trustAs = $sceDelegate.trustAs; + sce.getTrusted = $sceDelegate.getTrusted; + sce.valueOf = $sceDelegate.valueOf; + + if (!enabled) { + sce.trustAs = sce.getTrusted = function(type, value) { return value; }; + sce.valueOf = identity; + } + + /** + * @ngdoc method + * @name $sce#parseAs + * + * @description + * Converts Angular {@link guide/expression expression} into a function. This is like {@link + * ng.$parse $parse} and is identical when the expression is a literal constant. Otherwise, it + * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*, + * *result*)} + * + * @param {string} type The kind of SCE context in which this result will be used. + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + */ + sce.parseAs = function sceParseAs(type, expr) { + var parsed = $parse(expr); + if (parsed.literal && parsed.constant) { + return parsed; + } else { + return $parse(expr, function(value) { + return sce.getTrusted(type, value); + }); + } + }; + + /** + * @ngdoc method + * @name $sce#trustAs + * + * @description + * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such, + * returns an object that is trusted by angular for use in specified strict contextual + * escaping contexts (such as ng-bind-html, ng-include, any src attribute + * interpolation, any dom event binding attribute interpolation such as for onclick, etc.) + * that uses the provided value. See * {@link ng.$sce $sce} for enabling strict contextual + * escaping. + * + * @param {string} type The kind of context in which this value is safe for use. e.g. url, + * resourceUrl, html, js and css. + * @param {*} value The value that that should be considered trusted/safe. + * @returns {*} A value that can be used to stand in for the provided `value` in places + * where Angular expects a $sce.trustAs() return value. + */ + + /** + * @ngdoc method + * @name $sce#trustAsHtml + * + * @description + * Shorthand method. `$sce.trustAsHtml(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`} + * + * @param {*} value The value to trustAs. + * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml + * $sce.getTrustedHtml(value)} to obtain the original value. (privileged directives + * only accept expressions that are either literal constants or are the + * return value of {@link ng.$sce#trustAs $sce.trustAs}.) + */ + + /** + * @ngdoc method + * @name $sce#trustAsUrl + * + * @description + * Shorthand method. `$sce.trustAsUrl(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`} + * + * @param {*} value The value to trustAs. + * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl + * $sce.getTrustedUrl(value)} to obtain the original value. (privileged directives + * only accept expressions that are either literal constants or are the + * return value of {@link ng.$sce#trustAs $sce.trustAs}.) + */ + + /** + * @ngdoc method + * @name $sce#trustAsResourceUrl + * + * @description + * Shorthand method. `$sce.trustAsResourceUrl(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`} + * + * @param {*} value The value to trustAs. + * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl + * $sce.getTrustedResourceUrl(value)} to obtain the original value. (privileged directives + * only accept expressions that are either literal constants or are the return + * value of {@link ng.$sce#trustAs $sce.trustAs}.) + */ + + /** + * @ngdoc method + * @name $sce#trustAsJs + * + * @description + * Shorthand method. `$sce.trustAsJs(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`} + * + * @param {*} value The value to trustAs. + * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs + * $sce.getTrustedJs(value)} to obtain the original value. (privileged directives + * only accept expressions that are either literal constants or are the + * return value of {@link ng.$sce#trustAs $sce.trustAs}.) + */ + + /** + * @ngdoc method + * @name $sce#getTrusted + * + * @description + * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}. As such, + * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the + * originally supplied value if the queried context type is a supertype of the created type. + * If this condition isn't satisfied, throws an exception. + * + * @param {string} type The kind of context in which this value is to be used. + * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`} + * call. + * @returns {*} The value the was originally provided to + * {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context. + * Otherwise, throws an exception. + */ + + /** + * @ngdoc method + * @name $sce#getTrustedHtml + * + * @description + * Shorthand method. `$sce.getTrustedHtml(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`} + * + * @param {*} value The value to pass to `$sce.getTrusted`. + * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedCss + * + * @description + * Shorthand method. `$sce.getTrustedCss(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`} + * + * @param {*} value The value to pass to `$sce.getTrusted`. + * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedUrl + * + * @description + * Shorthand method. `$sce.getTrustedUrl(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`} + * + * @param {*} value The value to pass to `$sce.getTrusted`. + * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedResourceUrl + * + * @description + * Shorthand method. `$sce.getTrustedResourceUrl(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`} + * + * @param {*} value The value to pass to `$sceDelegate.getTrusted`. + * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedJs + * + * @description + * Shorthand method. `$sce.getTrustedJs(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`} + * + * @param {*} value The value to pass to `$sce.getTrusted`. + * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)` + */ + + /** + * @ngdoc method + * @name $sce#parseAsHtml + * + * @description + * Shorthand method. `$sce.parseAsHtml(expression string)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`} + * + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + */ + + /** + * @ngdoc method + * @name $sce#parseAsCss + * + * @description + * Shorthand method. `$sce.parseAsCss(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`} + * + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + */ + + /** + * @ngdoc method + * @name $sce#parseAsUrl + * + * @description + * Shorthand method. `$sce.parseAsUrl(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`} + * + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + */ + + /** + * @ngdoc method + * @name $sce#parseAsResourceUrl + * + * @description + * Shorthand method. `$sce.parseAsResourceUrl(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`} + * + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + */ + + /** + * @ngdoc method + * @name $sce#parseAsJs + * + * @description + * Shorthand method. `$sce.parseAsJs(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`} + * + * @param {string} expression String expression to compile. + * @returns {function(context, locals)} a function which represents the compiled expression: + * + * * `context` – `{object}` – an object against which any expressions embedded in the strings + * are evaluated against (typically a scope object). + * * `locals` – `{object=}` – local variables context object, useful for overriding values in + * `context`. + */ + + // Shorthand delegations. + var parse = sce.parseAs, + getTrusted = sce.getTrusted, + trustAs = sce.trustAs; + + forEach(SCE_CONTEXTS, function(enumValue, name) { + var lName = lowercase(name); + sce[camelCase("parse_as_" + lName)] = function(expr) { + return parse(enumValue, expr); + }; + sce[camelCase("get_trusted_" + lName)] = function(value) { + return getTrusted(enumValue, value); + }; + sce[camelCase("trust_as_" + lName)] = function(value) { + return trustAs(enumValue, value); + }; + }); + + return sce; + }]; +} + +/** + * !!! This is an undocumented "private" service !!! + * + * @name $sniffer + * @requires $window + * @requires $document + * + * @property {boolean} history Does the browser support html5 history api ? + * @property {boolean} transitions Does the browser support CSS transition events ? + * @property {boolean} animations Does the browser support CSS animation events ? + * + * @description + * This is very simple implementation of testing browser's features. + */ +function $SnifferProvider() { + this.$get = ['$window', '$document', function($window, $document) { + var eventSupport = {}, + android = + toInt((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]), + boxee = /Boxee/i.test(($window.navigator || {}).userAgent), + document = $document[0] || {}, + vendorPrefix, + vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/, + bodyStyle = document.body && document.body.style, + transitions = false, + animations = false, + match; + + if (bodyStyle) { + for (var prop in bodyStyle) { + if (match = vendorRegex.exec(prop)) { + vendorPrefix = match[0]; + vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1); + break; + } + } + + if (!vendorPrefix) { + vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit'; + } + + transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle)); + animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle)); + + if (android && (!transitions || !animations)) { + transitions = isString(bodyStyle.webkitTransition); + animations = isString(bodyStyle.webkitAnimation); + } + } + + + return { + // Android has history.pushState, but it does not update location correctly + // so let's not use the history API at all. + // http://code.google.com/p/android/issues/detail?id=17471 + // https://github.com/angular/angular.js/issues/904 + + // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has + // so let's not use the history API also + // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined + // jshint -W018 + history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee), + // jshint +W018 + hasEvent: function(event) { + // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have + // it. In particular the event is not fired when backspace or delete key are pressed or + // when cut operation is performed. + // IE10+ implements 'input' event but it erroneously fires under various situations, + // e.g. when placeholder changes, or a form is focused. + if (event === 'input' && msie <= 11) return false; + + if (isUndefined(eventSupport[event])) { + var divElm = document.createElement('div'); + eventSupport[event] = 'on' + event in divElm; + } + + return eventSupport[event]; + }, + csp: csp(), + vendorPrefix: vendorPrefix, + transitions: transitions, + animations: animations, + android: android + }; + }]; +} + +var $compileMinErr = minErr('$compile'); + +/** + * @ngdoc service + * @name $templateRequest + * + * @description + * The `$templateRequest` service runs security checks then downloads the provided template using + * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request + * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the + * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the + * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted + * when `tpl` is of type string and `$templateCache` has the matching entry. + * + * @param {string|TrustedResourceUrl} tpl The HTTP request template URL + * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty + * + * @return {Promise} a promise for the HTTP response data of the given URL. + * + * @property {number} totalPendingRequests total amount of pending template requests being downloaded. + */ +function $TemplateRequestProvider() { + this.$get = ['$templateCache', '$http', '$q', '$sce', function($templateCache, $http, $q, $sce) { + function handleRequestFn(tpl, ignoreRequestError) { + handleRequestFn.totalPendingRequests++; + + // We consider the template cache holds only trusted templates, so + // there's no need to go through whitelisting again for keys that already + // are included in there. This also makes Angular accept any script + // directive, no matter its name. However, we still need to unwrap trusted + // types. + if (!isString(tpl) || !$templateCache.get(tpl)) { + tpl = $sce.getTrustedResourceUrl(tpl); + } + + var transformResponse = $http.defaults && $http.defaults.transformResponse; + + if (isArray(transformResponse)) { + transformResponse = transformResponse.filter(function(transformer) { + return transformer !== defaultHttpResponseTransform; + }); + } else if (transformResponse === defaultHttpResponseTransform) { + transformResponse = null; + } + + var httpOptions = { + cache: $templateCache, + transformResponse: transformResponse + }; + + return $http.get(tpl, httpOptions) + ['finally'](function() { + handleRequestFn.totalPendingRequests--; + }) + .then(function(response) { + $templateCache.put(tpl, response.data); + return response.data; + }, handleError); + + function handleError(resp) { + if (!ignoreRequestError) { + throw $compileMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})', + tpl, resp.status, resp.statusText); + } + return $q.reject(resp); + } + } + + handleRequestFn.totalPendingRequests = 0; + + return handleRequestFn; + }]; +} + +function $$TestabilityProvider() { + this.$get = ['$rootScope', '$browser', '$location', + function($rootScope, $browser, $location) { + + /** + * @name $testability + * + * @description + * The private $$testability service provides a collection of methods for use when debugging + * or by automated test and debugging tools. + */ + var testability = {}; + + /** + * @name $$testability#findBindings + * + * @description + * Returns an array of elements that are bound (via ng-bind or {{}}) + * to expressions matching the input. + * + * @param {Element} element The element root to search from. + * @param {string} expression The binding expression to match. + * @param {boolean} opt_exactMatch If true, only returns exact matches + * for the expression. Filters and whitespace are ignored. + */ + testability.findBindings = function(element, expression, opt_exactMatch) { + var bindings = element.getElementsByClassName('ng-binding'); + var matches = []; + forEach(bindings, function(binding) { + var dataBinding = angular.element(binding).data('$binding'); + if (dataBinding) { + forEach(dataBinding, function(bindingName) { + if (opt_exactMatch) { + var matcher = new RegExp('(^|\\s)' + escapeForRegexp(expression) + '(\\s|\\||$)'); + if (matcher.test(bindingName)) { + matches.push(binding); + } + } else { + if (bindingName.indexOf(expression) != -1) { + matches.push(binding); + } + } + }); + } + }); + return matches; + }; + + /** + * @name $$testability#findModels + * + * @description + * Returns an array of elements that are two-way found via ng-model to + * expressions matching the input. + * + * @param {Element} element The element root to search from. + * @param {string} expression The model expression to match. + * @param {boolean} opt_exactMatch If true, only returns exact matches + * for the expression. + */ + testability.findModels = function(element, expression, opt_exactMatch) { + var prefixes = ['ng-', 'data-ng-', 'ng\\:']; + for (var p = 0; p < prefixes.length; ++p) { + var attributeEquals = opt_exactMatch ? '=' : '*='; + var selector = '[' + prefixes[p] + 'model' + attributeEquals + '"' + expression + '"]'; + var elements = element.querySelectorAll(selector); + if (elements.length) { + return elements; + } + } + }; + + /** + * @name $$testability#getLocation + * + * @description + * Shortcut for getting the location in a browser agnostic way. Returns + * the path, search, and hash. (e.g. /path?a=b#hash) + */ + testability.getLocation = function() { + return $location.url(); + }; + + /** + * @name $$testability#setLocation + * + * @description + * Shortcut for navigating to a location without doing a full page reload. + * + * @param {string} url The location url (path, search and hash, + * e.g. /path?a=b#hash) to go to. + */ + testability.setLocation = function(url) { + if (url !== $location.url()) { + $location.url(url); + $rootScope.$digest(); + } + }; + + /** + * @name $$testability#whenStable + * + * @description + * Calls the callback when $timeout and $http requests are completed. + * + * @param {function} callback + */ + testability.whenStable = function(callback) { + $browser.notifyWhenNoOutstandingRequests(callback); + }; + + return testability; + }]; +} + +function $TimeoutProvider() { + this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler', + function($rootScope, $browser, $q, $$q, $exceptionHandler) { + + var deferreds = {}; + + + /** + * @ngdoc service + * @name $timeout + * + * @description + * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch + * block and delegates any exceptions to + * {@link ng.$exceptionHandler $exceptionHandler} service. + * + * The return value of calling `$timeout` is a promise, which will be resolved when + * the delay has passed and the timeout function, if provided, is executed. + * + * To cancel a timeout request, call `$timeout.cancel(promise)`. + * + * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to + * synchronously flush the queue of deferred functions. + * + * If you only want a promise that will be resolved after some specified delay + * then you can call `$timeout` without the `fn` function. + * + * @param {function()=} fn A function, whose execution should be delayed. + * @param {number=} [delay=0] Delay in milliseconds. + * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise + * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block. + * @param {...*=} Pass additional parameters to the executed function. + * @returns {Promise} Promise that will be resolved when the timeout is reached. The value this + * promise will be resolved with is the return value of the `fn` function. + * + */ + function timeout(fn, delay, invokeApply) { + if (!isFunction(fn)) { + invokeApply = delay; + delay = fn; + fn = noop; + } + + var args = sliceArgs(arguments, 3), + skipApply = (isDefined(invokeApply) && !invokeApply), + deferred = (skipApply ? $$q : $q).defer(), + promise = deferred.promise, + timeoutId; + + timeoutId = $browser.defer(function() { + try { + deferred.resolve(fn.apply(null, args)); + } catch (e) { + deferred.reject(e); + $exceptionHandler(e); + } + finally { + delete deferreds[promise.$$timeoutId]; + } + + if (!skipApply) $rootScope.$apply(); + }, delay); + + promise.$$timeoutId = timeoutId; + deferreds[timeoutId] = deferred; + + return promise; + } + + + /** + * @ngdoc method + * @name $timeout#cancel + * + * @description + * Cancels a task associated with the `promise`. As a result of this, the promise will be + * resolved with a rejection. + * + * @param {Promise=} promise Promise returned by the `$timeout` function. + * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully + * canceled. + */ + timeout.cancel = function(promise) { + if (promise && promise.$$timeoutId in deferreds) { + deferreds[promise.$$timeoutId].reject('canceled'); + delete deferreds[promise.$$timeoutId]; + return $browser.defer.cancel(promise.$$timeoutId); + } + return false; + }; + + return timeout; + }]; +} + +// NOTE: The usage of window and document instead of $window and $document here is +// deliberate. This service depends on the specific behavior of anchor nodes created by the +// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and +// cause us to break tests. In addition, when the browser resolves a URL for XHR, it +// doesn't know about mocked locations and resolves URLs to the real document - which is +// exactly the behavior needed here. There is little value is mocking these out for this +// service. +var urlParsingNode = document.createElement("a"); +var originUrl = urlResolve(window.location.href); + + +/** + * + * Implementation Notes for non-IE browsers + * ---------------------------------------- + * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM, + * results both in the normalizing and parsing of the URL. Normalizing means that a relative + * URL will be resolved into an absolute URL in the context of the application document. + * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related + * properties are all populated to reflect the normalized URL. This approach has wide + * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc. See + * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html + * + * Implementation Notes for IE + * --------------------------- + * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other + * browsers. However, the parsed components will not be set if the URL assigned did not specify + * them. (e.g. if you assign a.href = "foo", then a.protocol, a.host, etc. will be empty.) We + * work around that by performing the parsing in a 2nd step by taking a previously normalized + * URL (e.g. by assigning to a.href) and assigning it a.href again. This correctly populates the + * properties such as protocol, hostname, port, etc. + * + * References: + * http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement + * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html + * http://url.spec.whatwg.org/#urlutils + * https://github.com/angular/angular.js/pull/2902 + * http://james.padolsey.com/javascript/parsing-urls-with-the-dom/ + * + * @kind function + * @param {string} url The URL to be parsed. + * @description Normalizes and parses a URL. + * @returns {object} Returns the normalized URL as a dictionary. + * + * | member name | Description | + * |---------------|----------------| + * | href | A normalized version of the provided URL if it was not an absolute URL | + * | protocol | The protocol including the trailing colon | + * | host | The host and port (if the port is non-default) of the normalizedUrl | + * | search | The search params, minus the question mark | + * | hash | The hash string, minus the hash symbol + * | hostname | The hostname + * | port | The port, without ":" + * | pathname | The pathname, beginning with "/" + * + */ +function urlResolve(url) { + var href = url; + + if (msie) { + // Normalize before parse. Refer Implementation Notes on why this is + // done in two steps on IE. + urlParsingNode.setAttribute("href", href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') + ? urlParsingNode.pathname + : '/' + urlParsingNode.pathname + }; +} + +/** + * Parse a request URL and determine whether this is a same-origin request as the application document. + * + * @param {string|object} requestUrl The url of the request as a string that will be resolved + * or a parsed URL object. + * @returns {boolean} Whether the request is for the same origin as the application document. + */ +function urlIsSameOrigin(requestUrl) { + var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl; + return (parsed.protocol === originUrl.protocol && + parsed.host === originUrl.host); +} + +/** + * @ngdoc service + * @name $window + * + * @description + * A reference to the browser's `window` object. While `window` + * is globally available in JavaScript, it causes testability problems, because + * it is a global variable. In angular we always refer to it through the + * `$window` service, so it may be overridden, removed or mocked for testing. + * + * Expressions, like the one defined for the `ngClick` directive in the example + * below, are evaluated with respect to the current scope. Therefore, there is + * no risk of inadvertently coding in a dependency on a global value in such an + * expression. + * + * @example + + + +
+ + +
+
+ + it('should display the greeting in the input box', function() { + element(by.model('greeting')).sendKeys('Hello, E2E Tests'); + // If we click the button it will block the test runner + // element(':button').click(); + }); + +
+ */ +function $WindowProvider() { + this.$get = valueFn(window); +} + +/** + * @name $$cookieReader + * @requires $document + * + * @description + * This is a private service for reading cookies used by $http and ngCookies + * + * @return {Object} a key/value map of the current cookies + */ +function $$CookieReader($document) { + var rawDocument = $document[0] || {}; + var lastCookies = {}; + var lastCookieString = ''; + + function safeDecodeURIComponent(str) { + try { + return decodeURIComponent(str); + } catch (e) { + return str; + } + } + + return function() { + var cookieArray, cookie, i, index, name; + var currentCookieString = rawDocument.cookie || ''; + + if (currentCookieString !== lastCookieString) { + lastCookieString = currentCookieString; + cookieArray = lastCookieString.split('; '); + lastCookies = {}; + + for (i = 0; i < cookieArray.length; i++) { + cookie = cookieArray[i]; + index = cookie.indexOf('='); + if (index > 0) { //ignore nameless cookies + name = safeDecodeURIComponent(cookie.substring(0, index)); + // the first value that is seen for a cookie is the most + // specific one. values for the same cookie name that + // follow are for less specific paths. + if (isUndefined(lastCookies[name])) { + lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1)); + } + } + } + } + return lastCookies; + }; +} + +$$CookieReader.$inject = ['$document']; + +function $$CookieReaderProvider() { + this.$get = $$CookieReader; +} + +/* global currencyFilter: true, + dateFilter: true, + filterFilter: true, + jsonFilter: true, + limitToFilter: true, + lowercaseFilter: true, + numberFilter: true, + orderByFilter: true, + uppercaseFilter: true, + */ + +/** + * @ngdoc provider + * @name $filterProvider + * @description + * + * Filters are just functions which transform input to an output. However filters need to be + * Dependency Injected. To achieve this a filter definition consists of a factory function which is + * annotated with dependencies and is responsible for creating a filter function. + * + *
+ * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`. + * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace + * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores + * (`myapp_subsection_filterx`). + *
+ * + * ```js + * // Filter registration + * function MyModule($provide, $filterProvider) { + * // create a service to demonstrate injection (not always needed) + * $provide.value('greet', function(name){ + * return 'Hello ' + name + '!'; + * }); + * + * // register a filter factory which uses the + * // greet service to demonstrate DI. + * $filterProvider.register('greet', function(greet){ + * // return the filter function which uses the greet service + * // to generate salutation + * return function(text) { + * // filters need to be forgiving so check input validity + * return text && greet(text) || text; + * }; + * }); + * } + * ``` + * + * The filter function is registered with the `$injector` under the filter name suffix with + * `Filter`. + * + * ```js + * it('should be the same instance', inject( + * function($filterProvider) { + * $filterProvider.register('reverse', function(){ + * return ...; + * }); + * }, + * function($filter, reverseFilter) { + * expect($filter('reverse')).toBe(reverseFilter); + * }); + * ``` + * + * + * For more information about how angular filters work, and how to create your own filters, see + * {@link guide/filter Filters} in the Angular Developer Guide. + */ + +/** + * @ngdoc service + * @name $filter + * @kind function + * @description + * Filters are used for formatting data displayed to the user. + * + * The general syntax in templates is as follows: + * + * {{ expression [| filter_name[:parameter_value] ... ] }} + * + * @param {String} name Name of the filter function to retrieve + * @return {Function} the filter function + * @example + + +
+

{{ originalText }}

+

{{ filteredText }}

+
+
+ + + angular.module('filterExample', []) + .controller('MainCtrl', function($scope, $filter) { + $scope.originalText = 'hello'; + $scope.filteredText = $filter('uppercase')($scope.originalText); + }); + +
+ */ +$FilterProvider.$inject = ['$provide']; +function $FilterProvider($provide) { + var suffix = 'Filter'; + + /** + * @ngdoc method + * @name $filterProvider#register + * @param {string|Object} name Name of the filter function, or an object map of filters where + * the keys are the filter names and the values are the filter factories. + * + *
+ * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`. + * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace + * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores + * (`myapp_subsection_filterx`). + *
+ * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered. + * @returns {Object} Registered filter instance, or if a map of filters was provided then a map + * of the registered filter instances. + */ + function register(name, factory) { + if (isObject(name)) { + var filters = {}; + forEach(name, function(filter, key) { + filters[key] = register(key, filter); + }); + return filters; + } else { + return $provide.factory(name + suffix, factory); + } + } + this.register = register; + + this.$get = ['$injector', function($injector) { + return function(name) { + return $injector.get(name + suffix); + }; + }]; + + //////////////////////////////////////// + + /* global + currencyFilter: false, + dateFilter: false, + filterFilter: false, + jsonFilter: false, + limitToFilter: false, + lowercaseFilter: false, + numberFilter: false, + orderByFilter: false, + uppercaseFilter: false, + */ + + register('currency', currencyFilter); + register('date', dateFilter); + register('filter', filterFilter); + register('json', jsonFilter); + register('limitTo', limitToFilter); + register('lowercase', lowercaseFilter); + register('number', numberFilter); + register('orderBy', orderByFilter); + register('uppercase', uppercaseFilter); +} + +/** + * @ngdoc filter + * @name filter + * @kind function + * + * @description + * Selects a subset of items from `array` and returns it as a new array. + * + * @param {Array} array The source array. + * @param {string|Object|function()} expression The predicate to be used for selecting items from + * `array`. + * + * Can be one of: + * + * - `string`: The string is used for matching against the contents of the `array`. All strings or + * objects with string properties in `array` that match this string will be returned. This also + * applies to nested object properties. + * The predicate can be negated by prefixing the string with `!`. + * + * - `Object`: A pattern object can be used to filter specific properties on objects contained + * by `array`. For example `{name:"M", phone:"1"}` predicate will return an array of items + * which have property `name` containing "M" and property `phone` containing "1". A special + * property name `$` can be used (as in `{$:"text"}`) to accept a match against any + * property of the object or its nested object properties. That's equivalent to the simple + * substring match with a `string` as described above. The predicate can be negated by prefixing + * the string with `!`. + * For example `{name: "!M"}` predicate will return an array of items which have property `name` + * not containing "M". + * + * Note that a named property will match properties on the same level only, while the special + * `$` property will match properties on the same level or deeper. E.g. an array item like + * `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but + * **will** be matched by `{$: 'John'}`. + * + * - `function(value, index, array)`: A predicate function can be used to write arbitrary filters. + * The function is called for each element of the array, with the element, its index, and + * the entire array itself as arguments. + * + * The final result is an array of those elements that the predicate returned true for. + * + * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in + * determining if the expected value (from the filter expression) and actual value (from + * the object in the array) should be considered a match. + * + * Can be one of: + * + * - `function(actual, expected)`: + * The function will be given the object value and the predicate value to compare and + * should return true if both values should be considered equal. + * + * - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`. + * This is essentially strict comparison of expected and actual. + * + * - `false|undefined`: A short hand for a function which will look for a substring match in case + * insensitive way. + * + * Primitive values are converted to strings. Objects are not compared against primitives, + * unless they have a custom `toString` method (e.g. `Date` objects). + * + * @example + + +
+ + + + + + + + +
NamePhone
{{friend.name}}{{friend.phone}}
+
+
+
+
+
+ + + + + + +
NamePhone
{{friendObj.name}}{{friendObj.phone}}
+
+ + var expectFriendNames = function(expectedNames, key) { + element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) { + arr.forEach(function(wd, i) { + expect(wd.getText()).toMatch(expectedNames[i]); + }); + }); + }; + + it('should search across all fields when filtering with a string', function() { + var searchText = element(by.model('searchText')); + searchText.clear(); + searchText.sendKeys('m'); + expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend'); + + searchText.clear(); + searchText.sendKeys('76'); + expectFriendNames(['John', 'Julie'], 'friend'); + }); + + it('should search in specific fields when filtering with a predicate object', function() { + var searchAny = element(by.model('search.$')); + searchAny.clear(); + searchAny.sendKeys('i'); + expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj'); + }); + it('should use a equal comparison when comparator is true', function() { + var searchName = element(by.model('search.name')); + var strict = element(by.model('strict')); + searchName.clear(); + searchName.sendKeys('Julie'); + strict.click(); + expectFriendNames(['Julie'], 'friendObj'); + }); + +
+ */ +function filterFilter() { + return function(array, expression, comparator) { + if (!isArrayLike(array)) { + if (array == null) { + return array; + } else { + throw minErr('filter')('notarray', 'Expected array but received: {0}', array); + } + } + + var expressionType = getTypeForFilter(expression); + var predicateFn; + var matchAgainstAnyProp; + + switch (expressionType) { + case 'function': + predicateFn = expression; + break; + case 'boolean': + case 'null': + case 'number': + case 'string': + matchAgainstAnyProp = true; + //jshint -W086 + case 'object': + //jshint +W086 + predicateFn = createPredicateFn(expression, comparator, matchAgainstAnyProp); + break; + default: + return array; + } + + return Array.prototype.filter.call(array, predicateFn); + }; +} + +// Helper functions for `filterFilter` +function createPredicateFn(expression, comparator, matchAgainstAnyProp) { + var shouldMatchPrimitives = isObject(expression) && ('$' in expression); + var predicateFn; + + if (comparator === true) { + comparator = equals; + } else if (!isFunction(comparator)) { + comparator = function(actual, expected) { + if (isUndefined(actual)) { + // No substring matching against `undefined` + return false; + } + if ((actual === null) || (expected === null)) { + // No substring matching against `null`; only match against `null` + return actual === expected; + } + if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) { + // Should not compare primitives against objects, unless they have custom `toString` method + return false; + } + + actual = lowercase('' + actual); + expected = lowercase('' + expected); + return actual.indexOf(expected) !== -1; + }; + } + + predicateFn = function(item) { + if (shouldMatchPrimitives && !isObject(item)) { + return deepCompare(item, expression.$, comparator, false); + } + return deepCompare(item, expression, comparator, matchAgainstAnyProp); + }; + + return predicateFn; +} + +function deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) { + var actualType = getTypeForFilter(actual); + var expectedType = getTypeForFilter(expected); + + if ((expectedType === 'string') && (expected.charAt(0) === '!')) { + return !deepCompare(actual, expected.substring(1), comparator, matchAgainstAnyProp); + } else if (isArray(actual)) { + // In case `actual` is an array, consider it a match + // if ANY of it's items matches `expected` + return actual.some(function(item) { + return deepCompare(item, expected, comparator, matchAgainstAnyProp); + }); + } + + switch (actualType) { + case 'object': + var key; + if (matchAgainstAnyProp) { + for (key in actual) { + if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, true)) { + return true; + } + } + return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, false); + } else if (expectedType === 'object') { + for (key in expected) { + var expectedVal = expected[key]; + if (isFunction(expectedVal) || isUndefined(expectedVal)) { + continue; + } + + var matchAnyProperty = key === '$'; + var actualVal = matchAnyProperty ? actual : actual[key]; + if (!deepCompare(actualVal, expectedVal, comparator, matchAnyProperty, matchAnyProperty)) { + return false; + } + } + return true; + } else { + return comparator(actual, expected); + } + break; + case 'function': + return false; + default: + return comparator(actual, expected); + } +} + +// Used for easily differentiating between `null` and actual `object` +function getTypeForFilter(val) { + return (val === null) ? 'null' : typeof val; +} + +/** + * @ngdoc filter + * @name currency + * @kind function + * + * @description + * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default + * symbol for current locale is used. + * + * @param {number} amount Input to filter. + * @param {string=} symbol Currency symbol or identifier to be displayed. + * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale + * @returns {string} Formatted number. + * + * + * @example + + + +
+
+ default currency symbol ($): {{amount | currency}}
+ custom currency identifier (USD$): {{amount | currency:"USD$"}} + no fractions (0): {{amount | currency:"USD$":0}} +
+
+ + it('should init with 1234.56', function() { + expect(element(by.id('currency-default')).getText()).toBe('$1,234.56'); + expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56'); + expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235'); + }); + it('should update', function() { + if (browser.params.browser == 'safari') { + // Safari does not understand the minus key. See + // https://github.com/angular/protractor/issues/481 + return; + } + element(by.model('amount')).clear(); + element(by.model('amount')).sendKeys('-1234'); + expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00'); + expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00'); + expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234'); + }); + +
+ */ +currencyFilter.$inject = ['$locale']; +function currencyFilter($locale) { + var formats = $locale.NUMBER_FORMATS; + return function(amount, currencySymbol, fractionSize) { + if (isUndefined(currencySymbol)) { + currencySymbol = formats.CURRENCY_SYM; + } + + if (isUndefined(fractionSize)) { + fractionSize = formats.PATTERNS[1].maxFrac; + } + + // if null or undefined pass it through + return (amount == null) + ? amount + : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize). + replace(/\u00A4/g, currencySymbol); + }; +} + +/** + * @ngdoc filter + * @name number + * @kind function + * + * @description + * Formats a number as text. + * + * If the input is null or undefined, it will just be returned. + * If the input is infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned. + * If the input is not a number an empty string is returned. + * + * + * @param {number|string} number Number to format. + * @param {(number|string)=} fractionSize Number of decimal places to round the number to. + * If this is not provided then the fraction size is computed from the current locale's number + * formatting pattern. In the case of the default locale, it will be 3. + * @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit. + * + * @example + + + +
+
+ Default formatting: {{val | number}}
+ No fractions: {{val | number:0}}
+ Negative number: {{-val | number:4}} +
+
+ + it('should format numbers', function() { + expect(element(by.id('number-default')).getText()).toBe('1,234.568'); + expect(element(by.binding('val | number:0')).getText()).toBe('1,235'); + expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679'); + }); + + it('should update', function() { + element(by.model('val')).clear(); + element(by.model('val')).sendKeys('3374.333'); + expect(element(by.id('number-default')).getText()).toBe('3,374.333'); + expect(element(by.binding('val | number:0')).getText()).toBe('3,374'); + expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330'); + }); + +
+ */ + + +numberFilter.$inject = ['$locale']; +function numberFilter($locale) { + var formats = $locale.NUMBER_FORMATS; + return function(number, fractionSize) { + + // if null or undefined pass it through + return (number == null) + ? number + : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP, + fractionSize); + }; +} + +var DECIMAL_SEP = '.'; +function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) { + if (isObject(number)) return ''; + + var isNegative = number < 0; + number = Math.abs(number); + + var isInfinity = number === Infinity; + if (!isInfinity && !isFinite(number)) return ''; + + var numStr = number + '', + formatedText = '', + hasExponent = false, + parts = []; + + if (isInfinity) formatedText = '\u221e'; + + if (!isInfinity && numStr.indexOf('e') !== -1) { + var match = numStr.match(/([\d\.]+)e(-?)(\d+)/); + if (match && match[2] == '-' && match[3] > fractionSize + 1) { + number = 0; + } else { + formatedText = numStr; + hasExponent = true; + } + } + + if (!isInfinity && !hasExponent) { + var fractionLen = (numStr.split(DECIMAL_SEP)[1] || '').length; + + // determine fractionSize if it is not specified + if (isUndefined(fractionSize)) { + fractionSize = Math.min(Math.max(pattern.minFrac, fractionLen), pattern.maxFrac); + } + + // safely round numbers in JS without hitting imprecisions of floating-point arithmetics + // inspired by: + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round + number = +(Math.round(+(number.toString() + 'e' + fractionSize)).toString() + 'e' + -fractionSize); + + var fraction = ('' + number).split(DECIMAL_SEP); + var whole = fraction[0]; + fraction = fraction[1] || ''; + + var i, pos = 0, + lgroup = pattern.lgSize, + group = pattern.gSize; + + if (whole.length >= (lgroup + group)) { + pos = whole.length - lgroup; + for (i = 0; i < pos; i++) { + if ((pos - i) % group === 0 && i !== 0) { + formatedText += groupSep; + } + formatedText += whole.charAt(i); + } + } + + for (i = pos; i < whole.length; i++) { + if ((whole.length - i) % lgroup === 0 && i !== 0) { + formatedText += groupSep; + } + formatedText += whole.charAt(i); + } + + // format fraction part. + while (fraction.length < fractionSize) { + fraction += '0'; + } + + if (fractionSize && fractionSize !== "0") formatedText += decimalSep + fraction.substr(0, fractionSize); + } else { + if (fractionSize > 0 && number < 1) { + formatedText = number.toFixed(fractionSize); + number = parseFloat(formatedText); + formatedText = formatedText.replace(DECIMAL_SEP, decimalSep); + } + } + + if (number === 0) { + isNegative = false; + } + + parts.push(isNegative ? pattern.negPre : pattern.posPre, + formatedText, + isNegative ? pattern.negSuf : pattern.posSuf); + return parts.join(''); +} + +function padNumber(num, digits, trim) { + var neg = ''; + if (num < 0) { + neg = '-'; + num = -num; + } + num = '' + num; + while (num.length < digits) num = '0' + num; + if (trim) { + num = num.substr(num.length - digits); + } + return neg + num; +} + + +function dateGetter(name, size, offset, trim) { + offset = offset || 0; + return function(date) { + var value = date['get' + name](); + if (offset > 0 || value > -offset) { + value += offset; + } + if (value === 0 && offset == -12) value = 12; + return padNumber(value, size, trim); + }; +} + +function dateStrGetter(name, shortForm) { + return function(date, formats) { + var value = date['get' + name](); + var get = uppercase(shortForm ? ('SHORT' + name) : name); + + return formats[get][value]; + }; +} + +function timeZoneGetter(date, formats, offset) { + var zone = -1 * offset; + var paddedZone = (zone >= 0) ? "+" : ""; + + paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) + + padNumber(Math.abs(zone % 60), 2); + + return paddedZone; +} + +function getFirstThursdayOfYear(year) { + // 0 = index of January + var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay(); + // 4 = index of Thursday (+1 to account for 1st = 5) + // 11 = index of *next* Thursday (+1 account for 1st = 12) + return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst); +} + +function getThursdayThisWeek(datetime) { + return new Date(datetime.getFullYear(), datetime.getMonth(), + // 4 = index of Thursday + datetime.getDate() + (4 - datetime.getDay())); +} + +function weekGetter(size) { + return function(date) { + var firstThurs = getFirstThursdayOfYear(date.getFullYear()), + thisThurs = getThursdayThisWeek(date); + + var diff = +thisThurs - +firstThurs, + result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week + + return padNumber(result, size); + }; +} + +function ampmGetter(date, formats) { + return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1]; +} + +function eraGetter(date, formats) { + return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1]; +} + +function longEraGetter(date, formats) { + return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1]; +} + +var DATE_FORMATS = { + yyyy: dateGetter('FullYear', 4), + yy: dateGetter('FullYear', 2, 0, true), + y: dateGetter('FullYear', 1), + MMMM: dateStrGetter('Month'), + MMM: dateStrGetter('Month', true), + MM: dateGetter('Month', 2, 1), + M: dateGetter('Month', 1, 1), + dd: dateGetter('Date', 2), + d: dateGetter('Date', 1), + HH: dateGetter('Hours', 2), + H: dateGetter('Hours', 1), + hh: dateGetter('Hours', 2, -12), + h: dateGetter('Hours', 1, -12), + mm: dateGetter('Minutes', 2), + m: dateGetter('Minutes', 1), + ss: dateGetter('Seconds', 2), + s: dateGetter('Seconds', 1), + // while ISO 8601 requires fractions to be prefixed with `.` or `,` + // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions + sss: dateGetter('Milliseconds', 3), + EEEE: dateStrGetter('Day'), + EEE: dateStrGetter('Day', true), + a: ampmGetter, + Z: timeZoneGetter, + ww: weekGetter(2), + w: weekGetter(1), + G: eraGetter, + GG: eraGetter, + GGG: eraGetter, + GGGG: longEraGetter +}; + +var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/, + NUMBER_STRING = /^\-?\d+$/; + +/** + * @ngdoc filter + * @name date + * @kind function + * + * @description + * Formats `date` to a string based on the requested `format`. + * + * `format` string can be composed of the following elements: + * + * * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010) + * * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10) + * * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199) + * * `'MMMM'`: Month in year (January-December) + * * `'MMM'`: Month in year (Jan-Dec) + * * `'MM'`: Month in year, padded (01-12) + * * `'M'`: Month in year (1-12) + * * `'dd'`: Day in month, padded (01-31) + * * `'d'`: Day in month (1-31) + * * `'EEEE'`: Day in Week,(Sunday-Saturday) + * * `'EEE'`: Day in Week, (Sun-Sat) + * * `'HH'`: Hour in day, padded (00-23) + * * `'H'`: Hour in day (0-23) + * * `'hh'`: Hour in AM/PM, padded (01-12) + * * `'h'`: Hour in AM/PM, (1-12) + * * `'mm'`: Minute in hour, padded (00-59) + * * `'m'`: Minute in hour (0-59) + * * `'ss'`: Second in minute, padded (00-59) + * * `'s'`: Second in minute (0-59) + * * `'sss'`: Millisecond in second, padded (000-999) + * * `'a'`: AM/PM marker + * * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200) + * * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year + * * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year + * * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD') + * * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini') + * + * `format` string can also be one of the following predefined + * {@link guide/i18n localizable formats}: + * + * * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale + * (e.g. Sep 3, 2010 12:05:08 PM) + * * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 PM) + * * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US locale + * (e.g. Friday, September 3, 2010) + * * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010) + * * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010) + * * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10) + * * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM) + * * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM) + * + * `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g. + * `"h 'in the morning'"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence + * (e.g. `"h 'o''clock'"`). + * + * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or + * number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its + * shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is + * specified in the string input, the time is considered to be in the local timezone. + * @param {string=} format Formatting rules (see Description). If not specified, + * `mediumDate` is used. + * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the + * continental US time zone abbreviations, but for general use, use a time zone offset, for + * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian) + * If not specified, the timezone of the browser will be used. + * @returns {string} Formatted string or the input if input is not recognized as date/millis. + * + * @example + + + {{1288323623006 | date:'medium'}}: + {{1288323623006 | date:'medium'}}
+ {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: + {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
+ {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: + {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
+ {{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}: + {{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}
+
+ + it('should format date', function() { + expect(element(by.binding("1288323623006 | date:'medium'")).getText()). + toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/); + expect(element(by.binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).getText()). + toMatch(/2010\-10\-2\d \d{2}:\d{2}:\d{2} (\-|\+)?\d{4}/); + expect(element(by.binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).getText()). + toMatch(/10\/2\d\/2010 @ \d{1,2}:\d{2}(AM|PM)/); + expect(element(by.binding("'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"")).getText()). + toMatch(/10\/2\d\/2010 at \d{1,2}:\d{2}(AM|PM)/); + }); + +
+ */ +dateFilter.$inject = ['$locale']; +function dateFilter($locale) { + + + var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/; + // 1 2 3 4 5 6 7 8 9 10 11 + function jsonStringToDate(string) { + var match; + if (match = string.match(R_ISO8601_STR)) { + var date = new Date(0), + tzHour = 0, + tzMin = 0, + dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear, + timeSetter = match[8] ? date.setUTCHours : date.setHours; + + if (match[9]) { + tzHour = toInt(match[9] + match[10]); + tzMin = toInt(match[9] + match[11]); + } + dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3])); + var h = toInt(match[4] || 0) - tzHour; + var m = toInt(match[5] || 0) - tzMin; + var s = toInt(match[6] || 0); + var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000); + timeSetter.call(date, h, m, s, ms); + return date; + } + return string; + } + + + return function(date, format, timezone) { + var text = '', + parts = [], + fn, match; + + format = format || 'mediumDate'; + format = $locale.DATETIME_FORMATS[format] || format; + if (isString(date)) { + date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date); + } + + if (isNumber(date)) { + date = new Date(date); + } + + if (!isDate(date) || !isFinite(date.getTime())) { + return date; + } + + while (format) { + match = DATE_FORMATS_SPLIT.exec(format); + if (match) { + parts = concat(parts, match, 1); + format = parts.pop(); + } else { + parts.push(format); + format = null; + } + } + + var dateTimezoneOffset = date.getTimezoneOffset(); + if (timezone) { + dateTimezoneOffset = timezoneToOffset(timezone, date.getTimezoneOffset()); + date = convertTimezoneToLocal(date, timezone, true); + } + forEach(parts, function(value) { + fn = DATE_FORMATS[value]; + text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset) + : value.replace(/(^'|'$)/g, '').replace(/''/g, "'"); + }); + + return text; + }; +} + + +/** + * @ngdoc filter + * @name json + * @kind function + * + * @description + * Allows you to convert a JavaScript object into JSON string. + * + * This filter is mostly useful for debugging. When using the double curly {{value}} notation + * the binding is automatically converted to JSON. + * + * @param {*} object Any JavaScript object (including arrays and primitive types) to filter. + * @param {number=} spacing The number of spaces to use per indentation, defaults to 2. + * @returns {string} JSON string. + * + * + * @example + + +
{{ {'name':'value'} | json }}
+
{{ {'name':'value'} | json:4 }}
+
+ + it('should jsonify filtered objects', function() { + expect(element(by.id('default-spacing')).getText()).toMatch(/\{\n "name": ?"value"\n}/); + expect(element(by.id('custom-spacing')).getText()).toMatch(/\{\n "name": ?"value"\n}/); + }); + +
+ * + */ +function jsonFilter() { + return function(object, spacing) { + if (isUndefined(spacing)) { + spacing = 2; + } + return toJson(object, spacing); + }; +} + + +/** + * @ngdoc filter + * @name lowercase + * @kind function + * @description + * Converts string to lowercase. + * @see angular.lowercase + */ +var lowercaseFilter = valueFn(lowercase); + + +/** + * @ngdoc filter + * @name uppercase + * @kind function + * @description + * Converts string to uppercase. + * @see angular.uppercase + */ +var uppercaseFilter = valueFn(uppercase); + +/** + * @ngdoc filter + * @name limitTo + * @kind function + * + * @description + * Creates a new array or string containing only a specified number of elements. The elements + * are taken from either the beginning or the end of the source array, string or number, as specified by + * the value and sign (positive or negative) of `limit`. If a number is used as input, it is + * converted to a string. + * + * @param {Array|string|number} input Source array, string or number to be limited. + * @param {string|number} limit The length of the returned array or string. If the `limit` number + * is positive, `limit` number of items from the beginning of the source array/string are copied. + * If the number is negative, `limit` number of items from the end of the source array/string + * are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined, + * the input will be returned unchanged. + * @param {(string|number)=} begin Index at which to begin limitation. As a negative index, `begin` + * indicates an offset from the end of `input`. Defaults to `0`. + * @returns {Array|string} A new sub-array or substring of length `limit` or less if input array + * had less than `limit` elements. + * + * @example + + + +
+ +

Output numbers: {{ numbers | limitTo:numLimit }}

+ +

Output letters: {{ letters | limitTo:letterLimit }}

+ +

Output long number: {{ longNumber | limitTo:longNumberLimit }}

+
+
+ + var numLimitInput = element(by.model('numLimit')); + var letterLimitInput = element(by.model('letterLimit')); + var longNumberLimitInput = element(by.model('longNumberLimit')); + var limitedNumbers = element(by.binding('numbers | limitTo:numLimit')); + var limitedLetters = element(by.binding('letters | limitTo:letterLimit')); + var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit')); + + it('should limit the number array to first three items', function() { + expect(numLimitInput.getAttribute('value')).toBe('3'); + expect(letterLimitInput.getAttribute('value')).toBe('3'); + expect(longNumberLimitInput.getAttribute('value')).toBe('3'); + expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]'); + expect(limitedLetters.getText()).toEqual('Output letters: abc'); + expect(limitedLongNumber.getText()).toEqual('Output long number: 234'); + }); + + // There is a bug in safari and protractor that doesn't like the minus key + // it('should update the output when -3 is entered', function() { + // numLimitInput.clear(); + // numLimitInput.sendKeys('-3'); + // letterLimitInput.clear(); + // letterLimitInput.sendKeys('-3'); + // longNumberLimitInput.clear(); + // longNumberLimitInput.sendKeys('-3'); + // expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]'); + // expect(limitedLetters.getText()).toEqual('Output letters: ghi'); + // expect(limitedLongNumber.getText()).toEqual('Output long number: 342'); + // }); + + it('should not exceed the maximum size of input array', function() { + numLimitInput.clear(); + numLimitInput.sendKeys('100'); + letterLimitInput.clear(); + letterLimitInput.sendKeys('100'); + longNumberLimitInput.clear(); + longNumberLimitInput.sendKeys('100'); + expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]'); + expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi'); + expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342'); + }); + +
+*/ +function limitToFilter() { + return function(input, limit, begin) { + if (Math.abs(Number(limit)) === Infinity) { + limit = Number(limit); + } else { + limit = toInt(limit); + } + if (isNaN(limit)) return input; + + if (isNumber(input)) input = input.toString(); + if (!isArray(input) && !isString(input)) return input; + + begin = (!begin || isNaN(begin)) ? 0 : toInt(begin); + begin = (begin < 0 && begin >= -input.length) ? input.length + begin : begin; + + if (limit >= 0) { + return input.slice(begin, begin + limit); + } else { + if (begin === 0) { + return input.slice(limit, input.length); + } else { + return input.slice(Math.max(0, begin + limit), begin); + } + } + }; +} + +/** + * @ngdoc filter + * @name orderBy + * @kind function + * + * @description + * Orders a specified `array` by the `expression` predicate. It is ordered alphabetically + * for strings and numerically for numbers. Note: if you notice numbers are not being sorted + * as expected, make sure they are actually being saved as numbers and not strings. + * + * @param {Array} array The array to sort. + * @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be + * used by the comparator to determine the order of elements. + * + * Can be one of: + * + * - `function`: Getter function. The result of this function will be sorted using the + * `<`, `===`, `>` operator. + * - `string`: An Angular expression. The result of this expression is used to compare elements + * (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by + * 3 first characters of a property called `name`). The result of a constant expression + * is interpreted as a property name to be used in comparisons (for example `"special name"` + * to sort object by the value of their `special name` property). An expression can be + * optionally prefixed with `+` or `-` to control ascending or descending sort order + * (for example, `+name` or `-name`). If no property is provided, (e.g. `'+'`) then the array + * element itself is used to compare where sorting. + * - `Array`: An array of function or string predicates. The first predicate in the array + * is used for sorting, but when two items are equivalent, the next predicate is used. + * + * If the predicate is missing or empty then it defaults to `'+'`. + * + * @param {boolean=} reverse Reverse the order of the array. + * @returns {Array} Sorted copy of the source array. + * + * + * @example + * The example below demonstrates a simple ngRepeat, where the data is sorted + * by age in descending order (predicate is set to `'-age'`). + * `reverse` is not set, which means it defaults to `false`. + + + +
+ + + + + + + + + + + +
NamePhone NumberAge
{{friend.name}}{{friend.phone}}{{friend.age}}
+
+
+
+ * + * The predicate and reverse parameters can be controlled dynamically through scope properties, + * as shown in the next example. + * @example + + + + +
+
Sorting predicate = {{predicate}}; reverse = {{reverse}}
+
+ [ unsorted ] + + + + + + + + + + + +
+ Name + + + Phone Number + + + Age + +
{{friend.name}}{{friend.phone}}{{friend.age}}
+
+
+
+ * + * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the + * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the + * desired parameters. + * + * Example: + * + * @example + + +
+ + + + + + + + + + + +
Name + (^)Phone NumberAge
{{friend.name}}{{friend.phone}}{{friend.age}}
+
+
+ + + angular.module('orderByExample', []) + .controller('ExampleController', ['$scope', '$filter', function($scope, $filter) { + var orderBy = $filter('orderBy'); + $scope.friends = [ + { name: 'John', phone: '555-1212', age: 10 }, + { name: 'Mary', phone: '555-9876', age: 19 }, + { name: 'Mike', phone: '555-4321', age: 21 }, + { name: 'Adam', phone: '555-5678', age: 35 }, + { name: 'Julie', phone: '555-8765', age: 29 } + ]; + $scope.order = function(predicate, reverse) { + $scope.friends = orderBy($scope.friends, predicate, reverse); + }; + $scope.order('-age',false); + }]); + +
+ */ +orderByFilter.$inject = ['$parse']; +function orderByFilter($parse) { + return function(array, sortPredicate, reverseOrder) { + + if (!(isArrayLike(array))) return array; + + if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; } + if (sortPredicate.length === 0) { sortPredicate = ['+']; } + + var predicates = processPredicates(sortPredicate, reverseOrder); + // Add a predicate at the end that evaluates to the element index. This makes the + // sort stable as it works as a tie-breaker when all the input predicates cannot + // distinguish between two elements. + predicates.push({ get: function() { return {}; }, descending: reverseOrder ? -1 : 1}); + + // The next three lines are a version of a Swartzian Transform idiom from Perl + // (sometimes called the Decorate-Sort-Undecorate idiom) + // See https://en.wikipedia.org/wiki/Schwartzian_transform + var compareValues = Array.prototype.map.call(array, getComparisonObject); + compareValues.sort(doComparison); + array = compareValues.map(function(item) { return item.value; }); + + return array; + + function getComparisonObject(value, index) { + return { + value: value, + predicateValues: predicates.map(function(predicate) { + return getPredicateValue(predicate.get(value), index); + }) + }; + } + + function doComparison(v1, v2) { + var result = 0; + for (var index=0, length = predicates.length; index < length; ++index) { + result = compare(v1.predicateValues[index], v2.predicateValues[index]) * predicates[index].descending; + if (result) break; + } + return result; + } + }; + + function processPredicates(sortPredicate, reverseOrder) { + reverseOrder = reverseOrder ? -1 : 1; + return sortPredicate.map(function(predicate) { + var descending = 1, get = identity; + + if (isFunction(predicate)) { + get = predicate; + } else if (isString(predicate)) { + if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) { + descending = predicate.charAt(0) == '-' ? -1 : 1; + predicate = predicate.substring(1); + } + if (predicate !== '') { + get = $parse(predicate); + if (get.constant) { + var key = get(); + get = function(value) { return value[key]; }; + } + } + } + return { get: get, descending: descending * reverseOrder }; + }); + } + + function isPrimitive(value) { + switch (typeof value) { + case 'number': /* falls through */ + case 'boolean': /* falls through */ + case 'string': + return true; + default: + return false; + } + } + + function objectValue(value, index) { + // If `valueOf` is a valid function use that + if (typeof value.valueOf === 'function') { + value = value.valueOf(); + if (isPrimitive(value)) return value; + } + // If `toString` is a valid function and not the one from `Object.prototype` use that + if (hasCustomToString(value)) { + value = value.toString(); + if (isPrimitive(value)) return value; + } + // We have a basic object so we use the position of the object in the collection + return index; + } + + function getPredicateValue(value, index) { + var type = typeof value; + if (value === null) { + type = 'string'; + value = 'null'; + } else if (type === 'string') { + value = value.toLowerCase(); + } else if (type === 'object') { + value = objectValue(value, index); + } + return { value: value, type: type }; + } + + function compare(v1, v2) { + var result = 0; + if (v1.type === v2.type) { + if (v1.value !== v2.value) { + result = v1.value < v2.value ? -1 : 1; + } + } else { + result = v1.type < v2.type ? -1 : 1; + } + return result; + } +} + +function ngDirective(directive) { + if (isFunction(directive)) { + directive = { + link: directive + }; + } + directive.restrict = directive.restrict || 'AC'; + return valueFn(directive); +} + +/** + * @ngdoc directive + * @name a + * @restrict E + * + * @description + * Modifies the default behavior of the html A tag so that the default action is prevented when + * the href attribute is empty. + * + * This change permits the easy creation of action links with the `ngClick` directive + * without changing the location or causing page reloads, e.g.: + * `Add Item` + */ +var htmlAnchorDirective = valueFn({ + restrict: 'E', + compile: function(element, attr) { + if (!attr.href && !attr.xlinkHref) { + return function(scope, element) { + // If the linked element is not an anchor tag anymore, do nothing + if (element[0].nodeName.toLowerCase() !== 'a') return; + + // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute. + var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ? + 'xlink:href' : 'href'; + element.on('click', function(event) { + // if we have no href url, then don't navigate anywhere. + if (!element.attr(href)) { + event.preventDefault(); + } + }); + }; + } + } +}); + +/** + * @ngdoc directive + * @name ngHref + * @restrict A + * @priority 99 + * + * @description + * Using Angular markup like `{{hash}}` in an href attribute will + * make the link go to the wrong URL if the user clicks it before + * Angular has a chance to replace the `{{hash}}` markup with its + * value. Until Angular replaces the markup the link will be broken + * and will most likely return a 404 error. The `ngHref` directive + * solves this problem. + * + * The wrong way to write it: + * ```html + * link1 + * ``` + * + * The correct way to write it: + * ```html + * link1 + * ``` + * + * @element A + * @param {template} ngHref any string which can contain `{{}}` markup. + * + * @example + * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes + * in links and their different behaviors: + + +
+ link 1 (link, don't reload)
+ link 2 (link, don't reload)
+ link 3 (link, reload!)
+ anchor (link, don't reload)
+ anchor (no link)
+ link (link, change location) +
+ + it('should execute ng-click but not reload when href without value', function() { + element(by.id('link-1')).click(); + expect(element(by.model('value')).getAttribute('value')).toEqual('1'); + expect(element(by.id('link-1')).getAttribute('href')).toBe(''); + }); + + it('should execute ng-click but not reload when href empty string', function() { + element(by.id('link-2')).click(); + expect(element(by.model('value')).getAttribute('value')).toEqual('2'); + expect(element(by.id('link-2')).getAttribute('href')).toBe(''); + }); + + it('should execute ng-click and change url when ng-href specified', function() { + expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\/123$/); + + element(by.id('link-3')).click(); + + // At this point, we navigate away from an Angular page, so we need + // to use browser.driver to get the base webdriver. + + browser.wait(function() { + return browser.driver.getCurrentUrl().then(function(url) { + return url.match(/\/123$/); + }); + }, 5000, 'page should navigate to /123'); + }); + + it('should execute ng-click but not reload when href empty string and name specified', function() { + element(by.id('link-4')).click(); + expect(element(by.model('value')).getAttribute('value')).toEqual('4'); + expect(element(by.id('link-4')).getAttribute('href')).toBe(''); + }); + + it('should execute ng-click but not reload when no href but name specified', function() { + element(by.id('link-5')).click(); + expect(element(by.model('value')).getAttribute('value')).toEqual('5'); + expect(element(by.id('link-5')).getAttribute('href')).toBe(null); + }); + + it('should only change url when only ng-href', function() { + element(by.model('value')).clear(); + element(by.model('value')).sendKeys('6'); + expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/); + + element(by.id('link-6')).click(); + + // At this point, we navigate away from an Angular page, so we need + // to use browser.driver to get the base webdriver. + browser.wait(function() { + return browser.driver.getCurrentUrl().then(function(url) { + return url.match(/\/6$/); + }); + }, 5000, 'page should navigate to /6'); + }); + +
+ */ + +/** + * @ngdoc directive + * @name ngSrc + * @restrict A + * @priority 99 + * + * @description + * Using Angular markup like `{{hash}}` in a `src` attribute doesn't + * work right: The browser will fetch from the URL with the literal + * text `{{hash}}` until Angular replaces the expression inside + * `{{hash}}`. The `ngSrc` directive solves this problem. + * + * The buggy way to write it: + * ```html + * Description + * ``` + * + * The correct way to write it: + * ```html + * Description + * ``` + * + * @element IMG + * @param {template} ngSrc any string which can contain `{{}}` markup. + */ + +/** + * @ngdoc directive + * @name ngSrcset + * @restrict A + * @priority 99 + * + * @description + * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't + * work right: The browser will fetch from the URL with the literal + * text `{{hash}}` until Angular replaces the expression inside + * `{{hash}}`. The `ngSrcset` directive solves this problem. + * + * The buggy way to write it: + * ```html + * Description + * ``` + * + * The correct way to write it: + * ```html + * Description + * ``` + * + * @element IMG + * @param {template} ngSrcset any string which can contain `{{}}` markup. + */ + +/** + * @ngdoc directive + * @name ngDisabled + * @restrict A + * @priority 100 + * + * @description + * + * This directive sets the `disabled` attribute on the element if the + * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy. + * + * A special directive is necessary because we cannot use interpolation inside the `disabled` + * attribute. The following example would make the button enabled on Chrome/Firefox + * but not on older IEs: + * + * ```html + * + *
+ * + *
+ * ``` + * + * This is because the HTML specification does not require browsers to preserve the values of + * boolean attributes such as `disabled` (Their presence means true and their absence means false.) + * If we put an Angular interpolation expression into such an attribute then the + * binding information would be lost when the browser removes the attribute. + * + * @example + + +
+ +
+ + it('should toggle button', function() { + expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy(); + element(by.model('checked')).click(); + expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy(); + }); + +
+ * + * @element INPUT + * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy, + * then the `disabled` attribute will be set on the element + */ + + +/** + * @ngdoc directive + * @name ngChecked + * @restrict A + * @priority 100 + * + * @description + * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy. + * + * Note that this directive should not be used together with {@link ngModel `ngModel`}, + * as this can lead to unexpected behavior. + * + * ### Why do we need `ngChecked`? + * + * The HTML specification does not require browsers to preserve the values of boolean attributes + * such as checked. (Their presence means true and their absence means false.) + * If we put an Angular interpolation expression into such an attribute then the + * binding information would be lost when the browser removes the attribute. + * The `ngChecked` directive solves this problem for the `checked` attribute. + * This complementary directive is not removed by the browser and so provides + * a permanent reliable place to store the binding information. + * @example + + +
+ +
+ + it('should check both checkBoxes', function() { + expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy(); + element(by.model('master')).click(); + expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy(); + }); + +
+ * + * @element INPUT + * @param {expression} ngChecked If the {@link guide/expression expression} is truthy, + * then the `checked` attribute will be set on the element + */ + + +/** + * @ngdoc directive + * @name ngReadonly + * @restrict A + * @priority 100 + * + * @description + * The HTML specification does not require browsers to preserve the values of boolean attributes + * such as readonly. (Their presence means true and their absence means false.) + * If we put an Angular interpolation expression into such an attribute then the + * binding information would be lost when the browser removes the attribute. + * The `ngReadonly` directive solves this problem for the `readonly` attribute. + * This complementary directive is not removed by the browser and so provides + * a permanent reliable place to store the binding information. + * @example + + +
+ +
+ + it('should toggle readonly attr', function() { + expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy(); + element(by.model('checked')).click(); + expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy(); + }); + +
+ * + * @element INPUT + * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy, + * then special attribute "readonly" will be set on the element + */ + + +/** + * @ngdoc directive + * @name ngSelected + * @restrict A + * @priority 100 + * + * @description + * The HTML specification does not require browsers to preserve the values of boolean attributes + * such as selected. (Their presence means true and their absence means false.) + * If we put an Angular interpolation expression into such an attribute then the + * binding information would be lost when the browser removes the attribute. + * The `ngSelected` directive solves this problem for the `selected` attribute. + * This complementary directive is not removed by the browser and so provides + * a permanent reliable place to store the binding information. + * + * @example + + +
+ +
+ + it('should select Greetings!', function() { + expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy(); + element(by.model('selected')).click(); + expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy(); + }); + +
+ * + * @element OPTION + * @param {expression} ngSelected If the {@link guide/expression expression} is truthy, + * then special attribute "selected" will be set on the element + */ + +/** + * @ngdoc directive + * @name ngOpen + * @restrict A + * @priority 100 + * + * @description + * The HTML specification does not require browsers to preserve the values of boolean attributes + * such as open. (Their presence means true and their absence means false.) + * If we put an Angular interpolation expression into such an attribute then the + * binding information would be lost when the browser removes the attribute. + * The `ngOpen` directive solves this problem for the `open` attribute. + * This complementary directive is not removed by the browser and so provides + * a permanent reliable place to store the binding information. + * @example + + +
+
+ Show/Hide me +
+
+ + it('should toggle open', function() { + expect(element(by.id('details')).getAttribute('open')).toBeFalsy(); + element(by.model('open')).click(); + expect(element(by.id('details')).getAttribute('open')).toBeTruthy(); + }); + +
+ * + * @element DETAILS + * @param {expression} ngOpen If the {@link guide/expression expression} is truthy, + * then special attribute "open" will be set on the element + */ + +var ngAttributeAliasDirectives = {}; + +// boolean attrs are evaluated +forEach(BOOLEAN_ATTR, function(propName, attrName) { + // binding to multiple is not supported + if (propName == "multiple") return; + + function defaultLinkFn(scope, element, attr) { + scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) { + attr.$set(attrName, !!value); + }); + } + + var normalized = directiveNormalize('ng-' + attrName); + var linkFn = defaultLinkFn; + + if (propName === 'checked') { + linkFn = function(scope, element, attr) { + // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input + if (attr.ngModel !== attr[normalized]) { + defaultLinkFn(scope, element, attr); + } + }; + } + + ngAttributeAliasDirectives[normalized] = function() { + return { + restrict: 'A', + priority: 100, + link: linkFn + }; + }; +}); + +// aliased input attrs are evaluated +forEach(ALIASED_ATTR, function(htmlAttr, ngAttr) { + ngAttributeAliasDirectives[ngAttr] = function() { + return { + priority: 100, + link: function(scope, element, attr) { + //special case ngPattern when a literal regular expression value + //is used as the expression (this way we don't have to watch anything). + if (ngAttr === "ngPattern" && attr.ngPattern.charAt(0) == "/") { + var match = attr.ngPattern.match(REGEX_STRING_REGEXP); + if (match) { + attr.$set("ngPattern", new RegExp(match[1], match[2])); + return; + } + } + + scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) { + attr.$set(ngAttr, value); + }); + } + }; + }; +}); + +// ng-src, ng-srcset, ng-href are interpolated +forEach(['src', 'srcset', 'href'], function(attrName) { + var normalized = directiveNormalize('ng-' + attrName); + ngAttributeAliasDirectives[normalized] = function() { + return { + priority: 99, // it needs to run after the attributes are interpolated + link: function(scope, element, attr) { + var propName = attrName, + name = attrName; + + if (attrName === 'href' && + toString.call(element.prop('href')) === '[object SVGAnimatedString]') { + name = 'xlinkHref'; + attr.$attr[name] = 'xlink:href'; + propName = null; + } + + attr.$observe(normalized, function(value) { + if (!value) { + if (attrName === 'href') { + attr.$set(name, null); + } + return; + } + + attr.$set(name, value); + + // on IE, if "ng:src" directive declaration is used and "src" attribute doesn't exist + // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need + // to set the property as well to achieve the desired effect. + // we use attr[attrName] value since $set can sanitize the url. + if (msie && propName) element.prop(propName, attr[name]); + }); + } + }; + }; +}); + +/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true + */ +var nullFormCtrl = { + $addControl: noop, + $$renameControl: nullFormRenameControl, + $removeControl: noop, + $setValidity: noop, + $setDirty: noop, + $setPristine: noop, + $setSubmitted: noop +}, +SUBMITTED_CLASS = 'ng-submitted'; + +function nullFormRenameControl(control, name) { + control.$name = name; +} + +/** + * @ngdoc type + * @name form.FormController + * + * @property {boolean} $pristine True if user has not interacted with the form yet. + * @property {boolean} $dirty True if user has already interacted with the form. + * @property {boolean} $valid True if all of the containing forms and controls are valid. + * @property {boolean} $invalid True if at least one containing control or form is invalid. + * @property {boolean} $pending True if at least one containing control or form is pending. + * @property {boolean} $submitted True if user has submitted the form even if its invalid. + * + * @property {Object} $error Is an object hash, containing references to controls or + * forms with failing validators, where: + * + * - keys are validation tokens (error names), + * - values are arrays of controls or forms that have a failing validator for given error name. + * + * Built-in validation tokens: + * + * - `email` + * - `max` + * - `maxlength` + * - `min` + * - `minlength` + * - `number` + * - `pattern` + * - `required` + * - `url` + * - `date` + * - `datetimelocal` + * - `time` + * - `week` + * - `month` + * + * @description + * `FormController` keeps track of all its controls and nested forms as well as the state of them, + * such as being valid/invalid or dirty/pristine. + * + * Each {@link ng.directive:form form} directive creates an instance + * of `FormController`. + * + */ +//asks for $scope to fool the BC controller module +FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate']; +function FormController(element, attrs, $scope, $animate, $interpolate) { + var form = this, + controls = []; + + // init state + form.$error = {}; + form.$$success = {}; + form.$pending = undefined; + form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope); + form.$dirty = false; + form.$pristine = true; + form.$valid = true; + form.$invalid = false; + form.$submitted = false; + form.$$parentForm = nullFormCtrl; + + /** + * @ngdoc method + * @name form.FormController#$rollbackViewValue + * + * @description + * Rollback all form controls pending updates to the `$modelValue`. + * + * Updates may be pending by a debounced event or because the input is waiting for a some future + * event defined in `ng-model-options`. This method is typically needed by the reset button of + * a form that uses `ng-model-options` to pend updates. + */ + form.$rollbackViewValue = function() { + forEach(controls, function(control) { + control.$rollbackViewValue(); + }); + }; + + /** + * @ngdoc method + * @name form.FormController#$commitViewValue + * + * @description + * Commit all form controls pending updates to the `$modelValue`. + * + * Updates may be pending by a debounced event or because the input is waiting for a some future + * event defined in `ng-model-options`. This method is rarely needed as `NgModelController` + * usually handles calling this in response to input events. + */ + form.$commitViewValue = function() { + forEach(controls, function(control) { + control.$commitViewValue(); + }); + }; + + /** + * @ngdoc method + * @name form.FormController#$addControl + * @param {object} control control object, either a {@link form.FormController} or an + * {@link ngModel.NgModelController} + * + * @description + * Register a control with the form. Input elements using ngModelController do this automatically + * when they are linked. + * + * Note that the current state of the control will not be reflected on the new parent form. This + * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine` + * state. + * + * However, if the method is used programmatically, for example by adding dynamically created controls, + * or controls that have been previously removed without destroying their corresponding DOM element, + * it's the developers responsiblity to make sure the current state propagates to the parent form. + * + * For example, if an input control is added that is already `$dirty` and has `$error` properties, + * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form. + */ + form.$addControl = function(control) { + // Breaking change - before, inputs whose name was "hasOwnProperty" were quietly ignored + // and not added to the scope. Now we throw an error. + assertNotHasOwnProperty(control.$name, 'input'); + controls.push(control); + + if (control.$name) { + form[control.$name] = control; + } + + control.$$parentForm = form; + }; + + // Private API: rename a form control + form.$$renameControl = function(control, newName) { + var oldName = control.$name; + + if (form[oldName] === control) { + delete form[oldName]; + } + form[newName] = control; + control.$name = newName; + }; + + /** + * @ngdoc method + * @name form.FormController#$removeControl + * @param {object} control control object, either a {@link form.FormController} or an + * {@link ngModel.NgModelController} + * + * @description + * Deregister a control from the form. + * + * Input elements using ngModelController do this automatically when they are destroyed. + * + * Note that only the removed control's validation state (`$errors`etc.) will be removed from the + * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be + * different from case to case. For example, removing the only `$dirty` control from a form may or + * may not mean that the form is still `$dirty`. + */ + form.$removeControl = function(control) { + if (control.$name && form[control.$name] === control) { + delete form[control.$name]; + } + forEach(form.$pending, function(value, name) { + form.$setValidity(name, null, control); + }); + forEach(form.$error, function(value, name) { + form.$setValidity(name, null, control); + }); + forEach(form.$$success, function(value, name) { + form.$setValidity(name, null, control); + }); + + arrayRemove(controls, control); + control.$$parentForm = nullFormCtrl; + }; + + + /** + * @ngdoc method + * @name form.FormController#$setValidity + * + * @description + * Sets the validity of a form control. + * + * This method will also propagate to parent forms. + */ + addSetValidityMethod({ + ctrl: this, + $element: element, + set: function(object, property, controller) { + var list = object[property]; + if (!list) { + object[property] = [controller]; + } else { + var index = list.indexOf(controller); + if (index === -1) { + list.push(controller); + } + } + }, + unset: function(object, property, controller) { + var list = object[property]; + if (!list) { + return; + } + arrayRemove(list, controller); + if (list.length === 0) { + delete object[property]; + } + }, + $animate: $animate + }); + + /** + * @ngdoc method + * @name form.FormController#$setDirty + * + * @description + * Sets the form to a dirty state. + * + * This method can be called to add the 'ng-dirty' class and set the form to a dirty + * state (ng-dirty class). This method will also propagate to parent forms. + */ + form.$setDirty = function() { + $animate.removeClass(element, PRISTINE_CLASS); + $animate.addClass(element, DIRTY_CLASS); + form.$dirty = true; + form.$pristine = false; + form.$$parentForm.$setDirty(); + }; + + /** + * @ngdoc method + * @name form.FormController#$setPristine + * + * @description + * Sets the form to its pristine state. + * + * This method can be called to remove the 'ng-dirty' class and set the form to its pristine + * state (ng-pristine class). This method will also propagate to all the controls contained + * in this form. + * + * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after + * saving or resetting it. + */ + form.$setPristine = function() { + $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS); + form.$dirty = false; + form.$pristine = true; + form.$submitted = false; + forEach(controls, function(control) { + control.$setPristine(); + }); + }; + + /** + * @ngdoc method + * @name form.FormController#$setUntouched + * + * @description + * Sets the form to its untouched state. + * + * This method can be called to remove the 'ng-touched' class and set the form controls to their + * untouched state (ng-untouched class). + * + * Setting a form controls back to their untouched state is often useful when setting the form + * back to its pristine state. + */ + form.$setUntouched = function() { + forEach(controls, function(control) { + control.$setUntouched(); + }); + }; + + /** + * @ngdoc method + * @name form.FormController#$setSubmitted + * + * @description + * Sets the form to its submitted state. + */ + form.$setSubmitted = function() { + $animate.addClass(element, SUBMITTED_CLASS); + form.$submitted = true; + form.$$parentForm.$setSubmitted(); + }; +} + +/** + * @ngdoc directive + * @name ngForm + * @restrict EAC + * + * @description + * Nestable alias of {@link ng.directive:form `form`} directive. HTML + * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a + * sub-group of controls needs to be determined. + * + * Note: the purpose of `ngForm` is to group controls, + * but not to be a replacement for the `
` tag with all of its capabilities + * (e.g. posting to the server, ...). + * + * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into + * related scope, under this name. + * + */ + + /** + * @ngdoc directive + * @name form + * @restrict E + * + * @description + * Directive that instantiates + * {@link form.FormController FormController}. + * + * If the `name` attribute is specified, the form controller is published onto the current scope under + * this name. + * + * # Alias: {@link ng.directive:ngForm `ngForm`} + * + * In Angular, forms can be nested. This means that the outer form is valid when all of the child + * forms are valid as well. However, browsers do not allow nesting of `` elements, so + * Angular provides the {@link ng.directive:ngForm `ngForm`} directive which behaves identically to + * `` but can be nested. This allows you to have nested forms, which is very useful when + * using Angular validation directives in forms that are dynamically generated using the + * {@link ng.directive:ngRepeat `ngRepeat`} directive. Since you cannot dynamically generate the `name` + * attribute of input elements using interpolation, you have to wrap each set of repeated inputs in an + * `ngForm` directive and nest these in an outer `form` element. + * + * + * # CSS classes + * - `ng-valid` is set if the form is valid. + * - `ng-invalid` is set if the form is invalid. + * - `ng-pending` is set if the form is pending. + * - `ng-pristine` is set if the form is pristine. + * - `ng-dirty` is set if the form is dirty. + * - `ng-submitted` is set if the form was submitted. + * + * Keep in mind that ngAnimate can detect each of these classes when added and removed. + * + * + * # Submitting a form and preventing the default action + * + * Since the role of forms in client-side Angular applications is different than in classical + * roundtrip apps, it is desirable for the browser not to translate the form submission into a full + * page reload that sends the data to the server. Instead some javascript logic should be triggered + * to handle the form submission in an application-specific way. + * + * For this reason, Angular prevents the default action (form submission to the server) unless the + * `` element has an `action` attribute specified. + * + * You can use one of the following two ways to specify what javascript method should be called when + * a form is submitted: + * + * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element + * - {@link ng.directive:ngClick ngClick} directive on the first + * button or input field of type submit (input[type=submit]) + * + * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit} + * or {@link ng.directive:ngClick ngClick} directives. + * This is because of the following form submission rules in the HTML specification: + * + * - If a form has only one input field then hitting enter in this field triggers form submit + * (`ngSubmit`) + * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter + * doesn't trigger submit + * - if a form has one or more input fields and one or more buttons or input[type=submit] then + * hitting enter in any of the input fields will trigger the click handler on the *first* button or + * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`) + * + * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is + * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit` + * to have access to the updated model. + * + * ## Animation Hooks + * + * Animations in ngForm are triggered when any of the associated CSS classes are added and removed. + * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any + * other validations that are performed within the form. Animations in ngForm are similar to how + * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well + * as JS animations. + * + * The following example shows a simple way to utilize CSS transitions to style a form element + * that has been rendered as invalid after it has been validated: + * + *
+ * //be sure to include ngAnimate as a module to hook into more
+ * //advanced animations
+ * .my-form {
+ *   transition:0.5s linear all;
+ *   background: white;
+ * }
+ * .my-form.ng-invalid {
+ *   background: red;
+ *   color:white;
+ * }
+ * 
+ * + * @example + + + + + + userType: + Required!
+ userType = {{userType}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+ +
+ + it('should initialize to model', function() { + var userType = element(by.binding('userType')); + var valid = element(by.binding('myForm.input.$valid')); + + expect(userType.getText()).toContain('guest'); + expect(valid.getText()).toContain('true'); + }); + + it('should be invalid if empty', function() { + var userType = element(by.binding('userType')); + var valid = element(by.binding('myForm.input.$valid')); + var userInput = element(by.model('userType')); + + userInput.clear(); + userInput.sendKeys(''); + + expect(userType.getText()).toEqual('userType ='); + expect(valid.getText()).toContain('false'); + }); + +
+ * + * @param {string=} name Name of the form. If specified, the form controller will be published into + * related scope, under this name. + */ +var formDirectiveFactory = function(isNgForm) { + return ['$timeout', '$parse', function($timeout, $parse) { + var formDirective = { + name: 'form', + restrict: isNgForm ? 'EAC' : 'E', + require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form + controller: FormController, + compile: function ngFormCompile(formElement, attr) { + // Setup initial state of the control + formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS); + + var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false); + + return { + pre: function ngFormPreLink(scope, formElement, attr, ctrls) { + var controller = ctrls[0]; + + // if `action` attr is not present on the form, prevent the default action (submission) + if (!('action' in attr)) { + // we can't use jq events because if a form is destroyed during submission the default + // action is not prevented. see #1238 + // + // IE 9 is not affected because it doesn't fire a submit event and try to do a full + // page reload if the form was destroyed by submission of the form via a click handler + // on a button in the form. Looks like an IE9 specific bug. + var handleFormSubmission = function(event) { + scope.$apply(function() { + controller.$commitViewValue(); + controller.$setSubmitted(); + }); + + event.preventDefault(); + }; + + addEventListenerFn(formElement[0], 'submit', handleFormSubmission); + + // unregister the preventDefault listener so that we don't not leak memory but in a + // way that will achieve the prevention of the default action. + formElement.on('$destroy', function() { + $timeout(function() { + removeEventListenerFn(formElement[0], 'submit', handleFormSubmission); + }, 0, false); + }); + } + + var parentFormCtrl = ctrls[1] || controller.$$parentForm; + parentFormCtrl.$addControl(controller); + + var setter = nameAttr ? getSetter(controller.$name) : noop; + + if (nameAttr) { + setter(scope, controller); + attr.$observe(nameAttr, function(newValue) { + if (controller.$name === newValue) return; + setter(scope, undefined); + controller.$$parentForm.$$renameControl(controller, newValue); + setter = getSetter(controller.$name); + setter(scope, controller); + }); + } + formElement.on('$destroy', function() { + controller.$$parentForm.$removeControl(controller); + setter(scope, undefined); + extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards + }); + } + }; + } + }; + + return formDirective; + + function getSetter(expression) { + if (expression === '') { + //create an assignable expression, so forms with an empty name can be renamed later + return $parse('this[""]').assign; + } + return $parse(expression).assign || noop; + } + }]; +}; + +var formDirective = formDirectiveFactory(); +var ngFormDirective = formDirectiveFactory(true); + +/* global VALID_CLASS: false, + INVALID_CLASS: false, + PRISTINE_CLASS: false, + DIRTY_CLASS: false, + UNTOUCHED_CLASS: false, + TOUCHED_CLASS: false, + ngModelMinErr: false, +*/ + +// Regex code is obtained from SO: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231 +var ISO_DATE_REGEXP = /\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/; +var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/; +var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i; +var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/; +var DATE_REGEXP = /^(\d{4})-(\d{2})-(\d{2})$/; +var DATETIMELOCAL_REGEXP = /^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/; +var WEEK_REGEXP = /^(\d{4})-W(\d\d)$/; +var MONTH_REGEXP = /^(\d{4})-(\d\d)$/; +var TIME_REGEXP = /^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/; + +var inputType = { + + /** + * @ngdoc input + * @name input[text] + * + * @description + * Standard HTML text input with angular data binding, inherited by most of the `input` elements. + * + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} required Adds `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than + * minlength. + * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than + * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of + * any length. + * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string + * that contains the regular expression body that will be converted to a regular expression + * as in the ngPattern directive. + * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match + * a RegExp found by evaluating the Angular expression given in the attribute value. + * If the expression evaluates to a RegExp object, then this is used directly. + * If the expression evaluates to a string, then it will be converted to a RegExp + * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to + * `new RegExp('^abc$')`.
+ * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to + * start at the index of the last search's match, thus not taking the whole input value into + * account. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input. + * This parameter is ignored for input[type=password] controls, which will never trim the + * input. + * + * @example + + + +
+ +
+ + Required! + + Single word only! +
+ text = {{example.text}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var text = element(by.binding('example.text')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.text')); + + it('should initialize to model', function() { + expect(text.getText()).toContain('guest'); + expect(valid.getText()).toContain('true'); + }); + + it('should be invalid if empty', function() { + input.clear(); + input.sendKeys(''); + + expect(text.getText()).toEqual('text ='); + expect(valid.getText()).toContain('false'); + }); + + it('should be invalid if multi word', function() { + input.clear(); + input.sendKeys('hello world'); + + expect(valid.getText()).toContain('false'); + }); + +
+ */ + 'text': textInputType, + + /** + * @ngdoc input + * @name input[date] + * + * @description + * Input with date validation and transformation. In browsers that do not yet support + * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601 + * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many + * modern browsers do not yet support this input type, it is important to provide cues to users on the + * expected input format via a placeholder or label. + * + * The model must always be a Date object, otherwise Angular will throw an error. + * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * + * The timezone to be used to read/write the `Date` instance in the model can be defined using + * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a + * valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute + * (e.g. `min="{{minDate | date:'yyyy-MM-dd'}}"`). Note that `min` will also add native HTML5 + * constraint validation. + * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be + * a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute + * (e.g. `max="{{maxDate | date:'yyyy-MM-dd'}}"`). Note that `max` will also add native HTML5 + * constraint validation. + * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string + * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute. + * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string + * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ + +
+ + Required! + + Not a valid date! +
+ value = {{example.value | date: "yyyy-MM-dd"}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var value = element(by.binding('example.value | date: "yyyy-MM-dd"')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.value')); + + // currently protractor/webdriver does not support + // sending keys to all known HTML5 input controls + // for various browsers (see https://github.com/angular/protractor/issues/562). + function setInput(val) { + // set the value of the element and force validation. + var scr = "var ipt = document.getElementById('exampleInput'); " + + "ipt.value = '" + val + "';" + + "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });"; + browser.executeScript(scr); + } + + it('should initialize to model', function() { + expect(value.getText()).toContain('2013-10-22'); + expect(valid.getText()).toContain('myForm.input.$valid = true'); + }); + + it('should be invalid if empty', function() { + setInput(''); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + + it('should be invalid if over max', function() { + setInput('2015-01-01'); + expect(value.getText()).toContain(''); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + +
+ */ + 'date': createDateInputType('date', DATE_REGEXP, + createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']), + 'yyyy-MM-dd'), + + /** + * @ngdoc input + * @name input[datetime-local] + * + * @description + * Input with datetime validation and transformation. In browsers that do not yet support + * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601 + * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`. + * + * The model must always be a Date object, otherwise Angular will throw an error. + * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * + * The timezone to be used to read/write the `Date` instance in the model can be defined using + * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. + * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation + * inside this attribute (e.g. `min="{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`). + * Note that `min` will also add native HTML5 constraint validation. + * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. + * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation + * inside this attribute (e.g. `max="{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`). + * Note that `max` will also add native HTML5 constraint validation. + * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string + * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute. + * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string + * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ + +
+ + Required! + + Not a valid date! +
+ value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var value = element(by.binding('example.value | date: "yyyy-MM-ddTHH:mm:ss"')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.value')); + + // currently protractor/webdriver does not support + // sending keys to all known HTML5 input controls + // for various browsers (https://github.com/angular/protractor/issues/562). + function setInput(val) { + // set the value of the element and force validation. + var scr = "var ipt = document.getElementById('exampleInput'); " + + "ipt.value = '" + val + "';" + + "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });"; + browser.executeScript(scr); + } + + it('should initialize to model', function() { + expect(value.getText()).toContain('2010-12-28T14:57:00'); + expect(valid.getText()).toContain('myForm.input.$valid = true'); + }); + + it('should be invalid if empty', function() { + setInput(''); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + + it('should be invalid if over max', function() { + setInput('2015-01-01T23:59:00'); + expect(value.getText()).toContain(''); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + +
+ */ + 'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP, + createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']), + 'yyyy-MM-ddTHH:mm:ss.sss'), + + /** + * @ngdoc input + * @name input[time] + * + * @description + * Input with time validation and transformation. In browsers that do not yet support + * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601 + * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a + * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`. + * + * The model must always be a Date object, otherwise Angular will throw an error. + * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * + * The timezone to be used to read/write the `Date` instance in the model can be defined using + * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. + * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this + * attribute (e.g. `min="{{minTime | date:'HH:mm:ss'}}"`). Note that `min` will also add + * native HTML5 constraint validation. + * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. + * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this + * attribute (e.g. `max="{{maxTime | date:'HH:mm:ss'}}"`). Note that `max` will also add + * native HTML5 constraint validation. + * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the + * `ngMin` expression evaluates to. Note that it does not set the `min` attribute. + * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the + * `ngMax` expression evaluates to. Note that it does not set the `max` attribute. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ + +
+ + Required! + + Not a valid date! +
+ value = {{example.value | date: "HH:mm:ss"}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var value = element(by.binding('example.value | date: "HH:mm:ss"')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.value')); + + // currently protractor/webdriver does not support + // sending keys to all known HTML5 input controls + // for various browsers (https://github.com/angular/protractor/issues/562). + function setInput(val) { + // set the value of the element and force validation. + var scr = "var ipt = document.getElementById('exampleInput'); " + + "ipt.value = '" + val + "';" + + "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });"; + browser.executeScript(scr); + } + + it('should initialize to model', function() { + expect(value.getText()).toContain('14:57:00'); + expect(valid.getText()).toContain('myForm.input.$valid = true'); + }); + + it('should be invalid if empty', function() { + setInput(''); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + + it('should be invalid if over max', function() { + setInput('23:59:00'); + expect(value.getText()).toContain(''); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + +
+ */ + 'time': createDateInputType('time', TIME_REGEXP, + createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']), + 'HH:mm:ss.sss'), + + /** + * @ngdoc input + * @name input[week] + * + * @description + * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support + * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601 + * week format (yyyy-W##), for example: `2013-W02`. + * + * The model must always be a Date object, otherwise Angular will throw an error. + * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * + * The timezone to be used to read/write the `Date` instance in the model can be defined using + * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. + * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this + * attribute (e.g. `min="{{minWeek | date:'yyyy-Www'}}"`). Note that `min` will also add + * native HTML5 constraint validation. + * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. + * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this + * attribute (e.g. `max="{{maxWeek | date:'yyyy-Www'}}"`). Note that `max` will also add + * native HTML5 constraint validation. + * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string + * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute. + * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string + * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ +
+ + Required! + + Not a valid date! +
+ value = {{example.value | date: "yyyy-Www"}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var value = element(by.binding('example.value | date: "yyyy-Www"')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.value')); + + // currently protractor/webdriver does not support + // sending keys to all known HTML5 input controls + // for various browsers (https://github.com/angular/protractor/issues/562). + function setInput(val) { + // set the value of the element and force validation. + var scr = "var ipt = document.getElementById('exampleInput'); " + + "ipt.value = '" + val + "';" + + "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });"; + browser.executeScript(scr); + } + + it('should initialize to model', function() { + expect(value.getText()).toContain('2013-W01'); + expect(valid.getText()).toContain('myForm.input.$valid = true'); + }); + + it('should be invalid if empty', function() { + setInput(''); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + + it('should be invalid if over max', function() { + setInput('2015-W01'); + expect(value.getText()).toContain(''); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + +
+ */ + 'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'), + + /** + * @ngdoc input + * @name input[month] + * + * @description + * Input with month validation and transformation. In browsers that do not yet support + * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601 + * month format (yyyy-MM), for example: `2009-01`. + * + * The model must always be a Date object, otherwise Angular will throw an error. + * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * If the model is not set to the first of the month, the next view to model update will set it + * to the first of the month. + * + * The timezone to be used to read/write the `Date` instance in the model can be defined using + * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. + * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this + * attribute (e.g. `min="{{minMonth | date:'yyyy-MM'}}"`). Note that `min` will also add + * native HTML5 constraint validation. + * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. + * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this + * attribute (e.g. `max="{{maxMonth | date:'yyyy-MM'}}"`). Note that `max` will also add + * native HTML5 constraint validation. + * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string + * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute. + * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string + * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute. + + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ + +
+ + Required! + + Not a valid month! +
+ value = {{example.value | date: "yyyy-MM"}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var value = element(by.binding('example.value | date: "yyyy-MM"')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.value')); + + // currently protractor/webdriver does not support + // sending keys to all known HTML5 input controls + // for various browsers (https://github.com/angular/protractor/issues/562). + function setInput(val) { + // set the value of the element and force validation. + var scr = "var ipt = document.getElementById('exampleInput'); " + + "ipt.value = '" + val + "';" + + "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });"; + browser.executeScript(scr); + } + + it('should initialize to model', function() { + expect(value.getText()).toContain('2013-10'); + expect(valid.getText()).toContain('myForm.input.$valid = true'); + }); + + it('should be invalid if empty', function() { + setInput(''); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + + it('should be invalid if over max', function() { + setInput('2015-01'); + expect(value.getText()).toContain(''); + expect(valid.getText()).toContain('myForm.input.$valid = false'); + }); + +
+ */ + 'month': createDateInputType('month', MONTH_REGEXP, + createDateParser(MONTH_REGEXP, ['yyyy', 'MM']), + 'yyyy-MM'), + + /** + * @ngdoc input + * @name input[number] + * + * @description + * Text input with number validation and transformation. Sets the `number` validation + * error if not a valid number. + * + *
+ * The model must always be of type `number` otherwise Angular will throw an error. + * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt} + * error docs for more information and an example of how to convert your model if necessary. + *
+ * + * ## Issues with HTML5 constraint validation + * + * In browsers that follow the + * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29), + * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}. + * If a non-number is entered in the input, the browser will report the value as an empty string, + * which means the view / model values in `ngModel` and subsequently the scope value + * will also be an empty string. + * + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. + * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than + * minlength. + * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than + * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of + * any length. + * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string + * that contains the regular expression body that will be converted to a regular expression + * as in the ngPattern directive. + * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match + * a RegExp found by evaluating the Angular expression given in the attribute value. + * If the expression evaluates to a RegExp object, then this is used directly. + * If the expression evaluates to a string, then it will be converted to a RegExp + * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to + * `new RegExp('^abc$')`.
+ * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to + * start at the index of the last search's match, thus not taking the whole input value into + * account. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ +
+ + Required! + + Not valid number! +
+ value = {{example.value}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+
+
+ + var value = element(by.binding('example.value')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('example.value')); + + it('should initialize to model', function() { + expect(value.getText()).toContain('12'); + expect(valid.getText()).toContain('true'); + }); + + it('should be invalid if empty', function() { + input.clear(); + input.sendKeys(''); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('false'); + }); + + it('should be invalid if over max', function() { + input.clear(); + input.sendKeys('123'); + expect(value.getText()).toEqual('value ='); + expect(valid.getText()).toContain('false'); + }); + +
+ */ + 'number': numberInputType, + + + /** + * @ngdoc input + * @name input[url] + * + * @description + * Text input with URL validation. Sets the `url` validation error key if the content is not a + * valid URL. + * + *
+ * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex + * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify + * the built-in validators (see the {@link guide/forms Forms guide}) + *
+ * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than + * minlength. + * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than + * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of + * any length. + * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string + * that contains the regular expression body that will be converted to a regular expression + * as in the ngPattern directive. + * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match + * a RegExp found by evaluating the Angular expression given in the attribute value. + * If the expression evaluates to a RegExp object, then this is used directly. + * If the expression evaluates to a string, then it will be converted to a RegExp + * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to + * `new RegExp('^abc$')`.
+ * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to + * start at the index of the last search's match, thus not taking the whole input value into + * account. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+
+ + var text = element(by.binding('url.text')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('url.text')); + + it('should initialize to model', function() { + expect(text.getText()).toContain('http://google.com'); + expect(valid.getText()).toContain('true'); + }); + + it('should be invalid if empty', function() { + input.clear(); + input.sendKeys(''); + + expect(text.getText()).toEqual('text ='); + expect(valid.getText()).toContain('false'); + }); + + it('should be invalid if not url', function() { + input.clear(); + input.sendKeys('box'); + + expect(valid.getText()).toContain('false'); + }); + +
+ */ + 'url': urlInputType, + + + /** + * @ngdoc input + * @name input[email] + * + * @description + * Text input with email validation. Sets the `email` validation error key if not a valid email + * address. + * + *
+ * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex + * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can + * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide}) + *
+ * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than + * minlength. + * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than + * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of + * any length. + * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string + * that contains the regular expression body that will be converted to a regular expression + * as in the ngPattern directive. + * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match + * a RegExp found by evaluating the Angular expression given in the attribute value. + * If the expression evaluates to a RegExp object, then this is used directly. + * If the expression evaluates to a string, then it will be converted to a RegExp + * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to + * `new RegExp('^abc$')`.
+ * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to + * start at the index of the last search's match, thus not taking the whole input value into + * account. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+ +
+ + Required! + + Not valid email! +
+ text = {{email.text}}
+ myForm.input.$valid = {{myForm.input.$valid}}
+ myForm.input.$error = {{myForm.input.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+ myForm.$error.email = {{!!myForm.$error.email}}
+
+
+ + var text = element(by.binding('email.text')); + var valid = element(by.binding('myForm.input.$valid')); + var input = element(by.model('email.text')); + + it('should initialize to model', function() { + expect(text.getText()).toContain('me@example.com'); + expect(valid.getText()).toContain('true'); + }); + + it('should be invalid if empty', function() { + input.clear(); + input.sendKeys(''); + expect(text.getText()).toEqual('text ='); + expect(valid.getText()).toContain('false'); + }); + + it('should be invalid if not email', function() { + input.clear(); + input.sendKeys('xxx'); + + expect(valid.getText()).toContain('false'); + }); + +
+ */ + 'email': emailInputType, + + + /** + * @ngdoc input + * @name input[radio] + * + * @description + * HTML radio button. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string} value The value to which the `ngModel` expression should be set when selected. + * Note that `value` only supports `string` values, i.e. the scope model needs to be a string, + * too. Use `ngValue` if you need complex models (`number`, `object`, ...). + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio + * is selected. Should be used instead of the `value` attribute if you need + * a non-string `ngModel` (`boolean`, `array`, ...). + * + * @example + + + +
+
+
+
+ color = {{color.name | json}}
+
+ Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`. +
+ + it('should change state', function() { + var color = element(by.binding('color.name')); + + expect(color.getText()).toContain('blue'); + + element.all(by.model('color.name')).get(0).click(); + + expect(color.getText()).toContain('red'); + }); + +
+ */ + 'radio': radioInputType, + + + /** + * @ngdoc input + * @name input[checkbox] + * + * @description + * HTML checkbox. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {expression=} ngTrueValue The value to which the expression should be set when selected. + * @param {expression=} ngFalseValue The value to which the expression should be set when not selected. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * + * @example + + + +
+
+
+ value1 = {{checkboxModel.value1}}
+ value2 = {{checkboxModel.value2}}
+
+
+ + it('should change state', function() { + var value1 = element(by.binding('checkboxModel.value1')); + var value2 = element(by.binding('checkboxModel.value2')); + + expect(value1.getText()).toContain('true'); + expect(value2.getText()).toContain('YES'); + + element(by.model('checkboxModel.value1')).click(); + element(by.model('checkboxModel.value2')).click(); + + expect(value1.getText()).toContain('false'); + expect(value2.getText()).toContain('NO'); + }); + +
+ */ + 'checkbox': checkboxInputType, + + 'hidden': noop, + 'button': noop, + 'submit': noop, + 'reset': noop, + 'file': noop +}; + +function stringBasedInputType(ctrl) { + ctrl.$formatters.push(function(value) { + return ctrl.$isEmpty(value) ? value : value.toString(); + }); +} + +function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + stringBasedInputType(ctrl); +} + +function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { + var type = lowercase(element[0].type); + + // In composition mode, users are still inputing intermediate text buffer, + // hold the listener until composition is done. + // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent + if (!$sniffer.android) { + var composing = false; + + element.on('compositionstart', function(data) { + composing = true; + }); + + element.on('compositionend', function() { + composing = false; + listener(); + }); + } + + var listener = function(ev) { + if (timeout) { + $browser.defer.cancel(timeout); + timeout = null; + } + if (composing) return; + var value = element.val(), + event = ev && ev.type; + + // By default we will trim the value + // If the attribute ng-trim exists we will avoid trimming + // If input type is 'password', the value is never trimmed + if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) { + value = trim(value); + } + + // If a control is suffering from bad input (due to native validators), browsers discard its + // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the + // control's value is the same empty value twice in a row. + if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) { + ctrl.$setViewValue(value, event); + } + }; + + // if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the + // input event on backspace, delete or cut + if ($sniffer.hasEvent('input')) { + element.on('input', listener); + } else { + var timeout; + + var deferListener = function(ev, input, origValue) { + if (!timeout) { + timeout = $browser.defer(function() { + timeout = null; + if (!input || input.value !== origValue) { + listener(ev); + } + }); + } + }; + + element.on('keydown', function(event) { + var key = event.keyCode; + + // ignore + // command modifiers arrows + if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return; + + deferListener(event, this, this.value); + }); + + // if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it + if ($sniffer.hasEvent('paste')) { + element.on('paste cut', deferListener); + } + } + + // if user paste into input using mouse on older browser + // or form autocomplete on newer browser, we need "change" event to catch it + element.on('change', listener); + + ctrl.$render = function() { + // Workaround for Firefox validation #12102. + var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue; + if (element.val() !== value) { + element.val(value); + } + }; +} + +function weekParser(isoWeek, existingDate) { + if (isDate(isoWeek)) { + return isoWeek; + } + + if (isString(isoWeek)) { + WEEK_REGEXP.lastIndex = 0; + var parts = WEEK_REGEXP.exec(isoWeek); + if (parts) { + var year = +parts[1], + week = +parts[2], + hours = 0, + minutes = 0, + seconds = 0, + milliseconds = 0, + firstThurs = getFirstThursdayOfYear(year), + addDays = (week - 1) * 7; + + if (existingDate) { + hours = existingDate.getHours(); + minutes = existingDate.getMinutes(); + seconds = existingDate.getSeconds(); + milliseconds = existingDate.getMilliseconds(); + } + + return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds); + } + } + + return NaN; +} + +function createDateParser(regexp, mapping) { + return function(iso, date) { + var parts, map; + + if (isDate(iso)) { + return iso; + } + + if (isString(iso)) { + // When a date is JSON'ified to wraps itself inside of an extra + // set of double quotes. This makes the date parsing code unable + // to match the date string and parse it as a date. + if (iso.charAt(0) == '"' && iso.charAt(iso.length - 1) == '"') { + iso = iso.substring(1, iso.length - 1); + } + if (ISO_DATE_REGEXP.test(iso)) { + return new Date(iso); + } + regexp.lastIndex = 0; + parts = regexp.exec(iso); + + if (parts) { + parts.shift(); + if (date) { + map = { + yyyy: date.getFullYear(), + MM: date.getMonth() + 1, + dd: date.getDate(), + HH: date.getHours(), + mm: date.getMinutes(), + ss: date.getSeconds(), + sss: date.getMilliseconds() / 1000 + }; + } else { + map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 }; + } + + forEach(parts, function(part, index) { + if (index < mapping.length) { + map[mapping[index]] = +part; + } + }); + return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0); + } + } + + return NaN; + }; +} + +function createDateInputType(type, regexp, parseDate, format) { + return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) { + badInputChecker(scope, element, attr, ctrl); + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + var timezone = ctrl && ctrl.$options && ctrl.$options.timezone; + var previousDate; + + ctrl.$$parserName = type; + ctrl.$parsers.push(function(value) { + if (ctrl.$isEmpty(value)) return null; + if (regexp.test(value)) { + // Note: We cannot read ctrl.$modelValue, as there might be a different + // parser/formatter in the processing chain so that the model + // contains some different data format! + var parsedDate = parseDate(value, previousDate); + if (timezone) { + parsedDate = convertTimezoneToLocal(parsedDate, timezone); + } + return parsedDate; + } + return undefined; + }); + + ctrl.$formatters.push(function(value) { + if (value && !isDate(value)) { + throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value); + } + if (isValidDate(value)) { + previousDate = value; + if (previousDate && timezone) { + previousDate = convertTimezoneToLocal(previousDate, timezone, true); + } + return $filter('date')(value, format, timezone); + } else { + previousDate = null; + return ''; + } + }); + + if (isDefined(attr.min) || attr.ngMin) { + var minVal; + ctrl.$validators.min = function(value) { + return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal; + }; + attr.$observe('min', function(val) { + minVal = parseObservedDateValue(val); + ctrl.$validate(); + }); + } + + if (isDefined(attr.max) || attr.ngMax) { + var maxVal; + ctrl.$validators.max = function(value) { + return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal; + }; + attr.$observe('max', function(val) { + maxVal = parseObservedDateValue(val); + ctrl.$validate(); + }); + } + + function isValidDate(value) { + // Invalid Date: getTime() returns NaN + return value && !(value.getTime && value.getTime() !== value.getTime()); + } + + function parseObservedDateValue(val) { + return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val; + } + }; +} + +function badInputChecker(scope, element, attr, ctrl) { + var node = element[0]; + var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity); + if (nativeValidation) { + ctrl.$parsers.push(function(value) { + var validity = element.prop(VALIDITY_STATE_PROPERTY) || {}; + // Detect bug in FF35 for input[email] (https://bugzilla.mozilla.org/show_bug.cgi?id=1064430): + // - also sets validity.badInput (should only be validity.typeMismatch). + // - see http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email) + // - can ignore this case as we can still read out the erroneous email... + return validity.badInput && !validity.typeMismatch ? undefined : value; + }); + } +} + +function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) { + badInputChecker(scope, element, attr, ctrl); + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + + ctrl.$$parserName = 'number'; + ctrl.$parsers.push(function(value) { + if (ctrl.$isEmpty(value)) return null; + if (NUMBER_REGEXP.test(value)) return parseFloat(value); + return undefined; + }); + + ctrl.$formatters.push(function(value) { + if (!ctrl.$isEmpty(value)) { + if (!isNumber(value)) { + throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value); + } + value = value.toString(); + } + return value; + }); + + if (isDefined(attr.min) || attr.ngMin) { + var minVal; + ctrl.$validators.min = function(value) { + return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal; + }; + + attr.$observe('min', function(val) { + if (isDefined(val) && !isNumber(val)) { + val = parseFloat(val, 10); + } + minVal = isNumber(val) && !isNaN(val) ? val : undefined; + // TODO(matsko): implement validateLater to reduce number of validations + ctrl.$validate(); + }); + } + + if (isDefined(attr.max) || attr.ngMax) { + var maxVal; + ctrl.$validators.max = function(value) { + return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal; + }; + + attr.$observe('max', function(val) { + if (isDefined(val) && !isNumber(val)) { + val = parseFloat(val, 10); + } + maxVal = isNumber(val) && !isNaN(val) ? val : undefined; + // TODO(matsko): implement validateLater to reduce number of validations + ctrl.$validate(); + }); + } +} + +function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) { + // Note: no badInputChecker here by purpose as `url` is only a validation + // in browsers, i.e. we can always read out input.value even if it is not valid! + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + stringBasedInputType(ctrl); + + ctrl.$$parserName = 'url'; + ctrl.$validators.url = function(modelValue, viewValue) { + var value = modelValue || viewValue; + return ctrl.$isEmpty(value) || URL_REGEXP.test(value); + }; +} + +function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) { + // Note: no badInputChecker here by purpose as `url` is only a validation + // in browsers, i.e. we can always read out input.value even if it is not valid! + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + stringBasedInputType(ctrl); + + ctrl.$$parserName = 'email'; + ctrl.$validators.email = function(modelValue, viewValue) { + var value = modelValue || viewValue; + return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value); + }; +} + +function radioInputType(scope, element, attr, ctrl) { + // make the name unique, if not defined + if (isUndefined(attr.name)) { + element.attr('name', nextUid()); + } + + var listener = function(ev) { + if (element[0].checked) { + ctrl.$setViewValue(attr.value, ev && ev.type); + } + }; + + element.on('click', listener); + + ctrl.$render = function() { + var value = attr.value; + element[0].checked = (value == ctrl.$viewValue); + }; + + attr.$observe('value', ctrl.$render); +} + +function parseConstantExpr($parse, context, name, expression, fallback) { + var parseFn; + if (isDefined(expression)) { + parseFn = $parse(expression); + if (!parseFn.constant) { + throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' + + '`{1}`.', name, expression); + } + return parseFn(context); + } + return fallback; +} + +function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) { + var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true); + var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false); + + var listener = function(ev) { + ctrl.$setViewValue(element[0].checked, ev && ev.type); + }; + + element.on('click', listener); + + ctrl.$render = function() { + element[0].checked = ctrl.$viewValue; + }; + + // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false` + // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert + // it to a boolean. + ctrl.$isEmpty = function(value) { + return value === false; + }; + + ctrl.$formatters.push(function(value) { + return equals(value, trueValue); + }); + + ctrl.$parsers.push(function(value) { + return value ? trueValue : falseValue; + }); +} + + +/** + * @ngdoc directive + * @name textarea + * @restrict E + * + * @description + * HTML textarea element control with angular data-binding. The data-binding and validation + * properties of this element are exactly the same as those of the + * {@link ng.directive:input input element}. + * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to + * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of + * `required` when you want to data-bind to the `required` attribute. + * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than + * minlength. + * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than + * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any + * length. + * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match + * a RegExp found by evaluating the Angular expression given in the attribute value. + * If the expression evaluates to a RegExp object, then this is used directly. + * If the expression evaluates to a string, then it will be converted to a RegExp + * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to + * `new RegExp('^abc$')`.
+ * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to + * start at the index of the last search's match, thus not taking the whole input value into + * account. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input. + */ + + +/** + * @ngdoc directive + * @name input + * @restrict E + * + * @description + * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding, + * input state control, and validation. + * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers. + * + *
+ * **Note:** Not every feature offered is available for all input types. + * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`. + *
+ * + * @param {string} ngModel Assignable angular expression to data-bind to. + * @param {string=} name Property name of the form under which the control is published. + * @param {string=} required Sets `required` validation error key if the value is not entered. + * @param {boolean=} ngRequired Sets `required` attribute if set to true + * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than + * minlength. + * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than + * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any + * length. + * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match + * a RegExp found by evaluating the Angular expression given in the attribute value. + * If the expression evaluates to a RegExp object, then this is used directly. + * If the expression evaluates to a string, then it will be converted to a RegExp + * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to + * `new RegExp('^abc$')`.
+ * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to + * start at the index of the last search's match, thus not taking the whole input value into + * account. + * @param {string=} ngChange Angular expression to be executed when input changes due to user + * interaction with the input element. + * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input. + * This parameter is ignored for input[type=password] controls, which will never trim the + * input. + * + * @example + + + +
+
+ +
+ + Required! +
+ +
+ + Too short! + + Too long! +
+
+
+ user = {{user}}
+ myForm.userName.$valid = {{myForm.userName.$valid}}
+ myForm.userName.$error = {{myForm.userName.$error}}
+ myForm.lastName.$valid = {{myForm.lastName.$valid}}
+ myForm.lastName.$error = {{myForm.lastName.$error}}
+ myForm.$valid = {{myForm.$valid}}
+ myForm.$error.required = {{!!myForm.$error.required}}
+ myForm.$error.minlength = {{!!myForm.$error.minlength}}
+ myForm.$error.maxlength = {{!!myForm.$error.maxlength}}
+
+
+ + var user = element(by.exactBinding('user')); + var userNameValid = element(by.binding('myForm.userName.$valid')); + var lastNameValid = element(by.binding('myForm.lastName.$valid')); + var lastNameError = element(by.binding('myForm.lastName.$error')); + var formValid = element(by.binding('myForm.$valid')); + var userNameInput = element(by.model('user.name')); + var userLastInput = element(by.model('user.last')); + + it('should initialize to model', function() { + expect(user.getText()).toContain('{"name":"guest","last":"visitor"}'); + expect(userNameValid.getText()).toContain('true'); + expect(formValid.getText()).toContain('true'); + }); + + it('should be invalid if empty when required', function() { + userNameInput.clear(); + userNameInput.sendKeys(''); + + expect(user.getText()).toContain('{"last":"visitor"}'); + expect(userNameValid.getText()).toContain('false'); + expect(formValid.getText()).toContain('false'); + }); + + it('should be valid if empty when min length is set', function() { + userLastInput.clear(); + userLastInput.sendKeys(''); + + expect(user.getText()).toContain('{"name":"guest","last":""}'); + expect(lastNameValid.getText()).toContain('true'); + expect(formValid.getText()).toContain('true'); + }); + + it('should be invalid if less than required min length', function() { + userLastInput.clear(); + userLastInput.sendKeys('xx'); + + expect(user.getText()).toContain('{"name":"guest"}'); + expect(lastNameValid.getText()).toContain('false'); + expect(lastNameError.getText()).toContain('minlength'); + expect(formValid.getText()).toContain('false'); + }); + + it('should be invalid if longer than max length', function() { + userLastInput.clear(); + userLastInput.sendKeys('some ridiculously long name'); + + expect(user.getText()).toContain('{"name":"guest"}'); + expect(lastNameValid.getText()).toContain('false'); + expect(lastNameError.getText()).toContain('maxlength'); + expect(formValid.getText()).toContain('false'); + }); + +
+ */ +var inputDirective = ['$browser', '$sniffer', '$filter', '$parse', + function($browser, $sniffer, $filter, $parse) { + return { + restrict: 'E', + require: ['?ngModel'], + link: { + pre: function(scope, element, attr, ctrls) { + if (ctrls[0]) { + (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer, + $browser, $filter, $parse); + } + } + } + }; +}]; + + + +var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/; +/** + * @ngdoc directive + * @name ngValue + * + * @description + * Binds the given expression to the value of `