403Webshell
Server IP : 172.67.158.161  /  Your IP : 52.15.215.150
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/khowordpress.com/wp-content/themes/flatsome/assets/js/builder/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/khowordpress.com/wp-content/themes/flatsome/assets/js/builder/core/vendors.js
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e){t.exports=window.jQuery},function(t,e,n){var r;
/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */!function(i,o,a,s){"use strict";var u,l=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),f=Math.round,h=Math.abs,p=Date.now;function d(t,e,n){return setTimeout(w(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function g(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var $=g((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),y=g((function(t,e){return $(t,e,!0)}),"merge","Use `assign`.");function b(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function C(t,e){return void 0===t?e:t}function S(t,e,n){m(k(e),(function(e){t.addEventListener(e,n,!1)}))}function A(t,e,n){m(k(e),(function(e){t.removeEventListener(e,n,!1)}))}function E(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function _(t,e){return t.indexOf(e)>-1}function k(t){return t.trim().split(/\s+/g)}function T(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function O(t){return Array.prototype.slice.call(t,0)}function D(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];T(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function P(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((r=(n=l[o])?n+i:e)in t)return r;o++}}var M=1;function j(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var I="ontouchstart"in i,N=void 0!==P(i,"PointerEvent"),R=I&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),q=["x","y"],V=["clientX","clientY"];function F(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){x(t.options.enable,[t])&&n.handler(e)},this.init()}function L(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=H(e));i>1&&!n.firstMultiple?n.firstMultiple=H(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=U(r);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Y(s,u),e.distance=W(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=B(e.deltaX,e.deltaY);var l=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=h(l.x)>h(l.y)?l.x:l.y,e.scale=a?(c=a.pointers,f=r,W(f[0],f[1],V)/W(c[0],c[1],V)):1,e.rotation=a?function(t,e){return Y(e[1],e[0],V)+Y(t[1],t[0],V)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,c=z(s,u,l);r=c.x,i=c.y,n=h(c.x)>h(c.y)?c.x:c.y,o=B(u,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var c,f;var d=t.element;E(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function H(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f(t.pointers[n].clientX),clientY:f(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:U(e),deltaX:t.deltaX,deltaY:t.deltaY}}function U(t){var e=t.length;if(1===e)return{x:f(t[0].clientX),y:f(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:f(n/e),y:f(r/e)}}function z(t,e,n){return{x:e/t||0,y:n/t||0}}function B(t,e){return t===e?1:h(t)>=h(e)?t<0?2:4:e<0?8:16}function W(t,e,n){n||(n=q);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Y(t,e,n){n||(n=q);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}F.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(j(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,F.apply(this,arguments)}b(K,F,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},X={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",Q="pointermove pointerup pointercancel";function tt(){this.evEl=J,this.evWin=Q,F.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(J="MSPointerDown",Q="MSPointerMove MSPointerUp MSPointerCancel"),b(tt,F,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Z[r],o=X[t.pointerType]||t.pointerType,a="touch"==o,s=T(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,F.apply(this,arguments)}function rt(t,e){var n=O(t.touches),r=O(t.changedTouches);return 12&e&&(n=D(n.concat(r),"identifier",!0)),[n,r]}b(nt,F,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=rt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},F.apply(this,arguments)}function at(t,e){var n=O(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=O(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return E(t.target,u)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&e&&delete r[a[i].identifier],i++;return s.length?[D(o.concat(s),"identifier",!0),s]:void 0}b(ot,F,{handler:function(t){var e=it[t.type],n=at.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function st(){F.apply(this,arguments);var t=w(this.handler,this);this.touch=new ot(this.manager,t),this.mouse=new K(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ut(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lt.call(this,e)):12&t&&lt.call(this,e)}function lt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function ct(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}b(st,F,{handler:function(t,e,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ut.call(this,e,n);else if(i&&ct.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ft=P(c.style,"touchAction"),ht=void 0!==ft,pt=function(){if(!ht)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function dt(t,e){this.manager=t,this.set(e)}dt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ht&&this.manager.element.style&&pt[t]&&(this.manager.element.style[ft]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(_(t,"none"))return"none";var e=_(t,"pan-x"),n=_(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(_(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=_(r,"none")&&!pt.none,o=_(r,"pan-y")&&!pt["pan-y"],a=_(r,"pan-x")&&!pt["pan-x"];if(i){var s=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function vt(t){this.options=u({},this.defaults,t||{}),this.id=M++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function gt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function $t(t,e){var n=e.manager;return n?n.get(t):t}function yt(){vt.apply(this,arguments)}function bt(){yt.apply(this,arguments),this.pX=null,this.pY=null}function wt(){yt.apply(this,arguments)}function xt(){vt.apply(this,arguments),this._timer=null,this._input=null}function Ct(){yt.apply(this,arguments)}function St(){yt.apply(this,arguments)}function At(){vt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Et(t,e){return(e=e||{}).recognizers=C(e.recognizers,Et.defaults.preset),new _t(t,e)}vt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=$t(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=$t(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===T(e,t=$t(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=$t(t,this);var e=T(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+mt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+mt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},b(yt,vt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:32}}),b(bt,yt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return yt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=gt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),b(wt,yt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),b(xt,vt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),b(Ct,yt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),b(St,yt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return bt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=gt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),b(At,vt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||W(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=d((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Et.VERSION="2.0.7",Et.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ct,{enable:!1}],[wt,{enable:!1},["rotate"]],[St,{direction:6}],[bt,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[xt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function _t(t,e){var n;this.options=u({},Et.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(N?tt:R?ot:I?st:K))(n,L),this.touchAction=new dt(this,this.options.touchAction),kt(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function kt(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,(function(i,o){n=P(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}_t.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof vt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=T(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return m(k(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return m(k(t),(function(t){e?n[t]&&n[t].splice(T(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Et,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:_t,Input:F,TouchAction:dt,TouchInput:ot,MouseInput:K,PointerEventInput:tt,TouchMouseInput:st,SingleTouchInput:nt,Recognizer:vt,AttrRecognizer:yt,Tap:At,Pan:bt,Swipe:St,Pinch:wt,Rotate:Ct,Press:xt,on:S,off:A,each:m,merge:y,extend:$,assign:u,inherit:b,bindFn:w,prefixed:P}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Et,void 0===(r=function(){return Et}.call(e,n,e,t))||(t.exports=r)}(window,document)},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e),function(t){n(5),n(7),n(9),n(10),n(11);var e=n(1),r=n.n(e);t.HammerJS=r.a}.call(this,n(4))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){n(6),t.exports=angular},function(t,e){
/**
 * @license AngularJS v1.5.8
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(t?t+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1)+i;return e<o.length?jt(o[e]):t})),s+="\nhttp://errors.angularjs.org/1.5.8/"+(t?t+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(jt(o[r]));return new e(s)}}var n=/^\/(.+)\/([a-z]*)$/,r=Object.prototype.hasOwnProperty,i=function(t){return R(t)?t.toLowerCase():t},o=function(t){return R(t)?t.toUpperCase():t};"i"!=="I".toLowerCase()&&(i=function(t){return R(t)?t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(32|t.charCodeAt(0))})):t},o=function(t){return R(t)?t.replace(/[a-z]/g,(function(t){return String.fromCharCode(-33&t.charCodeAt(0))})):t});var a,s,u,l,c=[].slice,f=[].splice,h=[].push,p=Object.prototype.toString,d=Object.getPrototypeOf,v=e("ng"),m=t.angular||(t.angular={}),g=0;function $(t){if(null==t||U(t))return!1;if(F(t)||R(t)||s&&t instanceof s)return!0;var e="length"in Object(t)&&t.length;return q(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function y(t,e,n){var i,o;if(t)if(L(t))for(i in t)"prototype"==i||"length"==i||"name"==i||t.hasOwnProperty&&!t.hasOwnProperty(i)||e.call(n,t[i],i,t);else if(F(t)||$(t)){var a="object"!=typeof t;for(i=0,o=t.length;i<o;i++)(a||i in t)&&e.call(n,t[i],i,t)}else if(t.forEach&&t.forEach!==y)t.forEach(e,n,t);else if(N(t))for(i in t)e.call(n,t[i],i,t);else if("function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else for(i in t)r.call(t,i)&&e.call(n,t[i],i,t);return t}function b(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function w(t){return function(e,n){t(n,e)}}function x(){return++g}function C(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function S(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(I(a)||L(a))for(var s=Object.keys(a),u=0,l=s.length;u<l;u++){var c=s[u],f=a[c];n&&I(f)?V(f)?t[c]=new Date(f.valueOf()):H(f)?t[c]=new RegExp(f):f.nodeName?t[c]=f.cloneNode(!0):Z(f)?t[c]=f.clone():(I(t[c])||(t[c]=F(f)?[]:{}),S(t[c],[f],!0)):t[c]=f}}return C(t,r),t}function A(t){return S(t,c.call(arguments,1),!1)}function E(t){return S(t,c.call(arguments,1),!0)}function _(t){return parseInt(t,10)}function k(t,e){return A(Object.create(t),e)}function T(){}function O(t){return t}function D(t){return function(){return t}}function P(t){return L(t.toString)&&t.toString!==p}function M(t){return void 0===t}function j(t){return void 0!==t}function I(t){return null!==t&&"object"==typeof t}function N(t){return null!==t&&"object"==typeof t&&!d(t)}function R(t){return"string"==typeof t}function q(t){return"number"==typeof t}function V(t){return"[object Date]"===p.call(t)}a=t.document.documentMode,T.$inject=[],O.$inject=[];var F=Array.isArray;function L(t){return"function"==typeof t}function H(t){return"[object RegExp]"===p.call(t)}function U(t){return t&&t.window===t}function z(t){return t&&t.$evalAsync&&t.$watch}function B(t){return"boolean"==typeof t}function W(t){return t&&L(t.then)}var Y=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;var G=function(t){return R(t)?t.trim():t},K=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function Z(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function X(t){return i(t.nodeName||t[0]&&t[0].nodeName)}function J(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function Q(t,e){var n,i,o=[],a=[];if(e){if((i=e)&&q(i.length)&&Y.test(p.call(i))||(n=e,"[object ArrayBuffer]"===p.call(n)))throw v("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw v("cpi","Can't copy! Source and destination are identical.");return F(e)?e.length=0:y(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),o.push(t),a.push(e),s(t,e)}return u(t);function s(t,e){var n,i=e.$$hashKey;if(F(t))for(var o=0,a=t.length;o<a;o++)e.push(u(t[o]));else if(N(t))for(n in t)e[n]=u(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=u(t[n]));else for(n in t)r.call(t,n)&&(e[n]=u(t[n]));return C(e,i),e}function u(t){if(!I(t))return t;var e=o.indexOf(t);if(-1!==e)return a[e];if(U(t)||z(t))throw v("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var n=!1,r=function(t){switch(p.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(u(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(L(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===r&&(r=F(t)?[]:Object.create(d(t)),n=!0),o.push(t),a.push(r),n?s(t,r):r}}function tt(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r,i,o=typeof t;if(o==typeof e&&"object"==o){if(!F(t)){if(V(t))return!!V(e)&&tt(t.getTime(),e.getTime());if(H(t))return!!H(e)&&t.toString()==e.toString();if(z(t)||z(e)||U(t)||U(e)||F(e)||V(e)||H(e))return!1;for(r in i=Dt(),t)if("$"!==r.charAt(0)&&!L(t[r])){if(!tt(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&j(e[r])&&!L(e[r]))return!1;return!0}if(!F(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!tt(t[r],e[r]))return!1;return!0}}return!1}var et=function(){if(!j(et.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");et.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else et.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return et.rules},nt=function(){if(j(nt.name_))return nt.name_;var e,n,r,i,o=$t.length;for(n=0;n<o;++n)if(r=$t[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return nt.name_=i};function rt(t,e,n){return t.concat(c.call(e,n))}function it(t,e){return c.call(t,e||0)}function ot(t,e){var n=arguments.length>2?it(arguments,2):[];return!L(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,rt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function at(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:U(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":z(n)&&(r="$SCOPE"),r}function st(t,e){if(!M(t))return q(e)||(e=e?2:null),JSON.stringify(t,at,e)}function ut(t){return R(t)?JSON.parse(t):t}var lt=/:/g;function ct(t,e){t=t.replace(lt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function ft(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,n*(ct(e,r)-r))}function ht(t){t=s(t).clone();try{t.empty()}catch(t){}var e=s("<div>").append(t).html();try{return t[0].nodeType===Pt?i(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,(function(t,e){return"<"+i(e)}))}catch(t){return i(e)}}function pt(t){try{return decodeURIComponent(t)}catch(t){}}function dt(t){var e={};return y((t||"").split("&"),(function(t){var n,i,o;t&&(i=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(i=t.substring(0,n),o=t.substring(n+1)),j(i=pt(i))&&(o=!j(o)||pt(o),r.call(e,i)?F(e[i])?e[i].push(o):e[i]=[e[i],o]:e[i]=o))})),e}function vt(t){var e=[];return y(t,(function(t,n){F(t)?y(t,(function(t){e.push(gt(n,!0)+(!0===t?"":"="+gt(t,!0)))})):e.push(gt(n,!0)+(!0===t?"":"="+gt(t,!0)))})),e.length?e.join("&"):""}function mt(t){return gt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function gt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var $t=["ng-","data-ng-","ng:","x-ng-"];function yt(t,e){var n,r,i={};y($t,(function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))})),y($t,(function(e){var i,o=e+"app";!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))})),n&&(i.strictDi=null!==function(t,e){var n,r,i=$t.length;for(r=0;r<i;++r)if(n=$t[r]+e,R(n=t.getAttribute(n)))return n;return null}(n,"strict-di"),e(n,r?[r]:[],i))}function bt(e,n,r){I(r)||(r={});r=A({strictDi:!1},r);var i=function(){if((e=s(e)).injector()){var i=e[0]===t.document?"document":ht(e);throw v("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Ie(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((function(){e.data("$injector",r),n(e)(t)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&o.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(o,"")),t&&!a.test(t.name))return i();t.name=t.name.replace(a,""),m.resumeBootstrap=function(t){return y(t,(function(t){n.push(t)})),i()},L(m.resumeDeferredBootstrap)&&m.resumeDeferredBootstrap()}function wt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function xt(t){var e=m.element(t).injector();if(!e)throw v("test","no injector found for element argument to getTestability");return e.get("$$testability")}var Ct=/[A-Z]/g;function St(t,e){return e=e||"_",t.replace(Ct,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var At=!1;function Et(t,e,n){if(!t)throw v("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function _t(t,e,n){return n&&F(t)&&(t=t[t.length-1]),Et(L(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function kt(t,e){if("hasOwnProperty"===t)throw v("badname","hasOwnProperty is not a valid {0} name",e)}function Tt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;s<a;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&L(t)?ot(o,t):t}function Ot(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=s(c.call(t,0,i))),e.push(n));return e||t}function Dt(){return Object.create(null)}var Pt=3;function Mt(t,e){if(F(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(I(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function jt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):M(t)?"undefined":"string"!=typeof t?function(t){var e=[];return JSON.stringify(t,(function(t,n){if(I(n=at(t,n))){if(e.indexOf(n)>=0)return"...";e.push(n)}return n}))}(t):t}var It={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};ee.expando="ng339";var Nt=ee.cache={},Rt=1,qt=function(t,e,n){t.addEventListener(e,n,!1)},Vt=function(t,e,n){t.removeEventListener(e,n,!1)};ee._data=function(t){return this.cache[t[this.expando]]||{}};var Ft=/([\:\-\_]+(.))/g,Lt=/^moz([A-Z])/,Ht={mouseleave:"mouseout",mouseenter:"mouseover"},Ut=e("jqLite");function zt(t){return t.replace(Ft,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(Lt,"Moz$1")}var Bt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Wt=/<|&#?\w+;/,Yt=/<([\w:-]+)/,Gt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Kt={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Zt(t){return!Wt.test(t)}function Xt(t){var e=t.nodeType;return 1===e||!e||9===e}function Jt(t,e){var n,r,i,o,a=e.createDocumentFragment(),s=[];if(Zt(t))s.push(e.createTextNode(t));else{for(n=a.appendChild(e.createElement("div")),r=(Yt.exec(t)||["",""])[1].toLowerCase(),i=Kt[r]||Kt._default,n.innerHTML=i[1]+t.replace(Gt,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;s=rt(s,n.childNodes),(n=a.firstChild).textContent=""}return a.textContent="",a.innerHTML="",y(s,(function(t){a.appendChild(t)})),a}function Qt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}Kt.optgroup=Kt.option,Kt.tbody=Kt.tfoot=Kt.colgroup=Kt.caption=Kt.thead,Kt.th=Kt.td;var te=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function ee(e){if(e instanceof ee)return e;var n,r,i,o;if(R(e)&&(e=G(e),n=!0),!(this instanceof ee)){if(n&&"<"!=e.charAt(0))throw Ut("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ee(e)}fe(this,n?(r=e,i=i||t.document,(o=Bt.exec(r))?[i.createElement(o[1])]:(o=Jt(r,i))?o.childNodes:[]):e)}function ne(t){return t.cloneNode(!0)}function re(t,e){if(e||oe(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)oe(n[r])}function ie(t,e,n,r){if(j(r))throw Ut("offargs","jqLite#off() does not support the `selector` argument");var i=ae(t),o=i&&i.events,a=i&&i.handle;if(a)if(e){var s=function(e){var r=o[e];j(n)&&J(r||[],n),j(n)&&r&&r.length>0||(Vt(t,e,a),delete o[e])};y(e.split(" "),(function(t){s(t),Ht[t]&&s(Ht[t])}))}else for(e in o)"$destroy"!==e&&Vt(t,e,a),delete o[e]}function oe(t,e){var n=t.ng339,r=n&&Nt[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ie(t)),delete Nt[n],t.ng339=void 0}}function ae(t,e){var n=t.ng339,r=n&&Nt[n];return e&&!r&&(t.ng339=n=++Rt,r=Nt[n]={events:{},data:{},handle:void 0}),r}function se(t,e,n){if(Xt(t)){var r=j(n),i=!r&&e&&!I(e),o=!e,a=ae(t,!i),s=a&&a.data;if(r)s[e]=n;else{if(o)return s;if(i)return s&&s[e];A(s,e)}}}function ue(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function le(t,e){e&&t.setAttribute&&y(e.split(" "),(function(e){t.setAttribute("class",G((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+G(e)+" "," ")))}))}function ce(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");y(e.split(" "),(function(t){t=G(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")})),t.setAttribute("class",G(n))}}function fe(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function he(t,e){return pe(t,"$"+(e||"ngController")+"Controller")}function pe(t,e,n){9==t.nodeType&&(t=t.documentElement);for(var r=F(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(j(n=s.data(t,r[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function de(t){for(re(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function ve(t,e){e||re(t);var n=t.parentNode;n&&n.removeChild(t)}var me=ee.prototype={ready:function(e){var n=!1;function r(){n||(n=!0,e())}"complete"===t.document.readyState?t.setTimeout(r):(this.on("DOMContentLoaded",r),ee(t).on("load",r))},toString:function(){var t=[];return y(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return s(t>=0?this[t]:this[this.length+t])},length:0,push:h,sort:[].sort,splice:[].splice},ge={};y("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){ge[i(t)]=t}));var $e={};y("input,select,option,textarea,button,form,details".split(","),(function(t){$e[t]=!0}));var ye={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function be(t,e){var n=ge[e.toLowerCase()];return n&&$e[X(t)]&&n}function we(t,e,n){n.call(t,e)}function xe(t,e,n){var r=e.relatedTarget;r&&(r===t||te.call(t,r))||n.call(t,e)}function Ce(){this.$get=function(){return A(ee,{hasClass:function(t,e){return t.attr&&(t=t[0]),ue(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),ce(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),le(t,e)}})}}function Se(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||x)():r+":"+t}function Ae(t,e){if(e){var n=0;this.nextUid=function(){return++n}}y(t,this.put,this)}y({data:se,removeData:oe,hasData:function(t){for(var e in Nt[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)oe(t[e])}},(function(t,e){ee[e]=t})),y({data:se,inheritedData:pe,scope:function(t){return s.data(t,"$scope")||pe(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return s.data(t,"$isolateScope")||s.data(t,"$isolateScopeNoTemplate")},controller:he,injector:function(t){return pe(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:ue,css:function(t,e,n){if(e=zt(e),!j(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r=t.nodeType;if(r!==Pt&&2!==r&&8!==r){var o=i(e);if(ge[o]){if(!j(n))return t[e]||(t.attributes.getNamedItem(e)||T).specified?o:void 0;n?(t[e]=!0,t.setAttribute(e,o)):(t[e]=!1,t.removeAttribute(o))}else if(j(n))t.setAttribute(e,n);else if(t.getAttribute){var a=t.getAttribute(e,2);return null===a?void 0:a}}},prop:function(t,e,n){if(!j(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(M(e)){var n=t.nodeType;return 1===n||n===Pt?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(M(e)){if(t.multiple&&"select"===X(t)){var n=[];return y(t.options,(function(t){t.selected&&n.push(t.value||t.text)})),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(M(e))return t.innerHTML;re(t,!0),t.innerHTML=e},empty:de},(function(t,e){ee.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==de&&M(2==t.length&&t!==ue&&t!==he?e:n)){if(I(e)){for(r=0;r<o;r++)if(t===se)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=M(a)?Math.min(o,1):o,u=0;u<s;u++){var l=t(this[u],e,n);a=a?a+l:l}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}})),y({removeData:oe,on:function(t,e,n,r){if(j(r))throw Ut("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Xt(t)){var i=ae(t,!0),o=i.events,a=i.handle;a||(a=i.handle=function(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(M(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||we;o>1&&(i=Mt(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length,l=function(e,r,i){var s=o[e];s||((s=o[e]=[]).specialHandlerWrapper=r,"$destroy"===e||i||qt(t,e,a)),s.push(n)};u--;)e=s[u],Ht[e]?(l(Ht[e],xe),l(e,void 0,!0)):l(e)}},off:ie,one:function(t,e,n){(t=s(t)).on(e,(function r(){t.off(e,n),t.off(e,r)})),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;re(t),y(new ee(e),(function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:function(t){var e=[];return y(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n)for(var r=0,i=(e=new ee(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;y(new ee(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){Qt(t,s(e).eq(0).clone()[0])},remove:ve,detach:function(t){ve(t,!0)},after:function(t,e){for(var n=t,r=t.parentNode,i=0,o=(e=new ee(e)).length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:ce,removeClass:le,toggleClass:function(t,e,n){e&&y(e.split(" "),(function(e){var r=n;M(r)&&(r=!ue(t,e)),(r?ce:le)(t,e)}))},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:ne,triggerHandler:function(t,e,n){var r,i,o,a=e.type||e,s=ae(t),u=s&&s.events,l=u&&u[a];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:T,type:a,target:t},e.type&&(r=A(r,e)),i=Mt(l),o=n?[r].concat(n):[r],y(i,(function(e){r.isImmediatePropagationStopped()||e.apply(t,o)})))}},(function(t,e){ee.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)M(i)?j(i=t(this[o],e,n,r))&&(i=s(i)):fe(i,t(this[o],e,n,r));return j(i)?i:this},ee.prototype.bind=ee.prototype.on,ee.prototype.unbind=ee.prototype.off})),Ae.prototype={put:function(t,e){this[Se(t,this.nextUid)]=e},get:function(t){return this[Se(t,this.nextUid)]},remove:function(t){var e=this[t=Se(t,this.nextUid)];return delete this[t],e}};var Ee=[function(){this.$get=[function(){return Ae}]}],_e=/^([^\(]+?)=>/,ke=/^[^\(]*\(\s*([^\)]*)\)/m,Te=/,/,Oe=/^\s*(_?)(\S+?)\1\s*$/,De=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Pe=e("$injector");function Me(t){return Function.prototype.toString.call(t)+" "}function je(t){var e=Me(t).replace(De,"");return e.match(_e)||e.match(ke)}function Ie(t,e){e=!0===e;var n={},r=[],i=new Ae([],!0),o={$provide:{provider:p(d),factory:p(g),service:p((function(t,e){return g(t,["$injector",function(t){return t.instantiate(e)}])})),value:p((function(t,e){return g(t,D(e),!1)})),constant:p((function(t,e){kt(t,"constant"),o[t]=e,u[t]=e})),decorator:function(t,e){var n=s.get(t+"Provider"),r=n.$get;n.$get=function(){var t=f.invoke(r,n);return f.invoke(e,null,{$delegate:t})}}}},s=o.$injector=$(o,(function(t,e){throw m.isString(e)&&r.push(e),Pe("unpr","Unknown provider: {0}",r.join(" <- "))})),u={},c=$(u,(function(t,e){var n=s.get(t+"Provider",e);return f.invoke(n.$get,n,void 0,t)})),f=c;o.$injectorProvider={$get:D(c)};var h=function t(e){Et(M(e)||F(e),"modulesToLoad","not an array");var n,r=[];return y(e,(function(e){if(!i.get(e)){i.put(e,!0);try{R(e)?(n=l(e),r=r.concat(t(n.requires)).concat(n._runBlocks),o(n._invokeQueue),o(n._configBlocks)):L(e)||F(e)?r.push(s.invoke(e)):_t(e,"module")}catch(t){throw F(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Pe("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function o(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=s.get(r[0]);i[r[1]].apply(i,r[2])}}})),r}(t);return(f=c.get("$injector")).strictDi=e,y(h,(function(t){t&&f.invoke(t)})),f;function p(t){return function(e,n){if(!I(e))return t(e,n);y(e,w(t))}}function d(t,e){if(kt(t,"service"),(L(e)||F(e))&&(e=s.instantiate(e)),!e.$get)throw Pe("pget","Provider '{0}' must define $get factory method.",t);return o[t+"Provider"]=e}function v(t,e){return function(){var n=f.invoke(e,this);if(M(n))throw Pe("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function g(t,e,n){return d(t,{$get:!1!==n?v(t,e):e})}function $(t,i){function s(e,o){if(t.hasOwnProperty(e)){if(t[e]===n)throw Pe("cdep","Circular dependency found: {0}",e+" <- "+r.join(" <- "));return t[e]}try{return r.unshift(e),t[e]=n,t[e]=i(e,o)}catch(r){throw t[e]===n&&delete t[e],r}finally{r.shift()}}function u(t,n,r){for(var i=[],o=Ie.$$annotate(t,e,r),a=0,u=o.length;a<u;a++){var l=o[a];if("string"!=typeof l)throw Pe("itkn","Incorrect injection token! Expected service name as string, got {0}",l);i.push(n&&n.hasOwnProperty(l)?n[l]:s(l,r))}return i}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);var i,o=u(t,n,r);return F(t)&&(t=t[t.length-1]),i=t,a<=11||"function"!=typeof i||!/^(?:class\b|constructor\()/.test(Me(i))?t.apply(e,o):(o.unshift(null),new(Function.prototype.bind.apply(t,o)))},instantiate:function(t,e,n){var r=F(t)?t[t.length-1]:t,i=u(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:Ie.$$annotate,has:function(e){return o.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}}function Ne(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function a(t){if(t){t.scrollIntoView();var e=function(){var t=u.yOffset;if(L(t))t=t();else if(Z(t)){var e=t[0];t="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else q(t)||(t=0);return t}();if(e){var r=t.getBoundingClientRect().top;n.scrollBy(0,r-e)}}else n.scrollTo(0,0)}function u(t){var e,n,i;(t=R(t)?t:r.hash())?(e=o.getElementById(t))?a(e):(n=o.getElementsByName(t),i=null,Array.prototype.some.call(n,(function(t){if("a"===X(t))return i=t,!0})),(e=i)?a(e):"top"===t&&a(null)):a(null)}return e&&i.$watch((function(){return r.hash()}),(function(e,n){var r,o;e===n&&""===e||(r=function(){i.$evalAsync(u)},"complete"===(o=o||t).document.readyState?o.setTimeout(r):s(o).on("load",r))})),u}]}Ie.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw R(n)&&n||(n=t.name||function(t){var e=je(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),Pe("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);y(je(t)[1].split(Te),(function(t){t.replace(Oe,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else F(t)?(_t(t[i=t.length-1],"fn"),r=t.slice(0,i)):_t(t,"fn",!0);return r};var Re=e("$animate");function qe(t,e){return t||e?t?e?(F(t)&&(t=t.join(" ")),F(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function Ve(t){return I(t)?t:{}}var Fe=function(){this.$get=T},Le=function(){var t=new Ae,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:T,on:T,off:T,pin:T,push:function(a,s,u,l){l&&l(),(u=u||{}).from&&a.css(u.from),u.to&&a.css(u.to),(u.addClass||u.removeClass)&&function(n,a,s){var u=t.get(n)||{},l=i(u,a,!0),c=i(u,s,!1);(l||c)&&(t.put(n,u),e.push(n),1===e.length&&r.$$postDigest(o))}(a,u.addClass,u.removeClass);var c=new n;return c.complete(),c}};function i(t,e,n){var r=!1;return e&&y(e=R(e)?e.split(" "):F(e)?e:[],(function(e){e&&(r=!0,t[e]=n)})),r}function o(){y(e,(function(e){var n=t.get(e);if(n){var r=function(t){R(t)&&(t=t.split(" "));var e=Dt();return y(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",o="";y(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)})),y(e,(function(t){i&&ce(t,i),o&&le(t,o)})),t.remove(e)}})),e.length=0}}]},He=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Re("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)ng-animate(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Re("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),e(n,r=r||i.parent(),i),t.push(n,"enter",Ve(o))},move:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),e(n,r=r||i.parent(),i),t.push(n,"move",Ve(o))},leave:function(e,n){return t.push(e,"leave",Ve(n),(function(){e.remove()}))},addClass:function(e,n,r){return(r=Ve(r)).addClass=qe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return(r=Ve(r)).removeClass=qe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return(i=Ve(i)).addClass=qe(i.addClass,n),i.removeClass=qe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return(o=Ve(o)).from=o.from?A(o.from,n):n,o.to=o.to?A(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=qe(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Ue=function(){this.$get=["$$rAF",function(t){var e=[];function n(n){e.push(n),e.length>1||t((function(){for(var t=0;t<e.length;t++)e[t]();e=[]}))}return function(){var t=!1;return n((function(){t=!0})),function(e){t?e():n(e)}}}]},ze=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,r,i){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){var n=r[0];n&&n.hidden?function(t){i(t,0,!1)}(t):e(t)},this._state=0}return o.chain=function(t,e){var n=0;!function r(){if(n===t.length)return void e(!0);t[n]((function(t){!1!==t?(n++,r()):e(!1)}))}()},o.all=function(t,e){var n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}y(t,(function(t){t.done(i)}))},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:T,getPromise:function(){if(!this.promise){var e=this;this.promise=t((function(t,n){e.done((function(e){!1===e?n():t()}))}))}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick((function(){e._resolve(t)})))},_resolve:function(t){2!==this._state&&(y(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o}]},Be=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){var i=r||{};i.$$prepared||(i=Q(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(e.css(i.from),i.from=null);var o,a=new n;return{start:s,end:s};function s(){return t((function(){!function(){i.addClass&&(e.addClass(i.addClass),i.addClass=null);i.removeClass&&(e.removeClass(i.removeClass),i.removeClass=null);i.to&&(e.css(i.to),i.to=null)}(),o||a.complete(),o=!0})),a}}}]};function We(t,e,n,r){var i=this,o=t.location,a=t.history,u=t.setTimeout,l=t.clearTimeout,c={};i.isMock=!1;var f=0,h=[];function p(t){try{t.apply(null,it(arguments,1))}finally{if(0===--f)for(;h.length;)try{h.pop()()}catch(t){n.error(t)}}}i.$$completeOutstandingRequest=p,i.$$incOutstandingRequestCount=function(){f++},i.notifyWhenNoOutstandingRequests=function(t){0===f?t():h.push(t)};var d,v,m=o.href,g=e.find("base"),$=null,b=r.history?function(){try{return a.state}catch(t){}}:T;A(),v=d,i.url=function(e,n,s){if(M(s)&&(s=null),o!==t.location&&(o=t.location),a!==t.history&&(a=t.history),e){var u=v===s;if(m===e&&(!r.history||u))return i;var l=m&&Ln(m)===Ln(e);return m=e,v=s,!r.history||l&&u?(l||($=e),n?o.replace(e):l?o.hash=function(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}(e):o.href=e,o.href!==e&&($=e)):(a[n?"replaceState":"pushState"](s,"",e),A(),v=d),$&&($=e),i}return $||o.href.replace(/%27/g,"'")},i.state=function(){return d};var w=[],x=!1;function C(){$=null,A(),E()}var S=null;function A(){tt(d=M(d=b())?null:d,S)&&(d=S),S=d}function E(){m===i.url()&&v===d||(m=i.url(),v=d,y(w,(function(t){t(i.url(),d)})))}i.onUrlChange=function(e){return x||(r.history&&s(t).on("popstate",C),s(t).on("hashchange",C),x=!0),w.push(e),e},i.$$applicationDestroyed=function(){s(t).off("hashchange popstate",C)},i.$$checkUrlChange=E,i.baseHref=function(){var t=g.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},i.defer=function(t,e){var n;return f++,n=u((function(){delete c[n],p(t)}),e||0),c[n]=!0,n},i.defer.cancel=function(t){return!!c[t]&&(delete c[t],l(t),p(T),!0)}}function Ye(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new We(t,r,e,n)}]}function Ge(){this.$get=function(){var t={};function n(n,r){if(n in t)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",n);var i=0,o=A({},r,{id:n}),a=Dt(),s=r&&r.capacity||Number.MAX_VALUE,u=Dt(),l=null,c=null;return t[n]={put:function(t,e){if(!M(e)){if(s<Number.MAX_VALUE)f(u[t]||(u[t]={key:t}));return t in a||i++,a[t]=e,i>s&&this.remove(c.key),e}},get:function(t){if(s<Number.MAX_VALUE){var e=u[t];if(!e)return;f(e)}return a[t]},remove:function(t){if(s<Number.MAX_VALUE){var e=u[t];if(!e)return;e==l&&(l=e.p),e==c&&(c=e.n),h(e.n,e.p),delete u[t]}t in a&&(delete a[t],i--)},removeAll:function(){a=Dt(),i=0,u=Dt(),l=c=null},destroy:function(){a=null,o=null,u=null,delete t[n]},info:function(){return A({},o,{size:i})}};function f(t){t!=l&&(c?c==t&&(c=t.n):c=t,h(t.n,t.p),h(t,l),(l=t).n=null)}function h(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}}return n.info=function(){var e={};return y(t,(function(t,n){e[n]=t.info()})),e},n.get=function(e){return t[e]},n}}function Ke(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var Ze=e("$compile");var Xe=new function(){};function Je(e,n){var o={},u=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,l=/(([\w\-]+)(?:\:([^;]+))?;?)/,c=function(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),f=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,h=/^(on[a-z]+|formaction)$/,d=Dt();function v(t,e,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,i=Dt();return y(t,(function(t,o){if(t in d)i[o]=d[t];else{var a=t.match(r);if(!a)throw Ze("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(d[t]=i[o])}})),i}function m(t,e){var n={isolateScope:null,bindToController:null};if(I(t.scope)&&(!0===t.bindToController?(n.bindToController=v(t.scope,e,!0),n.isolateScope={}):n.isolateScope=v(t.scope,e,!1)),I(t.bindToController)&&(n.bindToController=v(t.bindToController,e,!0)),I(n.bindToController)){var r=t.controller,i=t.controllerAs;if(!r)throw Ze("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!sn(r,i))throw Ze("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}this.directive=function t(n,r){return kt(n,"directive"),R(n)?(!function(t){var e=t.charAt(0);if(!e||e!==i(e))throw Ze("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ze("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(n),Et(r,"directiveFactory"),o.hasOwnProperty(n)||(o[n]=[],e.factory(n+"Directive",["$injector","$exceptionHandler",function(t,e){var r=[];return y(o[n],(function(i,o){try{var a=t.invoke(i);L(a)?a={compile:D(a)}:!a.compile&&a.link&&(a.compile=D(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=function(t){var e=t.require||t.controller&&t.name;return!F(e)&&I(e)&&y(e,(function(t,n){var r=t.match(f);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(a),a.restrict=a.restrict||"EA",a.$$moduleName=i.$$moduleName,r.push(a)}catch(t){e(t)}})),r}])),o[n].push(r)):y(n,w(t)),this},this.component=function(t,e){var n=e.controller||function(){};function r(t){function r(e){return L(e)||F(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var i=e.template||e.templateUrl?e.template:"",o={controller:n,controllerAs:sn(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return y(e,(function(t,e){"$"===e.charAt(0)&&(o[e]=t)})),o}return y(e,(function(t,e){"$"===e.charAt(0)&&(r[e]=t,L(n)&&(n[e]=t))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationWhitelist=function(t){return j(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return j(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var g=!0;this.debugInfoEnabled=function(t){return j(t)?(g=t,this):g};var $=10;this.onChangesTtl=function(t){return arguments.length?($=t,this):$},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,d,v,b,w,x,C,S,E){var _,D=/^\w/,P=t.document.createElement("div"),N=$;function q(){try{if(!--N)throw _=void 0,Ze("infchng","{0} $onChanges() iterations reached. Aborting!\n",$);x.$apply((function(){for(var t=[],e=0,n=_.length;e<n;++e)try{_[e]()}catch(e){t.push(e)}if(_=void 0,t.length)throw t}))}finally{N++}}function V(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t}function H(t,e){try{t.addClass(e)}catch(t){}}V.prototype={$normalize:en,$addClass:function(t){t&&t.length>0&&S.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&S.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=nn(t,e);n&&n.length&&S.addClass(this.$$element,n);var r=nn(e,t);r&&r.length&&S.removeClass(this.$$element,r)},$set:function(t,e,n,r){var i,o=be(this.$$element[0],t),a=ye[t],s=t;if(o?(this.$$element.prop(t,e),r=o):a&&(this[a]=e,s=a),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=St(t,"-")),"a"===(i=X(this.$$element))&&("href"===t||"xlinkHref"===t)||"img"===i&&"src"===t)this[t]=e=E(e,"src"===t);else if("img"===i&&"srcset"===t&&j(e)){for(var u="",l=G(e),c=/\s/.test(l)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,f=l.split(c),h=Math.floor(f.length/2),p=0;p<h;p++){var v=2*p;u+=E(G(f[v]),!0),u+=" "+G(f[v+1])}var m=G(f[2*p]).split(/\s/);u+=E(G(m[0]),!0),2===m.length&&(u+=" "+G(m[1])),this[t]=e=u}!1!==n&&(null===e||M(e)?this.$$element.removeAttr(r):D.test(r)?this.$$element.attr(r,e):function(t,e,n){P.innerHTML="<span "+e+">";var r=P.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));var g=this.$$observers;g&&y(g[s],(function(t){try{t(e)}catch(t){d(t)}}))},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=Dt()),i=r[t]||(r[t]=[]);return i.push(e),x.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(t)||M(n[t])||e(n[t])})),function(){J(i,e)}}};var U=n.startSymbol(),W=n.endSymbol(),Y="{{"==U&&"}}"==W?O:function(t){return t.replace(/\{\{/g,U).replace(/}}/g,W)},K=/^ngAttr[A-Z]/,Z=/^(.+)Start$/;return Q.$$addBindingInfo=g?function(t,e){var n=t.data("$binding")||[];F(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:T,Q.$$addBindingClass=g?function(t){H(t,"ng-binding")}:T,Q.$$addScopeInfo=g?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:T,Q.$$addScopeClass=g?function(t,e){H(t,e?"ng-isolate-scope":"ng-scope")}:T,Q.$$createComment=function(e,n){var r="";return g&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},Q;function Q(e,n,r,i,o){e instanceof s||(e=s(e));for(var a=/\S+/,u=0,l=e.length;u<l;u++){var c=e[u];c.nodeType===Pt&&c.nodeValue.match(a)&&Qt(c,e[u]=t.document.createElement("span"))}var f=et(e,n,e,r,i,o);Q.$$addScopeClass(e);var h=null;return function(t,n,r){Et(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new());var i,a,u,l=(r=r||{}).parentBoundTranscludeFn,c=r.transcludeControllers,d=r.futureParentElement;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),h||(a=(i=d)&&i[0],h=a&&"foreignobject"!==X(a)&&p.call(a).match(/SVG/)?"svg":"html"),u="html"!==h?s(yt(h,s("<div>").append(e).html())):n?me.clone.call(e):e,c)for(var v in c)u.data("$"+v+"Controller",c[v].instance);return Q.$$addScopeInfo(u,t),n&&n(u,t),f&&f(t,u,u,l),u}}function et(t,e,n,r,i,o){for(var a,u,l,c,f,h,p,d=[],v=0;v<t.length;v++)a=new V,(l=(u=rt(t[v],[],a,0===v?r:void 0,i)).length?lt(u,t[v],a,e,n,null,[],[],o):null)&&l.scope&&Q.$$addScopeClass(a.$$element),f=l&&l.terminal||!(c=t[v].childNodes)||!c.length?null:et(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||f)&&(d.push(v,l,f),h=!0,p=p||l),o=null;return h?function(t,n,r,i){var o,a,u,l,c,f,h,v,m;if(p){var g=n.length;for(m=new Array(g),c=0;c<d.length;c+=3)h=d[c],m[h]=n[h]}else m=n;for(c=0,f=d.length;c<f;)u=m[d[c++]],o=d[c++],a=d[c++],o?(o.scope?(l=t.$new(),Q.$$addScopeInfo(s(u),l)):l=t,v=o.transcludeOnThisElement?nt(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?nt(t,e):null,o(a,l,u,r,v)):a&&a(t,u.childNodes,void 0,i)}:null}function nt(t,e,n){function r(r,i,o,a,s){return r||((r=t.$new(!1,s)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=Dt();for(var o in e.$$slots)e.$$slots[o]?i[o]=nt(t,e.$$slots[o],n):i[o]=null;return r}function rt(t,e,r,i,o){var s,c,f=t.nodeType,h=r.$attr;switch(f){case 1:pt(e,en(X(t)),"E",i,o);for(var p,d,v,m,g,$,y=t.attributes,b=0,w=y&&y.length;b<w;b++){var x=!1,C=!1;d=(p=y[b]).name,g=G(p.value),m=en(d),($=K.test(m))&&(d=d.replace(tn,"").substr(8).replace(/_(.)/g,(function(t,e){return e.toUpperCase()})));var S=m.match(Z);S&&dt(S[1])&&(x=d,C=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),h[v=en(d.toLowerCase())]=d,!$&&r.hasOwnProperty(v)||(r[v]=g,be(t,v)&&(r[v]=!0)),bt(t,e,g,v,$),pt(e,v,"A",i,o,x,C)}if(I(c=t.className)&&(c=c.animVal),R(c)&&""!==c)for(;s=l.exec(c);)pt(e,v=en(s[2]),"C",i,o)&&(r[v]=G(s[3])),c=c.substr(s.index+s[0].length);break;case Pt:if(11===a)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===Pt;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);!function(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&Q.$$addBindingClass(e),function(t,e){var i=e.parent();n||Q.$$addBindingClass(i),Q.$$addBindingInfo(i,r.expressions),t.$watch(r,(function(t){e[0].nodeValue=t}))}}})}(e,t.nodeValue);break;case 8:!function(t,e,n,r,i){try{var o=u.exec(t.nodeValue);if(o){var a=en(o[1]);pt(e,a,"M",r,i)&&(n[a]=G(o[2]))}}catch(t){}}(t,e,r,i,o)}return e.sort(gt),e}function at(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw Ze("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1==t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return s(r)}function st(t,e,n){return function(r,i,o,a,s){return i=at(i[0],e,n),t(r,i,o,a,s)}}function ut(t,e,n,r,i,o){var a;return t?Q(e,n,r,i,o):function(){return a||(a=Q(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function lt(t,e,n,r,i,o,a,u,l){l=l||{};for(var c,f,h,p,v,m=-Number.MAX_VALUE,g=l.newScopeDirective,$=l.controllerDirectives,b=l.newIsolateScopeDirective,x=l.templateDirective,C=l.nonTlbTranscludeDirective,S=!1,E=!1,_=l.hasElementTranscludeDirective,k=n.$$element=s(e),T=o,O=r,D=!1,P=!1,j=0,N=t.length;j<N;j++){var R=(c=t[j]).$$start,q=c.$$end;if(R&&(k=at(e,R,q)),h=void 0,m>c.priority)break;if((v=c.scope)&&(c.templateUrl||(I(v)?($t("new/isolated scope",b||g,c,k),b=c):$t("new/isolated scope",b,c,k)),g=g||c),f=c.name,!D&&(c.replace&&(c.templateUrl||c.template)||c.transclude&&!c.$$tlb)){for(var H,U=j+1;H=t[U++];)if(H.transclude&&!H.$$tlb||H.replace&&(H.templateUrl||H.template)){P=!0;break}D=!0}if(!c.templateUrl&&c.controller&&(v=c.controller,$=$||Dt(),$t("'"+f+"' controller",$[f],c,k),$[f]=c),v=c.transclude)if(S=!0,c.$$tlb||($t("transclusion",C,c,k),C=c),"element"==v)_=!0,m=c.priority,h=k,k=n.$$element=s(Q.$$createComment(f,n[f])),e=k[0],wt(i,it(h),e),h[0].$$parentNode=h[0].parentNode,O=ut(P,h,r,m,T&&T.name,{nonTlbTranscludeDirective:C});else{var B=Dt();if(h=s(ne(e)).contents(),I(v)){h=[];var W=Dt(),K=Dt();for(var Z in y(v,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,W[t]=e,B[e]=null,K[e]=n})),y(k.contents(),(function(t){var e=W[en(X(t))];e?(K[e]=!0,B[e]=B[e]||[],B[e].push(t)):h.push(t)})),y(K,(function(t,e){if(!t)throw Ze("reqslot","Required transclusion slot `{0}` was not filled.",e)})),B)B[Z]&&(B[Z]=ut(P,B[Z],r))}k.empty(),(O=ut(P,h,r,void 0,void 0,{needsNewScope:c.$$isolateScope||c.$$newScope})).$$slots=B}if(c.template)if(E=!0,$t("template",x,c,k),x=c,v=L(c.template)?c.template(k,n):c.template,v=Y(v),c.replace){if(T=c,h=Zt(v)?[]:rn(yt(c.templateNamespace,G(v))),e=h[0],1!=h.length||1!==e.nodeType)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");wt(i,k,e);var J={$attr:{}},tt=rt(e,[],J),et=t.splice(j+1,t.length-(j+1));(b||g)&&ft(tt,b,g),t=t.concat(tt).concat(et),vt(n,J),N=t.length}else k.html(v);if(c.templateUrl)E=!0,$t("template",x,c,k),x=c,c.replace&&(T=c),pt=mt(t.splice(j,t.length-j),k,n,i,S&&O,a,u,{controllerDirectives:$,newScopeDirective:g!==c&&g,newIsolateScopeDirective:b,templateDirective:x,nonTlbTranscludeDirective:C}),N=t.length;else if(c.compile)try{p=c.compile(k,n,O);var nt=c.$$originalDirective||c;L(p)?lt(null,ot(nt,p),R,q):p&&lt(ot(nt,p.pre),ot(nt,p.post),R,q)}catch(t){d(t,ht(k))}c.terminal&&(pt.terminal=!0,m=Math.max(m,c.priority))}return pt.scope=g&&!0===g.scope,pt.transcludeOnThisElement=S,pt.templateOnThisElement=E,pt.transclude=O,l.hasElementTranscludeDirective=_,pt;function lt(t,e,n,r){t&&(n&&(t=st(t,n,r)),t.require=c.require,t.directiveName=f,(b===c||c.$$isolateScope)&&(t=xt(t,{isolateScope:!0})),a.push(t)),e&&(n&&(e=st(e,n,r)),e.require=c.require,e.directiveName=f,(b===c||c.$$isolateScope)&&(e=xt(e,{isolateScope:!0})),u.push(e))}function pt(t,r,i,o,l){var c,f,h,p,v,m,C,S,E,k;for(var T in e===i?(E=n,S=n.$$element):E=new V(S=s(i),n),v=r,b?p=r.$new(!0):g&&(v=r.$parent),l&&((C=function(t,e,n,r){var i;z(t)||(r=n,n=e,e=t,t=void 0);_&&(i=m);n||(n=_?S.parent():S);if(!r)return l(t,e,i,n,N);var o=l.$$slots[r];if(o)return o(t,e,i,n,N);if(M(o))throw Ze("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ht(S))}).$$boundTransclude=l,C.isSlotFilled=function(t){return!!l.$$slots[t]}),$&&(m=function(t,e,n,r,i,o,a){var s=Dt();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=l.controller;"@"==f&&(f=e[l.name]);var h=w(f,c,!0,l.controllerAs);s[l.name]=h,t.data("$"+l.name+"Controller",h.instance)}return s}(S,E,C,$,p,r,b)),b&&(Q.$$addScopeInfo(S,p,!0,!(x&&(x===b||x===b.$$originalDirective))),Q.$$addScopeClass(S,!0),p.$$isolateBindings=b.$$isolateBindings,(k=At(r,E,p,p.$$isolateBindings,b)).removeWatches&&p.$on("$destroy",k.removeWatches)),m){var O=$[T],D=m[T],P=O.$$bindings.bindToController;D.identifier&&P?D.bindingInfo=At(v,E,D.instance,P,O):D.bindingInfo={};var j=D();j!==D.instance&&(D.instance=j,S.data("$"+O.name+"Controller",j),D.bindingInfo.removeWatches&&D.bindingInfo.removeWatches(),D.bindingInfo=At(v,E,D.instance,P,O))}for(y($,(function(t,e){var n=t.require;t.bindToController&&!F(n)&&I(n)&&A(m[e].instance,ct(e,n,S,m))})),y(m,(function(t){var e=t.instance;if(L(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){d(t)}if(L(e.$onInit))try{e.$onInit()}catch(t){d(t)}L(e.$doCheck)&&(v.$watch((function(){e.$doCheck()})),e.$doCheck()),L(e.$onDestroy)&&v.$on("$destroy",(function(){e.$onDestroy()}))})),c=0,f=a.length;c<f;c++)Ct(h=a[c],h.isolateScope?p:r,S,E,h.require&&ct(h.directiveName,h.require,S,m),C);var N=r;for(b&&(b.template||null===b.templateUrl)&&(N=p),t&&t(N,i.childNodes,void 0,l),c=u.length-1;c>=0;c--)Ct(h=u[c],h.isolateScope?p:r,S,E,h.require&&ct(h.directiveName,h.require,S,m),C);y(m,(function(t){var e=t.instance;L(e.$postLink)&&e.$postLink()}))}}function ct(t,e,n,r){var i;if(R(e)){var o=e.match(f),a=e.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():i=(i=r&&r[a])&&i.instance,!i){var l="$"+a+"Controller";i=s?n.inheritedData(l):n.data(l)}if(!i&&!u)throw Ze("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(F(e)){i=[];for(var c=0,h=e.length;c<h;c++)i[c]=ct(t,e[c],n,r)}else I(e)&&(i={},y(e,(function(e,o){i[o]=ct(t,e,n,r)})));return i||null}function ft(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=k(t[r],{$$isolateScope:e,$$newScope:n})}function pt(t,n,r,i,a,s,u){if(n===a)return null;var l=null;if(o.hasOwnProperty(n))for(var c,f=e.get(n+"Directive"),h=0,p=f.length;h<p;h++)try{if(c=f[h],(M(i)||i>c.priority)&&-1!=c.restrict.indexOf(r)){if(s&&(c=k(c,{$$start:s,$$end:u})),!c.$$bindings){var v=c.$$bindings=m(c,c.name);I(v.isolateScope)&&(c.$$isolateBindings=v.isolateScope)}t.push(c),l=c}}catch(t){d(t)}return l}function dt(t){if(o.hasOwnProperty(t))for(var n=e.get(t+"Directive"),r=0,i=n.length;r<i;r++)if(n[r].multiElement)return!0;return!1}function vt(t,e){var n=e.$attr,r=t.$attr;t.$$element;y(t,(function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))})),y(e,(function(e,i){t.hasOwnProperty(i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function mt(t,e,n,r,i,o,a,u){var l,c,f=[],h=e[0],p=t.shift(),d=k(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),m=L(p.templateUrl)?p.templateUrl(e,n):p.templateUrl,g=p.templateNamespace;return e.empty(),v(m).then((function(v){var $,b,w,x;if(v=Y(v),p.replace){if(w=Zt(v)?[]:rn(yt(g,G(v))),$=w[0],1!=w.length||1!==$.nodeType)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,m);b={$attr:{}},wt(r,e,$);var C=rt($,[],b);I(p.scope)&&ft(C,!0),t=C.concat(t),vt(n,b)}else $=h,e.html(v);for(t.unshift(d),l=lt(t,$,n,i,e,p,o,a,u),y(r,(function(t,n){t==$&&(r[n]=e[0])})),c=et(e[0].childNodes,i);f.length;){var S=f.shift(),A=f.shift(),E=f.shift(),_=f.shift(),k=e[0];if(!S.$$destroyed){if(A!==h){var T=A.className;u.hasElementTranscludeDirective&&p.replace||(k=ne($)),wt(E,s(A),k),H(s(k),T)}x=l.transcludeOnThisElement?nt(S,l.transclude,_):_,l(c,S,k,r,x)}}f=null})),function(t,e,n,r,i){var o=i;e.$$destroyed||(f?f.push(e,n,r,o):(l.transcludeOnThisElement&&(o=nt(e,l.transclude,i)),l(c,e,n,r,o)))}}function gt(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function $t(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Ze("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,ht(r))}function yt(e,n){switch(e=i(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function bt(t,e,r,i,o){var a=function(t,e){if("srcdoc"==e)return C.HTML;var n=X(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}(t,i);o=c[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===X(t))throw Ze("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ht(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers=Dt());if(h.test(i))throw Ze("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,(function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)})))}}}})}}function wt(e,n,r){var i,o,a=n[0],u=n.length,l=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var c=i,f=c+u-1,h=e.length;c<h;c++,f++)f<h?e[c]=e[f]:delete e[c];e.length-=u-1,e.context===a&&(e.context=r);break}l&&l.replaceChild(r,a);var p=t.document.createDocumentFragment();for(i=0;i<u;i++)p.appendChild(n[i]);for(s.hasData(a)&&(s.data(r,s.data(a)),s(a).off("$destroy")),s.cleanData(p.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function xt(t,e){return A((function(){return t.apply(null,arguments)}),t,e)}function Ct(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){d(t,ht(n))}}function At(t,e,i,o,a){var s,u=[],l={};function c(e,n,r){L(i.$onChanges)&&n!==r&&(_||(t.$$postDigest(q),_=[]),s||(s={},_.push(f)),s[e]&&(r=s[e].previousValue),s[e]=new Qe(r,n))}function f(){i.$onChanges(s),s=void 0}return y(o,(function(o,s){var f,h,p,d,v,m=o.attrName,g=o.optional;switch(o.mode){case"@":g||r.call(e,m)||(i[s]=e[m]=void 0),e.$observe(m,(function(t){if(R(t)||B(t)){var e=i[s];c(s,t,e),i[s]=t}})),e.$$observers[m].$$scope=t,R(f=e[m])?i[s]=n(f)(t):B(f)&&(i[s]=f),l[s]=new Qe(Xe,i[s]);break;case"=":if(!r.call(e,m)){if(g)break;e[m]=void 0}if(g&&!e[m])break;h=b(e[m]),d=h.literal?tt:function(t,e){return t===e||t!=t&&e!=e},p=h.assign||function(){throw f=i[s]=h(t),Ze("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[m],m,a.name)},f=i[s]=h(t);var $=function(e){return d(e,i[s])||(d(e,f)?p(t,e=i[s]):i[s]=e),f=e};$.$stateful=!0,v=o.collection?t.$watchCollection(e[m],$):t.$watch(b(e[m],$),null,h.literal),u.push(v);break;case"<":if(!r.call(e,m)){if(g)break;e[m]=void 0}if(g&&!e[m])break;h=b(e[m]);var y=i[s]=h(t);l[s]=new Qe(Xe,i[s]),v=t.$watch(h,(function(t,e){if(e===t){if(e===y)return;e=y}c(s,t,e),i[s]=t}),h.literal),u.push(v);break;case"&":if((h=e.hasOwnProperty(m)?b(e[m]):T)===T&&g)break;i[s]=function(e){return h(t,e)}}})),{initialChanges:l,removeWatches:u.length&&function(){for(var t=0,e=u.length;t<e;++t)u[t]()}}}}]}function Qe(t,e){this.previousValue=t,this.currentValue=e}Je.$inject=["$provide","$$sanitizeUriProvider"],Qe.prototype.isFirstChange=function(){return this.previousValue===Xe};var tn=/^((?:x|data)[\:\-_])/i;function en(t){return zt(t.replace(tn,""))}function nn(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue t;n+=(n.length>0?" ":"")+a}return n}function rn(t){var e=(t=s(t)).length;if(e<=1)return t;for(;e--;){8===t[e].nodeType&&f.call(t,e,1)}return t}var on=e("$controller"),an=/^(\S+)(\s+as\s+([\w$]+))?$/;function sn(t,e){if(e&&R(e))return e;if(R(t)){var n=an.exec(t);if(n)return n[3]}}function un(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){kt(e,"controller"),I(e)?A(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){return function(e,a,s,u){var l,c,f,h;if(s=!0===s,u&&R(u)&&(h=u),R(e)){if(!(c=e.match(an)))throw on("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);f=c[1],h=h||c[3],_t(e=t.hasOwnProperty(f)?t[f]:Tt(a.$scope,f,!0)||(n?Tt(i,f,!0):void 0),f,!0)}if(s){var p=(F(e)?e[e.length-1]:e).prototype;return l=Object.create(p||null),h&&o(a,h,l,f||e.name),A((function(){var t=r.invoke(e,l,a,f);return t!==l&&(I(t)||L(t))&&(l=t,h&&o(a,h,l,f||e.name)),l}),{instance:l,identifier:h})}return l=r.instantiate(e,a,f),h&&o(a,h,l,f||e.name),l};function o(t,n,r,i){if(!t||!I(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}}]}function ln(){this.$get=["$window",function(t){return s(t.document)}]}function cn(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var fn=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof s&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},hn={"Content-Type":"application/json;charset=utf-8"},pn=/^\[|^\{(?!\{)/,dn={"[":/]$/,"{":/}$/},vn=/^\)\]\}',?\n/,mn=e("$http"),gn=function(t){return function(){throw mn("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}};function $n(t){return I(t)?V(t)?t.toISOString():st(t):t}function yn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return b(t,(function(t,n){null===t||M(t)||(F(t)?y(t,(function(t){e.push(gt(n)+"="+gt($n(t)))})):e.push(gt(n)+"="+gt($n(t))))})),e.join("&")}}}function bn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,r,i){if(null===n||M(n))return;F(n)?y(n,(function(e,n){t(e,r+"["+(I(e)?n:"")+"]")})):I(n)&&!V(n)?b(n,(function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))})):e.push(gt(r)+"="+gt($n(n)))}(t,"",!0),e.join("&")}}}function wn(t,e){if(R(t)){var n=t.replace(vn,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf("application/json")||(o=(i=n).match(pn))&&dn[o[0]].test(i))&&(t=ut(n))}}var i,o;return t}function xn(t){var e,n=Dt();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return R(t)?y(t.split("\n"),(function(t){e=t.indexOf(":"),r(i(G(t.substr(0,e))),G(t.substr(e+1)))})):I(t)&&y(t,(function(t,e){r(i(e),G(t))})),n}function Cn(t){var e;return function(n){if(e||(e=xn(t)),n){var r=e[i(n)];return void 0===r&&(r=null),r}return e}}function Sn(t,e,n,r){return L(r)?r(t,e,n):(y(r,(function(r){t=r(t,e,n)})),t)}function An(t){return 200<=t&&t<300}function En(){var t=this.defaults={transformResponse:[wn],transformRequest:[function(t){return!I(t)||(e=t,"[object File]"===p.call(e))||function(t){return"[object Blob]"===p.call(t)}(t)||function(t){return"[object FormData]"===p.call(t)}(t)?t:st(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Mt(hn),put:Mt(hn),patch:Mt(hn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return j(t)?(n=!!t,this):n};var r=!0;this.useLegacyPromiseExtensions=function(t){return j(t)?(r=!!t,this):r};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,u,l,c,f,h){var p=l("$http");t.paramSerializer=R(t.paramSerializer)?h.get(t.paramSerializer):t.paramSerializer;var d=[];function v(a){if(!I(a))throw e("$http")("badreq","Http request configuration must be an object.  Received: {0}",a);if(!R(a.url))throw e("$http")("badreq","Http request configuration url must be a string.  Received: {0}",a.url);var l=A({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},a);l.headers=function(e){var n,r,o,a=t.headers,s=A({},e.headers);a=A({},a.common,a[i(e.method)]);t:for(n in a){for(o in r=i(n),s)if(i(o)===r)continue t;s[n]=a[n]}return function(t,e){var n,r={};return y(t,(function(t,i){L(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t})),r}(s,Mt(e))}(a),l.method=o(l.method),l.paramSerializer=R(l.paramSerializer)?h.get(l.paramSerializer):l.paramSerializer;var m=[],g=[],$=f.when(l);return y(d,(function(t){(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&g.push(t.response,t.responseError)})),$=b($,m),$=b($=$.then((function(e){var r=e.headers,o=Sn(e.data,Cn(r),void 0,e.transformRequest);M(o)&&y(r,(function(t,e){"content-type"===i(e)&&delete r[e]}));M(e.withCredentials)&&!M(t.withCredentials)&&(e.withCredentials=t.withCredentials);return function(e,r){var i,o,a=f.defer(),l=a.promise,h=e.headers,d=function(t,e){e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e);return t}(e.url,e.paramSerializer(e.params));v.pendingRequests.push(e),l.then(w,w),!e.cache&&!t.cache||!1===e.cache||"GET"!==e.method&&"JSONP"!==e.method||(i=I(e.cache)?e.cache:I(t.cache)?t.cache:p);i&&(j(o=i.get(d))?W(o)?o.then(b,b):F(o)?$(o[1],o[0],Mt(o[2]),o[3]):$(o,200,{},"OK"):i.put(d,l));if(M(o)){var m=Br(e.url)?u()[e.xsrfCookieName||t.xsrfCookieName]:void 0;m&&(h[e.xsrfHeaderName||t.xsrfHeaderName]=m),s(e.method,d,r,(function(t,e,r,o){i&&(An(t)?i.put(d,[t,e,xn(r),o]):i.remove(d));function a(){$(e,t,r,o)}n?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}),h,e.timeout,e.withCredentials,e.responseType,g(e.eventHandlers),g(e.uploadEventHandlers))}return l;function g(t){if(t){var e={};return y(t,(function(t,r){e[r]=function(e){function r(){t(e)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),e}}function $(t,n,r,i){(An(n=n>=-1?n:0)?a.resolve:a.reject)({data:t,status:n,headers:Cn(r),config:e,statusText:i})}function b(t){$(t.data,t.status,Mt(t.headers()),t.statusText)}function w(){var t=v.pendingRequests.indexOf(e);-1!==t&&v.pendingRequests.splice(t,1)}}(e,o).then(w,w)})),g),r?($.success=function(t){return _t(t,"fn"),$.then((function(e){t(e.data,e.status,e.headers,l)})),$},$.error=function(t){return _t(t,"fn"),$.then(null,(function(e){t(e.data,e.status,e.headers,l)})),$}):($.success=gn("success"),$.error=gn("error")),$;function b(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function w(t){var e=A({},t);return e.data=Sn(t.data,t.headers,t.status,l.transformResponse),An(t.status)?e:f.reject(e)}}return y(a,(function(t){d.unshift(R(t)?h.get(t):h.invoke(t))})),v.pendingRequests=[],function(t){y(arguments,(function(t){v[t]=function(e,n){return v(A({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){y(arguments,(function(t){v[t]=function(e,n,r){return v(A({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),v.defaults=t,v}]}function _n(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function kn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return function(t,e,n,r,o){return function(a,s,u,l,c,f,h,p,d,v){if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"===i(a))var m=r.createCallback(s),g=function(t,e,n){t=t.replace("JSON_CALLBACK",e);var i=o.createElement("script"),a=null;return i.type="text/javascript",i.src=t,i.async=!0,a=function(t){Vt(i,"load",a),Vt(i,"error",a),o.body.removeChild(i),i=null;var s=-1,u="unknown";t&&("load"!==t.type||r.wasCalled(e)||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},qt(i,"load",a),qt(i,"error",a),o.body.appendChild(i),a}(s,m,(function(t,e){var n=200===t&&r.getResponse(m);C(l,t,n,"",e),r.removeCallback(m)}));else{var $=e(a,s);$.open(a,s,!0),y(c,(function(t,e){j(t)&&$.setRequestHeader(e,t)})),$.onload=function(){var t=$.statusText||"",e="response"in $?$.response:$.responseText,n=1223===$.status?204:$.status;0===n&&(n=e?200:"file"==zr(s).protocol?404:0),C(l,n,e,$.getAllResponseHeaders(),t)};var b=function(){C(l,-1,null,null,"")};if($.onerror=b,$.onabort=b,y(d,(function(t,e){$.addEventListener(e,t)})),y(v,(function(t,e){$.upload.addEventListener(e,t)})),h&&($.withCredentials=!0),p)try{$.responseType=p}catch(t){if("json"!==p)throw t}$.send(M(u)?null:u)}if(f>0)var w=n(x,f);else W(f)&&f.then(x);function x(){g&&g(),$&&$.abort()}function C(e,r,i,o,a){j(w)&&n.cancel(w),g=$=null,e(r,i,o,a),t.$$completeOutstandingRequest(T)}}}(t,r,t.defer,e,n[0])}]}var Tn=m.$interpolateMinErr=e("$interpolate");function On(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=t.length,a=e.length,s=new RegExp(t.replace(/./g,l),"g"),u=new RegExp(e.replace(/./g,l),"g");function l(t){return"\\\\\\"+t}function c(n){return n.replace(s,t).replace(u,e)}function f(t,e,n,r){var i;return i=t.$watch((function(t){return i(),r(t)}),e,n)}function h(s,u,l,h){if(!s.length||-1===s.indexOf(t)){var p;if(!u)(p=D(c(s))).exp=s,p.expressions=[],p.$$watchDelegate=f;return p}h=!!h;for(var d,v,m,g=0,$=[],y=[],b=s.length,w=[],x=[];g<b;){if(-1==(d=s.indexOf(t,g))||-1==(v=s.indexOf(e,d+o))){g!==b&&w.push(c(s.substring(g)));break}g!==d&&w.push(c(s.substring(g,d))),m=s.substring(d+o,v),$.push(m),y.push(n(m,E)),g=v+a,x.push(w.length),w.push("")}if(l&&w.length>1&&Tn.throwNoconcat(s),!u||$.length){var C=function(t){for(var e=0,n=$.length;e<n;e++){if(h&&M(t[e]))return;w[x[e]]=t[e]}return w.join("")},S=function(t){return l?i.getTrusted(l,t):i.valueOf(t)};return A((function(t){var e=0,n=$.length,i=new Array(n);try{for(;e<n;e++)i[e]=y[e](t);return C(i)}catch(t){r(Tn.interr(s,t))}}),{exp:s,expressions:$,$$watchDelegate:function(t,e){var n;return t.$watchGroup(y,(function(r,i){var o=C(r);L(e)&&e.call(this,o,r!==i?n:o,t),n=o}))}})}function E(t){try{return t=S(t),h&&!j(t)?t:function(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=st(t)}return t}(t)}catch(t){r(Tn.interr(s,t))}}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}function Dn(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){var o={};function a(a,s,u,l){var c=arguments.length>4,f=c?it(arguments,4):[],h=e.setInterval,p=e.clearInterval,d=0,v=j(l)&&!l,m=(v?r:n).defer(),g=m.promise;return u=j(u)?u:0,g.$$intervalId=h((function(){v?i.defer($):t.$evalAsync($),m.notify(d++),u>0&&d>=u&&(m.resolve(d),p(g.$$intervalId),delete o[g.$$intervalId]),v||t.$apply()}),s),o[g.$$intervalId]=m,g;function $(){c?a.apply(null,f):a(d)}}return a.cancel=function(t){return!(!t||!(t.$$intervalId in o))&&(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},a}]}Tn.throwNoconcat=function(t){throw Tn("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",t)},Tn.interr=function(t,e){return Tn("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Pn=function(){this.$get=["$window",function(t){var e=t.angular.callbacks,n={};return{createCallback:function(t){var r="_"+(e.$$counter++).toString(36),i="angular.callbacks."+r,o=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(r);return n[i]=e[r]=o,i},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(t){var r=n[t];delete e[r.id],delete n[t]}}}]},Mn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,jn={http:80,https:443,ftp:21},In=e("$location");function Nn(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=mt(e[n]);return e.join("/")}function Rn(t,e){var n=zr(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=_(n.port)||jn[n.protocol]||null}function qn(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=zr(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=dt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Vn(t,e){return 0===t.lastIndexOf(e,0)}function Fn(t,e){if(Vn(e,t))return e.substr(t.length)}function Ln(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function Hn(t){return t.replace(/(#.+)|#$/,"$1")}function Un(t,e,n){this.$$html5=!0,n=n||"",Rn(t,this),this.$$parse=function(t){var n=Fn(e,t);if(!R(n))throw In("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);qn(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=vt(this.$$search),n=this.$$hash?"#"+mt(this.$$hash):"";this.$$url=Nn(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(j(o=Fn(t,r))?(a=o,s=j(o=Fn(n,o))?e+(Fn("/",o)||o):t+a):j(o=Fn(e,r))?s=e+o:e==r+"/"&&(s=e),s&&this.$$parse(s),!!s);var o,a,s}}function zn(t,e,n){Rn(t,this),this.$$parse=function(r){var i,o=Fn(t,r)||Fn(e,r);M(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",M(o)&&(t=r,this.replace())):M(i=Fn(n,o))&&(i=o),qn(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;Vn(e,n)&&(e=e.replace(n,""));if(i.exec(e))return t;return(r=i.exec(t))?r[1]:t}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=vt(this.$$search),r=this.$$hash?"#"+mt(this.$$hash):"";this.$$url=Nn(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Ln(t)==Ln(e)&&(this.$$parse(e),!0)}}function Bn(t,e,n){this.$$html5=!0,zn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t==Ln(r)?o=r:(a=Fn(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,a},this.$$compose=function(){var e=vt(this.$$search),r=this.$$hash?"#"+mt(this.$$hash):"";this.$$url=Nn(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}var Wn={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Yn("$$absUrl"),url:function(t){if(M(t))return this.$$url;var e=Mn.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Yn("$$protocol"),host:Yn("$$host"),port:Yn("$$port"),path:Gn("$$path",(function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t})),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(R(t)||q(t))t=t.toString(),this.$$search=dt(t);else{if(!I(t))throw In("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");y(t=Q(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:M(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Gn("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function Yn(t){return function(){return this[t]}}function Gn(t,e){return function(n){return M(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Kn(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return j(e)?(t=e,this):t},this.html5Mode=function(t){return B(t)?(e.enabled=t,this):I(t)?(B(t.enabled)&&(e.enabled=t.enabled),B(t.requireBase)&&(e.requireBase=t.requireBase),B(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){var u,l,c,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw In("nobase","$location in HTML5 mode requires a <base> tag to be present!");c=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(h||"/"),l=i.history?Un:Bn}else c=Ln(p),l=zn;var d=function(t){return t.substr(0,Ln(t).lastIndexOf("/")+1)}(c);(u=new l(c,d,"#"+t)).$$parseLinkUrl(p,p),u.$$state=r.state();var v=/^\s*(javascript|mailto):/i;function m(t,e,n){var i=u.url(),o=u.$$state;try{r.url(t,e,n),u.$$state=r.state()}catch(t){throw u.url(i),u.$$state=o,t}}o.on("click",(function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=s(t.target);"a"!==X(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var l=i.prop("href"),c=i.attr("href")||i.attr("xlink:href");I(l)&&"[object SVGAnimatedString]"===l.toString()&&(l=zr(l.animVal).href),v.test(l)||!l||i.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(l,c)&&(t.preventDefault(),u.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}})),Hn(u.absUrl())!=Hn(p)&&r.url(u.absUrl(),!0);var g=!0;return r.onUrlChange((function(t,e){M(Fn(d,t))?a.location.href=t:(n.$evalAsync((function(){var r,i=u.absUrl(),o=u.$$state;t=Hn(t),u.$$parse(t),u.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,u.absUrl()===t&&(r?(u.$$parse(i),u.$$state=o,m(i,!1,o)):(g=!1,$(i,o)))})),n.$$phase||n.$digest())})),n.$watch((function(){var t=Hn(r.url()),e=Hn(u.absUrl()),o=r.state(),a=u.$$replace,s=t!==e||u.$$html5&&i.history&&o!==u.$$state;(g||s)&&(g=!1,n.$evalAsync((function(){var e=u.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,u.$$state,o).defaultPrevented;u.absUrl()===e&&(r?(u.$$parse(t),u.$$state=o):(s&&m(e,a,o===u.$$state?null:u.$$state),$(t,o)))}))),u.$$replace=!1})),u;function $(t,e){n.$broadcast("$locationChangeSuccess",u.absUrl(),t,u.$$state,e)}}]}function Zn(){var t=!0,e=this;this.debugEnabled=function(e){return j(e)?(t=e,this):t},this.$get=["$window",function(n){return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:(r=o("debug"),function(){t&&r.apply(e,arguments)})};var r;function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},r=e[t]||e.log||T,o=!1;try{o=!!r.apply}catch(t){}return o?function(){var t=[];return y(arguments,(function(e){t.push(i(e))})),r.apply(e,t)}:function(t,e){r(t,null==e?"":e)}}}]}y([Bn,zn,Un],(function(t){t.prototype=Object.create(Wn),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Un||!this.$$html5)throw In("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=M(e)?null:e,this}}));var Xn=e("$parse");function Jn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Xn("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Qn(t){return t+""}function tr(t,e){if(t){if(t.constructor===t)throw Xn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Xn("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Xn("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Xn("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}var er=Function.prototype.call,nr=Function.prototype.apply,rr=Function.prototype.bind;function ir(t,e){if(t){if(t.constructor===t)throw Xn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===er||t===nr||t===rr)throw Xn("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function or(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Xn("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}var ar=Dt();y("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){ar[t]=!0}));var sr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ur=function(t){this.options=t};ur.prototype={constructor:ur,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=ar[e],o=ar[n],a=ar[r];if(i||o||a){var s=a?r:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=j(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Xn("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=i(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=sr[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var lr=function(t,e){this.lexer=t,this.options=e};function cr(t,e){return void 0!==t?t:e}function fr(t,e){return void 0===t?e:void 0===e?t:t+e}function hr(t,e){return!t(e).$stateful}function pr(t,e){var n,r;switch(t.type){case lr.Program:n=!0,y(t.body,(function(t){pr(t.expression,e),n=n&&t.expression.constant})),t.constant=n;break;case lr.Literal:t.constant=!0,t.toWatch=[];break;case lr.UnaryExpression:pr(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case lr.BinaryExpression:pr(t.left,e),pr(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case lr.LogicalExpression:pr(t.left,e),pr(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case lr.ConditionalExpression:pr(t.test,e),pr(t.alternate,e),pr(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case lr.Identifier:t.constant=!1,t.toWatch=[t];break;case lr.MemberExpression:pr(t.object,e),t.computed&&pr(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case lr.CallExpression:n=!!t.filter&&hr(e,t.callee.name),r=[],y(t.arguments,(function(t){pr(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)})),t.constant=n,t.toWatch=t.filter&&hr(e,t.callee.name)?r:[t];break;case lr.AssignmentExpression:pr(t.left,e),pr(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case lr.ArrayExpression:n=!0,r=[],y(t.elements,(function(t){pr(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)})),t.constant=n,t.toWatch=r;break;case lr.ObjectExpression:n=!0,r=[],y(t.properties,(function(t){pr(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||r.push.apply(r,t.value.toWatch)})),t.constant=n,t.toWatch=r;break;case lr.ThisExpression:case lr.LocalsExpression:t.constant=!1,t.toWatch=[]}}function dr(t){if(1==t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}}function vr(t){return t.type===lr.Identifier||t.type===lr.MemberExpression}function mr(t){if(1===t.body.length&&vr(t.body[0].expression))return{type:lr.AssignmentExpression,left:t.body[0].expression,right:{type:lr.NGValueParameter},operator:"="}}function gr(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===lr.Literal||t.body[0].expression.type===lr.ArrayExpression||t.body[0].expression.type===lr.ObjectExpression)}function $r(t){return t.constant}function yr(t,e){this.astBuilder=t,this.$filter=e}function br(t,e){this.astBuilder=t,this.$filter=e}lr.Program="Program",lr.ExpressionStatement="ExpressionStatement",lr.AssignmentExpression="AssignmentExpression",lr.ConditionalExpression="ConditionalExpression",lr.LogicalExpression="LogicalExpression",lr.BinaryExpression="BinaryExpression",lr.UnaryExpression="UnaryExpression",lr.CallExpression="CallExpression",lr.MemberExpression="MemberExpression",lr.Identifier="Identifier",lr.Literal="Literal",lr.ArrayExpression="ArrayExpression",lr.Property="Property",lr.ObjectExpression="ObjectExpression",lr.ThisExpression="ThisExpression",lr.LocalsExpression="LocalsExpression",lr.NGValueParameter="NGValueParameter",lr.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:lr.Program,body:t}},expressionStatement:function(){return{type:lr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:lr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:lr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:lr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:lr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:lr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:lr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:lr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:lr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:lr.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=Q(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:lr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:lr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:lr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:lr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:lr.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:lr.Identifier,name:t.text}},constant:function(){return{type:lr.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:lr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:lr.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:lr.ObjectExpression,properties:e}},throwError:function(t,e){throw Xn("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Xn("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Xn("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:lr.ThisExpression},$locals:{type:lr.LocalsExpression}}},yr.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},pr(r,n.$filter);var i,o="";if(this.stage="assign",i=mr(r)){this.state.computing="assign";var a=this.nextId();this.recurse(i,a),this.return_(a),o="fn.assign="+this.generateFunction("assign","s,v,l")}var s=dr(r.body);n.stage="inputs",y(s,(function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e})),this.state.computing="fn",this.stage="main",this.recurse(r);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",u)(this.$filter,Jn,tr,ir,Qn,or,cr,fr,t);return this.state=this.stage=void 0,l.literal=gr(r),l.constant=$r(r),l},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return y(e,(function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))})),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return y(this.state.filters,(function(n,r){t.push(n+"=$filter("+e.escape(r)+")")})),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,r,i,o){var a,s,u,l,c,f=this;if(r=r||T,!o&&j(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case lr.Program:y(t.body,(function(e,n){f.recurse(e.expression,void 0,void 0,(function(t){s=t})),n!==t.body.length-1?f.current().body.push(s,";"):f.return_(s)}));break;case lr.Literal:l=this.escape(t.value),this.assign(e,l),r(l);break;case lr.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){s=t})),l=t.operator+"("+this.ifDefined(s,0)+")",this.assign(e,l),r(l);break;case lr.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){a=t})),this.recurse(t.right,void 0,void 0,(function(t){s=t})),l="+"===t.operator?this.plus(a,s):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(s,0):"("+a+")"+t.operator+"("+s+")",this.assign(e,l),r(l);break;case lr.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),r(e);break;case lr.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),r(e);break;case lr.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),Jn(t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.not(f.nonComputedMember("s",t.name)),f.lazyAssign(f.nonComputedMember("s",t.name),"{}")),f.assign(e,f.nonComputedMember("s",t.name))}))}),e&&f.lazyAssign(e,f.nonComputedMember("l",t.name))),(f.state.expensiveChecks||xr(t.name))&&f.addEnsureSafeObject(e),r(e);break;case lr.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,a,void 0,(function(){f.if_(f.notNull(a),(function(){i&&1!==i&&f.addEnsureSafeAssignContext(a),t.computed?(s=f.nextId(),f.recurse(t.property,s),f.getStringValue(s),f.addEnsureSafeMemberName(s),i&&1!==i&&f.if_(f.not(f.computedMember(a,s)),f.lazyAssign(f.computedMember(a,s),"{}")),l=f.ensureSafeObject(f.computedMember(a,s)),f.assign(e,l),n&&(n.computed=!0,n.name=s)):(Jn(t.property.name),i&&1!==i&&f.if_(f.not(f.nonComputedMember(a,t.property.name)),f.lazyAssign(f.nonComputedMember(a,t.property.name),"{}")),l=f.nonComputedMember(a,t.property.name),(f.state.expensiveChecks||xr(t.property.name))&&(l=f.ensureSafeObject(l)),f.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))}),(function(){f.assign(e,"undefined")})),r(e)}),!!i);break;case lr.CallExpression:e=e||this.nextId(),t.filter?(s=f.filter(t.callee.name),u=[],y(t.arguments,(function(t){var e=f.nextId();f.recurse(t,e),u.push(e)})),l=s+"("+u.join(",")+")",f.assign(e,l),r(e)):(s=f.nextId(),a={},u=[],f.recurse(t.callee,s,a,(function(){f.if_(f.notNull(s),(function(){f.addEnsureSafeFunction(s),y(t.arguments,(function(t){f.recurse(t,f.nextId(),void 0,(function(t){u.push(f.ensureSafeObject(t))}))})),a.name?(f.state.expensiveChecks||f.addEnsureSafeObject(a.context),l=f.member(a.context,a.name,a.computed)+"("+u.join(",")+")"):l=s+"("+u.join(",")+")",l=f.ensureSafeObject(l),f.assign(e,l)}),(function(){f.assign(e,"undefined")})),r(e)})));break;case lr.AssignmentExpression:if(s=this.nextId(),a={},!vr(t.left))throw Xn("lval","Trying to assign a value to a non l-value");this.recurse(t.left,void 0,a,(function(){f.if_(f.notNull(a.context),(function(){f.recurse(t.right,s),f.addEnsureSafeObject(f.member(a.context,a.name,a.computed)),f.addEnsureSafeAssignContext(a.context),l=f.member(a.context,a.name,a.computed)+t.operator+s,f.assign(e,l),r(e||l)}))}),1);break;case lr.ArrayExpression:u=[],y(t.elements,(function(t){f.recurse(t,f.nextId(),void 0,(function(t){u.push(t)}))})),l="["+u.join(",")+"]",this.assign(e,l),r(l);break;case lr.ObjectExpression:u=[],c=!1,y(t.properties,(function(t){t.computed&&(c=!0)})),c?(e=e||this.nextId(),this.assign(e,"{}"),y(t.properties,(function(t){t.computed?(a=f.nextId(),f.recurse(t.key,a)):a=t.key.type===lr.Identifier?t.key.name:""+t.key.value,s=f.nextId(),f.recurse(t.value,s),f.assign(f.member(e,a,t.computed),s)}))):(y(t.properties,(function(e){f.recurse(e.value,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(f.escape(e.key.type===lr.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),l="{"+u.join(",")+"}",this.assign(e,l)),r(e||l);break;case lr.ThisExpression:this.assign(e,"s"),r("s");break;case lr.LocalsExpression:this.assign(e,"l"),r("l");break;case lr.NGValueParameter:this.assign(e,"v"),r("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(R(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(q(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Xn("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},br.prototype={compile:function(t,e){var n,r,i=this,o=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,pr(o,i.$filter),(n=mr(o))&&(r=this.recurse(n));var a,s=dr(o.body);s&&(a=[],y(s,(function(t,e){var n=i.recurse(t);t.input=n,a.push(n),t.watchId=e})));var u=[];y(o.body,(function(t){u.push(i.recurse(t.expression))}));var l=0===o.body.length?T:1===o.body.length?u[0]:function(t,e){var n;return y(u,(function(r){n=r(t,e)})),n};return r&&(l.assign=function(t,e,n){return r(t,n,e)}),a&&(l.inputs=a),l.literal=gr(o),l.constant=$r(o),l},recurse:function(t,e,n){var r,i,o,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case lr.Literal:return this.value(t.value,e);case lr.UnaryExpression:return i=this.recurse(t.argument),this["unary"+t.operator](i,e);case lr.BinaryExpression:case lr.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this["binary"+t.operator](r,i,e);case lr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case lr.Identifier:return Jn(t.name,a.expression),a.identifier(t.name,a.expensiveChecks||xr(t.name),e,n,a.expression);case lr.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(Jn(t.property.name,a.expression),i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n,a.expression):this.nonComputedMember(r,i,a.expensiveChecks,e,n,a.expression);case lr.CallExpression:return o=[],y(t.arguments,(function(t){o.push(a.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,a){for(var s=[],u=0;u<o.length;++u)s.push(o[u](t,n,r,a));var l=i.apply(void 0,s,a);return e?{context:void 0,name:void 0,value:l}:l}:function(t,n,r,s){var u,l=i(t,n,r,s);if(null!=l.value){tr(l.context,a.expression),ir(l.value,a.expression);for(var c=[],f=0;f<o.length;++f)c.push(tr(o[f](t,n,r,s),a.expression));u=tr(l.value.apply(l.context,c),a.expression)}return e?{value:u}:u};case lr.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,o,s){var u=r(t,n,o,s),l=i(t,n,o,s);return tr(u.value,a.expression),or(u.context),u.context[u.name]=l,e?{value:l}:l};case lr.ArrayExpression:return o=[],y(t.elements,(function(t){o.push(a.recurse(t))})),function(t,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](t,n,r,i));return e?{value:a}:a};case lr.ObjectExpression:return o=[],y(t.properties,(function(t){t.computed?o.push({key:a.recurse(t.key),computed:!0,value:a.recurse(t.value)}):o.push({key:t.key.type===lr.Identifier?t.key.name:""+t.key.value,computed:!1,value:a.recurse(t.value)})})),function(t,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(t,n,r,i)]=o[s].value(t,n,r,i):a[o[s].key]=o[s].value(t,n,r,i);return e?{value:a}:a};case lr.ThisExpression:return function(t){return e?{value:t}:t};case lr.LocalsExpression:return function(t,n){return e?{value:n}:n};case lr.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=j(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=j(a)?-a:0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var s=fr(t(r,i,o,a),e(r,i,o,a));return n?{value:s}:s}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=(j(s)?s:0)-(j(u)?u:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){var u=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n,r,i){return function(o,a,s,u){var l=a&&t in a?a:o;r&&1!==r&&l&&!l[t]&&(l[t]={});var c=l?l[t]:void 0;return e&&tr(c,i),n?{context:l,name:t,value:c}:c}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var l,c,f=t(o,a,s,u);return null!=f&&(Jn(l=Qn(l=e(o,a,s,u)),i),r&&1!==r&&(or(f),f&&!f[l]&&(f[l]={})),tr(c=f[l],i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(t,e,n,r,i,o){return function(a,s,u,l){var c=t(a,s,u,l);i&&1!==i&&(or(c),c&&!c[e]&&(c[e]={}));var f=null!=c?c[e]:void 0;return(n||xr(e))&&tr(f,o),r?{context:c,name:e,value:f}:f}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var wr=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new lr(t,n),this.astCompiler=n.csp?new br(this.ast,e):new yr(this.ast,e)};function xr(t){return"constructor"==t}wr.prototype={constructor:wr,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var Cr=Object.prototype.valueOf;function Sr(t){return L(t.valueOf)?t.valueOf():Cr.call(t)}function Ar(){var t,e,n=Dt(),r=Dt(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){i[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(o){var a=et().noUnsafeEval,s={csp:a,expensiveChecks:!1,literals:Q(i),isIdentifierStart:L(t)&&t,isIdentifierContinue:L(e)&&e},u={csp:a,expensiveChecks:!0,literals:Q(i),isIdentifierStart:L(t)&&t,isIdentifierContinue:L(e)&&e},l=!1;return c.$$runningExpensiveChecks=function(){return l},c;function c(t,e,i){var a,c,f;switch(i=i||l,typeof t){case"string":t=t.trim();var g=i?r:n;if(!(a=g[f=t])){":"===t.charAt(0)&&":"===t.charAt(1)&&(c=!0,t=t.substring(2));var $=i?u:s,y=new ur($);(a=new wr(y,o,$).parse(t)).constant?a.$$watchDelegate=v:c?a.$$watchDelegate=a.literal?d:p:a.inputs&&(a.$$watchDelegate=h),i&&(a=function t(e){if(!e)return e;r.$$watchDelegate=e.$$watchDelegate,r.assign=t(e.assign),r.constant=e.constant,r.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=t(e.inputs[n]);return r.inputs=e.inputs,r;function r(t,n,r,i){var o=l;l=!0;try{return e(t,n,r,i)}finally{l=o}}}(a)),g[f]=a}return m(a,e);case"function":return m(t,e);default:return m(T,e)}}function f(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=Sr(t)))&&(t===e||t!=t&&e!=e)}function h(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var s=f;return a=a[0],t.$watch((function(t){var e=a(t);return f(e,s)||(o=r(t,void 0,void 0,[e]),s=e&&Sr(e)),o}),e,n,i)}for(var u=[],l=[],c=0,h=a.length;c<h;c++)u[c]=f,l[c]=null;return t.$watch((function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var s=a[n](t);(e||(e=!f(s,u[n])))&&(l[n]=s,u[n]=s&&Sr(s))}return e&&(o=r(t,void 0,void 0,l)),o}),e,n,i)}function p(t,e,n,r){var i,o;return i=t.$watch((function(t){return r(t)}),(function(t,n,r){o=t,L(e)&&e.apply(this,arguments),j(t)&&r.$$postDigest((function(){j(o)&&i()}))}),n)}function d(t,e,n,r){var i,o;return i=t.$watch((function(t){return r(t)}),(function(t,n,r){o=t,L(e)&&e.call(this,t,n,r),a(t)&&r.$$postDigest((function(){a(o)&&i()}))}),n);function a(t){var e=!0;return y(t,(function(t){j(t)||(e=!1)})),e}}function v(t,e,n,r){var i;return i=t.$watch((function(t){return i(),r(t)}),e,n)}function m(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==d&&n!==p?function(n,i,o,a){var s=r&&a?a[0]:t(n,i,o,a);return e(s,n,i)}:function(n,r,i,o){var a=t(n,r,i,o),s=e(a,n,r);return j(a)?s:a};return t.$$watchDelegate&&t.$$watchDelegate!==h?i.$$watchDelegate=t.$$watchDelegate:e.$stateful||(i.$$watchDelegate=h,r=!t.inputs,i.inputs=t.inputs?t.inputs:[t]),i}}]}function Er(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return kr((function(e){t.$evalAsync(e)}),e)}]}function _r(){this.$get=["$browser","$exceptionHandler",function(t,e){return kr((function(e){t.defer(e)}),e)}]}function kr(t,n){var r=e("$q",TypeError),i=function(){var t=new u;return t.resolve=a(t,t.resolve),t.reject=a(t,t.reject),t.notify=a(t,t.notify),t};function o(){this.$$state={status:0}}function a(t,e){return function(n){e.call(t,n)}}function s(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t((function(){!function(t){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],e=i[o][t.status];try{L(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(t){r.reject(t),n(t)}}}(e)})))}function u(){this.promise=new o}A(o.prototype,{then:function(t,e,n){if(M(t)&&M(e)&&M(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&s(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return c(e,!0,t)}),(function(e){return c(e,!1,t)}),e)}}),A(u.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(r("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var e,r=this,i=!1;try{(I(t)||L(t))&&(e=t&&t.then),L(e)?(this.promise.$$state.status=-1,e.call(t,(function(t){if(i)return;i=!0,r.$$resolve(t)}),o,a(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,s(this.promise.$$state))}catch(t){o(t),n(t)}function o(t){i||(i=!0,r.$$reject(t))}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(e){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t((function(){for(var t,i,o=0,a=r.length;o<a;o++){i=r[o][0],t=r[o][3];try{i.notify(L(t)?t(e):e)}catch(t){n(t)}}}))}});var l=function(t,e){var n=new u;return e?n.resolve(t):n.reject(t),n.promise},c=function(t,e,n){var r=null;try{L(n)&&(r=n())}catch(t){return l(t,!1)}return W(r)?r.then((function(){return l(t,e)}),(function(t){return l(t,!1)})):l(t,e)},f=function(t,e,n,r){var i=new u;return i.resolve(t),i.promise.then(e,n,r)},h=f;var p=function(t){if(!L(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);var e=new u;return t((function(t){e.resolve(t)}),(function(t){e.reject(t)})),e.promise};return p.prototype=o.prototype,p.defer=i,p.reject=function(t){var e=new u;return e.reject(t),e.promise},p.when=f,p.resolve=h,p.all=function(t){var e=new u,n=0,r=F(t)?[]:{};return y(t,(function(t,i){n++,f(t).then((function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))}),(function(t){r.hasOwnProperty(i)||e.reject(t)}))})),0===n&&e.resolve(r),e.promise},p.race=function(t){var e=i();return y(t,(function(t){f(t).then(e.resolve,e.reject)})),e.promise},p}function Tr(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Or(){var t=10,n=e("$rootScope"),i=null,o=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(e,s,u){function l(t){t.currentScope.$$destroyed=!0}function c(){this.$id=x(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}c.prototype={constructor:c,$new:function(t,e){var n;return e=e||this,t?(n=new c).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=x(),this.$$ChildScope=null}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!=this)&&n.$on("$destroy",l),n},$watch:function(t,e,n,r){var o=s(t);if(o.$$watchDelegate)return o.$$watchDelegate(this,e,n,o,t);var a=this,u=a.$$watchers,l={fn:e,last:C,get:o,exp:r||t,eq:!!n};return i=null,L(e)||(l.fn=T),u||(u=a.$$watchers=[]),u.unshift(l),b(this,1),function(){J(u,l)>=0&&b(a,-1),i=null}},$watchGroup:function(t,e){var n=new Array(t.length),r=new Array(t.length),i=[],o=this,a=!1,s=!0;if(!t.length){var u=!0;return o.$evalAsync((function(){u&&e(r,r,o)})),function(){u=!1}}if(1===t.length)return this.$watch(t[0],(function(t,i,o){r[0]=t,n[0]=i,e(r,t===i?r:n,o)}));function l(){a=!1,s?(s=!1,e(r,r,o)):e(r,n,o)}return y(t,(function(t,e){var s=o.$watch(t,(function(t,i){r[e]=t,n[e]=i,a||(a=!0,o.$evalAsync(l))}));i.push(s)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(t,e){v.$stateful=!0;var n,i,o,a=this,u=e.length>1,l=0,c=s(t,v),f=[],h={},p=!0,d=0;function v(t){var e,o,a,s;if(!M(n=t)){if(I(n))if($(n)){i!==f&&(d=(i=f).length=0,l++),e=n.length,d!==e&&(l++,i.length=d=e);for(var u=0;u<e;u++)s=i[u],a=n[u],s!=s&&a!=a||s===a||(l++,i[u]=a)}else{for(o in i!==h&&(i=h={},d=0,l++),e=0,n)r.call(n,o)&&(e++,a=n[o],s=i[o],o in i?s!=s&&a!=a||s===a||(l++,i[o]=a):(d++,i[o]=a,l++));if(d>e)for(o in l++,i)r.call(n,o)||(d--,delete i[o])}else i!==n&&(i=n,l++);return l}}return this.$watch(c,(function(){if(p?(p=!1,e(n,n,a)):e(n,o,a),u)if(I(n))if($(n)){o=new Array(n.length);for(var t=0;t<n.length;t++)o[t]=n[t]}else for(var i in o={},n)r.call(n,i)&&(o[i]=n[i]);else o=n}))},$digest:function(){var r,a,s,l,c,d,$,y,b,w,x=t,A=[];m("$digest"),u.$$checkUrlChange(),this===f&&null!==o&&(u.defer.cancel(o),S()),i=null;do{d=!1,y=this;for(var E=0;E<h.length;E++){try{(w=h[E]).scope.$eval(w.expression,w.locals)}catch(t){e(t)}i=null}h.length=0;t:do{if(l=y.$$watchers)for(c=l.length;c--;)try{if(r=l[c])if((a=(0,r.get)(y))===(s=r.last)||(r.eq?tt(a,s):"number"==typeof a&&"number"==typeof s&&isNaN(a)&&isNaN(s))){if(r===i){d=!1;break t}}else d=!0,i=r,r.last=r.eq?Q(a,null):a,(0,r.fn)(a,s===C?a:s,y),x<5&&(A[b=4-x]||(A[b]=[]),A[b].push({msg:L(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:a,oldVal:s}))}catch(t){e(t)}if(!($=y.$$watchersCount&&y.$$childHead||y!==this&&y.$$nextSibling))for(;y!==this&&!($=y.$$nextSibling);)y=y.$parent}while(y=$);if((d||h.length)&&!x--)throw g(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,A)}while(d||h.length);for(g();v<p.length;)try{p[v++]()}catch(t){e(t)}p.length=v=0},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===f&&u.$$applicationDestroyed(),b(this,-this.$$watchersCount),this.$$listenerCount)w(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=T,this.$on=this.$watch=this.$watchGroup=function(){return T},this.$$listeners={},this.$$nextSibling=null,function t(e){9===a&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling&&t(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return s(t)(this,e)},$evalAsync:function(t,e){f.$$phase||h.length||u.defer((function(){h.length&&f.$digest()})),h.push({scope:this,expression:s(t),locals:e})},$$postDigest:function(t){p.push(t)},$apply:function(t){try{m("$apply");try{return this.$eval(t)}finally{g()}}catch(t){e(t)}finally{try{f.$digest()}catch(t){throw e(t),t}}},$applyAsync:function(t){var e=this;t&&d.push((function(){e.$eval(t)})),t=s(t),null===o&&(o=u.defer((function(){f.$apply(S)})))},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,w(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],s=this,u=!1,l={name:t,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=rt([l],arguments,1);do{for(r=s.$$listeners[t]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(t){e(t)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var s,u,l,c=rt([a],arguments,1);i=o;){for(a.currentScope=i,u=0,l=(s=i.$$listeners[t]||[]).length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(t){e(t)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var f=new c,h=f.$$asyncQueue=[],p=f.$$postDigestQueue=[],d=f.$$applyAsyncQueue=[],v=0;return f;function m(t){if(f.$$phase)throw n("inprog","{0} already in progress",f.$$phase);f.$$phase=t}function g(){f.$$phase=null}function b(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function w(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function C(){}function S(){for(;d.length;)try{d.shift()()}catch(t){e(t)}o=null}}]}function Dr(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return j(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return j(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return""===(i=zr(n).href)||i.match(o)?n:"unsafe:"+i}}}var Pr=e("$sce"),Mr={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function jr(t){var e=[];return j(t)&&y(t,(function(t){e.push(function(t){if("self"===t)return t;if(R(t)){if(t.indexOf("***")>-1)throw Pr("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=K(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(H(t))return new RegExp("^"+t.source+"$");throw Pr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function Ir(){this.SCE_CONTEXTS=Mr;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=jr(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=jr(t)),e},this.$get=["$injector",function(n){var r=function(t){throw Pr("unsafe","Attempting to use an unsafe value in a safe context.")};function i(t,e){return"self"===t?Br(e):!!t.exec(e.href)}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(r=n.get("$sanitize"));var a=o(),s={};return s[Mr.HTML]=o(a),s[Mr.CSS]=o(a),s[Mr.URL]=o(a),s[Mr.JS]=o(a),s[Mr.RESOURCE_URL]=o(s[Mr.URL]),{trustAs:function(t,e){var n=s.hasOwnProperty(t)?s[t]:null;if(!n)throw Pr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||M(e)||""===e)return e;if("string"!=typeof e)throw Pr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||M(o)||""===o)return o;var a=s.hasOwnProperty(n)?s[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(n===Mr.RESOURCE_URL){if(function(n){var r,o,a=zr(n.toString()),s=!1;for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!0;break}if(s)for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!1;break}return s}(o))return o;throw Pr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",o.toString())}if(n===Mr.HTML)return r(o);throw Pr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Nr(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&a<8)throw Pr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Mt(Mr);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=O),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,(function(e){return r.getTrusted(t,e)}))};var o=r.parseAs,s=r.getTrusted,u=r.trustAs;return y(Mr,(function(t,e){var n=i(e);r[zt("parse_as_"+n)]=function(e){return o(t,e)},r[zt("get_trusted_"+n)]=function(e){return s(t,e)},r[zt("trust_as_"+n)]=function(e){return u(t,e)}})),r}]}function Rr(){this.$get=["$window","$document",function(t,e){var n,r,o={},s=!(t.chrome&&t.chrome.app&&t.chrome.app.runtime)&&t.history&&t.history.pushState,u=_((/android (\d+)/.exec(i((t.navigator||{}).userAgent))||[])[1]),l=/Boxee/i.test((t.navigator||{}).userAgent),c=e[0]||{},f=/^(Moz|webkit|ms)(?=[A-Z])/,h=c.body&&c.body.style,p=!1,d=!1;if(h){for(var v in h)if(r=f.exec(v)){n=(n=r[0])[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in h&&"webkit"),p=!(!("transition"in h)&&!(n+"Transition"in h)),d=!(!("animation"in h)&&!(n+"Animation"in h)),!u||p&&d||(p=R(h.webkitTransition),d=R(h.webkitAnimation))}return{history:!(!s||u<4||l),hasEvent:function(t){if("input"===t&&a<=11)return!1;if(M(o[t])){var e=c.createElement("div");o[t]="on"+t in e}return o[t]},csp:et(),vendorPrefix:n,transitions:p,animations:d,android:u}}]}var qr=e("$compile");function Vr(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(a,s){o.totalPendingRequests++,R(a)&&!M(e.get(a))||(a=i.getTrustedResourceUrl(a));var u=n.defaults&&n.defaults.transformResponse;return F(u)?u=u.filter((function(t){return t!==wn})):u===wn&&(u=null),n.get(a,A({cache:e,transformResponse:u},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return e.put(a,t.data),t.data}),(function(t){if(!s)throw qr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText);return r.reject(t)}))}return o.totalPendingRequests=0,o}]}function Fr(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={findBindings:function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return y(r,(function(t){var r=m.element(t).data("$binding");r&&y(r,(function(r){n?new RegExp("(^|\\s)"+K(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!=r.indexOf(e)&&i.push(t)}))})),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]',a=t.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}};return r}]}function Lr(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){var o={};function a(a,s,u){L(a)||(u=s,s=a,a=T);var l,c=it(arguments,3),f=j(u)&&!u,h=(f?r:n).defer(),p=h.promise;return l=e.defer((function(){try{h.resolve(a.apply(null,c))}catch(t){h.reject(t),i(t)}finally{delete o[p.$$timeoutId]}f||t.$apply()}),s),p.$$timeoutId=l,o[l]=h,p}return a.cancel=function(t){return!(!t||!(t.$$timeoutId in o))&&(o[t.$$timeoutId].reject("canceled"),delete o[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},a}]}var Hr=t.document.createElement("a"),Ur=zr(t.location.href);function zr(t){var e=t;return a&&(Hr.setAttribute("href",e),e=Hr.href),Hr.setAttribute("href",e),{href:Hr.href,protocol:Hr.protocol?Hr.protocol.replace(/:$/,""):"",host:Hr.host,search:Hr.search?Hr.search.replace(/^\?/,""):"",hash:Hr.hash?Hr.hash.replace(/^#/,""):"",hostname:Hr.hostname,port:Hr.port,pathname:"/"===Hr.pathname.charAt(0)?Hr.pathname:"/"+Hr.pathname}}function Br(t){var e=R(t)?zr(t):t;return e.protocol===Ur.protocol&&e.host===Ur.host}function Wr(){this.$get=D(t)}function Yr(t){var e=t[0]||{},n={},r="";function i(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var t,o,a,s,u,l=e.cookie||"";if(l!==r)for(t=(r=l).split("; "),n={},a=0;a<t.length;a++)(s=(o=t[a]).indexOf("="))>0&&(u=i(o.substring(0,s)),M(n[u])&&(n[u]=i(o.substring(s+1))));return n}}function Gr(){this.$get=Yr}function Kr(t){function e(n,r){if(I(n)){var i={};return y(n,(function(t,n){i[n]=e(n,t)})),i}return t.factory(n+"Filter",r)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",Qr),e("date",fi),e("filter",Zr),e("json",hi),e("limitTo",vi),e("lowercase",pi),e("number",ti),e("orderBy",gi),e("uppercase",di)}function Zr(){return function(t,n,r,o){if(!$(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}var a,s;switch(o=o||"$",Jr(n)){case"function":a=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=function(t,e,n,r){var o=I(t)&&n in t;!0===e?e=tt:L(e)||(e=function(t,e){return!M(t)&&(null===t||null===e?t===e:!(I(e)||I(t)&&!P(t))&&(t=i(""+t),e=i(""+e),-1!==t.indexOf(e)))});return function(i){return o&&!I(i)?Xr(i,t[n],e,n,!1):Xr(i,t,e,n,r)}}(n,r,o,s);break;default:return t}return Array.prototype.filter.call(t,a)}}function Xr(t,e,n,r,i,o){var a=Jr(t),s=Jr(e);if("string"===s&&"!"===e.charAt(0))return!Xr(t,e.substring(1),n,r,i);if(F(t))return t.some((function(t){return Xr(t,e,n,r,i)}));switch(a){case"object":var u;if(i){for(u in t)if("$"!==u.charAt(0)&&Xr(t[u],e,n,r,!0))return!0;return!o&&Xr(t,e,n,r,!1)}if("object"===s){for(u in e){var l=e[u];if(!L(l)&&!M(l)){var c=u===r;if(!Xr(c?t:t[u],l,n,r,c,c))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Jr(t){return null===t?"null":typeof t}Yr.$inject=["$document"],Kr.$inject=["$provide"];function Qr(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return M(n)&&(n=e.CURRENCY_SYM),M(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:ei(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function ti(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:ei(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function ei(t,e,n,r,i){if(!R(t)&&!q(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,u=Math.abs(t)+"",l="";if(a)l="∞";else{(function(t,e,n,r){var i=t.d,o=i.length-t.i,a=(e=M(e)?Math.min(Math.max(n,o),r):+e)+t.i,s=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight((function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)}),0);f&&(i.unshift(f),t.i++)})(o=function(t){var e,n,r,i,o,a=0;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;"0"==t.charAt(r);r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;"0"==t.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{d:e,e:a,i:n}}(u),i,e.minFrac,e.maxFrac);var c=o.d,f=o.i,h=o.e,p=[];for(s=c.reduce((function(t,e){return t&&!e}),!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f,c.length):(p=c,c=[0]);var d=[];for(c.length>=e.lgSize&&d.unshift(c.splice(-e.lgSize,c.length).join(""));c.length>e.gSize;)d.unshift(c.splice(-e.gSize,c.length).join(""));c.length&&d.unshift(c.join("")),l=d.join(n),p.length&&(l+=r+p.join("")),h&&(l+="e+"+h)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function ni(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function ri(t,e,n,r,i){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),ni(a,e,r,i)}}function ii(t,e,n){return function(r,i){var a=r["get"+t]();return i[o((n?"STANDALONE":"")+(e?"SHORT":"")+t)][a]}}function oi(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function ai(t){return function(e){var n,r=oi(e.getFullYear()),i=+(n=e,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return ni(1+Math.round(i/6048e5),t)}}function si(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}Qr.$inject=["$locale"],ti.$inject=["$locale"];var ui={yyyy:ri("FullYear",4,0,!1,!0),yy:ri("FullYear",2,0,!0,!0),y:ri("FullYear",1,0,!1,!0),MMMM:ii("Month"),MMM:ii("Month",!0),MM:ri("Month",2,1),M:ri("Month",1,1),LLLL:ii("Month",!1,!0),dd:ri("Date",2),d:ri("Date",1),HH:ri("Hours",2),H:ri("Hours",1),hh:ri("Hours",2,-12),h:ri("Hours",1,-12),mm:ri("Minutes",2),m:ri("Minutes",1),ss:ri("Seconds",2),s:ri("Seconds",1),sss:ri("Milliseconds",3),EEEE:ii("Day"),EEE:ii("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=ni(Math[r>0?"floor":"ceil"](r/60),2)+ni(Math.abs(r%60),2)},ww:ai(2),w:ai(1),G:si,GG:si,GGG:si,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},li=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ci=/^\-?\d+$/;function fi(t){var e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,a,s="",u=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,R(n)&&(n=ci.test(n)?_(n):function(t){var n;if(n=t.match(e)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=_(n[9]+n[10]),o=_(n[9]+n[11])),a.call(r,_(n[1]),_(n[2])-1,_(n[3]));var u=_(n[4]||0)-i,l=_(n[5]||0)-o,c=_(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,u,l,c,f),r}return t}(n)),q(n)&&(n=new Date(n)),!V(n)||!isFinite(n.getTime()))return n;for(;r;)(a=li.exec(r))?r=(u=rt(u,a,1)).pop():(u.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=ct(i,l),n=ft(n,i,!0)),y(u,(function(e){s+=(o=ui[e])?o(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function hi(){return function(t,e){return M(e)&&(e=2),st(t,e)}}fi.$inject=["$locale"];var pi=D(i),di=D(o);function vi(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):_(e),isNaN(e)?t:(q(t)&&(t=t.toString()),$(t)?(n=(n=!n||isNaN(n)?0:_(n))<0?Math.max(0,t.length+n):n,e>=0?mi(t,n,n+e):0===n?mi(t,e,t.length):mi(t,Math.max(0,n+e),n)):t)}}function mi(t,e,n){return R(t)?t.slice(e,n):c.call(t,e,n)}function gi(t){return function(i,o,a,s){if(null==i)return i;if(!$(i))throw e("orderBy")("notarray","Expected array but received: {0}",i);F(o)||(o=[o]),0===o.length&&(o=["+"]);var u=o.map((function(e){var n=1,r=O;if(L(e))r=e;else if(R(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})),l=a?-1:1,c=L(s)?s:r,f=Array.prototype.map.call(i,(function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:u.map((function(r){return function(t,e){var r=typeof t;null===t?(r="string",t="null"):"object"===r&&(t=function(t){if(L(t.valueOf)&&n(t=t.valueOf()))return t;if(P(t)&&n(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:e}}(r.get(t),e)}))}}));return f.sort((function(t,e){for(var n=0,r=u.length;n<r;n++){var i=c(t.predicateValues[n],e.predicateValues[n]);if(i)return i*u[n].descending*l}return c(t.tieBreaker,e.tieBreaker)*l})),i=f.map((function(t){return t.value}))};function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,a=e.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(I(o)&&(o=t.index),I(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}}function $i(t){return L(t)&&(t={link:t}),t.restrict=t.restrict||"AC",D(t)}gi.$inject=["$parse"];var yi=D({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===p.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),bi={};y(ge,(function(t,e){if("multiple"!=t){var n=en("ng-"+e),r=i;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[n]&&i(t,0,r)}),bi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(t,r,i){t.$watch(i[n],(function(t){i.$set(e,!!t)}))}})),y(ye,(function(t,e){bi[e]=function(){return{priority:100,link:function(t,r,i){if("ngPattern"===e&&"/"==i.ngPattern.charAt(0)){var o=i.ngPattern.match(n);if(o)return void i.$set("ngPattern",new RegExp(o[1],o[2]))}t.$watch(i[e],(function(t){i.$set(e,t)}))}}}})),y(["src","srcset","href"],(function(t){var e=en("ng-"+t);bi[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===p.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,(function(e){e?(i.$set(s,e),a&&o&&r.prop(o,i[s])):"href"===t&&i.$set(s,null)}))}}}}));var wi={$addControl:T,$$renameControl:function(t,e){t.$name=e},$removeControl:T,$setValidity:T,$setDirty:T,$setPristine:T,$setSubmitted:T};function xi(t,e,n,r,i){var o=this,a=[];o.$error={},o.$$success={},o.$pending=void 0,o.$name=i(e.name||e.ngForm||"")(n),o.$dirty=!1,o.$pristine=!0,o.$valid=!0,o.$invalid=!1,o.$submitted=!1,o.$$parentForm=wi,o.$rollbackViewValue=function(){y(a,(function(t){t.$rollbackViewValue()}))},o.$commitViewValue=function(){y(a,(function(t){t.$commitViewValue()}))},o.$addControl=function(t){kt(t.$name,"input"),a.push(t),t.$name&&(o[t.$name]=t),t.$$parentForm=o},o.$$renameControl=function(t,e){var n=t.$name;o[n]===t&&delete o[n],o[e]=t,t.$name=e},o.$removeControl=function(t){t.$name&&o[t.$name]===t&&delete o[t.$name],y(o.$pending,(function(e,n){o.$setValidity(n,null,t)})),y(o.$error,(function(e,n){o.$setValidity(n,null,t)})),y(o.$$success,(function(e,n){o.$setValidity(n,null,t)})),J(a,t),t.$$parentForm=wi},$o({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(J(r,n),0===r.length&&delete t[e])},$animate:r}),o.$setDirty=function(){r.removeClass(t,co),r.addClass(t,fo),o.$dirty=!0,o.$pristine=!1,o.$$parentForm.$setDirty()},o.$setPristine=function(){r.setClass(t,co,fo+" ng-submitted"),o.$dirty=!1,o.$pristine=!0,o.$submitted=!1,y(a,(function(t){t.$setPristine()}))},o.$setUntouched=function(){y(a,(function(t){t.$setUntouched()}))},o.$setSubmitted=function(){r.addClass(t,"ng-submitted"),o.$submitted=!0,o.$$parentForm.$setSubmitted()}}xi.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Ci=function(t){return["$timeout","$parse",function(e,n){return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:xi,compile:function(n,i){n.addClass(co).addClass(lo);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,a){var s=a[0];if(!("action"in i)){var u=function(e){t.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),e.preventDefault()};qt(n[0],"submit",u),n.on("$destroy",(function(){e((function(){Vt(n[0],"submit",u)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):T;o&&(l(t,s),i.$observe(o,(function(e){s.$name!==e&&(l(t,void 0),s.$$parentForm.$$renameControl(s,e),(l=r(s.$name))(t,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),l(t,void 0),A(s,wi)}))}}}};function r(t){return""===t?n('this[""]').assign:n(t).assign||T}}]},Si=Ci(),Ai=Ci(!0),Ei=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,_i=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ki=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Ti=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Oi=/^(\d{4,})-(\d{2})-(\d{2})$/,Di=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Pi=/^(\d{4,})-W(\d\d)$/,Mi=/^(\d{4,})-(\d\d)$/,ji=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ii=Dt();y("date,datetime-local,month,time,week".split(","),(function(t){Ii[t]=!0}));var Ni={text:function(t,e,n,r,i,o){qi(t,e,n,r,i,o),Ri(r)},date:Fi("date",Oi,Vi(Oi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Fi("datetimelocal",Di,Vi(Di,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Fi("time",ji,Vi(ji,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Fi("week",Pi,(function(t,e){if(V(t))return t;if(R(t)){Pi.lastIndex=0;var n=Pi.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=oi(r),c=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}),"yyyy-Www"),month:Fi("month",Mi,Vi(Mi,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o){if(Li(t,e,n,r),qi(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push((function(t){return r.$isEmpty(t)?null:Ti.test(t)?parseFloat(t):void 0})),r.$formatters.push((function(t){if(!r.$isEmpty(t)){if(!q(t))throw ho("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})),j(n.min)||n.ngMin){var a;r.$validators.min=function(t){return r.$isEmpty(t)||M(a)||t>=a},n.$observe("min",(function(t){j(t)&&!q(t)&&(t=parseFloat(t)),a=q(t)&&!isNaN(t)?t:void 0,r.$validate()}))}if(j(n.max)||n.ngMax){var s;r.$validators.max=function(t){return r.$isEmpty(t)||M(s)||t<=s},n.$observe("max",(function(t){j(t)&&!q(t)&&(t=parseFloat(t)),s=q(t)&&!isNaN(t)?t:void 0,r.$validate()}))}},url:function(t,e,n,r,i,o){qi(t,e,n,r,i,o),Ri(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||_i.test(n)}},email:function(t,e,n,r,i,o){qi(t,e,n,r,i,o),Ri(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||ki.test(n)}},radio:function(t,e,n,r){M(n.name)&&e.attr("name",x());e.on("click",(function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)})),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r,i,o,a,s){var u=Hi(s,t,"ngTrueValue",n.ngTrueValue,!0),l=Hi(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((function(t){return tt(t,u)})),r.$parsers.push((function(t){return t?u:l}))},hidden:T,button:T,submit:T,reset:T,file:T};function Ri(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function qi(t,e,n,r,o,a){var s,u=i(e[0].type);if(!o.android){var l=!1;e.on("compositionstart",(function(){l=!0})),e.on("compositionend",(function(){l=!1,c()}))}var c=function(t){if(s&&(a.defer.cancel(s),s=null),!l){var i=e.val(),o=t&&t.type;"password"===u||n.ngTrim&&"false"===n.ngTrim||(i=G(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,o)}};if(o.hasEvent("input"))e.on("input",c);else{var f=function(t,e,n){s||(s=a.defer((function(){s=null,e&&e.value===n||c(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||f(t,this,this.value)})),o.hasEvent("paste")&&e.on("paste cut",f)}e.on("change",c),Ii[u]&&r.$$hasNativeValidators&&u===n.type&&e.on("keydown wheel mousedown",(function(t){if(!s){var e=this.validity,n=e.badInput,r=e.typeMismatch;s=a.defer((function(){s=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Vi(t,e){return function(n,r){var i,o;if(V(n))return n;if(R(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ei.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},y(i,(function(t,n){n<e.length&&(o[e[n]]=+t)})),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function Fi(t,e,n,r){return function(i,o,a,s,u,l,c){Li(i,o,a,s),qi(0,o,a,s,u,l);var f,h,p,d=s&&s.$options&&s.$options.timezone;(s.$$parserName=t,s.$parsers.push((function(t){if(s.$isEmpty(t))return null;if(e.test(t)){var r=n(t,f);return d&&(r=ft(r,d)),r}})),s.$formatters.push((function(t){if(t&&!V(t))throw ho("datefmt","Expected `{0}` to be a date",t);return v(t)?((f=t)&&d&&(f=ft(f,d,!0)),c("date")(t,r,d)):(f=null,"")})),j(a.min)||a.ngMin)&&(s.$validators.min=function(t){return!v(t)||M(h)||n(t)>=h},a.$observe("min",(function(t){h=m(t),s.$validate()})));(j(a.max)||a.ngMax)&&(s.$validators.max=function(t){return!v(t)||M(p)||n(t)<=p},a.$observe("max",(function(t){p=m(t),s.$validate()})));function v(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function m(t){return j(t)&&!V(t)?n(t)||void 0:t}}}function Li(t,e,n,r){var i=e[0];(r.$$hasNativeValidators=I(i.validity))&&r.$parsers.push((function(t){var n=e.prop("validity")||{};return n.badInput||n.typeMismatch?void 0:t}))}function Hi(t,e,n,r,i){var o;if(j(r)){if(!(o=t(r)).constant)throw ho("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}var Ui=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(o,a,s,u){u[0]&&(Ni[i(s.type)]||Ni.text)(o,a,s,u[0],e,t,n,r)}}}}],zi=/^(true|false|\d+)$/,Bi=function(){return{restrict:"A",priority:100,compile:function(t,e){return zi.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,(function(t){n.$set("value",t)}))}}}},Wi=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,(function(t){n.textContent=M(t)?"":t}))}}}}],Yi=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(t){r.textContent=M(t)?"":t}))}}}}],Gi=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,(function(e){return t.valueOf(e)}));return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,(function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")}))}}}}],Ki=D({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function Zi(t,e){return t="ngClass"+t,["$animate",function(n){return{restrict:"AC",link:function(o,a,s){var u;function l(t){var e=c(t,1);s.$addClass(e)}function c(t,e){var n=a.data("$classCounts")||Dt(),r=[];return y(t,(function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))})),a.data("$classCounts",n),r.join(" ")}function f(t){if(!0===e||(1&o.$index)===e){var s=i(t||[]);if(u){if(!tt(t,u)){!function(t,e){var i=r(e,t),o=r(t,e);i=c(i,1),o=c(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}(i(u),s)}}else l(s)}u=F(t)?t.map((function(t){return Mt(t)})):Mt(t)}o.$watch(s[t],f,!0),s.$observe("class",(function(e){f(o.$eval(s[t]))})),"ngClass"!==t&&o.$watch("$index",(function(n,r){var a=1&n;if(a!==(1&r)){var u=i(o.$eval(s[t]));a===e?l(u):function(t){var e=c(t,-1);s.$removeClass(e)}(u)}}))}};function r(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function i(t){var e=[];return F(t)?(y(t,(function(t){e=e.concat(i(t))})),e):R(t)?t.split(" "):I(t)?(y(t,(function(t,n){t&&(e=e.concat(n.split(" ")))})),e):t}}]}var Xi=Zi("",!0),Ji=Zi("Odd",0),Qi=Zi("Even",1),to=$i({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),eo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],no={},ro={blur:!0,focus:!0};y("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=en("ng-"+t);no[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,(function(n){var i=function(){a(e,{$event:n})};ro[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)}))}}}}]}));var io=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)})):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=Ot(s.clone),t.leave(l).then((function(){l=null})),s=null))}))}}}],oo=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:m.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,h,p,d=0,v=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then((function(){h=null})),h=p,p=null)};r.$watch(o,(function(o){var u=function(){!j(s)||s&&!r.$eval(s)||e()},h=++d;o?(t(o,!0).then((function(t){if(!r.$$destroyed&&h===d){var e=r.$new();l.template=t;var s=c(e,(function(t){v(),n.enter(t,null,i).then(u)}));p=s,(f=e).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){r.$$destroyed||h===d&&(v(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(v(),l.template=null)}))}}}}],ao=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(p.call(r[0]).match(/SVG/))return r.empty(),void e(Jt(o.template,t.document).childNodes)(n,(function(t){r.append(t)}),{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],so=$i({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),uo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var i=e.attr(n.$attr.ngList)||", ",o="false"!==n.ngTrim,a=o?G(i):i;r.$parsers.push((function(t){if(!M(t)){var e=[];return t&&y(t.split(a),(function(t){t&&e.push(o?G(t):t)})),e}})),r.$formatters.push((function(t){if(F(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}},lo="ng-valid",co="ng-pristine",fo="ng-dirty",ho=e("ngModel"),po=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,r,i,o,a,s,u,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(t),this.$$parentForm=wi;var c,f=i(n.ngModel),h=f.assign,p=f,d=h,v=null,m=this;this.$$setOptions=function(t){if(m.$options=t,t&&t.getterSetter){var e=i(n.ngModel+"()"),o=i(n.ngModel+"($$$p)");p=function(t){var n=f(t);return L(n)&&(n=e(t)),n},d=function(t,e){L(f(t))?o(t,{$$$p:e}):h(t,e)}}else if(!f.assign)throw ho("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,ht(r))},this.$render=T,this.$isEmpty=function(t){return M(t)||""===t||null===t||t!=t},this.$$updateEmptyClasses=function(t){m.$isEmpty(t)?(o.removeClass(r,"ng-not-empty"),o.addClass(r,"ng-empty")):(o.removeClass(r,"ng-empty"),o.addClass(r,"ng-not-empty"))};var g=0;$o({ctrl:this,$element:r,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:o}),this.$setPristine=function(){m.$dirty=!1,m.$pristine=!0,o.removeClass(r,fo),o.addClass(r,co)},this.$setDirty=function(){m.$dirty=!0,m.$pristine=!1,o.removeClass(r,co),o.addClass(r,fo),m.$$parentForm.$setDirty()},this.$setUntouched=function(){m.$touched=!1,m.$untouched=!0,o.setClass(r,"ng-untouched","ng-touched")},this.$setTouched=function(){m.$touched=!0,m.$untouched=!1,o.setClass(r,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){a.cancel(v),m.$viewValue=m.$$lastCommittedViewValue,m.$render()},this.$validate=function(){if(!q(m.$modelValue)||!isNaN(m.$modelValue)){var t=m.$$lastCommittedViewValue,e=m.$$rawModelValue,n=m.$valid,r=m.$modelValue,i=m.$options&&m.$options.allowInvalid;m.$$runValidators(e,t,(function(t){i||n===t||(m.$modelValue=t?e:void 0,m.$modelValue!==r&&m.$$writeModelToScope())}))}},this.$$runValidators=function(t,e,n){var r,i,o=++g;(function(){var t=m.$$parserName||"parse";if(!M(c))return c||(y(m.$validators,(function(t,e){a(e,null)})),y(m.$asyncValidators,(function(t,e){a(e,null)}))),a(t,c),c;a(t,null);return!0})()?!function(){var n=!0;if(y(m.$validators,(function(r,i){var o=r(t,e);n=n&&o,a(i,o)})),!n)return y(m.$asyncValidators,(function(t,e){a(e,null)})),!1;return!0}()?s(!1):(r=[],i=!0,y(m.$asyncValidators,(function(n,o){var s=n(t,e);if(!W(s))throw ho("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);a(o,void 0),r.push(s.then((function(){a(o,!0)}),(function(){i=!1,a(o,!1)})))})),r.length?u.all(r).then((function(){s(i)}),T):s(!0)):s(!1);function a(t,e){o===g&&m.$setValidity(t,e)}function s(t){o===g&&n(t)}},this.$commitViewValue=function(){var t=m.$viewValue;a.cancel(v),(m.$$lastCommittedViewValue!==t||""===t&&m.$$hasNativeValidators)&&(m.$$updateEmptyClasses(t),m.$$lastCommittedViewValue=t,m.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=m.$$lastCommittedViewValue;if(c=!M(e)||void 0)for(var n=0;n<m.$parsers.length;n++)if(M(e=m.$parsers[n](e))){c=!1;break}q(m.$modelValue)&&isNaN(m.$modelValue)&&(m.$modelValue=p(t));var r=m.$modelValue,i=m.$options&&m.$options.allowInvalid;function o(){m.$modelValue!==r&&m.$$writeModelToScope()}m.$$rawModelValue=e,i&&(m.$modelValue=e,o()),m.$$runValidators(e,m.$$lastCommittedViewValue,(function(t){i||(m.$modelValue=t?e:void 0,o())}))},this.$$writeModelToScope=function(){d(t,m.$modelValue),y(m.$viewChangeListeners,(function(t){try{t()}catch(t){e(t)}}))},this.$setViewValue=function(t,e){m.$viewValue=t,m.$options&&!m.$options.updateOnDefault||m.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=m.$options;i&&j(i.debounce)&&(q(n=i.debounce)?r=n:q(n[e])?r=n[e]:q(n.default)&&(r=n.default)),a.cancel(v),r?v=a((function(){m.$commitViewValue()}),r):s.$$phase?m.$commitViewValue():t.$apply((function(){m.$commitViewValue()}))},t.$watch((function(){var e=p(t);if(e!==m.$modelValue&&(m.$modelValue==m.$modelValue||e==e)){m.$modelValue=m.$$rawModelValue=e,c=void 0;for(var n=m.$formatters,r=n.length,i=e;r--;)i=n[r](i);m.$viewValue!==i&&(m.$$updateEmptyClasses(i),m.$viewValue=m.$$lastCommittedViewValue=i,m.$render(),m.$$runValidators(e,i,T))}return e}))}],vo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:po,priority:1,compile:function(e){return e.addClass(co).addClass("ng-untouched").addClass(lo),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",(function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,(function(t){o.$$debounceViewValueCommit(t&&t.type)})),n.on("blur",(function(){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))}))}}}}}],mo=/(\s+|^)default(\s+|$)/,go=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=Q(t.$eval(e.ngModelOptions)),j(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=G(this.$options.updateOn.replace(mo,(function(){return n.$options.updateOnDefault=!0," "})))):this.$options.updateOnDefault=!0}]}};function $o(t){var e=t.ctrl,n=t.$element,r={},i=t.set,o=t.unset,a=t.$animate;function s(t,e){e&&!r[t]?(a.addClass(n,t),r[t]=!0):!e&&r[t]&&(a.removeClass(n,t),r[t]=!1)}function u(t,e){t=t?"-"+St(t,"-"):"",s(lo+t,!0===e),s("ng-invalid"+t,!1===e)}r["ng-invalid"]=!(r[lo]=n.hasClass(lo)),e.$setValidity=function(t,n,r){M(n)?function(t,n,r){e[t]||(e[t]={});i(e[t],n,r)}("$pending",t,r):function(t,n,r){e[t]&&o(e[t],n,r);yo(e[t])&&(e[t]=void 0)}("$pending",t,r);B(n)?n?(o(e.$error,t,r),i(e.$$success,t,r)):(i(e.$error,t,r),o(e.$$success,t,r)):(o(e.$error,t,r),o(e.$$success,t,r));e.$pending?(s("ng-pending",!0),e.$valid=e.$invalid=void 0,u("",null)):(s("ng-pending",!1),e.$valid=yo(e.$error),e.$invalid=!e.$valid,u("",e.$valid));var a;a=e.$pending&&e.$pending[t]?void 0:!e.$error[t]&&(!!e.$$success[t]||null);u(t,a),e.$$parentForm.$setValidity(t,a,e)}}function yo(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var bo=$i({terminal:!0,priority:1e3}),wo=e("ngOptions"),xo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Co=["$compile","$document","$parse",function(e,n,r){var i=t.document.createElement("option"),o=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=T},post:function(t,a,u,l){for(var c,f=l[0],h=l[1],p=u.multiple,d=0,v=a.children(),g=v.length;d<g;d++)if(""===v[d].value){c=v.eq(d);break}var b,w=!!c,x=s(i.cloneNode(!1));x.val("?");var C=function(t,e,n){var i=t.match(xo);if(!i)throw wo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,ht(e));var o=i[5]||i[7],a=i[6],s=/ as /.test(i[0])&&i[1],u=i[9],l=r(i[2]?i[1]:o),c=s&&r(s)||l,f=u&&r(u),h=u?function(t,e){return f(n,e)}:function(t){return Se(t)},p=function(t,e){return h(t,w(t,e))},d=r(i[2]||i[1]),v=r(i[3]||""),g=r(i[4]||""),y=r(i[8]),b={},w=a?function(t,e){return b[a]=e,b[o]=t,b}:function(t){return b[o]=t,b};function x(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function C(t){var e;if(!a&&$(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}return{trackBy:u,getTrackByValue:p,getWatchables:r(y,(function(t){for(var e=[],r=C(t=t||[]),o=r.length,a=0;a<o;a++){var s=t===r?a:r[a],u=t[s],l=w(u,s),c=h(u,l);if(e.push(c),i[2]||i[1]){var f=d(n,l);e.push(f)}if(i[4]){var p=g(n,l);e.push(p)}}return e})),getOptions:function(){for(var t=[],e={},r=y(n)||[],i=C(r),o=i.length,a=0;a<o;a++){var s=r===i?a:i[a],l=r[s],f=w(l,s),$=c(n,f),b=h($,f),S=new x(b,$,d(n,f),v(n,f),g(n,f));t.push(S),e[b]=S}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return u?m.copy(t.viewValue):t.viewValue}}}}}(u.ngOptions,a,t),S=n[0].createDocumentFragment(),A=function(){w||c.remove()},E=function(){x.remove()};function _(t,e){var n=i.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);t.value!==e.value&&(e.value=t.selectValue)}(t,n)}function k(){var t=b&&f.readValue();if(b)for(var e=b.items.length-1;e>=0;e--){var n=b.items[e];j(n.group)?ve(n.element.parentNode):ve(n.element)}b=C.getOptions();var r={};if(w&&a.prepend(c),b.items.forEach((function(t){var e;j(t.group)?((e=r[t.group])||(e=o.cloneNode(!1),S.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e),_(t,e)):_(t,S)})),a[0].appendChild(S),h.$render(),!h.$isEmpty(t)){var i=f.readValue();(C.trackBy||p?tt(t,i):t===i)||(h.$setViewValue(i),h.$render())}}p?(h.$isEmpty=function(t){return!t||0===t.length},f.writeValue=function(t){b.items.forEach((function(t){t.element.selected=!1})),t&&t.forEach((function(t){var e=b.getOptionFromViewValue(t);e&&(e.element.selected=!0)}))},f.readValue=function(){var t=a.val()||[],e=[];return y(t,(function(t){var n=b.selectValueMap[t];n&&!n.disabled&&e.push(b.getViewValueFromOption(n))})),e},C.trackBy&&t.$watchCollection((function(){if(F(h.$viewValue))return h.$viewValue.map((function(t){return C.getTrackByValue(t)}))}),(function(){h.$render()}))):(f.writeValue=function(t){var e=b.getOptionFromViewValue(t);e?(a[0].value!==e.selectValue&&(E(),A(),a[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(E(),w||a.prepend(c),a.val(""),c.prop("selected",!0),c.attr("selected",!0)):(A(),a.prepend(x),a.val("?"),x.prop("selected",!0),x.attr("selected",!0))},f.readValue=function(){var t=b.selectValueMap[a.val()];return t&&!t.disabled?(A(),E(),b.getViewValueFromOption(t)):null},C.trackBy&&t.$watch((function(){return C.getTrackByValue(h.$viewValue)}),(function(){h.$render()}))),w?(c.remove(),e(c)(t),c.removeClass("ng-scope")):c=s(i.cloneNode(!1)),a.empty(),k(),t.$watchCollection(C.getWatchables,k)}}}}],So=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){var l,c=u.count,f=u.$attr.when&&s.attr(u.$attr.when),h=u.offset||0,p=a.$eval(f)||{},d={},v=e.startSymbol(),g=e.endSymbol(),$=v+c+"-"+h+g,b=m.noop;function w(t){s.text(t||"")}y(u,(function(t,e){var n=o.exec(e);if(n){var r=(n[1]?"-":"")+i(n[2]);p[r]=s.attr(u.$attr[e])}})),y(p,(function(t,n){d[n]=e(t.replace(r,$))})),a.$watch(c,(function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in p||(r=t.pluralCat(r-h)),r!==l&&!(i&&q(l)&&isNaN(l))){b();var o=d[r];M(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+f),b=T,w()):b=a.$watch(o,w),l=r}}))}}}],Ao=["$parse","$animate","$compile",function(t,n,i){var o=e("ngRepeat"),a=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},s=function(t){return t.clone[0]},u=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,l){var c=l.ngRepeat,f=i.$$createComment("end ngRepeat",c),h=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);var p=h[1],d=h[2],v=h[3],m=h[4];if(!(h=p.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);var g,b,w,x,C=h[3]||h[1],S=h[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var A={$id:Se};return m?g=t(m):(w=function(t,e){return Se(e)},x=function(t){return t}),function(t,e,i,l,h){g&&(b=function(e,n,r){return S&&(A[S]=e),A[C]=n,A.$index=r,g(t,A)});var p=Dt();t.$watchCollection(d,(function(i){var l,d,m,g,A,E,_,k,T,O,D,P,M=e[0],j=Dt();if(v&&(t[v]=i),$(i))T=i,k=b||w;else for(var I in k=b||x,T=[],i)r.call(i,I)&&"$"!==I.charAt(0)&&T.push(I);for(g=T.length,D=new Array(g),l=0;l<g;l++)if(A=i===T?l:T[l],E=i[A],_=k(A,E,l),p[_])O=p[_],delete p[_],j[_]=O,D[l]=O;else{if(j[_])throw y(D,(function(t){t&&t.scope&&(p[t.id]=t)})),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",c,_,E);D[l]={id:_,scope:void 0,clone:void 0},j[_]=!0}for(var N in p){if(P=Ot((O=p[N]).clone),n.leave(P),P[0].parentNode)for(l=0,d=P.length;l<d;l++)P[l].$$NG_REMOVED=!0;O.scope.$destroy()}for(l=0;l<g;l++)if(A=i===T?l:T[l],E=i[A],(O=D[l]).scope){m=M;do{m=m.nextSibling}while(m&&m.$$NG_REMOVED);s(O)!=m&&n.move(Ot(O.clone),null,M),M=u(O),a(O.scope,l,C,E,S,A,g)}else h((function(t,e){O.scope=e;var r=f.cloneNode(!1);t[t.length++]=r,n.enter(t,null,M),M=r,O.clone=t,j[O.id]=O,a(O.scope,l,C,E,S,A,g)}));p=j}))}}}}],Eo=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,(function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],_o=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,(function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ko=$i((function(t,e,n){t.$watch(n.ngStyle,(function(t,n){n&&t!==n&&y(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}),!0)})),To=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],u=[],l=[],c=[],f=function(t,e){return function(){t.splice(e,1)}};n.$watch(a,(function(n){var r,i;for(r=0,i=l.length;r<i;++r)t.cancel(l[r]);for(l.length=0,r=0,i=c.length;r<i;++r){var a=Ot(u[r].clone);c[r].$destroy(),(l[r]=t.leave(a)).then(f(l,r))}u.length=0,c.length=0,(s=o.cases["!"+n]||o.cases["?"])&&y(s,(function(n){n.transclude((function(r,i){c.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};u.push(a),t.enter(r,o.parent(),o)}))}))}))}}}],Oo=$i({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Do=$i({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Po=e("ngTransclude"),Mo=["$compile",function(t){return{restrict:"EAC",terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){if(!o)throw Po("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ht(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var a=r.ngTransclude||r.ngTranscludeSlot;function s(){n(t,(function(t){e.append(t)}))}o((function(t,n){t.length?e.append(t):(s(),n.$destroy())}),null,a),a&&!o.isSlotFilled(a)&&s()}}}}],jo=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Io={$setViewValue:T,$render:T};var No=["$element","$scope",function(e,n){var r=this,i=new Ae;r.ngModelCtrl=Io,r.unknownOption=s(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Se(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",(function(){r.renderUnknownOption=T})),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(8!==e[0].nodeType){kt(t,'"option value"'),""===t&&(r.emptyOption=e);var n,o=i.get(t)||0;i.put(t,o+1),r.ngModelCtrl.$render(),(n=e)[0].hasAttribute("selected")&&(n[0].selected=!0)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=void 0)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){var a;i?n.$observe("value",(function(t){j(a)&&r.removeOption(a),a=t,r.addOption(t,e)})):o?t.$watch(o,(function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)})):r.addOption(n.value,e);e.on("$destroy",(function(){r.removeOption(n.value),r.ngModelCtrl.$render()}))}}],Ro=function(){return{restrict:"E",require:["select","?ngModel"],controller:No,priority:1,link:{pre:function(t,e,n,r){var i=r[1];if(!i)return;var o=r[0];if(o.ngModelCtrl=i,e.on("change",(function(){t.$apply((function(){i.$setViewValue(o.readValue())}))})),n.multiple){o.readValue=function(){var t=[];return y(e.find("option"),(function(e){e.selected&&t.push(e.value)})),t},o.writeValue=function(t){var n=new Ae(t);y(e.find("option"),(function(t){t.selected=j(n.get(t.value))}))};var a,s=NaN;t.$watch((function(){s!==i.$viewValue||tt(a,i.$viewValue)||(a=Mt(i.$viewValue),i.$render()),s=i.$viewValue})),i.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},qo=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(j(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o=e.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(t,e,n,r,i)}}}}],Vo=D({restrict:"E",terminal:!1}),Fo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",(function(){r.$validate()})))}}},Lo=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",(function(t){if(R(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,ht(n));o=t||void 0,i.$validate()})),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||M(o)||o.test(e)}}}}},Ho=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",(function(t){var e=_(t);i=isNaN(e)?-1:e,r.$validate()})),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Uo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",(function(t){i=_(t)||0,r.$validate()})),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load angular more than once."):(!function(){var e;if(!At){var n=nt();(u=M(n)?t.jQuery:n?t[n]:void 0)&&u.fn.on?(s=u,A(u.fn,{scope:me.scope,isolateScope:me.isolateScope,controller:me.controller,injector:me.injector,inheritedData:me.inheritedData}),e=u.cleanData,u.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=u._data(r,"events"))&&n.$destroy&&u(r).triggerHandler("$destroy");e(t)}):s=ee,m.element=s,At=!0}}(),function(n){A(n,{bootstrap:bt,copy:Q,extend:A,merge:E,equals:tt,element:s,forEach:y,injector:Ie,noop:T,bind:ot,toJson:st,fromJson:ut,identity:O,isUndefined:M,isDefined:j,isString:R,isFunction:L,isObject:I,isNumber:q,isElement:Z,isArray:F,version:It,isDate:V,lowercase:i,uppercase:o,callbacks:{$$counter:0},getTestability:xt,$$minErr:e,$$csp:et,reloadWithDebugInfo:wt}),(l=function(t){var n=e("$injector"),r=e("ng");function i(t,e,n){return t[e]||(t[e]=n())}var o=i(t,"angular",Object);return o.$$minErr=o.$$minErr||e,i(o,"module",(function(){var t={};return function(e,o,a){return function(t,e){if("hasOwnProperty"===t)throw r("badname","hasOwnProperty is not a valid {0} name",e)}(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),i(t,e,(function(){if(!o)throw n("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.",e);var t=[],r=[],i=[],s=l("$injector","invoke","push",r),u={_invokeQueue:t,_configBlocks:r,_runBlocks:i,requires:o,name:e,provider:c("$provide","provider"),factory:c("$provide","factory"),service:c("$provide","service"),value:l("$provide","value"),constant:l("$provide","constant","unshift"),decorator:c("$provide","decorator"),animation:c("$animateProvider","register"),filter:c("$filterProvider","register"),controller:c("$controllerProvider","register"),directive:c("$compileProvider","directive"),component:c("$compileProvider","component"),config:s,run:function(t){return i.push(t),this}};return a&&s(a),u;function l(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),u}}function c(n,r){return function(i,o){return o&&L(o)&&(o.$$moduleName=e),t.push([n,r,arguments]),u}}}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Dr}),t.provider("$compile",Je).directive({a:yi,input:Ui,textarea:Ui,form:Si,script:jo,select:Ro,style:Vo,option:qo,ngBind:Wi,ngBindHtml:Gi,ngBindTemplate:Yi,ngClass:Xi,ngClassEven:Qi,ngClassOdd:Ji,ngCloak:to,ngController:eo,ngForm:Ai,ngHide:_o,ngIf:io,ngInclude:oo,ngInit:so,ngNonBindable:bo,ngPluralize:So,ngRepeat:Ao,ngShow:Eo,ngStyle:ko,ngSwitch:To,ngSwitchWhen:Oo,ngSwitchDefault:Do,ngOptions:Co,ngTransclude:Mo,ngModel:vo,ngList:uo,ngChange:Ki,pattern:Lo,ngPattern:Lo,required:Fo,ngRequired:Fo,minlength:Uo,ngMinlength:Uo,maxlength:Ho,ngMaxlength:Ho,ngValue:Bi,ngModelOptions:go}).directive({ngInclude:ao}).directive(bi).directive(no),t.provider({$anchorScroll:Ne,$animate:He,$animateCss:Be,$$animateJs:Fe,$$animateQueue:Le,$$AnimateRunner:ze,$$animateAsyncRun:Ue,$browser:Ye,$cacheFactory:Ge,$controller:un,$document:ln,$exceptionHandler:cn,$filter:Kr,$$forceReflow:fn,$interpolate:On,$interval:Dn,$http:En,$httpParamSerializer:yn,$httpParamSerializerJQLike:bn,$httpBackend:kn,$xhrFactory:_n,$jsonpCallbacks:Pn,$location:Kn,$log:Zn,$parse:Ar,$rootScope:Or,$q:Er,$$q:_r,$sce:Nr,$sceDelegate:Ir,$sniffer:Rr,$templateCache:Ke,$templateRequest:Vr,$$testability:Fr,$timeout:Lr,$window:Wr,$$rAF:Tr,$$jqLite:Ce,$$HashMap:Ee,$$cookieReader:Gr})}])}(m),m.module("ngLocale",[],["$provide",function(t){var e="one",n="other";t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,r){var i=0|t,o=function(t,e){var n=e;void 0===n&&(n=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var r=Math.pow(10,n);return{v:n,f:(t*r|0)%r}}(t,r);return 1==i&&0==o.v?e:n}})}]),s(t.document).ready((function(){yt(t.document,bt)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@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;}</style>')},function(t,e,n){n(8),t.exports="ngAnimate"},function(t,e){
/**
 * @license AngularJS v1.5.8
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e){"use strict";var n,r,i,o;void 0===t.ontransitionend&&void 0!==t.onwebkittransitionend?("-webkit-",n="WebkitTransition",r="webkitTransitionEnd transitionend"):(n="transition",r="transitionend"),void 0===t.onanimationend&&void 0!==t.onwebkitanimationend?("-webkit-",i="WebkitAnimation",o="webkitAnimationEnd animationend"):(i="animation",o="animationend");var a=i+"Delay",s=i+"Duration",u=n+"Delay",l=n+"Duration",c=e.$$minErr("ng");function f(t,e,n){if(!t)throw c("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function h(t,e){return t||e?t?e?(q(t)&&(t=t.join(" ")),q(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function p(t,e,n){var r="";return t=q(t)?t:t&&U(t)&&t.length?t.split(/\s+/):[],R(t,(function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function d(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(1==n.nodeType)return n}}function v(t){return function(e,n){n.addClass&&(!function(t,e,n){R(e,(function(e){t.addClass(e,n)}))}(t,e,n.addClass),n.addClass=null),n.removeClass&&(!function(t,e,n){R(e,(function(e){t.removeClass(e,n)}))}(t,e,n.removeClass),n.removeClass=null)}}function m(t){if(!(t=t||{}).$$prepared){var e=t.domOperation||W;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=W},t.$$prepared=!0}return t}function g(t,e){$(t,e),y(t,e)}function $(t,e){e.from&&(t.css(e.from),e.from=null)}function y(t,e){e.to&&(t.css(e.to),e.to=null)}function b(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=function(t,e,n){var r={};t=o(t),e=o(e),R(e,(function(t,e){r[e]=1})),n=o(n),R(n,(function(t,e){r[e]=1===r[e]?null:-1}));var i={addClass:"",removeClass:""};function o(t){U(t)&&(t=t.split(" "));var e={};return R(t,(function(t){t.length&&(e[t]=!0)})),e}return R(r,(function(e,n){var r,o;1===e?(r="addClass",o=!t[n]||t[n+"-remove"]):-1===e&&(r="removeClass",o=t[n]||t[n+"-add"]),o&&(i[r].length&&(i[r]+=" "),i[r]+=n)})),i}(t.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=A(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==W?r.domOperation:null;return N(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function w(t){return t instanceof B?t[0]:t}function x(t,e){var n=e?"-"+e+"s":"";return S(t,[u,n]),[u,n]}function C(t,e){var n=e?"paused":"",r=i+"PlayState";return S(t,[r,n]),[r,n]}function S(t,e){var n=e[0],r=e[1];t.style[n]=r}function A(t,e){return t?e?t+" "+e:t:e}var E=["$interpolate",function(t){return{link:function(e,n,r){var i=r.ngAnimateChildren;function o(t){t="on"===t||"true"===t,n.data("$$ngAnimateChildren",t)}U(i)&&0===i.length?n.data("$$ngAnimateChildren",!0):(o(t(i)(e)),r.$observe("ngAnimateChildren",o))}}}],_={transitionDuration:l,transitionDelay:u,transitionProperty:n+"Property",animationDuration:s,animationDelay:a,animationIterationCount:i+"IterationCount"},k={transitionDuration:l,transitionDelay:u,animationDuration:s,animationDelay:a};function T(t,e){return[e?a:u,t+"s"]}function O(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return R(n,(function(t,e){var n,o,a=i[t];if(a){var s=a.charAt(0);("-"===s||"+"===s||s>=0)&&(n=0,o=a.split(/\s*,\s*/),R(o,(function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,n=n?Math.max(t,n):t})),a=n),0===a&&(a=null),r[e]=a}})),r}function D(t){return 0===t||null!=t}function P(t,e){var r=n,i=t+"s";return e?r+="Duration":i+=" linear all",[r,i]}function M(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function j(t,e,n){R(n,(function(n){t[n]=V(t[n])?t[n]:e.style.getPropertyValue(n)}))}var I,N,R,q,V,F,L,H,U,z,B,W,Y=["$animateProvider",function(t){var e=M(),a=M();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(t,u,l,c,f,h,d,b){var A=v(u),E=0;function M(t,e){var n="$$ngAnimateParentKey",r=t.parentNode;return(r[n]||(r[n]=++E))+"-"+t.getAttribute("class")+"-"+e}var N=[];function V(t){N.push(t),d.waitUntilQuiet((function(){e.flush(),a.flush();for(var t=f(),n=0;n<N.length;n++)N[n](t);N.length=0}))}function F(n,r,i){var o=function(n,r,i,o){var a=e.get(i);return a||"infinite"===(a=O(t,n,o)).animationIterationCount&&(a.animationIterationCount=1),e.put(i,a),a}(n,0,i,_),a=o.animationDelay,s=o.transitionDelay;return o.maxDelay=a&&s?Math.max(a,s):a||s,o.maxDuration=Math.max(o.animationDuration*o.animationIterationCount,o.transitionDuration),o}return function(f,d){var v=d||{};v.$$prepared||(v=m(I(v)));var E={},_=w(f);if(!_||!_.parentNode||!b.enabled())return At();var N,L,H,U,z,B,Y,G,K,Z,X=[],J=f.attr("class"),Q=function(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(v),tt=[];if(0===v.duration||!h.animations&&!h.transitions)return At();var et=v.event&&q(v.event)?v.event.join(" "):v.event,nt="",rt="";et&&v.structural?nt=p(et,"ng-",!0):et&&(nt=et),v.addClass&&(rt+=p(v.addClass,"-add")),v.removeClass&&(rt.length&&(rt+=" "),rt+=p(v.removeClass,"-remove")),v.applyClassesEarly&&rt.length&&A(f,v);var it,ot,at,st=[nt,rt].join(" ").trim(),ut=J+" "+st,lt=p(st,"-active"),ct=Q.to&&Object.keys(Q.to).length>0;if(!((v.keyframeStyle||"").length>0)&&!ct&&!st)return At();if(v.stagger>0){var ft=parseFloat(v.stagger);ot={transitionDelay:ft,animationDelay:ft,transitionDuration:0,animationDuration:0}}else it=M(_,ut),ot=function(n,r,i,o){var s;if(e.count(i)>0&&!(s=a.get(i))){var l=p(r,"-stagger");u.addClass(n,l),(s=O(t,n,o)).animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),u.removeClass(n,l),a.put(i,s)}return s||{}}(_,st,it,k);if(v.$$skipPreparationClasses||u.addClass(f,st),v.transitionStyle){var ht=[n,v.transitionStyle];S(_,ht),X.push(ht)}if(v.duration>=0){at=_.style[n].length>0;var pt=P(v.duration,at);S(_,pt),X.push(pt)}if(v.keyframeStyle){var dt=[i,v.keyframeStyle];S(_,dt),X.push(dt)}var vt=ot?v.staggerIndex>=0?v.staggerIndex:e.count(it):0,mt=0===vt;mt&&!v.skipBlocking&&x(_,9999);var gt=F(_,0,it),$t=gt.maxDelay;B=Math.max($t,0),G=gt.maxDuration;var yt,bt={};if(bt.hasTransitions=gt.transitionDuration>0,bt.hasAnimations=gt.animationDuration>0,bt.hasTransitionAll=bt.hasTransitions&&"all"==gt.transitionProperty,bt.applyTransitionDuration=ct&&(bt.hasTransitions&&!bt.hasTransitionAll||bt.hasAnimations&&!bt.hasTransitions),bt.applyAnimationDuration=v.duration&&bt.hasAnimations,bt.applyTransitionDelay=D(v.delay)&&(bt.applyTransitionDuration||bt.hasTransitions),bt.applyAnimationDelay=D(v.delay)&&bt.hasAnimations,bt.recalculateTimingStyles=rt.length>0,(bt.applyTransitionDuration||bt.applyAnimationDuration)&&(G=v.duration?parseFloat(v.duration):G,bt.applyTransitionDuration&&(bt.hasTransitions=!0,gt.transitionDuration=G,at=_.style[n+"Property"].length>0,X.push(P(G,at))),bt.applyAnimationDuration&&(bt.hasAnimations=!0,gt.animationDuration=G,X.push([s,G+"s"]))),0===G&&!bt.recalculateTimingStyles)return At();null!=v.delay&&("boolean"!=typeof v.delay&&(yt=parseFloat(v.delay),B=Math.max(yt,0)),bt.applyTransitionDelay&&X.push(T(yt)),bt.applyAnimationDelay&&X.push(T(yt,!0)));return null==v.duration&&gt.transitionDuration>0&&(bt.recalculateTimingStyles=bt.recalculateTimingStyles||mt),Y=1e3*B,K=1e3*G,v.skipBlocking||(bt.blockTransition=gt.transitionDuration>0,bt.blockKeyframeAnimation=gt.animationDuration>0&&ot.animationDelay>0&&0===ot.animationDuration),v.from&&(v.cleanupStyles&&j(E,_,Object.keys(v.from)),$(f,v)),bt.blockTransition||bt.blockKeyframeAnimation?St(G):v.skipBlocking||x(_,!1),{$$willAnimate:!0,end:wt,start:function(){if(!N)return U=new l(z={end:wt,cancel:xt,resume:null,pause:null}),V(_t),U}};function wt(){Ct()}function xt(){Ct(!0)}function Ct(t){if(!(N||H&&L)){N=!0,L=!1,v.$$skipPreparationClasses||u.removeClass(f,st),u.removeClass(f,lt),C(_,!1),x(_,!1),R(X,(function(t){_.style[t[0]]=""})),A(f,v),g(f,v),Object.keys(E).length&&R(E,(function(t,e){t?_.style.setProperty(e,t):_.style.removeProperty(e)})),v.onDone&&v.onDone(),tt&&tt.length&&f.off(tt.join(" "),Et);var e=f.data("$$animateCss");e&&(c.cancel(e[0].timer),f.removeData("$$animateCss")),U&&U.complete(!t)}}function St(t){bt.blockTransition&&x(_,t),bt.blockKeyframeAnimation&&C(_,!!t)}function At(){return U=new l({end:wt,cancel:xt}),V(W),Ct(),{$$willAnimate:!1,start:function(){return U},end:wt}}function Et(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-Z,0)>=Y&&r>=G&&(H=!0,Ct())}function _t(){if(!N)if(_.parentNode){var t=function(t){if(H)L&&t&&(L=!1,Ct());else if(L=!t,gt.animationDuration){var e=C(_,L);L?X.push(e):(r=e,i=(n=X).indexOf(r),r>=0&&n.splice(i,1))}var n,r,i},e=vt>0&&(gt.transitionDuration&&0===ot.transitionDuration||gt.animationDuration&&0===ot.animationDuration)&&Math.max(ot.animationDelay,ot.transitionDelay);e?c(a,Math.floor(e*vt*1e3),!1):a(),z.resume=function(){t(!0)},z.pause=function(){t(!1)}}else Ct();function a(){if(!N){if(St(!1),R(X,(function(t){var e=t[0],n=t[1];_.style[e]=n})),A(f,v),u.addClass(f,lt),bt.recalculateTimingStyles){if(ut=_.className+" "+st,it=M(_,ut),gt=F(_,0,it),$t=gt.maxDelay,B=Math.max($t,0),0===(G=gt.maxDuration))return void Ct();bt.hasTransitions=gt.transitionDuration>0,bt.hasAnimations=gt.animationDuration>0}if(bt.applyAnimationDelay&&($t="boolean"!=typeof v.delay&&D(v.delay)?parseFloat(v.delay):$t,B=Math.max($t,0),gt.animationDelay=$t,yt=T($t,!0),X.push(yt),_.style[yt[0]]=yt[1]),Y=1e3*B,K=1e3*G,v.easing){var t,e=v.easing;bt.hasTransitions&&(t=n+"TimingFunction",X.push([t,e]),_.style[t]=e),bt.hasAnimations&&(t=i+"TimingFunction",X.push([t,e]),_.style[t]=e)}gt.transitionDuration&&tt.push(r),gt.animationDuration&&tt.push(o),Z=Date.now();var a=Y+1.5*K,l=Z+a,h=f.data("$$animateCss")||[],p=!0;if(h.length){var d=h[0];(p=l>d.expectedEndTime)?c.cancel(d.timer):h.push(Ct)}if(p){var m=c(s,a,!1);h[0]={timer:m,expectedEndTime:l},h.push(Ct),f.data("$$animateCss",h)}tt.length&&f.on(tt.join(" "),Et),v.to&&(v.cleanupStyles&&j(E,_,Object.keys(v.to)),y(f,v))}}function s(){var t=f.data("$$animateCss");if(t){for(var e=1;e<t.length;e++)t[e]();f.removeData("$$animateCss")}}}}}]}],G=["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,e,n,r,i,o,a){if(!i.animations&&!i.transitions)return W;var s,u=a[0].body,l=w(r),c=B((s=l).parentNode&&11===s.parentNode.nodeType||u.contains(l)?l:u);v(o);return function(e){return e.from&&e.to?function(e,r,i,o){var a=p(e),s=p(r),l=[];if(R(o,(function(e){var r=function(e,r,i){var o=B(w(r).cloneNode(!0)),a=f(v(o));r.addClass("ng-animate-shim"),i.addClass("ng-animate-shim"),o.addClass("ng-anchor"),c.append(o);var s,l=function(){var e=t(o,{addClass:"ng-anchor-out",delay:!0,from:d(r)});return e.$$willAnimate?e:null}();if(!l&&!(s=m()))return g();var p=l||s;return{start:function(){var t,e=p.start();return e.done((function(){if(e=null,!s&&(s=m()))return(e=s.start()).done((function(){e=null,g(),t.complete()})),e;g(),t.complete()})),t=new n({end:r,cancel:r});function r(){e&&e.end()}}};function d(t){var e={},n=w(t).getBoundingClientRect();return R(["width","height","top","left"],(function(t){var r=n[t];switch(t){case"top":r+=u.scrollTop;break;case"left":r+=u.scrollLeft}e[t]=Math.floor(r)+"px"})),e}function v(t){return t.attr("class")||""}function m(){var e=f(v(i)),n=h(e,a),r=h(a,e),s=t(o,{to:d(i),addClass:"ng-anchor-in "+n,removeClass:"ng-anchor-out "+r,delay:!0});return s.$$willAnimate?s:null}function g(){o.remove(),r.removeClass("ng-animate-shim"),i.removeClass("ng-animate-shim")}}(0,e.out,e.in);r&&l.push(r)})),!a&&!s&&0===l.length)return;return{start:function(){var t=[];a&&t.push(a.start()),s&&t.push(s.start()),R(l,(function(e){t.push(e.start())}));var e=new n({end:r,cancel:r});return n.all(t,(function(t){e.complete(t)})),e;function r(){R(t,(function(t){t.end()}))}}}}(e.from,e.to,e.classes,e.anchors):p(e)};function f(t){return t.replace(/\bng-\S+\b/g,"")}function h(t,e){return U(t)&&(t=t.split(" ")),U(e)&&(e=e.split(" ")),t.filter((function(t){return-1===e.indexOf(t)})).join(" ")}function p(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=A(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}}]}],K=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){var i=v(r);return function(t,e,r,a){var s=!1;3===arguments.length&&H(r)&&(a=r,r=null),a=m(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var u,l,c,f,h,p=a.addClass,d=a.removeClass,v=o(r);v.length&&("leave"==e?(f="leave",c="afterLeave"):(f="before"+e.charAt(0).toUpperCase()+e.substr(1),c=e),"enter"!==e&&"move"!==e&&(u=x(t,e,a,v,f)),l=x(t,e,a,v,c));if(u||l)return{$$willAnimate:!0,end:function(){return h?h.end():(y(),(h=new n).complete(!0)),h},start:function(){if(h)return h;var t;h=new n;var e=[];return u&&e.push((function(e){t=u(e)})),e.length?e.push((function(t){$(),t(!0)})):$(),l&&e.push((function(e){t=l(e)})),h.setHost({end:function(){i()},cancel:function(){i(!0)}}),n.chain(e,r),h;function r(t){y(),h.complete(t)}function i(e){s||((t||W)(e),r(e))}}};function $(){a.domOperation(),i(t,a)}function y(){s=!0,$(),g(t,a)}function b(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,p,d,o];break;case"addClass":a=[e,p,o];break;case"removeClass":a=[e,d,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(L(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(L(s))return s;return W}function w(t,e,r,i,o){var a=[];return R(i,(function(i){var s=i[o];s&&a.push((function(){var i,o,a=!1,u=function(t){a||(a=!0,(o||W)(t),i.complete(!t))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=b(s,t,e,r,(function(t){u(!1===t)})),i}))})),a}function x(t,e,r,i,o){var a,s,u=w(t,e,r,i,o);0===u.length&&("beforeSetClass"===o?(a=w(t,"removeClass",r,i,"beforeRemoveClass"),s=w(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(a=w(t,"removeClass",r,i,"removeClass"),s=w(t,"addClass",r,i,"addClass")),a&&(u=u.concat(a)),s&&(u=u.concat(s)));if(0!==u.length)return function(t){var e=[];return u.length&&R(u,(function(t){e.push(t())})),e.length?n.all(e,t):t(),function(t){R(e,(function(e){t?e.cancel():e.end()}))}}}};function o(n){n=q(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}}]}],Z=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){var t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));var n=new e({end:o(),cancel:o()});return n;function o(){return function(){R(t,(function(t){t.end()}))}}}}}return n(t)};function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}}]}],X=["$animateProvider",function(e){var n=this.rules={skip:[],cancel:[],join:[]};function r(t,e){if(t&&e){var n=function(t){if(!t)return null;var e=t.split(" "),n=Object.create(null);return R(e,(function(t){n[t]=!0})),n}(e);return t.split(" ").some((function(t){return n[t]}))}}function i(t,e,r,i){return n[t].some((function(t){return t(e,r,i)}))}function o(t,e){var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((function(t,e,n){return!e.structural&&o(e)})),n.skip.push((function(t,e,n){return!e.structural&&!o(e)})),n.skip.push((function(t,e,n){return"leave"==n.event&&e.structural})),n.skip.push((function(t,e,n){return n.structural&&2===n.state&&!e.structural})),n.cancel.push((function(t,e,n){return n.structural&&e.structural})),n.cancel.push((function(t,e,n){return 2===n.state&&e.structural})),n.cancel.push((function(t,e,n){if(n.structural)return!1;var i=e.addClass,o=e.removeClass,a=n.addClass,s=n.removeClass;return!(z(i)&&z(o)||z(a)&&z(s))&&(r(i,s)||r(o,a))})),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(n,r,a,s,u,l,c,h,$,y){var x=new u,C=new u,S=null;var E=r.$watch((function(){return 0===h.totalPendingRequests}),(function(t){t&&(E(),r.$$postDigest((function(){r.$$postDigest((function(){null===S&&(S=!0)}))})))})),_=Object.create(null),k=e.classNameFilter(),T=k?function(t){return k.test(t)}:function(){return!0},O=v($);function D(t,e){return b(t,e,{})}var P=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function M(t,e,n){var r=d(e);return t.filter((function(t){return!(t.node===r&&(!n||t.callback===n))}))}function j(t,e){"close"!==t||e[0].parentNode||L.off(e)}var L={on:function(t,e,n){var r=d(e);_[t]=_[t]||[],_[t].push({node:r,callback:n}),B(e).on("$destroy",(function(){x.get(r)||L.off(t,e,n)}))},off:function(t,e,n){if(1!==arguments.length||U(arguments[0])){var r=_[t];r&&(_[t]=1===arguments.length?null:M(r,e,n))}else for(var i in e=arguments[0],_)_[i]=M(_[i],e)},pin:function(t,e){f(F(t),"element","not an element"),f(F(e),"parentElement","not an element"),t.data("$ngAnimatePin",e)},push:function(t,e,u,f){return(u=u||{}).domOperation=f,function(t,e,u){var f,h,v=I(u);(t=function(t){if(t instanceof B)switch(t.length){case 0:return t;case 1:if(1===t[0].nodeType)return t;break;default:return B(d(t))}if(1===t.nodeType)return B(t)}(t))&&(f=w(t),h=t.parent());v=m(v);var $=new c,y=(E=!1,function(t){E?t():r.$$postDigest((function(){E=!0,t()}))});var E;q(v.addClass)&&(v.addClass=v.addClass.join(" "));v.addClass&&!U(v.addClass)&&(v.addClass=null);q(v.removeClass)&&(v.removeClass=v.removeClass.join(" "));v.removeClass&&!U(v.removeClass)&&(v.removeClass=null);v.from&&!H(v.from)&&(v.from=null);v.to&&!H(v.to)&&(v.to=null);if(!f)return tt(),$;var k=[f.className,v.addClass,v.removeClass].join(" ");if(!T(k))return tt(),$;var M=["enter","move","leave"].indexOf(e)>=0,N=s[0].hidden,F=!S||N||C.get(f),L=!F&&x.get(f)||{},K=!!L.state;F||K&&1==L.state||(F=!function(t,e,n){var r,i=B(s[0].body),o=Y(t,i)||"HTML"===t[0].nodeName,u=Y(t,a),l=!1,c=C.get(w(t)),f=B.data(t[0],"$ngAnimatePin");f&&(e=f);e=w(e);for(;e&&(u||(u=Y(e,a)),1===e.nodeType);){var h=x.get(e)||{};if(!l){var p=C.get(e);if(!0===p&&!1!==c){c=!0;break}!1===p&&(c=!1),l=h.structural}if(z(r)||!0===r){var d=B.data(e,"$$ngAnimateChildren");V(d)&&(r=d)}if(l&&!1===r)break;if(o||(o=Y(e,i)),o&&u)break;e=u||!(f=B.data(e,"$ngAnimatePin"))?e.parentNode:w(f)}return(!l||r)&&!0!==c&&u&&o}(t,h));if(F)return N&&Q($,e,"start"),tt(),N&&Q($,e,"close"),$;M&&function(t){var e=w(t).querySelectorAll("[data-ng-animate]");R(e,(function(t){var e=parseInt(t.getAttribute("data-ng-animate")),n=x.get(t);if(n)switch(e){case 2:n.runner.end();case 1:x.remove(t)}}))}(t);var Z={structural:M,element:t,event:e,addClass:v.addClass,removeClass:v.removeClass,close:tt,options:v,runner:$};if(K){if(i("skip",t,Z,L))return 2===L.state?(tt(),$):(b(t,L,Z),L.runner);if(i("cancel",t,Z,L))if(2===L.state)L.runner.end();else{if(!L.structural)return b(t,L,Z),L.runner;L.close()}else if(i("join",t,Z,L)){if(2!==L.state)return function(t,e,n){var r="";e&&(r=p(e,"ng-",!0)),n.addClass&&(r=A(r,p(n.addClass,"-add"))),n.removeClass&&(r=A(r,p(n.removeClass,"-remove"))),r.length&&(n.preparationClasses=r,t.addClass(r))}(t,M?e:null,v),e=Z.event=L.event,v=b(t,L,Z),L.runner;D(t,Z)}}else D(t,Z);var X=Z.structural;X||(X="animate"===Z.event&&Object.keys(Z.options.to||{}).length>0||o(Z));if(!X)return tt(),W(t),$;var J=(L.counter||0)+1;return Z.counter=J,G(t,1,Z),r.$$postDigest((function(){var n=x.get(f),r=!n;n=n||{};var i=(t.parent()||[]).length>0&&("animate"===n.event||n.structural||o(n));if(r||n.counter!==J||!i)return r&&(O(t,v),g(t,v)),(r||M&&n.event!==e)&&(v.domOperation(),$.end()),void(i||W(t));e=!n.structural&&o(n,!0)?"setClass":n.event,G(t,2);var a=l(t,e,n.options);$.setHost(a),Q($,e,"start",{}),a.done((function(n){tt(!n);var r=x.get(f);r&&r.counter===J&&W(w(t)),Q($,e,"close",{})}))})),$;function Q(e,r,i,o){y((function(){var e=function(t,e,n){var r=w(e),i=w(t),o=[],a=_[n];return a&&R(a,(function(t){(P.call(t.node,r)||"leave"===n&&P.call(t.node,i))&&o.push(t.callback)})),o}(h,t,r);e.length?n((function(){R(e,(function(e){e(t,i,o)})),j(i,t)})):j(i,t)})),e.progress(r,i,o)}function tt(e){!function(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}(t,v),O(t,v),g(t,v),v.domOperation(),$.complete(!e)}}(t,e,u)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!S;else{var r=F(t);if(r){var i=w(t);1===n?e=!C.get(i):C.put(i,!e)}else e=S=!!t}return e}};return L;function W(t){var e=w(t);e.removeAttribute("data-ng-animate"),x.remove(e)}function Y(t,e){return w(t)===w(e)}function G(t,e,n){(n=n||{}).state=e;var r=w(t);r.setAttribute("data-ng-animate",e);var i=x.get(r),o=i?N(i,n):n;x.put(r,o)}}]}],J=["$animateProvider",function(t){var e=this.drivers=[];function n(t){return t.data("$$animationRunner")}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(t,r,i,o,a,s){var u=[],l=v(t);return function(c,f,p){p=m(p);var d=["enter","move","leave"].indexOf(f)>=0,v=new o({end:function(){S()},cancel:function(){S(!0)}});if(!e.length)return S(),v;!function(t,e){t.data("$$animationRunner",e)}(c,v);var $,y=h(c.attr("class"),h(p.addClass,p.removeClass)),b=p.tempClasses;return b&&(y+=" "+b,p.tempClasses=null),d&&($="ng-"+f+"-prepare",t.addClass(c,$)),u.push({element:c,classes:y,event:f,structural:d,options:p,beforeStart:function(){c.addClass("ng-animate"),b&&t.addClass(c,b);$&&(t.removeClass(c,$),$=null)},close:S}),c.on("$destroy",C),u.length>1||r.$$postDigest((function(){var t=[];R(u,(function(e){n(e.element)?t.push(e):e.close()})),u.length=0;var r=function(t){var e=[],n={};R(t,(function(t,r){var i=w(t.element),o=t.event,a=["enter","move"].indexOf(o)>=0,s=t.structural?function(t){var e=t.hasAttribute("ng-animate-ref")?[t]:t.querySelectorAll("[ng-animate-ref]"),n=[];return R(e,(function(t){var e=t.getAttribute("ng-animate-ref");e&&e.length&&n.push(t)})),n}(i):[];if(s.length){var u=a?"to":"from";R(s,(function(t){var e=t.getAttribute("ng-animate-ref");n[e]=n[e]||{},n[e][u]={animationID:r,element:B(t)}}))}else e.push(t)}));var r={},i={};return R(n,(function(n,o){var a=n.from,s=n.to;if(a&&s){var u=t[a.animationID],l=t[s.animationID],c=a.animationID.toString();if(!i[c]){var f=i[c]={structural:!0,beforeStart:function(){u.beforeStart(),l.beforeStart()},close:function(){u.close(),l.close()},classes:x(u.classes,l.classes),from:u,to:l,anchors:[]};f.classes.length?e.push(f):(e.push(u),e.push(l))}i[c].anchors.push({out:a.element,in:s.element})}else{var h=a?a.animationID:s.animationID,p=h.toString();r[p]||(r[p]=!0,e.push(t[h]))}})),e}(t),o=[];R(r,(function(t){o.push({domNode:w(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var r,o=t.close;if(n(t.anchors?t.from.element||t.to.element:t.element)){var a=function(t){for(var n=e.length-1;n>=0;n--){var r=e[n],o=i.get(r)(t);if(o)return o}}(t);a&&(r=a.start)}if(r){var s=r();s.done((function(t){o(!t)})),function(t,e){t.from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element);function r(t){var r=n(t);r&&r.setHost(e)}}(t,s)}else o()}})})),s(function(t){var e,n={children:[]},r=new a;for(e=0;e<t.length;e++){var i=t[e];r.put(i.domNode,t[e]={domNode:i.domNode,fn:i.fn,children:[]})}for(e=0;e<t.length;e++)o(t[e]);return function(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach((function(t){o++,r.push(t)})),i--}a.length&&n.push(a);return n}(n);function o(t){if(t.processed)return t;t.processed=!0;var e,i=t.domNode,a=i.parentNode;for(r.put(i,t);a;){if(e=r.get(a)){e.processed||(e=o(e));break}a=a.parentNode}return(e||n).children.push(t),t}}(o))})),v;function x(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}function C(){var t=n(c);!t||"leave"===f&&p.$$domOperationFired||t.end()}function S(e){c.off("$destroy",C),function(t){t.removeData("$$animationRunner")}(c),l(c,p),g(c,p),p.domOperation(),b&&t.removeClass(c,b),c.removeClass("ng-animate"),v.complete(!e)}}}]}];e.module("ngAnimate",[],(function(){W=e.noop,I=e.copy,N=e.extend,B=e.element,R=e.forEach,q=e.isArray,U=e.isString,H=e.isObject,z=e.isUndefined,V=e.isDefined,L=e.isFunction,F=e.isElement})).directive("ngAnimateSwap",["$animate","$rootScope",function(t,e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r.for,(function(r){a&&t.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),o(s,(function(e){a=e,t.enter(e,null,n)})))}))}}}]).directive("ngAnimateChildren",E).factory("$$rAFScheduler",["$$rAF",function(t){var e,n;function r(t){e=e.concat(t),i()}return e=r.queue=[],r.waitUntilQuiet=function(e){n&&n(),n=t((function(){n=null,e(),i()}))},r;function i(){if(e.length){for(var r=e.shift(),o=0;o<r.length;o++)r[o]();n||t((function(){n||i()}))}}}]).provider("$$animateQueue",X).provider("$$animation",J).provider("$animateCss",Y).provider("$$animateCssDriver",G).provider("$$animateJs",K).provider("$$animateJsDriver",Z)}(window,window.angular)},function(t,e,n){
/**
 * State-based routing for AngularJS
 * @version v0.3.1
 * @link http://angular-ui.github.com/
 * @license MIT License, http://www.opensource.org/licenses/MIT
 */
t.exports===e&&(t.exports="ui.router"),function(t,e,n){"use strict";var r,i=e.isDefined,o=e.isFunction,a=e.isString,s=e.isObject,u=e.isArray,l=e.forEach,c=e.extend,f=e.copy,h=e.toJson;function p(t,e){return c(new(c((function(){}),{prototype:t})),e)}function d(t){return l(arguments,(function(e){e!==t&&l(e,(function(e,n){t.hasOwnProperty(n)||(t[n]=e)}))})),t}function v(t){if(Object.keys)return Object.keys(t);var e=[];return l(t,(function(t,n){e.push(n)})),e}function m(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,r=Number(arguments[2])||0;for((r=r<0?Math.ceil(r):Math.floor(r))<0&&(r+=n);r<n;r++)if(r in t&&t[r]===e)return r;return-1}function g(t,e,n,r){var i,o=function(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(n,r),a={},s=[];for(var u in o)if(o[u]&&o[u].params&&(i=v(o[u].params)).length)for(var l in i)m(s,i[l])>=0||(s.push(i[l]),a[i[l]]=t[i[l]]);return c({},a,e)}function $(t,e,n){if(!n)for(var r in n=[],t)n.push(r);for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!=e[o])return!1}return!0}function y(t,e){var n={};return l(t,(function(t){n[t]=e[t]})),n}function b(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return l(n,(function(n){n in t&&(e[n]=t[n])})),e}function w(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in t)-1==m(n,r)&&(e[r]=t[r]);return e}function x(t,e){var n=u(t),r=n?[]:{};return l(t,(function(t,i){e(t,i)&&(r[n?r.length:i]=t)})),r}function C(t,e){var n=u(t)?[]:{};return l(t,(function(t,r){n[r]=e(t,r)})),n}function S(t,e){var n={},r=[],o=n,u=c(t.when(n),{$$promises:n,$$values:n});this.study=function(n){if(!s(n))throw new Error("'invocables' must be an object");var f=v(n||{}),h=[],p=[],g={};function $(t){return s(t)&&t.then&&t.$$promises}return l(n,(function t(i,o){if(2!==g[o]){if(p.push(o),1===g[o])throw p.splice(0,m(p,o)),new Error("Cyclic dependency: "+p.join(" -> "));if(g[o]=1,a(i))h.push(o,[function(){return e.get(i)}],r);else{var s=e.annotate(i);l(s,(function(e){e!==o&&n.hasOwnProperty(e)&&t(n[e],e)})),h.push(o,i,s)}p.pop(),g[o]=2}})),n=p=g=null,function(n,r,a){if($(n)&&void 0===a&&(a=r,r=n,n=null),n){if(!s(n))throw new Error("'locals' must be an object")}else n=o;if(r){if(!$(r))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else r=u;var p=t.defer(),v=p.promise,m=v.$$promises={},g=c({},n),y=1+h.length/3,b=!1;function x(){--y||(b||d(g,r.$$values),v.$$values=g,v.$$promises=v.$$promises||!0,delete v.$$inheritedValues,p.resolve(g))}function C(t){v.$$failure=t,p.reject(t)}if(i(r.$$failure))return C(r.$$failure),v;r.$$inheritedValues&&d(g,w(r.$$inheritedValues,f)),c(m,r.$$promises),r.$$values?(b=d(g,w(r.$$values,f)),v.$$inheritedValues=w(r.$$values,f),x()):(r.$$inheritedValues&&(v.$$inheritedValues=w(r.$$inheritedValues,f)),r.then(x,C));for(var S=0,A=h.length;S<A;S+=3)n.hasOwnProperty(h[S])?x():E(h[S],h[S+1],h[S+2]);function E(r,o,s){var u=t.defer(),c=0;function f(t){u.reject(t),C(t)}function h(){if(!i(v.$$failure))try{u.resolve(e.invoke(o,a,g)),u.promise.then((function(t){g[r]=t,x()}),f)}catch(t){f(t)}}l(s,(function(t){m.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(c++,m[t].then((function(e){g[t]=e,--c||h()}),f))})),c||h(),m[r]=u.promise}return v}},this.resolve=function(t,e,n,r){return this.study(t)(e,n,r)}}function A(t,e,n){this.fromConfig=function(t,e,n){return i(t.template)?this.fromString(t.template,e):i(t.templateUrl)?this.fromUrl(t.templateUrl,e):i(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return o(t)?t(e):t},this.fromUrl=function(n,r){return o(n)&&(n=n(r)),null==n?null:t.get(n,{cache:e,headers:{Accept:"text/html"}}).then((function(t){return t.data}))},this.fromProvider=function(t,e,r){return n.invoke(t,null,r||{params:e})}}function E(t,e,n){e=c({params:{}},s(e)?e:{});var i,o,a,u,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,h="^",d=0,v=this.segments=[],m=n?n.params:{},g=this.params=n?n.params.$$new():new r.ParamSet,$=[];function y(e,n,i,o){if($.push(e),m[e])return m[e];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(g[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");return g[e]=new r.Param(e,n,i,o),g[e]}function b(t,e,n,r){var i=["",""],o=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return o;switch(n){case!1:i=["(",")"+(r?"?":"")];break;case!0:o=o.replace(/\/$/,""),i=["(?:/(",")|/)?"];break;default:i=["("+n+"|",")?"]}return o+i[0]+e+i[1]}function w(n,i){var o,a,s,u,l;return o=n[2]||n[3],l=e.params[o],s=t.substring(d,n.index),(a=i?n[4]:n[4]||("*"==n[1]?".*":null))&&(u=r.type(a)||p(r.type("string"),{pattern:new RegExp(a,e.caseInsensitive?"i":void 0)})),{id:o,regexp:a,segment:s,type:u,cfg:l}}for(this.source=t;(i=l.exec(t))&&!((o=w(i,!1)).segment.indexOf("?")>=0);)a=y(o.id,o.type,o.cfg,"path"),h+=b(o.segment,a.type.pattern.source,a.squash,a.isOptional),v.push(o.segment),d=l.lastIndex;var x=(u=t.substring(d)).indexOf("?");if(x>=0){var C=this.sourceSearch=u.substring(x);if(u=u.substring(0,x),this.sourcePath=t.substring(0,d+x),C.length>0)for(d=0;i=f.exec(C);)a=y((o=w(i,!0)).id,o.type,o.cfg,"search"),d=l.lastIndex}else this.sourcePath=t,this.sourceSearch="";h+=b(u)+(!1===e.strict?"/?":"")+"$",v.push(u),this.regexp=new RegExp(h,e.caseInsensitive?"i":void 0),this.prefix=v[0],this.$$paramNames=$}function _(t){c(this,t)}function k(t,n){var r,s=[],l=null,f=!1;function h(t,e,n){if(!n)return!1;var r=t.invoke(e,e,{$match:n});return!i(r)||r}function p(n,i,o,u,c){var h,p=u.baseHref(),d=n.url();function v(t){if(!t||!t.defaultPrevented){h&&n.url();h=void 0;var e,r=s.length;for(e=0;e<r;e++)if(i(s[e]))return;l&&i(l)}function i(t){var e=t(o,n);return!!e&&(a(e)&&n.replace().url(e),!0)}}function m(){return r=r||i.$on("$locationChangeSuccess",v)}return f||m(),{sync:function(){v()},listen:function(){return m()},update:function(t){t?d=n.url():n.url()!==d&&(n.url(d),n.replace())},push:function(t,e,r){var i=t.format(e||{});null!==i&&e&&e["#"]&&(i+="#"+e["#"]),n.url(i),h=r&&r.$$avoidResync?n.url():void 0,r&&r.replace&&n.replace()},href:function(r,i,o){if(!r.validates(i))return null;var a=t.html5Mode();e.isObject(a)&&(a=a.enabled),a=a&&c.history;var s=r.format(i);if(o=o||{},a||null===s||(s="#"+t.hashPrefix()+s),null!==s&&i&&i["#"]&&(s+="#"+i["#"]),s=function(t,e,n){return"/"===p?t:e?p.slice(0,-1)+t:n?p.slice(1)+t:t}(s,a,o.absolute),!o.absolute||!s)return s;var u=!a&&s?"/":"",l=n.port();return l=80===l||443===l?"":":"+l,[n.protocol(),"://",n.host(),l,u,s].join("")}}}this.rule=function(t){if(!o(t))throw new Error("'rule' must be a function");return s.push(t),this},this.otherwise=function(t){if(a(t)){var e=t;t=function(){return e}}else if(!o(t))throw new Error("'rule' must be a function");return l=t,this},this.when=function(t,e){var r,i=a(e);if(a(t)&&(t=n.compile(t)),!i&&!o(e)&&!u(e))throw new Error("invalid 'handler' in when()");var s={matcher:function(t,e){return i&&(r=n.compile(e),e=["$match",function(t){return r.format(t)}]),c((function(n,r){return h(n,e,t.exec(r.path(),r.search()))}),{prefix:a(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return i&&(r=e,e=["$match",function(t){return e=t,r.replace(/\$(\$|\d{1,2})/,(function(t,n){return e["$"===n?0:Number(n)]}));var e}]),c((function(n,r){return h(n,e,t.exec(r.path()))}),{prefix:(n=t,o=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(n.source),null!=o?o[1].replace(/\\(.)/g,"$1"):"")});var n,o}},l={matcher:n.isMatcher(t),regex:t instanceof RegExp};for(var f in l)if(l[f])return this.rule(s[f](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){void 0===t&&(t=!0),f=t},this.$get=p,p.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function T(t,n){var h,d,w={},x={},S={parent:function(t){if(i(t.parent)&&t.parent)return A(t.parent);var e=/^(.+)\.[^.]+$/.exec(t.name);return e?A(e[1]):h},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=p(t.parent.data,t.data)),t.data},url:function(t){var e=t.url,r={params:t.params||{}};if(a(e))return"^"==e.charAt(0)?n.compile(e.substring(1),r):(t.parent.navigable||h).url.concat(e,r);if(!e||n.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var e=t.url&&t.url.params||new r.ParamSet;return l(t.params||{},(function(t,n){e[n]||(e[n]=new r.Param(n,null,t,"config"))})),e},params:function(t){var e=b(t.ownParams,t.ownParams.$$keys());return t.parent&&t.parent.params?c(t.parent.params.$$new(),e):new r.ParamSet},views:function(t){var e={};return l(i(t.views)?t.views:{"":t},(function(n,r){r.indexOf("@")<0&&(r+="@"+t.parent.name),n.resolveAs=n.resolveAs||t.resolveAs||"$resolve",e[r]=n})),e},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?c({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}};function A(t,e){if(t){var n,r=a(t),i=r?t:t.name;if(0===(n=i).indexOf(".")||0===n.indexOf("^")){if(!e)throw new Error("No reference point given for path '"+i+"'");e=A(e);for(var o=i.split("."),s=0,u=o.length,l=e;s<u;s++)if(""!==o[s]||0!==s){if("^"!==o[s])break;if(!l.parent)throw new Error("Path '"+i+"' not valid for state '"+e.name+"'");l=l.parent}else l=e;o=o.slice(s).join("."),i=l.name+(l.name&&o?".":"")+o}var c=w[i];return!c||!r&&(r||c!==t&&c.self!==t)?void 0:c}}function E(e){var n=(e=p(e,{self:e,resolve:e.resolve||{},toString:function(){return this.name}})).name;if(!a(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(w.hasOwnProperty(n))throw new Error("State '"+n+"' is already defined");var r=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):a(e.parent)?e.parent:s(e.parent)&&a(e.parent.name)?e.parent.name:"";if(r&&!w[r])return function(t,e){x[t]||(x[t]=[]),x[t].push(e)}(r,e.self);for(var i in S)o(S[i])&&(e[i]=S[i](e,S.$delegates[i]));return w[n]=e,!e.abstract&&e.url&&t.when(e.url,["$match","$stateParams",function(t,n){d.$current.navigable==e&&$(t,n)||d.transitionTo(e,t,{inherit:!0,location:!1})}]),function(t){for(var e=x[t]||[];e.length;)E(e.shift())}(n),e}function _(t,n,x,S,E,_,k,T,O){var D=n.reject(new Error("transition superseded")),P=n.reject(new Error("transition prevented")),M=n.reject(new Error("transition aborted")),j=n.reject(new Error("transition failed"));function I(t,r,i,a,s,c){var f=i?r:y(t.params.$$keys(),r),h={$stateParams:f};s.resolve=E.resolve(t.resolve,h,s.resolve,t);var p=[s.resolve.then((function(t){s.globals=t}))];return a&&p.push(a),n.all(p).then((function(){var r=[];return l(t.views,(function(n,i){var a=n.resolve&&n.resolve!==t.resolve?n.resolve:{};a.$template=[function(){return x.load(i,{view:n,locals:s.globals,params:f,notify:c.notify})||""}],r.push(E.resolve(a,s.globals,s.resolve,t).then((function(r){if(o(n.controllerProvider)||u(n.controllerProvider)){var l=e.extend({},a,s.globals);r.$$controller=S.invoke(n.controllerProvider,null,l)}else r.$$controller=n.controller;r.$$state=t,r.$$controllerAs=n.controllerAs,r.$$resolveAs=n.resolveAs,s[i]=r})))})),n.all(r).then((function(){return s.globals}))})).then((function(t){return s}))}return h.locals={resolve:null,globals:{$stateParams:{}}},(d={params:{},current:h.self,$current:h,transition:null}).reload=function(t){return d.transitionTo(d.current,_,{reload:t||!0,inherit:!1,notify:!0})},d.go=function(t,e,n){return d.transitionTo(t,e,c({inherit:!0,relative:d.$current},n))},d.transitionTo=function(e,o,u){o=o||{},u=c({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},u||{});var l=d.$current,v=d.params,m=l.path,$=A(e,u.relative),w=o["#"];if(!i($)){var x={to:e,toParams:o,options:u},C=function(e,r,i,o){var a=t.$broadcast("$stateNotFound",e,r,i);if(a.defaultPrevented)return k.update(),M;if(!a.retry)return null;if(o.$retry)return k.update(),j;var s=d.transition=n.when(a.retry);return s.then((function(){return s!==d.transition?D:(e.options.$retry=!0,d.transitionTo(e.to,e.toParams,e.options))}),(function(){return M})),k.update(),s}(x,l.self,v,u);if(C)return C;if(o=x.toParams,$=A(e=x.to,(u=x.options).relative),!i($)){if(!u.relative)throw new Error("No such state '"+e+"'");throw new Error("Could not resolve '"+e+"' from state '"+u.relative+"'")}}if($.abstract)throw new Error("Cannot transition to abstract state '"+e+"'");if(u.inherit&&(o=g(_,o||{},d.$current,$)),!$.params.$$validates(o))return j;o=$.params.$$values(o);var E=(e=$).path,T=0,O=E[T],N=h.locals,R=[];if(u.reload){if(a(u.reload)||s(u.reload)){if(s(u.reload)&&!u.reload.name)throw new Error("Invalid reload state object");var q=!0===u.reload?m[0]:A(u.reload);if(u.reload&&!q)throw new Error("No such reload state '"+(a(u.reload)?u.reload:u.reload.name)+"'");for(;O&&O===m[T]&&O!==q;)N=R[T]=O.locals,T++,O=E[T]}}else for(;O&&O===m[T]&&O.ownParams.$$equals(o,v);)N=R[T]=O.locals,T++,O=E[T];if(function(t,e,n,i,o,a){if(!a.reload&&t===n&&(o===n.locals||!1===t.self.reloadOnSearch&&function(t,e,n){var i=t.params.$$keys().filter((function(e){return"search"!=t.params[e].location})),o=b.apply({},[t.params].concat(i));return new r.ParamSet(o).$$equals(e,n)}(n,i,e)))return!0}(e,o,l,v,N,u))return w&&(o["#"]=w),d.params=o,f(d.params,_),f(y(e.params.$$keys(),_),e.locals.globals.$stateParams),u.location&&e.navigable&&e.navigable.url&&(k.push(e.navigable.url,o,{$$avoidResync:!0,replace:"replace"===u.location}),k.update(!0)),d.transition=null,n.when(d.current);if(o=y(e.params.$$keys(),o||{}),w&&(o["#"]=w),u.notify&&t.$broadcast("$stateChangeStart",e.self,o,l.self,v,u).defaultPrevented)return t.$broadcast("$stateChangeCancel",e.self,o,l.self,v),null==d.transition&&k.update(),P;for(var V=n.when(N),F=T;F<E.length;F++,O=E[F])N=R[F]=p(N),V=I(O,o,O===e,V,N,u);var L=d.transition=V.then((function(){var n,r,i;if(d.transition!==L)return D;for(n=m.length-1;n>=T;n--)(i=m[n]).self.onExit&&S.invoke(i.self.onExit,i.self,i.locals.globals),i.locals=null;for(n=T;n<E.length;n++)(r=E[n]).locals=R[n],r.self.onEnter&&S.invoke(r.self.onEnter,r.self,r.locals.globals);return d.transition!==L?D:(d.$current=e,d.current=e.self,d.params=o,f(d.params,_),d.transition=null,u.location&&e.navigable&&k.push(e.navigable.url,e.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===u.location}),u.notify&&t.$broadcast("$stateChangeSuccess",e.self,o,l.self,v),k.update(!0),d.current)})).then(null,(function(r){return d.transition!==L?D:(d.transition=null,t.$broadcast("$stateChangeError",e.self,o,l.self,v,r).defaultPrevented||k.update(),n.reject(r))}));return L},d.is=function(t,e,n){var r=A(t,(n=c({relative:d.$current},n||{})).relative);if(i(r))return d.$current===r&&(!e||$(r.params.$$values(e),_))},d.includes=function(t,e,n){if(n=c({relative:d.$current},n||{}),a(t)&&t.indexOf("*")>-1){if(!function(t){for(var e=t.split("."),n=d.$current.name.split("."),r=0,i=e.length;r<i;r++)"*"===e[r]&&(n[r]="*");return"**"===e[0]&&(n=n.slice(m(n,e[1]))).unshift("**"),"**"===e[e.length-1]&&(n.splice(m(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length==n.length&&n.join("")===e.join("")}(t))return!1;t=d.$current.name}var r=A(t,n.relative);if(i(r))return!!i(d.$current.includes[r.name])&&(!e||$(r.params.$$values(e),_,v(e)))},d.href=function(t,e,n){var r=A(t,(n=c({lossy:!0,inherit:!0,absolute:!1,relative:d.$current},n||{})).relative);if(!i(r))return null;n.inherit&&(e=g(_,e||{},d.$current,r));var o=r&&n.lossy?r.navigable:r;return o&&void 0!==o.url&&null!==o.url?k.href(o.url,y(r.params.$$keys().concat("#"),e||{}),{absolute:n.absolute}):null},d.get=function(t,e){if(0===arguments.length)return C(v(w),(function(t){return w[t].self}));var n=A(t,e||d.$current);return n&&n.self?n.self:null},d}(h=E({name:"",url:"^",views:null,abstract:!0})).navigable=null,this.decorator=function(t,e){if(a(t)&&!i(e))return S[t];if(!o(e)||!a(t))return this;S[t]&&!S.$delegates[t]&&(S.$delegates[t]=S[t]);return S[t]=e,this},this.state=function(t,e){s(t)?e=t:e.name=t;return E(e),this},this.$get=_,_.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function O(){function t(t,e){return{load:function(t,n){var r;return(n=c({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},n)).view&&(r=e.fromConfig(n.view,n.params,n.locals)),r}}}this.$get=t,t.$inject=["$rootScope","$templateFactory"]}function D(t,n,r,i,o){var a=n.has?function(t){return n.has(t)?n.get(t):null}:function(t){try{return n.get(t)}catch(t){return null}},s=a("$animator"),u=a("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,a,l){return function(n,a,c){var f,h,p,d,v=c.onload||"",m=c.autoscroll,g=function(t,n){if(u)return{enter:function(t,n,r){e.version.minor>2?u.enter(t,null,n).then(r):u.enter(t,null,n,r)},leave:function(t,n){e.version.minor>2?u.leave(t).then(n):u.leave(t,n)}};if(s){var r=s&&s(n,t);return{enter:function(t,e,n){r.enter(t,null,e),n()},leave:function(t,e){r.leave(t),e()}}}return{enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}}}(c,n);a.inheritedData("$uiView");function $(s){var u,$=M(n,c,a,i),y=$&&t.$current&&t.$current.locals[$];if(s||y!==d){u=n.$new(),d=t.$current.locals[$],u.$emit("$viewContentLoading",$);var b=l(u,(function(t){var i=o.defer(),s=o.defer(),u={$animEnter:i.promise,$animLeave:s.promise,$$animLeave:s};t.data("$uiViewAnim",u),g.enter(t,a,(function(){i.resolve(),p&&p.$emit("$viewContentAnimationEnded"),(e.isDefined(m)&&!m||n.$eval(m))&&r(t)})),function(){if(f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),h){var t=h.data("$uiViewAnim");g.leave(h,(function(){t.$$animLeave.resolve(),f=null})),f=h,h=null}}()}));h=b,(p=u).$emit("$viewContentLoaded",$),p.$eval(v)}}n.$on("$stateChangeSuccess",(function(){$(!1)})),$(!0)}}}}function P(t,n,r,i){return{restrict:"ECA",priority:-400,compile:function(a){var s=a.html();return function(a,u,l){var c=r.$current,f=M(a,l,u,i),h=c&&c.locals[f];if(h){u.data("$uiView",{name:f,state:h.$$state}),u.html(h.$template?h.$template:s);var p=e.extend({},h);a[h.$$resolveAs]=p;var d=t(u.contents());if(h.$$controller){h.$scope=a,h.$element=u;var v=n(h.$$controller,h);h.$$controllerAs&&(a[h.$$controllerAs]=v,a[h.$$controllerAs][h.$$resolveAs]=p),o(v.$onInit)&&v.$onInit(),u.data("$ngControllerController",v),u.children().data("$ngControllerController",v)}d(a)}}}}}function M(t,e,n,r){var i=r(e.uiView||e.name||"")(t),o=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(o?o.state.name:"")}function j(t,e){var n,r=t.match(/^\s*({[^}]*})\s*$/);if(r&&(t=e+"("+r[1]+")"),!(n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function I(t){var e=t.parent().inheritedData("$uiView");if(e&&e.state&&e.state.name)return e.state}function N(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function R(t,e,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||t.attr("target"))){var u=n((function(){e.go(s.state,s.params,s.options)}));o.preventDefault();var l=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){l--<=0&&n.cancel(u)}}}}function q(t,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var s,u=j(o.uiSref,t.current.name),l={state:u.state,href:null,params:null},f=N(i),h=a[1]||a[0],p=null;l.options=c(function(t,e){return{relative:I(t)||e.$current,inherit:!0}}(i,t),o.uiSrefOpts?r.$eval(o.uiSrefOpts):{});var d=function(n){n&&(l.params=e.copy(n)),l.href=t.href(u.state,l.params,l.options),p&&p(),h&&(p=h.$$addStateInfo(u.state,l.params)),null!==l.href&&o.$set(f.attr,l.href)};u.paramExpr&&(r.$watch(u.paramExpr,(function(t){t!==l.params&&d(t)}),!0),l.params=e.copy(r.$eval(u.paramExpr))),d(),f.clickable&&(s=R(i,t,n,f,(function(){return l})),i.bind("click",s),r.$on("$destroy",(function(){i.unbind("click",s)})))}}}function V(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,o){var a,s=N(r),u=o[1]||o[0],l="["+[i.uiState,i.uiStateParams||null,i.uiStateOpts||null].map((function(t){return t||"null"})).join(", ")+"]",c={state:null,params:null,options:null,href:null},f=null;function h(e){c.state=e[0],c.params=e[1],c.options=e[2],c.href=t.href(c.state,c.params,c.options),f&&f(),u&&(f=u.$$addStateInfo(c.state,c.params)),c.href&&i.$set(s.attr,c.href)}n.$watch(l,h,!0),h(n.$eval(l)),s.clickable&&(a=R(r,t,e,s,(function(){return c})),r.bind("click",a),n.$on("$destroy",(function(){r.unbind("click",a)})))}}}function F(t,e,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(e,r,i,o){var u,c,f=[],p={};u=n(i.uiSrefActiveEq||"",!1)(e);try{c=e.$eval(i.uiSrefActive)}catch(t){}function d(n,i,o){var u=t.get(n,I(r)),l=function(t,n){if(!a(t))throw new Error("state should be a string");if(s(n))return t+h(n);if(n=e.$eval(n),s(n))return t+h(n);return t}(n,i),c={state:u||{name:n},params:i,hash:l};return f.push(c),p[l]=o,function(){var t=f.indexOf(c);-1!==t&&f.splice(t,1)}}function v(){for(var e=0;e<f.length;e++)n=f[e].state,i=f[e].params,t.includes(n.name,i)?m(r,p[f[e].hash]):g(r,p[f[e].hash]),$(f[e].state,f[e].params)?m(r,u):g(r,u);var n,i}function m(t,e){o((function(){t.addClass(e)}))}function g(t,e){t.removeClass(e)}function $(e,n){return t.is(e.name,n)}c=c||n(i.uiSrefActive||"",!1)(e),s(c)&&l(c,(function(n,r){if(a(n)){var i=j(n,t.current.name);d(i.state,e.$eval(i.paramExpr),r)}})),this.$$addStateInfo=function(t,e){if(!(s(c)&&f.length>0)){var n=d(t,e,c);return v(),n}},e.$on("$stateChangeSuccess",v),v()}]}}function L(t){var e=function(e,n){return t.is(e,n)};return e.$stateful=!0,e}function H(t){var e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}e.module("ui.router.util",["ng"]),e.module("ui.router.router",["ui.router.util"]),e.module("ui.router.state",["ui.router.router","ui.router.util"]),e.module("ui.router",["ui.router.state"]),e.module("ui.router.compat",["ui.router"]),S.$inject=["$q","$injector"],e.module("ui.router.util").service("$resolve",S),A.$inject=["$http","$templateCache","$injector"],e.module("ui.router.util").service("$templateFactory",A),E.prototype.concat=function(t,e){var n={caseInsensitive:r.caseInsensitive(),strict:r.strictMode(),squash:r.defaultSquashPolicy()};return new E(this.sourcePath+t+this.sourceSearch,c(n,e),this)},E.prototype.toString=function(){return this.source},E.prototype.exec=function(t,e){var n=this.regexp.exec(t);if(!n)return null;e=e||{};var r,o,a,s,u,l=this.parameters(),c=l.length,f=this.segments.length-1,h={};if(f!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");function p(t){function e(t){return t.split("").reverse().join("")}var n=C(e(t).split(/-(?!\\)/),e);return C(n,(function(t){return t.replace(/\\-/g,"-")})).reverse()}for(r=0;r<f;r++){for(a=l[r],s=this.params[a],u=n[r+1],o=0;o<s.replace.length;o++)s.replace[o].from===u&&(u=s.replace[o].to);u&&!0===s.array&&(u=p(u)),i(u)&&(u=s.type.decode(u)),h[a]=s.value(u)}for(;r<c;r++){for(h[a=l[r]]=this.params[a].value(e[a]),s=this.params[a],u=e[a],o=0;o<s.replace.length;o++)s.replace[o].from===u&&(u=s.replace[o].to);i(u)&&(u=s.type.decode(u)),h[a]=s.value(u)}return h},E.prototype.parameters=function(t){return i(t)?this.params[t]||null:this.$$paramNames},E.prototype.validates=function(t){return this.params.$$validates(t)},E.prototype.format=function(t){t=t||{};var e=this.segments,n=this.parameters(),r=this.params;if(!this.validates(t))return null;var i,o=!1,s=e.length-1,l=n.length,c=e[0];function f(t){return encodeURIComponent(t).replace(/-/g,(function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()}))}for(i=0;i<l;i++){var h=i<s,p=n[i],d=r[p],v=d.value(t[p]),m=d.isOptional&&d.type.equals(d.value(),v),g=!!m&&d.squash,$=d.type.encode(v);if(h){var y=e[i+1],b=i+1===s;if(!1===g)null!=$&&(u($)?c+=C($,f).join("-"):c+=encodeURIComponent($)),c+=y;else if(!0===g){var w=c.match(/\/$/)?/\/?(.*)/:/(.*)/;c+=y.match(w)[1]}else a(g)&&(c+=g+y);b&&!0===d.squash&&"/"===c.slice(-1)&&(c=c.slice(0,-1))}else{if(null==$||m&&!1!==g)continue;if(u($)||($=[$]),0===$.length)continue;c+=(o?"&":"?")+p+"="+($=C($,encodeURIComponent).join("&"+p+"=")),o=!0}}return c},_.prototype.is=function(t,e){return!0},_.prototype.encode=function(t,e){return t},_.prototype.decode=function(t,e){return t},_.prototype.equals=function(t,e){return t==e},_.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},_.prototype.pattern=/.*/,_.prototype.toString=function(){return"{Type:"+this.name+"}"},_.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},_.prototype.$asArray=function(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new function(t,e){function n(t,e){return function(){return t[e].apply(t,arguments)}}function r(t){return u(t)?t:i(t)?[t]:[]}function o(t){return!t}function a(t,n){return function(i){if(u(i)&&0===i.length)return i;var a=C(i=r(i),t);return!0===n?0===x(a,o).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(a)}}var s;this.encode=a(n(t,"encode")),this.decode=a(n(t,"decode")),this.is=a(n(t,"is"),!0),this.equals=(s=n(t,"equals"),function(t,e){var n=r(t),i=r(e);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(!s(n[o],i[o]))return!1;return!0}),this.pattern=t.pattern,this.$normalize=a(n(t,"$normalize")),this.name=t.name,this.$arrayMode=e}(this,t)},e.module("ui.router.util").provider("$urlMatcherFactory",(function t(){r=this;var n=!1,f=!0,h=!1;function d(t){return null!=t?t.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):t}var g,$={},y=!0,b=[],w={string:{encode:d,decode:function(t){return null!=t?t.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):t},is:function(t){return null==t||!i(t)||"string"==typeof t},pattern:/[^/]*/},int:{encode:d,decode:function(t){return parseInt(t,10)},is:function(t){return i(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return!0===t||!1===t},pattern:/0|1/},date:{encode:function(t){if(this.is(t))return[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-")},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:e.toJson,decode:e.fromJson,is:e.isObject,equals:e.equals,pattern:/[^/]*/},any:{encode:e.identity,decode:e.identity,equals:e.equals,pattern:/.*/}};function S(t){return o(t)||u(t)&&o(t[t.length-1])}function A(){for(;b.length;){var t=b.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");e.extend($[t.name],g.invoke(t.def))}}function k(t){c(this,t||{})}t.$$getDefaultValue=function(t){if(!S(t.value))return t.value;if(!g)throw new Error("Injectable functions cannot be called at configuration time");return g.invoke(t.value)},this.caseInsensitive=function(t){return i(t)&&(n=t),n},this.strictMode=function(t){return i(t)&&(f=t),f},this.defaultSquashPolicy=function(t){if(!i(t))return h;if(!0!==t&&!1!==t&&!a(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return h=t,t},this.compile=function(t,e){return new E(t,c({strict:f,caseInsensitive:n},e))},this.isMatcher=function(t){if(!s(t))return!1;var e=!0;return l(E.prototype,(function(n,r){o(n)&&(e=e&&i(t[r])&&o(t[r]))})),e},this.type=function(t,e,n){if(!i(e))return $[t];if($.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return $[t]=new _(c({name:t},e)),n&&(b.push({name:t,def:n}),y||A()),this},l(w,(function(t,e){$[e]=new _(c({name:e},t))})),$=p($,{}),this.$get=["$injector",function(t){return g=t,y=!1,A(),l(w,(function(t,e){$[e]||($[e]=new _(t))})),this}],this.Param=function(t,n,r,o){var l=this;r=function(t){var e=s(t)?v(t):[];-1===m(e,"value")&&-1===m(e,"type")&&-1===m(e,"squash")&&-1===m(e,"array")&&(t={value:t});return t.$$fn=S(t.value)?t.value:function(){return t.value},t}(r),n=function(n,r,i){if(n.type&&r)throw new Error("Param '"+t+"' has two type configurations.");return r||(n.type?e.isString(n.type)?$[n.type]:n.type instanceof _?n.type:new _(n.type):"config"===i?$.any:$.string)}(r,n,o);var f,p,d=(f={array:"search"===o&&"auto"},p=t.match(/\[\]$/)?{array:!0}:{},c(f,p,r).array);"string"!==(n=d?n.$asArray(d,"search"===o):n).name||d||"path"!==o||void 0!==r.value||(r.value="");var y=void 0!==r.value,b=function(t,e){var n=t.squash;if(!e||!1===n)return!1;if(!i(n)||null==n)return h;if(!0===n||a(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}(r,y),w=function(t,e,n,r){var i,o,s=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}];i=u(t.replace)?t.replace:[],a(r)&&i.push({from:r,to:void 0});return o=C(i,(function(t){return t.from})),x(s,(function(t){return-1===m(o,t.from)})).concat(i)}(r,d,y,b);c(this,{id:t,type:n,location:o,array:d,squash:b,replace:w,isOptional:y,value:function(t){return t=function(t){var e,n=C(x(l.replace,(e=t,function(t){return t.from===e})),(function(t){return t.to}));return n.length?n[0]:t}(t),i(t)?l.type.$normalize(t):function(){if(!g)throw new Error("Injectable functions cannot be called at configuration time");var t=g.invoke(r.$$fn);if(null!=t&&!l.type.is(t))throw new Error("Default value ("+t+") for parameter '"+l.id+"' is not an instance of Type ("+l.type.name+")");return t}()},dynamic:void 0,config:r,toString:function(){return"{Param:"+t+" "+n+" squash: '"+b+"' optional: "+y+"}"}})},k.prototype={$$new:function(){return p(this,c(new k,{$$parent:this}))},$$keys:function(){for(var t=[],e=[],n=this,r=v(k.prototype);n;)e.push(n),n=n.$$parent;return e.reverse(),l(e,(function(e){l(v(e),(function(e){-1===m(t,e)&&-1===m(r,e)&&t.push(e)}))})),t},$$values:function(t){var e={},n=this;return l(n.$$keys(),(function(r){e[r]=n[r].value(t&&t[r])})),e},$$equals:function(t,e){var n=!0,r=this;return l(r.$$keys(),(function(i){var o=t&&t[i],a=e&&e[i];r[i].type.equals(o,a)||(n=!1)})),n},$$validates:function(t){var n,r,i,o,a,s=this.$$keys();for(n=0;n<s.length&&(r=this[s[n]],null!=(i=t[s[n]])||!r.isOptional);n++){if(o=r.type.$normalize(i),!r.type.is(o))return!1;if(a=r.type.encode(o),e.isString(a)&&!r.type.pattern.exec(a))return!1}return!0},$$parent:void 0},this.ParamSet=k})),e.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),k.$inject=["$locationProvider","$urlMatcherFactoryProvider"],e.module("ui.router.router").provider("$urlRouter",k),T.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],e.module("ui.router.state").factory("$stateParams",(function(){return{}})).constant("$state.runtime",{autoinject:!0}).provider("$state",T).run(["$injector",function(t){t.get("$state.runtime").autoinject&&t.get("$state")}]),O.$inject=[],e.module("ui.router.state").provider("$view",O),e.module("ui.router.state").provider("$uiViewScroll",(function(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}}]})),D.$inject=["$state","$injector","$uiViewScroll","$interpolate","$q"],P.$inject=["$compile","$controller","$state","$interpolate"],e.module("ui.router.state").directive("uiView",D),e.module("ui.router.state").directive("uiView",P),q.$inject=["$state","$timeout"],V.$inject=["$state","$timeout"],F.$inject=["$state","$stateParams","$interpolate"],e.module("ui.router.state").directive("uiSref",q).directive("uiSrefActive",F).directive("uiSrefActiveEq",F).directive("uiState",V),L.$inject=["$state"],H.$inject=["$state"],e.module("ui.router.state").filter("isState",L).filter("includedByState",H)}(window,window.angular)},function(t,e,n){var r,i,o;!function(a){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(t,e){var n={beforeShow:c,move:c,change:c,show:c,hide:c,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},r=[],i=!!/msie/i.exec(window.navigator.userAgent),o=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div").style;return e.cssText="background-color:rgba(0,0,0,.5)",t(e.backgroundColor,"rgba")||t(e.backgroundColor,"hsla")}(),a=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),s=function(){var t="";if(i)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function u(e,n,r,i){for(var a=[],s=0;s<e.length;s++){var u=e[s];if(u){var l=tinycolor(u),c=l.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=tinycolor.equals(n,u)?" sp-thumb-active":"";var f=l.toString(i.preferredFormat||"rgb"),h=o?"background-color:"+l.toRgbString():"filter:"+l.toFilter();a.push('<span title="'+f+'" data-color="'+l.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+h+';" /></span>')}else{a.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",i.noColorSelectedText)).html())}}return"<div class='sp-cf "+r+"'>"+a.join("")+"</div>"}function l(l,c){var v,m,g,$,y=function(e,r){var i=t.extend({},n,e);return i.callbacks={move:h(i.move,r),change:h(i.change,r),show:h(i.show,r),hide:h(i.hide,r),beforeShow:h(i.beforeShow,r)},i}(c,l),b=y.flat,w=y.showSelectionPalette,x=y.localStorageKey,C=y.theme,S=y.callbacks,A=(v=Ht,m=10,function(){var t=this,e=arguments,n=function(){$=null,v.apply(t,e)};g&&clearTimeout($),!g&&$||($=setTimeout(n,m))}),E=!1,_=!1,k=0,T=0,O=0,D=0,P=0,M=0,j=0,I=0,N=0,R=0,q=1,V=[],F=[],L={},H=y.selectionPalette.slice(0),U=y.maxSelectionSize,z=null,B=l.ownerDocument,W=(B.body,t(l)),Y=!1,G=t(s,B).addClass(C),K=G.find(".sp-picker-container"),Z=G.find(".sp-color"),X=G.find(".sp-dragger"),J=G.find(".sp-hue"),Q=G.find(".sp-slider"),tt=G.find(".sp-alpha-inner"),et=G.find(".sp-alpha"),nt=G.find(".sp-alpha-handle"),rt=G.find(".sp-input"),it=G.find(".sp-palette"),ot=G.find(".sp-initial"),at=G.find(".sp-cancel"),st=G.find(".sp-clear"),ut=G.find(".sp-choose"),lt=G.find(".sp-palette-toggle"),ct=W.is("input"),ft=ct&&"color"===W.attr("type")&&d(),ht=ct&&!b,pt=ht?t(a).addClass(C).addClass(y.className).addClass(y.replacerClassName):t([]),dt=ht?pt:W,vt=pt.find(".sp-preview-inner"),mt=y.color||ct&&W.val(),gt=!1,$t=y.preferredFormat,yt=!y.showButtons||y.clickoutFiresChange,bt=!mt,wt=y.allowEmpty&&!ft;function xt(){if(y.showPaletteOnly&&(y.showPalette=!0),lt.text(y.showPaletteOnly?y.togglePaletteMoreText:y.togglePaletteLessText),y.palette){V=y.palette.slice(0),F=t.isArray(V[0])?V:[V],L={};for(var e=0;e<F.length;e++)for(var n=0;n<F[e].length;n++){var r=tinycolor(F[e][n]).toRgbString();L[r]=!0}}G.toggleClass("sp-flat",b),G.toggleClass("sp-input-disabled",!y.showInput),G.toggleClass("sp-alpha-enabled",y.showAlpha),G.toggleClass("sp-clear-enabled",wt),G.toggleClass("sp-buttons-disabled",!y.showButtons),G.toggleClass("sp-palette-buttons-disabled",!y.togglePaletteOnly),G.toggleClass("sp-palette-disabled",!y.showPalette),G.toggleClass("sp-palette-only",y.showPaletteOnly),G.toggleClass("sp-initial-disabled",!y.showInitial),G.addClass(y.className).addClass(y.containerClassName),Ht()}function Ct(){if(x&&window.localStorage){try{var e=window.localStorage[x].split(",#");e.length>1&&(delete window.localStorage[x],t.each(e,(function(t,e){St(e)})))}catch(t){}try{H=window.localStorage[x].split(";")}catch(t){}}}function St(e){if(w){var n=tinycolor(e).toRgbString();if(!L[n]&&-1===t.inArray(n,H))for(H.push(n);H.length>U;)H.shift();if(x&&window.localStorage)try{window.localStorage[x]=H.join(";")}catch(t){}}}function At(){var e=Rt(),n=t.map(F,(function(t,n){return u(t,e,"sp-palette-row sp-palette-row-"+n,y)}));Ct(),H&&n.push(u(function(){var t=[];if(y.showPalette)for(var e=0;e<H.length;e++){var n=tinycolor(H[e]).toRgbString();L[n]||t.push(H[e])}return t.reverse().slice(0,y.maxSelectionSize)}(),e,"sp-palette-row sp-palette-row-selection",y)),it.html(n.join(""))}function Et(){if(y.showInitial){var t=gt,e=Rt();ot.html(u([t,e],e,"sp-palette-row-initial",y))}}function _t(){(T<=0||k<=0||D<=0)&&Ht(),_=!0,G.addClass("sp-dragging"),z=null,W.trigger("dragstart.spectrum",[Rt()])}function kt(){_=!1,G.removeClass("sp-dragging"),W.trigger("dragstop.spectrum",[Rt()])}function Tt(){var t=rt.val();if(null!==t&&""!==t||!wt){var e=tinycolor(t);e.isValid()?(Nt(e),Lt(!0)):rt.addClass("sp-validation-error")}else Nt(null),Lt(!0)}function Ot(){E?jt():Dt()}function Dt(){var e=t.Event("beforeShow.spectrum");E?Ht():(W.trigger(e,[Rt()]),!1===S.beforeShow(Rt())||e.isDefaultPrevented()||(!function(){for(var t=0;t<r.length;t++)r[t]&&r[t].hide()}(),E=!0,t(B).bind("keydown.spectrum",Pt),t(B).bind("click.spectrum",Mt),t(window).bind("resize.spectrum",A),pt.addClass("sp-active"),G.removeClass("sp-hidden"),Ht(),Vt(),gt=Rt(),Et(),S.show(gt),W.trigger("show.spectrum",[gt])))}function Pt(t){27===t.keyCode&&jt()}function Mt(t){2!=t.button&&(_||(yt?Lt(!0):It(),jt()))}function jt(){E&&!b&&(E=!1,t(B).unbind("keydown.spectrum",Pt),t(B).unbind("click.spectrum",Mt),t(window).unbind("resize.spectrum",A),pt.removeClass("sp-active"),G.addClass("sp-hidden"),S.hide(Rt()),W.trigger("hide.spectrum",[Rt()]))}function It(){Nt(gt,!0)}function Nt(t,e){var n,r;tinycolor.equals(t,Rt())?Vt():(!t&&wt?bt=!0:(bt=!1,r=(n=tinycolor(t)).toHsv(),I=r.h%360/360,N=r.s,R=r.v,q=r.a),Vt(),n&&n.isValid()&&!e&&($t=y.preferredFormat||n.getFormat()))}function Rt(t){return t=t||{},wt&&bt?null:tinycolor.fromRatio({h:I,s:N,v:R,a:Math.round(100*q)/100},{format:t.format||$t})}function qt(){Vt(),S.move(Rt()),W.trigger("move.spectrum",[Rt()])}function Vt(){rt.removeClass("sp-validation-error"),Ft();var t=tinycolor.fromRatio({h:I,s:1,v:1});Z.css("background-color",t.toHexString());var e=$t;q<1&&(0!==q||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var n=Rt({format:e}),r="";if(vt.removeClass("sp-clear-display"),vt.css("background-color","transparent"),!n&&wt)vt.addClass("sp-clear-display");else{var a=n.toHexString(),s=n.toRgbString();if(o||1===n.alpha?vt.css("background-color",s):(vt.css("background-color","transparent"),vt.css("filter",n.toFilter())),y.showAlpha){var u=n.toRgb();u.a=0;var l=tinycolor(u).toRgbString(),c="linear-gradient(left, "+l+", "+a+")";i?tt.css("filter",tinycolor(l).toFilter({gradientType:1},a)):(tt.css("background","-webkit-"+c),tt.css("background","-moz-"+c),tt.css("background","-ms-"+c),tt.css("background","linear-gradient(to right, "+l+", "+a+")"))}r=n.toString(e)}y.showInput&&rt.val(r),y.showPalette&&At(),Et()}function Ft(){var t=N,e=R;if(wt&&bt)nt.hide(),Q.hide(),X.hide();else{nt.show(),Q.show(),X.show();var n=t*k,r=T-e*T;n=Math.max(-O,Math.min(k-O,n-O)),r=Math.max(-O,Math.min(T-O,r-O)),X.css({top:r+"px",left:n+"px"});var i=q*P;nt.css({left:i-M/2+"px"});var o=I*D;Q.css({top:o-j+"px"})}}function Lt(t){var e=Rt(),n="",r=!tinycolor.equals(e,gt);e&&(n=e.toString($t),St(e)),ct&&W.val(n),t&&r&&(S.change(e),W.trigger("change",[e]))}function Ht(){E&&(k=Z.width(),T=Z.height(),O=X.height(),J.width(),D=J.height(),j=Q.height(),P=et.width(),M=nt.width(),b||(G.css("position","absolute"),y.offset?G.offset(y.offset):G.offset(function(e,n){var r=e.outerWidth(),i=e.outerHeight(),o=n.outerHeight(),a=e[0].ownerDocument,s=a.documentElement,u=s.clientWidth+t(a).scrollLeft(),l=s.clientHeight+t(a).scrollTop(),c=n.offset();return c.top+=o,c.left-=Math.min(c.left,c.left+r>u&&u>r?Math.abs(c.left+r-u):0),c.top-=Math.min(c.top,c.top+i>l&&l>i?Math.abs(i+o-0):0),c}(G,dt))),Ft(),y.showPalette&&At(),W.trigger("reflow.spectrum"))}function Ut(){jt(),Y=!0,W.attr("disabled",!0),dt.addClass("sp-disabled")}!function(){if(i&&G.find("*:not(input)").attr("unselectable","on"),xt(),ht&&W.after(pt).hide(),wt||st.hide(),b)W.after(G).hide();else{var e="parent"===y.appendTo?W.parent():t(y.appendTo);1!==e.length&&(e=t("body")),e.append(G)}function n(e){return e.data&&e.data.ignore?(Nt(t(e.target).closest(".sp-thumb-el").data("color")),qt()):(Nt(t(e.target).closest(".sp-thumb-el").data("color")),qt(),Lt(!0),y.hideAfterPaletteSelect&&jt()),!1}Ct(),dt.bind("click.spectrum touchstart.spectrum",(function(e){Y||Ot(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()})),(W.is(":disabled")||!0===y.disabled)&&Ut(),G.click(f),rt.change(Tt),rt.bind("paste",(function(){setTimeout(Tt,1)})),rt.keydown((function(t){13==t.keyCode&&Tt()})),at.text(y.cancelText),at.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),It(),jt()})),st.attr("title",y.clearText),st.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),bt=!0,qt(),b&&Lt(!0)})),ut.text(y.chooseText),ut.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),i&&rt.is(":focus")&&rt.trigger("change"),rt.hasClass("sp-validation-error")||(Lt(!0),jt())})),lt.text(y.showPaletteOnly?y.togglePaletteMoreText:y.togglePaletteLessText),lt.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),y.showPaletteOnly=!y.showPaletteOnly,y.showPaletteOnly||b||G.css("left","-="+(K.outerWidth(!0)+5)),xt()})),p(et,(function(t,e,n){q=t/P,bt=!1,n.shiftKey&&(q=Math.round(10*q)/10),qt()}),_t,kt),p(J,(function(t,e){I=parseFloat(e/D),bt=!1,y.showAlpha||(q=1),qt()}),_t,kt),p(Z,(function(t,e,n){if(n.shiftKey){if(!z){var r=N*k,i=T-R*T,o=Math.abs(t-r)>Math.abs(e-i);z=o?"x":"y"}}else z=null;var a=!z||"y"===z;(!z||"x"===z)&&(N=parseFloat(t/k)),a&&(R=parseFloat((T-e)/T)),bt=!1,y.showAlpha||(q=1),qt()}),_t,kt),mt?(Nt(mt),Vt(),$t=y.preferredFormat||tinycolor(mt).format,St(mt)):Vt(),b&&Dt();var r=i?"mousedown.spectrum":"click.spectrum touchstart.spectrum";it.delegate(".sp-thumb-el",r,n),ot.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},n)}();var zt={show:Dt,hide:jt,toggle:Ot,reflow:Ht,option:function(n,r){return n===e?t.extend({},y):r===e?y[n]:(y[n]=r,"preferredFormat"===n&&($t=y.preferredFormat),void xt())},enable:function(){Y=!1,W.attr("disabled",!1),dt.removeClass("sp-disabled")},disable:Ut,offset:function(t){y.offset=t,Ht()},set:function(t){Nt(t),Lt()},get:Rt,destroy:function(){W.show(),dt.unbind("click.spectrum touchstart.spectrum"),G.remove(),pt.remove(),r[zt.id]=null},container:G};return zt.id=r.push(zt)-1,zt}function c(){}function f(t){t.stopPropagation()}function h(t,e){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}function p(e,n,r,o){n=n||function(){},r=r||function(){},o=o||function(){};var a=document,s=!1,u={},l=0,c=0,f="ontouchstart"in window,h={};function p(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function d(t){if(s){if(i&&a.documentMode<9&&!t.button)return v();var r=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],o=r&&r.pageX||t.pageX,h=r&&r.pageY||t.pageY,d=Math.max(0,Math.min(o-u.left,c)),m=Math.max(0,Math.min(h-u.top,l));f&&p(t),n.apply(e,[d,m,t])}}function v(){s&&(t(a).unbind(h),t(a.body).removeClass("sp-dragging"),setTimeout((function(){o.apply(e,arguments)}),0)),s=!1}h.selectstart=p,h.dragstart=p,h["touchmove mousemove"]=d,h["touchend mouseup"]=v,t(e).bind("touchstart mousedown",(function(n){var i=n.which?3==n.which:2==n.button;i||s||!1!==r.apply(e,arguments)&&(s=!0,l=t(e).height(),c=t(e).width(),u=t(e).offset(),t(a).bind(h),t(a.body).addClass("sp-dragging"),d(n),p(n))}))}function d(){return t.fn.spectrum.inputTypeColorSupport()}var v="spectrum.id";t.fn.spectrum=function(e,n){if("string"==typeof e){var i=this,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=r[t(this).data(v)];if(n){var a=n[e];if(!a)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?i=n.get():"container"==e?i=n.container:"option"==e?i=n.option.apply(n,o):"destroy"==e?(n.destroy(),t(this).removeData(v)):a.apply(n,o)}})),i}return this.spectrum("destroy").each((function(){var n=l(this,t.extend({},e,t(this).data()));t(this).data(v,n.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=p,t.fn.spectrum.defaults=n,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var n=t("<input type='color'/>")[0];e._cachedResult="color"===n.type&&""!==n.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!d()&&e.spectrum({preferredFormat:"hex6"})},function(){var t=/^[\s,#]+/,e=/\s+$/,n=0,r=Math,i=r.round,o=r.min,a=r.max,s=r.random,u=function(s,l){if(l=l||{},(s=s||"")instanceof u)return s;if(!(this instanceof u))return new u(s,l);var c=function(n){var i={r:0,g:0,b:0},s=1,u=!1,l=!1;"string"==typeof n&&(n=function(n){n=n.replace(t,"").replace(e,"").toLowerCase();var r,i=!1;if(E[n])n=E[n],i=!0;else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"};if(r=R.rgb.exec(n))return{r:r[1],g:r[2],b:r[3]};if(r=R.rgba.exec(n))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=R.hsl.exec(n))return{h:r[1],s:r[2],l:r[3]};if(r=R.hsla.exec(n))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=R.hsv.exec(n))return{h:r[1],s:r[2],v:r[3]};if(r=R.hsva.exec(n))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=R.hex8.exec(n))return{a:(o=r[1],D(o)/255),r:D(r[2]),g:D(r[3]),b:D(r[4]),format:i?"name":"hex8"};var o;if(r=R.hex6.exec(n))return{r:D(r[1]),g:D(r[2]),b:D(r[3]),format:i?"name":"hex"};if(r=R.hex3.exec(n))return{r:D(r[1]+""+r[1]),g:D(r[2]+""+r[2]),b:D(r[3]+""+r[3]),format:i?"name":"hex"};return!1}(n));"object"==typeof n&&(n.hasOwnProperty("r")&&n.hasOwnProperty("g")&&n.hasOwnProperty("b")?(c=n.r,f=n.g,h=n.b,i={r:255*T(c,255),g:255*T(f,255),b:255*T(h,255)},u=!0,l="%"===String(n.r).substr(-1)?"prgb":"rgb"):n.hasOwnProperty("h")&&n.hasOwnProperty("s")&&n.hasOwnProperty("v")?(n.s=M(n.s),n.v=M(n.v),i=function(t,e,n){t=6*T(t,360),e=T(e,100),n=T(n,100);var i=r.floor(t),o=t-i,a=n*(1-e),s=n*(1-o*e),u=n*(1-(1-o)*e),l=i%6;return{r:255*[n,s,a,a,u,n][l],g:255*[u,n,n,s,a,a][l],b:255*[a,a,u,n,n,s][l]}}(n.h,n.s,n.v),u=!0,l="hsv"):n.hasOwnProperty("h")&&n.hasOwnProperty("s")&&n.hasOwnProperty("l")&&(n.s=M(n.s),n.l=M(n.l),i=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=T(t,360),e=T(e,100),n=T(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,n.s,n.l),u=!0,l="hsl"),n.hasOwnProperty("a")&&(s=n.a));var c,f,h;return s=k(s),{ok:u,format:n.format||l,r:o(255,a(i.r,0)),g:o(255,a(i.g,0)),b:o(255,a(i.b,0)),a:s}}(s);this._originalInput=s,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=i(100*this._a)/100,this._format=l.format||c.format,this._gradientType=l.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=c.ok,this._tc_id=n++};function l(t,e,n){t=T(t,255),e=T(e,255),n=T(n,255);var r,i,s=a(t,e,n),u=o(t,e,n),l=(s+u)/2;if(s==u)r=i=0;else{var c=s-u;switch(i=l>.5?c/(2-s-u):c/(s+u),s){case t:r=(e-n)/c+(e<n?6:0);break;case e:r=(n-t)/c+2;break;case n:r=(t-e)/c+4}r/=6}return{h:r,s:i,l:l}}function c(t,e,n){t=T(t,255),e=T(e,255),n=T(n,255);var r,i,s=a(t,e,n),u=o(t,e,n),l=s,c=s-u;if(i=0===s?0:c/s,s==u)r=0;else{switch(s){case t:r=(e-n)/c+(e<n?6:0);break;case e:r=(n-t)/c+2;break;case n:r=(t-e)/c+4}r/=6}return{h:r,s:i,v:l}}function f(t,e,n,r){var o=[P(i(t).toString(16)),P(i(e).toString(16)),P(i(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function h(t,e,n,r){var o;return[P((o=r,Math.round(255*parseFloat(o)).toString(16))),P(i(t).toString(16)),P(i(e).toString(16)),P(i(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s-=e/100,n.s=O(n.s),u(n)}function d(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s+=e/100,n.s=O(n.s),u(n)}function v(t){return u(t).desaturate(100)}function m(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l+=e/100,n.l=O(n.l),u(n)}function g(t,e){e=0===e?0:e||10;var n=u(t).toRgb();return n.r=a(0,o(255,n.r-i(-e/100*255))),n.g=a(0,o(255,n.g-i(-e/100*255))),n.b=a(0,o(255,n.b-i(-e/100*255))),u(n)}function $(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l-=e/100,n.l=O(n.l),u(n)}function y(t,e){var n=u(t).toHsl(),r=(i(n.h)+e)%360;return n.h=r<0?360+r:r,u(n)}function b(t){var e=u(t).toHsl();return e.h=(e.h+180)%360,u(e)}function w(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+120)%360,s:e.s,l:e.l}),u({h:(n+240)%360,s:e.s,l:e.l})]}function x(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+90)%360,s:e.s,l:e.l}),u({h:(n+180)%360,s:e.s,l:e.l}),u({h:(n+270)%360,s:e.s,l:e.l})]}function C(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+72)%360,s:e.s,l:e.l}),u({h:(n+216)%360,s:e.s,l:e.l})]}function S(t,e,n){e=e||6,n=n||30;var r=u(t).toHsl(),i=360/n,o=[u(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(u(r));return o}function A(t,e){e=e||6;for(var n=u(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(u({h:r,s:i,v:o})),o=(o+s)%1;return a}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=k(t),this._roundA=i(100*this._a)/100,this},toHsv:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=c(this._r,this._g,this._b),e=i(360*t.h),n=i(100*t.s),r=i(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=l(this._r,this._g,this._b),e=i(360*t.h),n=i(100*t.s),r=i(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return h(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*T(this._r,255))+"%",g:i(100*T(this._g,255))+"%",b:i(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*T(this._r,255))+"%, "+i(100*T(this._g,255))+"%, "+i(100*T(this._b,255))+"%)":"rgba("+i(100*T(this._r,255))+"%, "+i(100*T(this._g,255))+"%, "+i(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(_[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";t&&(n=u(t).toHex8String());return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},u.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:M(t[r]));t=n}return u(t,e)},u.equals=function(t,e){return!(!t||!e)&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:s(),g:s(),b:s()})},u.mix=function(t,e,n){n=0===n?0:n||50;var r,i=u(t).toRgb(),o=u(e).toRgb(),a=n/100,s=2*a-1,l=o.a-i.a,c=1-(r=((r=s*l==-1?s:(s+l)/(1+s*l))+1)/2),f={r:o.r*r+i.r*c,g:o.g*r+i.g*c,b:o.b*r+i.b*c,a:o.a*a+i.a*(1-a)};return u(f)},u.readability=function(t,e){var n=u(t),r=u(e),i=n.toRgb(),o=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),l=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(a-s),color:l}},u.isReadable=function(t,e){var n=u.readability(t,e);return n.brightness>125&&n.color>500},u.mostReadable=function(t,e){for(var n=null,r=0,i=!1,o=0;o<e.length;o++){var a=u.readability(t,e[o]),s=a.brightness>125&&a.color>500,l=a.brightness/125*3+a.color/500;(s&&!i||s&&i&&l>r||!s&&!i&&l>r)&&(i=s,r=l,n=u(e[o]))}return n};var E=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},_=u.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(E);function k(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function T(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=o(e,a(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),r.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function O(t){return o(1,a(0,t))}function D(t){return parseInt(t,16)}function P(t){return 1==t.length?"0"+t:""+t}function M(t){return t<=1&&(t=100*t+"%"),t}var j,I,N,R=(I="[\\s|\\(]+("+(j="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",N="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",{rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+N),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=u}(),t((function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()}))})?r.apply(e,i):r)||(t.exports=o)}()},function(t,e,n){var r,i,o;i=[n(0)],void 0===(o="function"==typeof(r=function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;return function(){
/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
 */
var t,n,r;e&&e.requirejs||(e?n=e:e={},function(e){var i,o,a,s,u={},l={},c={},f={},h=Object.prototype.hasOwnProperty,p=[].slice,d=/\.js$/;function v(t,e){return h.call(t,e)}function m(t,e){var n,r,i,o,a,s,u,l,f,h,p,v=e&&e.split("/"),m=c.map,g=m&&m["*"]||{};if(t){for(a=(t=t.split("/")).length-1,c.nodeIdCompat&&d.test(t[a])&&(t[a]=t[a].replace(d,"")),"."===t[0].charAt(0)&&v&&(t=v.slice(0,v.length-1).concat(t)),f=0;f<t.length;f++)if("."===(p=t[f]))t.splice(f,1),f-=1;else if(".."===p){if(0===f||1===f&&".."===t[2]||".."===t[f-1])continue;f>0&&(t.splice(f-1,2),f-=2)}t=t.join("/")}if((v||g)&&m){for(f=(n=t.split("/")).length;f>0;f-=1){if(r=n.slice(0,f).join("/"),v)for(h=v.length;h>0;h-=1)if((i=m[v.slice(0,h).join("/")])&&(i=i[r])){o=i,s=f;break}if(o)break;!u&&g&&g[r]&&(u=g[r],l=f)}!o&&u&&(o=u,s=l),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function g(t,e){return function(){var n=p.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),o.apply(void 0,n.concat([t,e]))}}function $(t){return function(e){u[t]=e}}function y(t){if(v(l,t)){var e=l[t];delete l[t],f[t]=!0,i.apply(void 0,e)}if(!v(u,t)&&!v(f,t))throw new Error("No "+t);return u[t]}function b(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function w(t){return t?b(t):[]}function x(t){return function(){return c&&c.config&&c.config[t]||{}}}a=function(t,e){var n,r,i=b(t),o=i[0],a=e[1];return t=i[1],o&&(n=y(o=m(o,a))),o?t=n&&n.normalize?n.normalize(t,(r=a,function(t){return m(t,r)})):m(t,a):(o=(i=b(t=m(t,a)))[0],t=i[1],o&&(n=y(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},s={require:function(t){return g(t)},exports:function(t){var e=u[t];return void 0!==e?e:u[t]={}},module:function(t){return{id:t,uri:"",exports:u[t],config:x(t)}}},i=function(t,e,n,r){var i,o,c,h,p,d,m,b=[],x=typeof n;if(d=w(r=r||t),"undefined"===x||"function"===x){for(e=!e.length&&n.length?["require","exports","module"]:e,p=0;p<e.length;p+=1)if("require"===(o=(h=a(e[p],d)).f))b[p]=s.require(t);else if("exports"===o)b[p]=s.exports(t),m=!0;else if("module"===o)i=b[p]=s.module(t);else if(v(u,o)||v(l,o)||v(f,o))b[p]=y(o);else{if(!h.p)throw new Error(t+" missing "+o);h.p.load(h.n,g(r,!0),$(o),{}),b[p]=u[o]}c=n?n.apply(u[t],b):void 0,t&&(i&&void 0!==i.exports&&i.exports!==u[t]?u[t]=i.exports:void 0===c&&m||(u[t]=c))}else t&&(u[t]=n)},t=n=o=function(t,e,n,r,u){if("string"==typeof t)return s[t]?s[t](e):y(a(t,w(e)).f);if(!t.splice){if((c=t).deps&&o(c.deps,c.callback),!e)return;e.splice?(t=e,e=n,n=null):t=void 0}return e=e||function(){},"function"==typeof n&&(n=r,r=u),r?i(void 0,t,e,n):setTimeout((function(){i(void 0,t,e,n)}),4),o},o.config=function(t){return o(t)},t._defined=u,(r=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),v(u,t)||v(l,t)||(l[t]=[t,e,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=n,e.define=r)}(),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function n(t){var e=t.prototype,n=[];for(var r in e)"function"==typeof e[r]&&"constructor"!==r&&n.push(r);return n}e.Extend=function(t,e){var n={}.hasOwnProperty;function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},e.Decorate=function(t,e){var r=n(e),i=n(t);function o(){var n=Array.prototype.unshift,r=e.prototype.constructor.length,i=t.prototype.constructor;r>0&&(n.call(arguments,t.prototype.constructor),i=e.prototype.constructor),i.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<i.length;a++){var s=i[a];o.prototype[s]=t.prototype[s]}for(var u=function(t){var n=function(){};t in o.prototype&&(n=o.prototype[t]);var r=e.prototype[t];return function(){var t=Array.prototype.unshift;return t.call(arguments,n),r.apply(this,arguments)}},l=0;l<r.length;l++){var c=r[l];o.prototype[c]=u(c)}return o};var r=function(){this.listeners={}};return r.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},r.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].apply(this,e)},e.Observable=r,e.generateChars=function(t){for(var e="",n=0;n<t;n++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var n=e.split("-"),r=t;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=t[e]),r=r[o]}delete t[e]}}return t},e.hasScroll=function(e,n){var r=t(n),i=n.style.overflowX,o=n.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var r=t();t.map(n,(function(t){r=r.add(t)})),n=r}e.append(n)},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function n(t,e,r){this.$element=t,this.data=r,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);r.append(n(i(e.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var r=t.results[n],i=this.option(r);e.push(i)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var e=this;this.data.current((function(n){var r=t.map(n,(function(t){return t.id.toString()}));e.$results.find(".select2-results__option[aria-selected]").each((function(){var e=t(this),n=t.data(this,"data"),i=""+n.id;null!=n.element&&n.element.selected||null==n.element&&t.inArray(i,r)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==e.id&&delete r["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(r.role="group",r["aria-label"]=e.text,delete r["aria-selected"]),r){var o=r[i];n.setAttribute(i,o)}if(e.children){var a=t(n),s=document.createElement("strong");s.className="select2-results__group",t(s),this.template(e,s);for(var u=[],l=0;l<e.children.length;l++){var c=e.children[l],f=this.option(c);u.push(f)}var h=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(u),a.append(s),a.append(h)}else this.template(e,n);return t.data(n,"data",e),n},n.prototype.bind=function(e,n){var r=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",(function(t){r.clear(),r.append(t.data),e.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),e.on("results:append",(function(t){r.append(t.data),e.isOpen()&&r.setClasses()})),e.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),e.on("select",(function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),e.on("unselect",(function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),e.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),e.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),e.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),e.on("results:select",(function(){var t=r.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e})}})),e.on("results:previous",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,u=r.$results.scrollTop()+(s-a);0===i?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(u)}})),e.on("results:next",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=r.$results.scrollTop()+a-o;0===n?r.$results.scrollTop(0):a>o&&r.$results.scrollTop(s)}})),e.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),e.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(e){var n=t(this),i=n.data("data");"true"!==n.attr("aria-selected")?r.trigger("select",{originalEvent:e,data:i}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:e,data:i}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(e){var n=t(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,r=t.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},n.prototype.template=function(e,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):t(n).append(o)},n})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},r.prototype.bind=function(t,e){var r=this,i=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",(function(t){r.trigger("focus",t)})),this.$selection.on("blur",(function(t){r._handleBlur(t)})),this.$selection.on("keydown",(function(t){r.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){r.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){r.update(t.data)})),t.on("open",(function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)})),t.on("close",(function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(t)})),t.on("enable",(function(){r.$selection.attr("tabindex",r._tabindex)})),t.on("disable",(function(){r.$selection.attr("tabindex","-1")}))},r.prototype._handleBlur=function(e){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)}),1)},r.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,(function(e){var n=t(e.target).closest(".select2");t(".select2.select2-container--open").each((function(){var e=t(this);this!=n[0]&&e.data("element").select2("close")}))}))},r.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(t,e){e.find(".selection").append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",(function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||n.$selection.focus()})),t.on("selection:update",(function(t){n.update(t.data)}))},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t("<span></span>")},i.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(e,n);n.empty().append(r),n.prop("title",e.title||e.text)}else this.clear()},i})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,n){function r(t,e){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},r.prototype.bind=function(e,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){i.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!i.options.get("disabled")){var n=t(this).parent().data("data");i.trigger("unselect",{originalEvent:e,data:n})}}))},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=this.selectionContainer(),a=this.display(i,o);o.append(a),o.prop("title",i.title||i.text),o.data("data",i),e.push(o)}var s=this.$selection.find(".select2-selection__rendered");n.appendMany(s,e)}},r})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||n)return t.call(this,e);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},e})),e.define("select2/selection/allowClear",["jquery","../keys"],(function(t,e){function n(){}return n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){r._handleClear(t)})),e.on("keypress",(function(t){r._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();for(var r=n.data("data"),i=0;i<r.length;i++){var o={data:r[i]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(t,n,r){r.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},n.prototype.update=function(e,n){if(e.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var r=t('<span class="select2-selection__clear">&times;</span>');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,n){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=e.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",(function(){i.$search.trigger("focus")})),e.on("close",(function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")})),e.on("enable",(function(){i.$search.prop("disabled",!1),i._transferTabIndex()})),e.on("disable",(function(){i.$search.prop("disabled",!0)})),e.on("focus",(function(t){i.$search.trigger("focus")})),e.on("results:focus",(function(t){i.$search.attr("aria-activedescendant",t.id)})),this.$selection.on("focusin",".select2-search--inline",(function(t){i.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===i.$search.val()){var e=i.$searchContainer.prev(".select2-selection__choice");if(e.length>0){var r=e.data("data");i.searchRemoveChoice(r),t.preventDefault()}}}));var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){a?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(a&&"input"===t.type)i.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&i.handleSearch(t)}}))},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},r})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];e.call(this,n,r),n.on("*",(function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var r=t.Event("select2:"+e,{params:n});i.$element.trigger(r),-1!==t.inArray(e,a)&&(n.prevented=r.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var r=e(t);n._cache[t]=r}return new n(n._cache[t])},n})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var r=e.id+"-result-";return r+=t.generateChars(4),null!=n.id?r+="-"+n.id.toString():r+="-"+t.generateChars(4),r},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,t),r.prototype.current=function(t){var e=[],r=this;this.$element.find(":selected").each((function(){var t=n(this),i=r.item(t);e.push(i)})),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(r){var i=[];(t=[t]).push.apply(t,r);for(var o=0;o<t.length;o++){var a=t[o].id;-1===n.inArray(a,i)&&i.push(a)}e.$element.val(i),e.$element.trigger("change")}));else{var r=t.id;this.$element.val(r),this.$element.trigger("change")}},r.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("change");this.current((function(r){for(var i=[],o=0;o<r.length;o++){var a=r[o].id;a!==t.id&&-1===n.inArray(a,i)&&i.push(a)}e.$element.val(i),e.$element.trigger("change")}))}},r.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",(function(t){n.select(t.data)})),t.on("unselect",(function(t){n.unselect(t.data)}))},r.prototype.destroy=function(){this.$element.find("*").each((function(){n.removeData(this,"data")}))},r.prototype.query=function(t,e){var r=[],i=this;this.$element.children().each((function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=i.item(e),a=i.matches(t,o);null!==a&&r.push(a)}})),e({results:r})},r.prototype.addOptions=function(t){e.appendMany(this.$element,t)},r.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup")).label=t.text:void 0!==(e=document.createElement("option")).textContent?e.textContent=t.text:e.innerText=t.text,void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var r=n(e),i=this._normalizeItem(t);return i.element=e,n.data(e,"data",i),r},r.prototype.item=function(t){var e={};if(null!=(e=n.data(t[0],"data")))return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),i=[],o=0;o<r.length;o++){var a=n(r[o]),s=this.item(a);i.push(s)}e.children=i}return(e=this._normalizeItem(e)).element=t[0],n.data(t[0],"data",e),e},r.prototype._normalizeItem=function(t){return n.isPlainObject(t)||(t={id:t,text:t}),null!=(t=n.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},{selected:!1,disabled:!1},t)},r.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},r})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,n){function r(t,e){var n=e.get("data")||[];r.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(n))}return e.Extend(r,t),r.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,n){return n.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),r.__super__.select.call(this,t)},r.prototype.convertToOptions=function(t){var r=this,i=this.$element.find("option"),o=i.map((function(){return r.item(n(this)).id})).get(),a=[];function s(t){return function(){return n(this).val()==t.id}}for(var u=0;u<t.length;u++){var l=this._normalizeItem(t[u]);if(n.inArray(l.id,o)>=0){var c=i.filter(s(l)),f=this.item(c),h=n.extend(!0,{},l,f),p=this.option(h);c.replaceWith(p)}else{var d=this.option(l);if(l.children){var v=this.convertToOptions(l.children);e.appendMany(d,v)}a.push(d)}}return a},r})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,n){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return e.Extend(r,t),r.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,r){var i=n.ajax(t);return i.then(e),i.fail(r),i}};return n.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){var r=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=i.transport(i,(function(i){var o=r.processResults(i,t);r.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){o.status&&"0"===o.status||r.trigger("results:message",{message:"errorLoading"})}));r._request=o}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},r})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var a=r.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,r),t.isArray(i))for(var s=0;s<i.length;s++){var u=i[s],l=this._normalizeItem(u),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(t,e,n){var r=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(i,o){for(var a=i.results,s=0;s<a.length;s++){var u=a[s],l=null!=u.children&&!t({results:u.children},!0);if((u.text||"").toUpperCase()===(e.term||"").toUpperCase()||l)return!o&&(i.data=a,void n(i))}if(o)return!0;var c=r.createTag(e);if(null!=c){var f=r.option(c);f.attr("data-select2-tag",!0),r.addOptions([f]),r.insertTag(a,c)}i.results=a,n(i)})):t.call(this,e,n)},e.prototype.createTag=function(e,n){var r=t.trim(n.term);return""===r?null:{id:r,text:r}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this._lastTag,this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,r){var i=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(e){var n=i._normalizeItem(e);if(!i.$element.find("option").filter((function(){return t(this).val()===n.id})).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}!function(t){i.trigger("select",{data:t})}(n)}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),n.term=o.term),e.call(this,n,r)},e.prototype.tokenizer=function(e,n,r,i){for(var o=r.get("tokenSeparators")||[],a=n.term,s=0,u=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var l=a[s];if(-1!==t.inArray(l,o)){var c=a.substr(0,s),f=u(t.extend({},n,{term:c}));null!=f?(i(f),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){var r=this;this.current((function(i){var o=null!=i?i.length:0;r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):t.call(r,e,n)}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),r=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),this.$search.on("keydown",(function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){i.handleSearch(t)})),n.on("open",(function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout((function(){i.$search.focus()}),0)})),n.on("close",(function(){i.$search.attr("tabindex",-1),i.$search.val("")})),n.on("focus",(function(){n.isOpen()||i.$search.focus()})),n.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(i.showSearch(t)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}))},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,r)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),r=e.length-1;r>=0;r--){var i=e[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,n,r){this.lastParams={},t.call(this,e,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),n.on("query",(function(t){i.lastParams=t,i.loading=!0})),n.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",(function(){var e=t.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()}))},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function n(e,n,r){this.$dropdownParent=r.get("dropdownParent")||t(document.body),e.call(this,n,r)}return n.prototype.bind=function(t,e,n){var r=this,i=!1;t.call(this,e,n),e.on("open",(function(){r._showDropdown(),r._attachPositioningHandler(e),i||(i=!0,e.on("results:all",(function(){r._positionDropdown(),r._resizeDropdown()})),e.on("results:append",(function(){r._positionDropdown(),r._resizeDropdown()})))})),e.on("close",(function(){r._hideDropdown(),r._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),r=e.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,a="resize.select2."+r.id,s="orientationchange.select2."+r.id,u=this.$container.parents().filter(e.hasScroll);u.each((function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),u.on(o,(function(e){var n=t(this).data("select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(o+" "+a+" "+s,(function(t){i._positionDropdown(),i._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,a="orientationchange.select2."+r.id;this.$container.parents().filter(e.hasScroll).off(i),t(window).off(i+" "+o+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),u=e.scrollTop(),l=e.scrollTop()+e.height(),c=u<o.top-s,f=l>o.bottom+s,h={left:o.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var d=p.offset();h.top-=d.top,h.left-=d.left,n||r||(i="below"),f||!c||n?!c&&f&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(h.top=a.top-d.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,r)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,r=0;r<e.length;r++){var i=e[r];i.children?n+=t(i.children):n++}return n}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),e.define("select2/dropdown/selectOnClose",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("close",(function(t){r._handleSelectOnClose(t)}))},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var n=e.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=r.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},t})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("select",(function(t){r._selectTriggered(t)})),e.on("unselect",(function(t){r._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,n,r,i,o,a,s,u,l,c,f,h,p,d,v,m,g,$,y,b,w,x,C,S,A,E,_,k){function T(){this.reset()}return T.prototype.apply=function(f){if(null==(f=t.extend(!0,{},this.defaults,f)).dataAdapter){if(null!=f.ajax?f.dataAdapter=d:null!=f.data?f.dataAdapter=p:f.dataAdapter=h,f.minimumInputLength>0&&(f.dataAdapter=l.Decorate(f.dataAdapter,g)),f.maximumInputLength>0&&(f.dataAdapter=l.Decorate(f.dataAdapter,$)),f.maximumSelectionLength>0&&(f.dataAdapter=l.Decorate(f.dataAdapter,y)),f.tags&&(f.dataAdapter=l.Decorate(f.dataAdapter,v)),null==f.tokenSeparators&&null==f.tokenizer||(f.dataAdapter=l.Decorate(f.dataAdapter,m)),null!=f.query){var k=e(f.amdBase+"compat/query");f.dataAdapter=l.Decorate(f.dataAdapter,k)}if(null!=f.initSelection){var T=e(f.amdBase+"compat/initSelection");f.dataAdapter=l.Decorate(f.dataAdapter,T)}}if(null==f.resultsAdapter&&(f.resultsAdapter=n,null!=f.ajax&&(f.resultsAdapter=l.Decorate(f.resultsAdapter,C)),null!=f.placeholder&&(f.resultsAdapter=l.Decorate(f.resultsAdapter,x)),f.selectOnClose&&(f.resultsAdapter=l.Decorate(f.resultsAdapter,E))),null==f.dropdownAdapter){if(f.multiple)f.dropdownAdapter=b;else{var O=l.Decorate(b,w);f.dropdownAdapter=O}if(0!==f.minimumResultsForSearch&&(f.dropdownAdapter=l.Decorate(f.dropdownAdapter,A)),f.closeOnSelect&&(f.dropdownAdapter=l.Decorate(f.dropdownAdapter,_)),null!=f.dropdownCssClass||null!=f.dropdownCss||null!=f.adaptDropdownCssClass){var D=e(f.amdBase+"compat/dropdownCss");f.dropdownAdapter=l.Decorate(f.dropdownAdapter,D)}f.dropdownAdapter=l.Decorate(f.dropdownAdapter,S)}if(null==f.selectionAdapter){if(f.multiple?f.selectionAdapter=i:f.selectionAdapter=r,null!=f.placeholder&&(f.selectionAdapter=l.Decorate(f.selectionAdapter,o)),f.allowClear&&(f.selectionAdapter=l.Decorate(f.selectionAdapter,a)),f.multiple&&(f.selectionAdapter=l.Decorate(f.selectionAdapter,s)),null!=f.containerCssClass||null!=f.containerCss||null!=f.adaptContainerCssClass){var P=e(f.amdBase+"compat/containerCss");f.selectionAdapter=l.Decorate(f.selectionAdapter,P)}f.selectionAdapter=l.Decorate(f.selectionAdapter,u)}if("string"==typeof f.language)if(f.language.indexOf("-")>0){var M=f.language.split("-")[0];f.language=[f.language,M]}else f.language=[f.language];if(t.isArray(f.language)){var j=new c;f.language.push("en");for(var I=f.language,N=0;N<I.length;N++){var R=I[N],q={};try{q=c.loadPath(R)}catch(t){try{R=this.defaults.amdLanguageBase+R,q=c.loadPath(R)}catch(t){f.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+R+'" could not be automatically loaded. A fallback will be used instead.');continue}}j.extend(q)}f.translations=j}else{var V=c.loadPath(this.defaults.amdLanguageBase+"en"),F=new c(f.language);F.extend(V),f.translations=F}return f},T.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return f[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:l.escapeMarkup,language:k,matcher:function n(r,i){if(""===t.trim(r.term))return i;if(i.children&&i.children.length>0){for(var o=t.extend(!0,{},i),a=i.children.length-1;a>=0;a--)null==n(r,i.children[a])&&o.children.splice(a,1);return o.children.length>0?o:n(r,o)}var s=e(i.text).toUpperCase(),u=e(r.term).toUpperCase();return s.indexOf(u)>-1?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},T.prototype.set=function(e,n){var r={};r[t.camelCase(e)]=n;var i=l._convertData(r);t.extend(this.defaults,i)},new T})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,n,r){function i(e,i){if(this.options=e,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var i={};i=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},i);for(var a in o=r._convertData(o))e.inArray(a,n)>-1||(e.isPlainObject(this.options[a])?e.extend(this.options[a],o[a]):this.options[a]=o[a]);return this},i.prototype.get=function(t){return this.options[t]},i.prototype.set=function(t,e){this.options[t]=e},i})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,n,r){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var l=this.options.get("resultsAdapter");this.results=new l(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){c.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},i.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var r=this._resolveWidth(t,"style");return null!=r?r:this._resolveWidth(t,"element")}if("element"==e){var i=t.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,u=a.length;s<u;s+=1){var l=a[s].replace(/\s/g,"").match(n);if(null!==l&&l.length>=1)return l[1]}return null}return e},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r((function(n){t.each(n,e._syncA),t.each(n,e._syncS)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,n){t.trigger(e,n)}))},i.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(r,i){-1===t.inArray(r,n)&&e.trigger(r,i)}))},i.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,n){t.trigger(e,n)}))},i.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,n){t.trigger(e,n)}))},i.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(n){t.trigger("results:all",{data:n,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(n){t.trigger("results:append",{data:n,query:e})}))})),this.on("keypress",(function(e){var n=e.which;t.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&e.altKey?(t.close(),e.preventDefault()):n===r.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===r.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===r.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===r.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._syncSubtree=function(t,e){var n=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var i=0;i<e.addedNodes.length;i++)e.addedNodes[i].selected&&(n=!0);else e.removedNodes&&e.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current((function(t){r.trigger("selection:update",{data:t})}))}},i.prototype.trigger=function(t,e){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in r){var o=r[t],a={prevented:!1,name:t,args:e};if(n.call(this,o,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,(function(t){return t.toString()}))),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},i})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function(t,e,n,r){if(null==t.fn.select2){var i=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var r=t.extend(!0,{},e);new n(t(this),r)})),this;if("string"==typeof e){var r,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=t(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),r=n[e].apply(n,o)})),t.inArray(e,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=r),n})),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})?r.apply(e,i):r)||(t.exports=o)}]);

Youez - 2016 - github.com/yon3zu
LinuXploit