diff --git a/bower.json b/bower.json index 202e143..044078b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-ui-tour", - "version": "0.7.0", + "version": "0.8.0", "main": "dist/angular-ui-tour.js", "ignore": [ ".editorconfig", diff --git a/dist/angular-ui-tour.js b/dist/angular-ui-tour.js new file mode 100644 index 0000000..f9a82e0 --- /dev/null +++ b/dist/angular-ui-tour.js @@ -0,0 +1,8 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("angular"),require("angular-hotkeys"),require("angular-sanitize"),require("angular-scroll"),require("ez-ng"),require("hone"),require("tether")):"function"==typeof define&&define.amd?define("uiTour",["angular","angular-hotkeys","angular-sanitize","angular-scroll","ez-ng","hone","tether"],e):"object"==typeof exports?exports.uiTour=e(require("angular"),require("angular-hotkeys"),require("angular-sanitize"),require("angular-scroll"),require("ez-ng"),require("hone"),require("tether")):t.uiTour=e(t.angular,t["angular-hotkeys"],t["angular-sanitize"],t["angular-scroll"],t["ez-ng"],t.hone,t.tether)}(this,function(t,e,n,r,o,i,u){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,r){"ngInject";function o(){e.isTourWaiting()||e.endAllTours()}t.areNavigationInterceptorsEnabled()&&(n.$on("$locationChangeStart",o),n.$on("$stateChangeStart",o),r.has("$transitions")&&r.get("$transitions").onStart({},o))}o.$inject=["TourConfig","uiTourService","$rootScope","$injector"],Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),u=r(i);n(23),n(24),n(25),n(22);var a=n(27),f=r(a),s=n(26),c=r(s);n(21),e.default=u.default.module("bm.uiTour",["ngSanitize","duScroll","ezNg","cfp.hotkeys"]).run(o).value("Tether",f.default||window.Tether).value("Hone",c.default||window.Hone).constant("positionMap",n(11)).provider("TourConfig",n(12)).factory("uiTourBackdrop",n(10)).factory("TourHelpers",n(15)).factory("uiTourService",n(16)).factory("TourStepService",n(18)).controller("uiTourController",n(13)).directive("uiTour",n(14)).directive("tourStep",n(17)).name,t.exports=e.default},function(e,n){e.exports=t},function(t,e,n){(function(t,r){/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +"use strict";function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,n){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function v(e){return+e!=e&&(e=0),t.alloc(+e)}function m(e,n){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(o)return F(e).length;n=(""+n).toLowerCase(),o=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return U(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function w(e,n,r,o,i){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=t.from(n,o)),t.isBuffer(n))return 0===n.length?-1:S(e,n,r,o,i);if("number"==typeof n)return n&=255,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):S(e,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,r,o){function i(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}var u=1,a=t.length,f=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;u=2,a/=2,f/=2,n/=2}var s;if(o){var c=-1;for(s=n;sa&&(n=a-f),s=n;s>=0;s--){for(var l=!0,p=0;po&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var u=0;u239?4:i>223?3:i>191?2:1;if(o+a<=n){var f,s,c,l;switch(a){case 1:i<128&&(u=i);break;case 2:f=t[o+1],128===(192&f)&&(l=(31&i)<<6|63&f,l>127&&(u=l));break;case 3:f=t[o+1],s=t[o+2],128===(192&f)&&128===(192&s)&&(l=(15&i)<<12|(63&f)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:f=t[o+1],s=t[o+2],c=t[o+3],128===(192&f)&&128===(192&s)&&128===(192&c)&&(l=(15&i)<<18|(63&f)<<12|(63&s)<<6|63&c,l>65535&&l<1114112&&(u=l))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=a}return B(r)}function B(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var o="",i=e;in)throw new RangeError("Trying to access beyond buffer length")}function k(e,n,r,o,i,u){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||ne.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o>>8*(r?o:1-o)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o>>8*(r?o:3-o)&255}function Y(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return o||Y(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return o||Y(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function q(t){if(t=z(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],u=0;u55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(t){for(var e=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function W(t){return Z.toByteArray(q(t))}function J(t,e,n,r){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function X(t){return t!==t}var Z=n(3),K=n(6),Q=n(7);e.Buffer=t,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=i(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,n){return a(null,t,e,n)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,n){return s(null,t,e,n)},t.allocUnsafe=function(t){return c(null,t)},t.allocUnsafeSlow=function(t){return c(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,o=n.length,i=0,u=Math.min(r,o);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e,n,r,o,i){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),n<0||r>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var u=i-o,a=r-n,f=Math.min(u,a),s=this.slice(o,i),c=e.slice(n,r),l=0;lo)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return A(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return P(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n0&&(o*=256);)r+=this[t+--e]*o;return r},t.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t],o=1,i=0;++i=o&&(r-=Math.pow(2,8*e)),r},t.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),K.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),K.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),K.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),K.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;k(this,t,e,n,o,0)}var i=1,u=0;for(this[e]=255&t;++u=0&&(u*=256);)this[e+i]=t/u&255;return e+n},t.prototype.writeUInt8=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):M(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):M(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):j(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):j(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);k(this,t,e,n,o-1,-o)}var i=0,u=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},t.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);k(this,t,e,n,o-1,-o)}var i=n-1,u=1,a=0;for(this[e+i]=255&t;--i>=0&&(u*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+n},t.prototype.writeInt8=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):M(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):M(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):j(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):j(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},t.prototype.copy=function(e,n,r,o){if(r||(r=0),o||0===o||(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-n=0;--i)e[i+n]=this[i+r];else if(u<1e3||!t.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var u;if("number"==typeof e)for(u=n;u0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function r(t){return 3*t.length/4-n(t)}function o(t){var e,r,o,i,u,a,f=t.length;u=n(t),a=new c(3*f/4-u),o=u>0?f-4:f;var l=0;for(e=0,r=0;e>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===u?(i=s[t.charCodeAt(e)]<<2|s[t.charCodeAt(e+1)]>>4,a[l++]=255&i):1===u&&(i=s[t.charCodeAt(e)]<<10|s[t.charCodeAt(e+1)]<<4|s[t.charCodeAt(e+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function i(t){return f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}function u(t,e,n){for(var r,o=[],u=e;uc?c:s+a));return 1===r?(e=t[n-1],o+=f[e>>2],o+=f[e<<4&63],o+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],o+=f[e>>10],o+=f[e>>4&63],o+=f[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=r,e.toByteArray=o,e.fromByteArray=a;for(var f=[],s=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=l.length;p.arrow,.popover.top-left>.arrow{left:25px}.popover.bottom-right>.arrow,.popover.top-right>.arrow{right:25px}.popover.left-top>.arrow,.popover.right-top>.arrow{top:25px}.popover.left-bottom>.arrow,.popover.right-bottom>.arrow{bottom:25px}",""])},function(t,e,n){(function(e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e){var i=r(o),u=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(u).concat([i]).join("\n")}return[n].join("\n")}function r(t){var n=new e(JSON.stringify(t)).toString("base64"),r="sourceMappingURL=data:application/json;charset=utf-8;base64,"+n;return"/*# "+r+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o>1,c=-7,l=n?o-1:0,p=n?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+t[e+l],l+=p,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=r;c>0;u=256*u+t[e+l],l+=p,c-=8);if(0===i)i=1-s;else{if(i===f)return u?NaN:(h?-1:1)*(1/0);u+=Math.pow(2,r),i-=s}return(h?-1:1)*u*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var u,a,f,s=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+l>=1?p/f:p*Math.pow(2,1-l),e*f>=2&&(u++,f/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(e*f-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[n+h]=255&a,h+=d,a/=256,o-=8);for(u=u<0;t[n+h]=255&u,h+=d,u/=256,s-=8);t[n+h-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){var n,r=window.angular;try{n=r.module(["bm.uiTour"])}catch(t){n=r.module("bm.uiTour",[])}var o="
\n
\n
\n

\n
\n
\n
\n",i="tour-step-popup.html",u=r.element(window.document).injector();u?u.get("$templateCache").put(i,o):n.run(["$templateCache",function(t){t.put(i,o)}]),t.exports=o},function(t,e){var n,r=window.angular;try{n=r.module(["bm.uiTour"])}catch(t){n=r.module("bm.uiTour",[])}var o='
\n
\n
\n
\n\n\n\n
\n\n
\n
\n',i="tour-step-template.html",u=r.element(window.document).injector();u?u.get("$templateCache").put(i,o):n.run(["$templateCache",function(t){t.put(i,o)}]),t.exports=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){"ngInject";function n(){i.addClass("no-scrolling"),i.on("touchmove",a)}function r(){i.removeClass("no-scrolling"),i.off("touchmove",a)}var o={},i=u.default.element(t[0].body),a=function(t){t.preventDefault()},f=new e({classPrefix:"ui-tour-backdrop"});return o.createForElement=function(t,e){f.setOptions(e),f.position(t[0]),f.show(),e.preventScrolling?o.shouldPreventScrolling(!0):o.shouldPreventScrolling(!1)},o.hide=function(){f.hide(),o.shouldPreventScrolling(!1)},o.shouldPreventScrolling=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?n():r()},o}o.$inject=["$document","Hone"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={top:{target:"top center",popup:"bottom center"},"top-left":{target:"top left",popup:"bottom left"},"top-right":{target:"top right",popup:"bottom right"},bottom:{target:"bottom center",popup:"top center"},"bottom-left":{target:"bottom left",popup:"top left"},"bottom-right":{target:"bottom right",popup:"top right"},left:{target:"middle left",popup:"middle right"},"left-top":{target:"top left",popup:"top right"},"left-bottom":{target:"bottom left",popup:"bottom right"},right:{target:"middle right",popup:"middle left"},"right-top":{target:"top right",popup:"top left"},"right-bottom":{target:"bottom right",popup:"bottom left"}},t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){"ngInject";var t=!1,e={placement:"top",animation:!0,popupDelay:1,closePopupDelay:0,enable:!0,appendToBody:!1,popupClass:"",orphan:!1,backdrop:!1,backdropZIndex:1e4,scrollOffset:100,scrollIntoView:!0,useUiRouter:!1,useHotkeys:!1,scrollParentId:"$document",onStart:null,onEnd:null,onPause:null,onResume:null,onNext:null,onPrev:null,onShow:null,onShown:null,onHide:null,onHidden:null};this.set=function(t,n){e[t]=n},this.enableNavigationInterceptors=function(){t=!0},this.$get=["$q",function(n){var r={};return r.get=function(t){return e[t]},r.getAll=function(){return u.default.copy(e)},r.areNavigationInterceptorsEnabled=function(){return t},function(){u.default.forEach(e,function(t,r){0===r.indexOf("on")&&u.default.isFunction(t)&&(e[r]=function(){return n.resolve(t())})})}(),r}]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,r,o,i,a,f,s,c){"ngInject";function l(){return e.resolve()}function p(){return P}function h(t){P=t}function d(t){return p()?p().config("nextPath")&&t>0?null:p().config("prevPath")&&t<0?null:_[_.indexOf(p())+t]:null}function g(t){if(u.default.isNumber(t))return _[t];if(u.default.isString(t))return _.filter(function(e){return e.stepId===t})[0];if(u.default.isObject(t)){if(~_.indexOf(t))return t;if(t.stepId)return _.filter(function(e){return e.stepId===t.stepId})[0]}return null}function v(){return d(1)}function m(){return d(-1)}function y(){return!!(v()||p()&&(p().config("nextPath")||p().onNext))}function b(){return!!(m()||p()&&(p().config("prevPath")||p().onPrev))}function w(t){return(t||l)()}function S(){c.add({combo:"esc",description:"End tour",callback:function(){T.end()}}),c.add({combo:"right",description:"Go to next step",callback:function(){y()&&T.next()}}),c.add({combo:"left",description:"Go to previous step",callback:function(){b()&&T.prev()}})}function A(){c.del("esc"),c.del("right"),c.del("left")}var E,T=this,_=[],P=null,R={OFF:0,ON:1,PAUSED:2,WAITING:3},x=R.OFF,I=o.getAll();s.mixin(T),T.addStep=function(t){~_.indexOf(t)||(_.push(t),_=n("orderBy")(_,"order"),T.emit("stepAdded",t),E&&E(t))},T.removeStep=function(t){var e=_.indexOf(t);e!==-1&&(_.splice(e,1),T.emit("stepRemoved",t))},T.reorderStep=function(t){T.removeStep(t),T.addStep(t),T.emit("stepsReordered",t)},T.hasStep=function(t){return!!g(t)},T.showStep=function(t){return e.resolve().then(function(){if(!t)throw"No step.";return w(t.config("onShow"))}).then(function(){return!t.element&&t.elementId&&(t.element=u.default.element(r[0].getElementById(t.elementId))),t.config("backdrop")&&i.createForElement(t.element,{preventScrolling:t.config("preventScrolling"),fixed:t.config("fixed"),borderRadius:t.config("backdropBorderRadius"),fullScreen:t.config("orphan"),events:{click:t.config("onBackdropClick")}}),t.element.addClass("ui-tour-active-step"),f.showPopup(t),l()}).then(function(){return w(t.config("onShown"))}).then(function(){T.emit("stepShown",t),t.isNext=y,t.isPrev=b})},T.hideStep=function(t){return e.resolve().then(function(){if(!t)throw"No step.";return w(t.config("onHide"))}).then(function(){return t.element.removeClass("ui-tour-active-step"),f.hidePopup(t),l()}).then(function(){return w(t.config("onHidden"))}).then(function(){T.emit("stepHidden",t)})},T.config=function(t){return I[t]},T.init=function(t){return I=u.default.extend(I,t),T.options=I,a._registerTour(T),T.initialized=!0,T.emit("initialized"),T},T.destroy=function(){a._unregisterTour(T)},T.start=function(){return T.startAt(0)},T.startAt=function(t){var n;return e.resolve().then(function(){return w(I.onStart)}).then(function(){return n=g(t),h(n),x=R.ON,T.emit("started",n),I.useHotkeys&&S(),T.showStep(p())})},T.end=function(){return e.resolve().then(function(){return w(I.onEnd)}).then(function(){if(p())return i.hide(),T.hideStep(p())}).then(function(){h(null),T.emit("ended"),x=R.OFF,E=null,I.useHotkeys&&A()})},T.pause=function(){return e.resolve().then(function(){return w(I.onPause)}).then(function(){return x=R.PAUSED,i.hide(),T.hideStep(p())}).then(function(){T.emit("paused",p())})},T.resume=function(){return e.resolve().then(function(){return w(I.onResume)}).then(function(){return x=R.ON,T.emit("resumed",p()),T.showStep(p())})},T.next=function(){return T.goTo("$next")},T.prev=function(){return T.goTo("$prev")},T.goTo=function(t){var n,r,o,u;return e.resolve().then(function(){if(n=p(),r=g(t),o={$prev:{getStep:m,preEvent:"onPrev",navCheck:"prevStep"},$next:{getStep:v,preEvent:"onNext",navCheck:"nextStep"}},u="$prev"===t||"$next"===t)return e.resolve().then(function(){return w(n.config(o[t].preEvent)); +}).then(function(){return T.hideStep(n)})}).then(function(){return!u||n[o[t].navCheck]&&n[o[t].navCheck]===p().stepId||(h(o[t].getStep()),T.emit("stepChanged",p())),u&&p()&&!p().config("backdrop")&&i.hide(),u&&p()&&!p().config("preventScrolling")&&i.shouldPreventScrolling(!1),u&&p()?T.showStep(p()):u?T.end():e.resolve().then(function(){if(!r)throw"No step.";return T.hideStep(p())}).then(function(){return p().config("backdrop")&&!r.config("backdrop")&&i.hide(),p().config("backdrop")&&!r.config("preventScrolling")&&i.shouldPreventScrolling(!1),h(r),T.emit("stepChanged",p()),T.showStep(r)})}).then(function(){})},T.waitFor=function(t){function n(e){e.stepId===t&&(h(_[_.indexOf(e)]),T.resume(),E=null)}return e.resolve().then(function(){return E=n,T.pause()}).then(function(){return x=R.WAITING,e.reject()})},T.createStep=function(t){var e=f.createStep(t,T);return T.initialized?T.addStep(e):T.once("initialized",function(){T.addStep(e)}),e},T.getCurrentStep=function(){return p()},T.getStatus=function(){return x},T.Status=R,T._getSteps=function(){return _},T._getCurrentStep=p,T._setCurrentStep=h}o.$inject=["$timeout","$q","$filter","$document","TourConfig","uiTourBackdrop","uiTourService","TourStepService","ezEventEmitter","hotkeys"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){"ngInject";return{restrict:"EA",scope:!0,controller:"uiTourController",link:function(e,n,r,o){var i={name:r.uiTour},a="onReady onStart onEnd onShow onShown onHide onHidden onNext onPrev onPause onResume onBackdropClick".split(" "),f="placement animation popupDelay closePopupDelay enable appendToBody popupClass orphan backdrop backdropBorderRadius scrollParentId scrollOffset scrollIntoView useUiRouter useHotkeys".split(" ");t.attachInterpolatedValues(r,i,f,"uiTour"),t.attachEventHandlers(e,r,i,a,"uiTour"),r[t.getAttrName("templateUrl","uiTour")]&&(i.templateUrl=e.$eval(r[t.getAttrName("templateUrl","uiTour")])),r[t.getAttrName("options")]&&u.default.extend(i,e.$eval(r[t.getAttrName("options")])),e.tour=o.init(i),"function"==typeof i.onReady&&i.onReady(),e.$on("$destroy",function(){o.destroy()})}}}o.$inject=["TourHelpers"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,r,o,i,a){"ngInject";function f(t){return"true"===t||"false"!==t&&t}var s,c,l={};return i.has("$state")&&(c=i.get("$state")),s=l.safeApply=function(t,e){var n=t.$root.$$phase;"$apply"===n||"$digest"===n?e&&"function"==typeof e&&e():t.$apply(e)},l.attachTourConfigProperties=function(t,e,n,r){u.default.forEach(r,function(t){!e[l.getAttrName(t)]&&u.default.isDefined(n.config(t))&&e.$set(l.getAttrName(t),String(n.config(t)))})},l.attachEventHandlers=function(t,e,n,r,i){u.default.forEach(r,function(r){var u=l.getAttrName(r,i);e[u]&&(n[r]=function(){return o(function(n){s(t,function(){n(t.$eval(e[u]))})})})})},l.attachInterpolatedValues=function(t,e,n,r){u.default.forEach(n,function(n){var o=l.getAttrName(n,r);t[o]&&(e[n]=f(t[o]),t.$observe(o,function(t){e[n]=f(t)}))})},l.setRedirect=function(t,e,r,i,u){var f=t[r];t[r]=function(r){return o(function(o){f&&f(r),e.waitFor(u),t.config("useUiRouter")?c.go(i).then(o):(n.path(i),a(o))})}},l.getAttrName=function(t,e){return(e||"tourStep")+t.charAt(0).toUpperCase()+t.substr(1)},l}o.$inject=["$http","$compile","$location","TourConfig","$q","$injector","$timeout"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){"ngInject";var n={},r=[];return n.getTour=function(){return r[0]},n.getTourByName=function(t){return r.filter(function(e){return e.options.name===t})[0]},n.getTourByElement=function(t){return u.default.element(t).controller("uiTour")},n.createDetachedTour=function(e,n){if(!e)throw{name:"ParameterMissingError",message:"A unique tour name is required for creating a detached tour."};return n=n||{},n.name=e,t("uiTourController").init(n)},n.isTourWaiting=function(){return r.reduce(function(t,e){return t||e.getStatus()===e.Status.WAITING},!1)},n.endAllTours=function(){return e.all(r.map(function(t){return t.end()}))},n._registerTour=function(t){r.push(t)},n._unregisterTour=function(t){r.splice(r.indexOf(t),1)},n}o.$inject=["$controller","$q"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){"ngInject";return{restrict:"EA",scope:!0,require:"?^uiTour",link:function(r,o,i,a){var f,s,c,l,p,h="onShow onShown onHide onHidden onNext onPrev onBackdropClick".split(" "),d="content title animation placement backdrop backdropBorderRadius orphan popupDelay popupCloseDelay popupClass fixed preventScrolling scrollIntoView nextStep prevStep nextPath prevPath scrollOffset scrollParentId".split(" ");if(i[t.getAttrName("belongsTo")]?f=e.getTourByName(i[t.getAttrName("belongsTo")]):a&&(f=a),!f)throw{name:"DependencyMissingError",message:"No tour provided for tour step."};s=f.createStep({stepId:i.tourStep,element:o}),t.attachInterpolatedValues(i,s,d),c=i.$observe(t.getAttrName("order"),function(t){s.order=isNaN(1*t)?0:1*t,f.hasStep(s)&&f.reorderStep(s)}),l=i.$observe(t.getAttrName("enabled"),function(t){s.enabled="false"!==t,s.enabled?f.addStep(s):f.removeStep(s)}),p=i.$observe(t.getAttrName("content"),function(t){t&&(s.trustedContent=n.trustAsHtml(s.content))}),t.attachEventHandlers(r,i,s,h),i[t.getAttrName("templateUrl")]&&(s.templateUrl=r.$eval(i[t.getAttrName("templateUrl")])),i[t.getAttrName("options")]&&u.default.extend(s,r.$eval(i[t.getAttrName("options")])),s.nextPath&&(s.redirectNext=!0,t.setRedirect(s,f,"onNext",s.nextPath,s.nextStep)),s.prevPath&&(s.redirectPrev=!0,t.setRedirect(s,f,"onPrev",s.prevPath,s.prevStep)),s.trustedContent=n.trustAsHtml(s.content),r.tourStep=s,r.tour=f,Object.defineProperties(s,{element:{value:o},scope:{value:r}}),r.$on("$destroy",function(){f.removeStep(s),c(),l(),p()})}}}o.$inject=["TourHelpers","uiTourService","$sce"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),u=r(i);n(8),n(9),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=["Tether","$compile","$document","$templateCache","$rootScope","$window","$q","$timeout","positionMap",function(t,e,n,r,o,u,a,f,s){"ngInject";function c(t,u){var a=i.default.extend(o.$new(),{tourStep:t,tour:u}),f=e(r.get("tour-step-popup.html"))(a),s=t.config("appendToBody")?i.default.element(n[0].body):t.element.parent();return s.append(f),f}function l(t){if(!t.config("orphan")&&t.config("scrollIntoView")){var e="$document"===t.config("scrollParentId")?n:i.default.element(n[0].getElementById(t.config("scrollParentId")));e.duScrollToElementAnimated(t.popup,t.config("scrollOffset"),500,d).then(function(){t.popup[0].focus()},function(){return"Failed to scroll."})}else t.popup[0].focus()}function p(e){e.config("orphan")||(e.tether?(e.tether.enable(),e.tether.position()):(e.tether=new t({element:e.popup[0],target:e.element[0],attachment:s[e.config("placement")].popup,targetAttachment:s[e.config("placement")].target}),e.tether.position()))}var h={},d=function(t){return t<.5?2*t*t:-1+(4-2*t)*t};return h.createStep=function(t,e){if(!t.element&&!t.elementId)throw{name:"PropertyMissingError",message:"Steps require an element or element ID to be specified"};return t.config=function(n){return i.default.isDefined(t[n])?t[n]:e.config(n)},i.default.isDefined(t.enabled)||(t.enabled=!0),t.popup=c(t,e),t},h.showPopup=function(t){p(t),u.scrollTo(u.scrollX,u.scrollY+1),f(function(){t.popup.css({visibility:"visible",display:"block"}),l(t)},100)},h.hidePopup=function(t){t.tether&&t.tether.disable(),t.popup[0].style.setProperty("display","none","important")},h}];var o=n(1),i=r(o);t.exports=e.default},function(t,e,n){function r(t,e){for(var n=0;n=0&&w.splice(e,1)}function a(t){var e=document.createElement("style");return t.attrs.type="text/css",s(e,t.attrs),i(t,e),e}function f(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",s(e,t.attrs),i(t,e),e}function s(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function c(t,e){var n,r,o;if(e.singleton){var i=b++;n=y||(y=a(e)),r=l.bind(null,n,i,!1),o=l.bind(null,n,i,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=f(e),r=h.bind(null,n,e),o=function(){u(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=p.bind(null,n),o=function(){u(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function l(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=A(e,o);else{var i=document.createTextNode(o),u=t.childNodes;u[e]&&t.removeChild(u[e]),u.length?t.insertBefore(i,u[e]):t.appendChild(i)}}function p(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function h(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=S(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var u=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(u),a&&URL.revokeObjectURL(a)}var d={},g=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},v=g(function(){return window&&document&&document.all&&!window.atob}),m=function(t){var e={};return function(n){return"undefined"==typeof e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),y=null,b=0,w=[],S=n(20);t.exports=function(t,e){e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},"undefined"==typeof e.singleton&&(e.singleton=v()),"undefined"==typeof e.insertInto&&(e.insertInto="head"),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=o(t);return r(n,e),function(t){for(var i=[],u=0;u