entcore 4.8.7 → 4.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/ng-app.js +11 -11
- package/bundle/ng-app.js.map +1 -1
- package/dist/ng-app.js +11 -11
- package/dist/ng-app.js.map +1 -1
- package/package.json +5 -5
package/bundle/ng-app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
window.infrafrontVersion="4.8.
|
|
2
|
-
window.springboardBuildDate="2024-
|
|
1
|
+
window.infrafrontVersion="4.8.8";
|
|
2
|
+
window.springboardBuildDate="2024-07-01T08:16:49.833Z";
|
|
3
3
|
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(module,exports,__webpack_require__){"use strict";function injectIntoSelector(e,t){jquery_1.$(document).ready(function(){var n=angular_1.angular.element(e);n.injector().invoke(["$compile",function(e){var r=n.scope(),i=e(t)(r);n.append(i)}])})}var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(exports,"__esModule",{value:!0});var jquery_1=__webpack_require__(1),idiom_1=__webpack_require__(3),http_1=__webpack_require__(34),modelDefinitions_1=__webpack_require__(37),lib_1=__webpack_require__(385),ui_1=__webpack_require__(6),behaviours_1=__webpack_require__(386),globals_1=__webpack_require__(38),template_1=__webpack_require__(390),moment_1=__webpack_require__(916),underscore_1=__webpack_require__(4),angular_1=__webpack_require__(909),entcore_1=__webpack_require__(388),ng_start_1=__webpack_require__(943),directives=__webpack_require__(960),me_1=__webpack_require__(937),axios_1=__webpack_require__(7),theme_1=__webpack_require__(1049),ui=ui_1.ui,module=angular_1.angular.module("app",["ngSanitize","ngRoute"],["$interpolateProvider",function(e){e.startSymbol("[["),e.endSymbol("]]")}]).config(["$sceDelegateProvider",function(e){e.resourceUrlWhitelist(["self",window.CDN_DOMAIN+"/**"])}]).factory("route",["$rootScope","$route","$routeParams",function(e,t,n){var r={},i=void 0,o=void 0;return e.$on("$routeChangeSuccess",function(e,s){r[t.current.action]instanceof Array&&(i!==t.current.action||o!==t.current.params&&0!==Object.getOwnPropertyNames(t.current.params).length)&&(i=t.current.action,o=t.current.params,r[t.current.action].forEach(function(e){return e(n)}),setTimeout(function(){ui.scrollToId(window.location.hash.split("#")[1])},100))}),function(e){for(var t in e)r[t]||(r[t]=[]),r[t].push(e[t])}}]).factory("model",["$timeout",function(e){var t=modelDefinitions_1.Collection.prototype.trigger;modelDefinitions_1.Collection.prototype.trigger=function(n){e(function(){t.call(this,n)}.bind(this),10)};var n=modelDefinitions_1.Model.prototype.trigger;return modelDefinitions_1.Model.prototype.trigger=function(t,r){e(function(){n.call(this,t,r)}.bind(this),10)},modelDefinitions_1.model}]).factory("httpWrapper",function(){return{wrap:function(e,t,n){var r=this;if("function"==typeof t&&("object"!=typeof r[e]&&(r[e]={}),!r[e].loading)){r[e].loading=!0;for(var i=[],o=3;o<arguments.length;o++)i.push(arguments[o]);var s,a=function(){r[e].loading=!1,r.$apply()};s=n?t.apply(n,i):t.apply(r,i),s&&s.xhr?s.xhr.complete(a):a()}}}});theme_1.initThemeDirective(module),theme_1.initThemeLegacyDirective(module),globals_1.routes.routing&&module.config(["$routeProvider",globals_1.routes.routing]);for(var directive in directives)ng_start_1.ng.directives.push(directives[directive]);module.directive("container",["$timeout",function(e){return{restrict:"E",scope:!0,template:'<div ng-include="templateContainer"></div>',controller:["$scope","$attrs",function(t,n){t.tpl=template_1.template;var r=n.template;this.template=r;var i=function(){e(function(){t.templateContainer=template_1.template.containers[r],"empty"===t.templateContainer&&(t.templateContainer=void 0)},0)};template_1.template.watch(r,i),t.$on("$destroy",function(){template_1.template.unwatch(r,i)}),r&&(t.templateContainer=template_1.template.containers[r])}]}}]),module.directive("colorSelect",function(){return{restrict:"E",scope:{ngModel:"="},replace:!0,template:'<div class="color-picker" ng-class="{ opened: pickColor }"><button class="colors-opener" type="button"></button><div class="colors-list"><button type="button" ng-repeat="color in colors" class="[[color]]" ng-click="setColor(color)"></button></div></div>',link:function(e,t,n){e.colors=["orange","red","purple","blue","green","black","white","transparent"],e.setColor=function(t){e.ngModel=t},t.find(".colors-opener").on("click",function(t){e.pickColor=!e.pickColor,e.$apply("pickColor"),t.stopPropagation(),jquery_1.$("body, .main").one("click",function(){e.pickColor=!1,e.$apply("pickColor")})})}}}),module.directive("soundSelect",function(){return{restrict:"E",transclude:!0,scope:{ngModel:"=",ngChange:"&",visibility:"@"},template:'<div><audio ng-src="[[ngModel]]" controls ng-if="ngModel" style="cursor: pointer"></audio><button ng-click="display.userSelecting = true"><i18n>audio.pick</i18n></button><lightbox show="display.userSelecting" on-close="userSelecting = false;"><div ng-if="display.userSelecting"><media-library visibility="selectedFile.visibility"ng-change="updateDocument()" ng-model="selectedFile.file" file-format="\'audio\'"></media-library></div></lightbox></div>',link:function(e,t,n){e.display={},e.selectedFile={file:{},visibility:"protected"},e.selectedFile.visibility=e.$parent.$eval(n.visibility),e.selectedFile.visibility||(e.selectedFile.visibility="protected"),e.selectedFile.visibility=e.selectedFile.visibility.toLowerCase(),e.updateDocument=function(){e.display.userSelecting=!1;var t="/workspace/document/";"public"===e.selectedFile.visibility&&(t="/workspace/pub/document/"),e.ngModel=t+e.selectedFile.file._id,e.$apply("ngModel"),e.ngChange()},t.on("click","audio",function(){e.userSelecting=!0,e.$apply("userSelecting")})}}}),module.directive("mediaSelect",function(){return{restrict:"E",transclude:!0,replace:!0,scope:{ngModel:"=",multiple:"=",ngChange:"&",fileFormat:"=",label:"@",class:"@",value:"@",mytooltip:"@"},template:'<div><input type="button" class="pick-file [[class]]" tooltip="[[mytooltip]]" /><lightbox show="userSelecting" on-close="userSelecting = false;"><div ng-if="userSelecting"><media-library ng-change="updateDocument()" ng-model="selectedFile.file" multiple="multiple" file-format="fileFormat" visibility="selectedFile.visibility"></media-library></div></lightbox></div>',compile:function(e,t){return!t.mytooltip&&t.tooltip&&(console.warn("tooltip attribute is deprecated on media-select tag, use mytooltip instead."),e.attr("mytooltip",t.tooltip),e.removeAttr("tooltip"),t.mytooltip=t.tooltip,delete t.tooltip),function(e,t,n){e.selectedFile={file:{},visibility:"protected"},e.selectedFile.visibility=e.$parent.$eval(n.visibility),e.selectedFile.visibility||(e.selectedFile.visibility="protected"),e.selectedFile.visibility=e.selectedFile.visibility.toLowerCase(),e.mytooltip||t.find("input").removeAttr("tooltip"),n.$observe("label",function(e){t.find("[type=button]").attr("value",idiom_1.idiom.translate(e))}),e.$watch("fileFormat",function(t){void 0===t&&(e.fileFormat="img")}),e.updateDocument=function(){e.userSelecting=!1;var t="/workspace/document/";"public"===e.selectedFile.visibility&&(t="/workspace/pub/document/"),e.ngModel=t+e.selectedFile.file._id,e.$apply("ngModel"),e.ngChange()},t.find(".pick-file").on("click",function(){e.userSelecting=!0,e.$apply("userSelecting")})}}}}),module.directive("filesPicker",function(){return{restrict:"E",transclude:!0,replace:!0,template:'<input type="button" ng-transclude />',scope:{ngChange:"&",ngModel:"="},link:function(e,t,n){t.on("click",function(){var t=jquery_1.$("<input />",{type:"file"}).hide().appendTo("body");void 0!==n.multiple&&t.attr("multiple",!0),t.on("change",function(){e.ngModel=t[0].files,e.$apply(),e.$eval(e.ngChange),e.$parent.$apply()}),t.click(),t.trigger("touchstart")})}}}),module.directive("filesInputChange",function(){return{restrict:"A",scope:{filesInputChange:"&",file:"=ngModel"},link:function(e,t){e.$watch("file",function(e,n){e!==n&&(e||(t[0].value=""))}),t.bind("change",function(){e.file=t[0].files,e.$apply(),e.filesInputChange(),e.$apply()})}}}),module.directive("iconsSelect",function(){return{restrict:"E",scope:{options:"=",class:"@",current:"=",change:"&"},link:function(e,t,n){var r;e.separateIcon=n.hasOwnProperty("separateIcon");var i=function(){e.current.id=r.id,e.current.icon=r.icon,e.current.text=r.text};e.$watch("options",function(){e.options&&e.options.length&&(r=underscore_1._.findWhere(e.options,{id:e.current.id}),i(),t.bind("change",function(){r=underscore_1._.findWhere(e.options,{id:t.find(".current").data("selected")}),i(),e.$eval(e.change),e.$apply()}))},!0)},template:'\n\t\t\t<div ng-class="{\'drop-down-block\': !separateIcon}">\n\t\t\t\t<div ng-if="separateIcon" class="current fixed cell twelve" data-selected="[[current.id]]">\n\t\t\t\t\t<i class="[[current.icon]]"></i>\n\t\t\t\t\t<span translate content="[[current.text]]"></span>\n\t\t\t\t</div>\n\t\t\t\t<article ng-if="!separateIcon" class="current cell twelve medium-block-container" data-selected="[[current.id]]">\n\t\t\t\t\t<div class="flex-row drop-down-label no-margin no-border">\n\t\t\t\t\t\t<i class="arrow no-margin right-spacing"></i>\n\t\t\t\t\t\t<i class="[[current.icon]] cell no-2d no-margin right-spacing-twice"></i>\n\t\t\t\t\t\t<i class="[[current.icon === \'default\' ? \'none\' : current.icon]] cell no-1d no-margin right-spacing-twice"></i>\n\t\t\t\t\t\t<h2 class="cell-ellipsis"><a translate content="[[current.text]]"></a></h2>\n\t\t\t\t\t</div>\n\t\t\t\t</article>\n\t\t\t\t<div class="options-list icons-view">\n\t\t\t\t<div class="wrapper">\n\t\t\t\t\t<div class="cell three option" data-value="[[option.id]]" data-ng-repeat="option in options">\n\t\t\t\t\t\t<i class="[[option.icon]] no-2d"></i>\n\t\t\t\t\t\t<i class="[[option.icon === \'default\' ? \'none\' : option.icon]] no-1d"></i>\n\t\t\t\t\t\t<span translate content="[[option.text]]"></span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t'}}),module.directive("preview",function(){return{restrict:"E",template:'<div class="row content-line"><div class="row fixed-block height-four"><div class="four cell fixed image clip text-container"></div><div class="eight cell fixed-block left-four paragraph text-container"></div></div></div>',replace:!0,scope:{content:"="},link:function(e,t,n){e.$watch("content",function(e){var n=jquery_1.$(e);t.find(".image").html(n.find("img").first());var r=underscore_1._.find(n.find("p"),function(e){return jquery_1.$(e).text().length>0});t.find(".paragraph").text(jquery_1.$(r).text())})}}}),module.service("tracker",["$document","$location","$rootScope",function(){var e=function(e,t,n){this.$document=e,this.$location=t,this.$rootScope=n,this.type="none",this.params={},this.isInitialized=!1,this.hasOptedIn=!1};return e.prototype.init=function(){var e=this;http_1.http().get("/analyticsConf").done(function(t){t&&"string"==typeof t.type&&t.type.trim().length>0&&t[t.type.trim()]&&e.initFromType(t.type,t[t.type])}).error(function(e){})},e.prototype.initFromType=function(e,t){if(!this.isInitialized)switch(this.isInitialized=!0,this.type=e,this.params=t,e){case"matomo":try{var n=window._paq=window._paq||[];n.push(["setRequestMethod","POST"]),t.UserId&&n.push(["setUserId",t.UserId]),t.Profile&&n.push(["setCustomDimension",1,t.Profile]),t.School&&n.push(["setCustomDimension",2,t.School]),t.Project&&n.push(["setCustomDimension",3,t.Project]),n.push(["trackPageView"]),n.push(["enableLinkTracking"]),function(){n.push(["setTrackerUrl",t.url+"matomo.php"]),n.push(["setSiteId",t.siteId]);var e=document,r=e.createElement("script"),i=e.getElementsByTagName("script")[0];r.type="text/javascript",r.async=!0,r.src=t.url+"ode.js",i.parentNode.insertBefore(r,i)}();var r=this;if(n.push([function(){r.hasOptedIn=!this.isUserOptedOut(),r.$rootScope.$digest()}]),t.detailApps&&window.entcore.template){if(angular_1.angular.isArray(t.doNotTrack)&&modelDefinitions_1.model&&modelDefinitions_1.model.me&&angular_1.angular.isArray(modelDefinitions_1.model.me.apps))for(var i=0;i<modelDefinitions_1.model.me.apps.length;i++)if(modelDefinitions_1.model.me.apps[i]&&modelDefinitions_1.model.me.apps[i].address&&modelDefinitions_1.model.me.apps[i].name&&-1!==this.$location.absUrl().indexOf(modelDefinitions_1.model.me.apps[i].address)&&-1!==t.doNotTrack.indexOf(modelDefinitions_1.model.me.apps[i].name))return;var o=this,s=window.entcore.template.open;window.entcore.template.open=function(e,t){var n=s.apply(window.entcore.template,arguments);if("main"===e){t=t||"unknown";var r=o.$location.absUrl().split("#")[0]+"/"+t;o.trackPage(o.$document[0].title+" - "+e,r)}return n}}}catch(e){console.error('Invalid tracker object. Should look like {"siteId": 99999, "url":"http://your.matomo.server.com/"}"',e)}}},e.prototype.trackPage=function(e,t){switch(this.type){case"matomo":var n=window._paq=window._paq||[];n.push(["setDocumentTitle",e]),n.push(["setCustomUrl",t]),n.push(["trackPageView"])}},e.prototype.trackEvent=function(e,t,n,r){switch(this.type){case"matomo":var i=window._paq=window._paq||[],o=["trackEvent",e,t];"string"==typeof n&&(n=n.trim(),n.length>0&&o.push(n)),"number"==typeof r&&o.push(r),i.push(o)}},e.prototype.saveOptIn=function(){switch(this.type){case"matomo":(window._paq=window._paq||[]).push(this.hasOptedIn?["forgetUserOptOut"]:["optUserOut"])}},e}()]);var profileTypes=function(){switch(modelDefinitions_1.model.me.type){case"ENSEIGNANT":return"teacher";case"ELEVE":return"student";case"PERSRELELEVE":return"relative";case"PERSEDUCNAT":return"personnel";default:return modelDefinitions_1.model.me.type}};module.directive("portal",["$compile","tracker",function(e,t){function n(){http_1.http().get("/zendeskGuide/config").done(function(e){if(e&&e.key){var t=document.createElement("script");t.id="ze-snippet",t.src="https://static.zdassets.com/ekr/snippet.js?key="+e.key,document.body.appendChild(t).onload=function(){"es"===window.currentLanguage?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")});var t=window.location.href;Object.keys(e.module).length>0&&r(e.module,t),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:e.color||"#ffc400"},zIndex:8e3,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!modelDefinitions_1.model.me.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view")},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"}}}}),window.addEventListener("scroll",function(){window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){Object.keys(e.module).length>0&&window.location.href!==t&&(r(e.module,window.location.href),t=window.location.href),modelDefinitions_1.model.me.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view")&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(e){var t=e.category,n=e.action,r=e.properties;"Contact Form Shown"===n&&"Zendesk Web Widget"===t&&r&&"contact-form"===r.name&&modelDefinitions_1.model.me.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view")&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})}function r(e,t){var n=t.split("/"),r="",i="";if(e.labels&&Object.keys(e.labels).length>0&&n.length>3){for(var o=3;o<n.length;o++)n[o].length>0&&(null==n[o].match(/\d/)||"viescolaire#"===n[3]&&null!==n[o].match(/\%20/))&&(r=0===r.length?n[o]:r+"/"+n[o]);e.labels.hasOwnProperty(r)?i=e.labels[r]:e.default&&String(e.default).length>0&&(i=e.default)}else e.default&&String(e.default).length>0&&(i=e.default);n&&n.includes("formulaire#")&&window.zE("webWidget","updateSettings",{webWidget:{offset:{mobile:{horizontal:"70px",vertical:"0px"}}}}),i.includes("${adml}")&&(i=me_1.Me.session.functions.ADMIN_LOCAL?i.replace("${adml}","adml"):i.replace("/${adml}","")),i.includes("${profile}")&&(i=i.replace("${profile}",profileTypes())),i.includes("${theme}")&&(i=entcore_1.skin.is1D?i.replace("${theme}","1D"):i.replace("${theme}","2D")),i.length>0&&window.zE("webWidget","helpCenter:setSuggestions",{labels:[i]})}return{restrict:"E",transclude:!0,templateUrl:function(e,t){var n=window.springboardBuildDate||(new Date).getTime();return t.templateUrl?t.templateUrl+"?version="+n:entcore_1.skin.portalTemplate+"?version="+n},compile:function(r,i,o){return t.init(),modelDefinitions_1.model.me.hasWorkflow("fr.openent.chatbot.controller.ChatbotController|view")&&behaviours_1.Behaviours.loadBehaviours("chatbot",function(){behaviours_1.Behaviours.applicationsBehaviours.chatbot.chatbot.init()}),modelDefinitions_1.model.me.hasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo")&&http_1.http().get("/optionalFeature/cantoo").done(function(e){var t=document.createElement("script");t.src=e.scriptPath,t.async=!0,document.body.appendChild(t)}),n(),jquery_1.$("html").addClass("portal-container"),r.find("[logout]").attr("href","/auth/logout?callback="+entcore_1.skin.logoutCallback),i.templateUrl||ui.setStyle(entcore_1.skin.theme),http_1.Http.prototype.bind("disconnected",function(){window.location.href="/"}),function(t,n,r,i,o){t.template=template_1.template,t.$$showInfoTipRgpdCookie=!0,t.goToMyAccount=function(){document.location.href="/userbook/mon-compte",axios_1.default.put("/userbook/preference/rgpdCookies",{showInfoTip:!1})},t.closeBanner=function(){t.$$showInfoTipRgpdCookie=!1,axios_1.default.put("/userbook/preference/rgpdCookies",{showInfoTip:!1})},t.$on("$locationChangeStart",function(e,t,n){window.zE&&window.zE("webWidget","close")});n.prepend(e('\n\t\t\t\t\t<div class="ode-theme-v1">\n\t\t\t\t\t\t<infotip\n\t\t\t\t\t\t\tname="showInfoTip" \n\t\t\t\t\t\t\tclass="info" \n\t\t\t\t\t\t\tstyle="position:fixed; bottom:0; right:20px; width: 400px; z-index: 1000"\n\t\t\t\t\t\t\tsave-preference-under="rgpdCookies"\n\t\t\t\t\t\t\tshow-once="false"\n\t\t\t\t\t\t\tng-show="$$showInfoTipRgpdCookie"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<i18n>rgpd.cookies.banner.text1</i18n>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class="right-magnet">\n\t\t\t\t\t\t\t\t<button type="button" ng-click="goToMyAccount()" class="cancel">\n\t\t\t\t\t\t\t\t\t<i18n>rgpd.cookies.banner.button.consult</i18n>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" ng-click="closeBanner()">\n\t\t\t\t\t\t\t\t\t<i18n>rgpd.cookies.banner.button.close</i18n>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</infotip>\n\t\t\t\t\t</div>\n\t\t\t\t')(t))}}}}]),module.directive("publicInfotip",["$compile","tracker",function(e,t){return{restrict:"E",transclude:!0,template:'\n\t\t<infotip\n\t\t\tname="showInfoTip"\n\t\t\tclass="info"\n\t\t\tstyle="position:fixed; bottom:0; right:20px; width: 400px; z-index: 1000"\n\t\t\tsave-preference-under="rgpdCookies"\n\t\t\tshow-once="false"\n\t\t\tng-show="$$showPublicInfoTipRgpdCookie">\n\t\t\t<p>\n\t\t\t\t<i18n>rgpd.cookies.banner.text2</i18n>\n\t\t\t</p>\n\t\t\t<div class="right-magnet">\n\t\t\t\t<button type="button" ng-click="closeBanner()">\n\t\t\t\t\t<i18n>rgpd.cookies.banner.button.close</i18n>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</infotip>\n\t\t',link:function(e,t,n){e.template=template_1.template,e.$$showPublicInfoTipRgpdCookie=!1;var r=window.localStorage.getItem("showInfoTip.cookies");modelDefinitions_1.model.me||"false"==r||(e.$$showPublicInfoTipRgpdCookie=!0),e.closeBanner=function(){e.$$showPublicInfoTipRgpdCookie=!1,window.localStorage.setItem("showInfoTip.cookies","false")}}}}]),module.directive("xiti",function(){return{restrict:"E",compile:function(e,t){return function(t){jQuery.getScript("/xiti/public/js/directive.js",function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){switch(n.label){case 0:return e.on("run.script",function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,window.xiti.run(t)];case 1:return e.sent(),[2]}})})}),t.$on("$destroy",function(){e.off()}),[4,window.xiti.run()];case 1:return n.sent(),[2]}})})})}}}}),module.directive("adminPortal",function(){return entcore_1.skin.skin="admin",entcore_1.skin.theme="/public/admin/default/",{restrict:"E",transclude:!0,templateUrl:"/public/admin/portal.html",compile:function(e,t,n){jquery_1.$("html").addClass("portal-container"),jquery_1.$("[logout]").attr("href","/auth/logout?callback="+entcore_1.skin.logoutCallback),http_1.http().get("/userbook/preference/admin").done(function(e){var t=e.preference?JSON.parse(e.preference):null;t&&t.path?ui.setStyle("/public/admin/"+t.path+"/"):ui.setStyle(entcore_1.skin.theme)}).error(function(e){ui.setStyle(entcore_1.skin.theme)})}}}),module.directive("portalStyles",function(){return{restrict:"EA",compile:function(e,t){"false"!=t.portalStyles&&jquery_1.$("html").addClass("portal-container"),jquery_1.$("[logout]").attr("href","/auth/logout?callback="+entcore_1.skin.logoutCallback),ui.setStyle(entcore_1.skin.theme)}}}),module.directive("defaultStyles",function(){return{restrict:"EA",link:function(e,t,n){"false"!=n.defaultStyles&&jquery_1.$("html").addClass("portal-container"),ui.setStyle(entcore_1.skin.theme)}}}),module.directive("skinSrc",function(){return{restrict:"A",scope:"&",link:function(e,t,n){if(jquery_1.$("#theme").attr("href")){var r=entcore_1.skin.basePath;n.$observe("skinSrc",function(){-1===n.skinSrc.indexOf("http://")&&-1===n.skinSrc.indexOf("https://")&&-1===n.skinSrc.indexOf("/workspace/")?t.attr("src",r+n.skinSrc):t.attr("src",n.skinSrc)})}}}}),module.directive("defaultSrc",function(){return{restrict:"A",scope:"&",link:function(e,t,n){t.bind("error",function(){void 0!=n.defaultSrc&&(-1===n.defaultSrc.indexOf("http://")&&-1===n.defaultSrc.indexOf("https://")&&-1===n.defaultSrc.indexOf("/workspace/")?t.attr("src",entcore_1.skin.basePath+n.defaultSrc):t.attr("src",n.defaultSrc),n.defaultSrc=void 0)})}}}),module.directive("localizedClass",function(){return{restrict:"A",link:function(e,t,n){n.$addClass(globals_1.currentLanguage)}}}),module.directive("pullDownMenu",function(){return{restrict:"E",transclude:!0,template:'<div class="pull-down-menu hide" ng-transclude></div>',controller:function(e){}}}),module.directive("pullDownOpener",function(){return{restrict:"E",require:"^pullDownMenu",transclude:!0,template:'<div class="pull-down-opener" ng-transclude></div>',link:function(e,t,n){t.find(".pull-down-opener").on("click",function(){var e=t.parents(".pull-down-menu");e.hasClass("hide")?(setTimeout(function(){jquery_1.$("body").on("click.pulldown",function(){e.addClass("hide"),jquery_1.$("body").unbind("click.pulldown")})},0),e.removeClass("hide")):(jquery_1.$("body").unbind("click.pulldown"),e.addClass("hide"))})}}}),module.directive("pullDownContent",function(){return{restrict:"E",require:"^pullDownMenu",transclude:!0,template:'<div class="wrapper"><div class="arrow"></div><div class="pull-down-content" ng-transclude></div></div>',link:function(e,t,n){}}}),module.directive("topNotification",function(){return{restrict:"E",template:'<div class="notify-top"><div class="notify-top-content" ng-bind-html="content"></div><div class="notify-top-actions"><span ng-click="cancel()">[[doConfirm ? labels().cancel : labels().ok]]</span><span ng-click="ok()" ng-show="doConfirm">[[labels().confirm]]</span> </div></div>',scope:{trigger:"=",confirm:"=",content:"=",labels:"&"},link:function(e,t,n){t.css("display","none"),e.doConfirm=!1,e.cancel=function(){e.trigger=!1},e.ok=function(){e.trigger=!1,e.confirm()},e.labels()||(e.labels=function(){return{confirm:idiom_1.idiom.translate("confirm"),cancel:idiom_1.idiom.translate("cancel"),ok:idiom_1.idiom.translate("ok")}}),e.$watch("trigger",function(e){e?t.slideDown():t.slideUp()}),e.$watch("confirm",function(t){e.doConfirm=!!t})}}}),module.directive("dropDownButton",function(){return{restrict:"E",transclude:"true",controller:["$scope",function(e){}],template:'<div class="drop-down-button hidden"><div ng-transclude></div></div>',link:function(e,t,n){t.on("click",".opener",function(){t.find(".drop-down-button").removeClass("hidden"),jquery_1.$(document).one("mousedown",function(e){setTimeout(function(){t.find(".drop-down-button").addClass("hidden")},200)})})}}}),module.directive("opts",function(){return{restrict:"E",require:"^dropDownButton",transclude:!0,template:'<div class="options"><ul ng-transclude></ul></div>',link:function(e,t,n){t.on("click","li",function(){t.parents(".drop-down-button").addClass("hidden")})}}}),module.directive("loadingIcon",function(){return{restrict:"E",link:function(e,t,n){var r=function(){if(0!==jquery_1.$("#theme").length){var e=entcore_1.skin.basePath+"/img/icons/anim_loading_small.gif";jquery_1.$("<img>").attr("src",e).attr("class",n.class).addClass("loading-icon").appendTo(t)}};"loading"===n.default&&r(),http_1.http().bind("request-started."+n.request,function(e){t.find("img").remove(),r()}),void 0===n.onlyLoadingIcon?http_1.http().bind("request-ended."+n.request,function(e){var n=entcore_1.skin.basePath+"/img/icons/checkbox-checked.png";t.find(".loading-icon").remove(),jquery_1.$("<img>").attr("src",n).appendTo(t)}):http_1.http().bind("request-ended."+n.request,function(e){t.find("img").remove()})}}}),module.directive("loadingPanel",function(){return{restrict:"A",link:function(e,t,n){n.$observe("loadingPanel",function(e){http_1.http().bind("request-started."+n.loadingPanel,function(e){var n=entcore_1.skin.basePath+"/img/illustrations/loading.gif";0===t.children(".loading-panel").length&&t.append('<div class="loading-panel"><h1>'+idiom_1.idiom.translate("loading")+'</h1><img src="'+n+'" /></div>')}),http_1.http().bind("request-ended."+n.loadingPanel,function(e){t.find(".loading-panel").remove()})})}}}),module.directive("behaviour",function(){return{restrict:"E",template:"<div ng-transclude></div>",replace:!1,transclude:!0,scope:{resource:"="},link:function(e,t,n){if(console.error('This directive is deprecated. Please use "authorize" instead.'),!n.name)throw"Behaviour name is required";var r=t.children("div");e.$watch("resource",function(t){e.resource instanceof Array&&void 0!==underscore_1._.find(e.resource,function(e){return!e.myRights||void 0===e.myRights[n.name]})||e.resource instanceof modelDefinitions_1.Model&&(!e.resource.myRights||void 0===e.resource.myRights[n.name])?r.hide():r.show()})}}}),module.directive("authorize",function(){return{restrict:"EA",link:function(e,t,n){if(void 0===n.name&&void 0===n.authorize)throw"Right name is required";var r=t.children("div"),i=function(){var i=e.$eval(n.resource),o=n.name||n.authorize;o&&i instanceof Array&&void 0!==underscore_1._.find(i,function(e){return!e.myRights||void 0===e.myRights[o]})||i instanceof modelDefinitions_1.Model&&(!i.myRights||void 0===i.myRights[o])?(r.remove(),t.hide()):(t.append(r),t.show())};n.$observe("name",i),n.$observe("authorize",i),e.$watch(function(){return e.$eval(n.resource)},i)}}}),module.directive("drawingZone",function(){return function(e,t,n){t.addClass("drawing-zone")}}),module.directive("resizable",function(){return{restrict:"A",link:function(e,t,n){ui.extendElement.resizable(t,{lock:{horizontal:t.attr("horizontal-resize-lock"),vertical:t.attr("vertical-resize-lock")},thickness:n.resizeThickness?parseInt(n.resizeThickness):void 0,preserveRatio:n.preserveRatio&&"false"!==n.preserveRatio})}}}),module.directive("draggable",function(){return{restrict:"A",link:function(e,t,n){"false"!=n.draggable&&void 0===n.native&&ui.extendElement.draggable(t,{mouseUp:function(){t.on("click",function(){e.$parent.$eval(n.ngClick)})},noScroll:void 0!==n.draggablePreventScroll})}}}),module.directive("progressBar",function(){return{restrict:"E",scope:{max:"=",filled:"=",unit:"@"},template:'<div class="progress-bar"><div class="filled" ng-style="{width: filledPercent + \'%\'}">[[filled]] <span translate content="[[unit]]"></span></div>[[max]] <span translate content="[[unit]]"></span></div>',link:function(e,t,n){function r(){e.filledPercent=100*e.filled/e.max,e.filledPercent<10?t.find(".filled").addClass("small"):t.find(".filled").removeClass("small")}e.filledPercent=0,e.$watch("filled",function(e){r()}),e.$watch("max",function(e){r()})}}});var getDatePickerFormat=function(){return"datepicker.format"==idiom_1.idiom.translate("datepicker.format")?"dd/mm/yyyy":idiom_1.idiom.translate("datepicker.format")},getDatePickerMomentFormat=function(){return getDatePickerFormat().toUpperCase()},DatepickerController=function(){function e(e){this.element=e,this._started=!1}return e.prototype.init=function(e){if(this.element.datepicker){var t=this.element.datepicker(e);return this._started=!0,t}throw"[DatepickerController.init] datepicker plugin is not ready"},e.prototype.hide=function(){this._started&&this.element.datepicker("hide")},e.prototype.show=function(){this._started&&this.element.datepicker("show")},e.prototype.setValue=function(e){this._started&&this.element.datepicker("setValue",e)},e.prototype.destroy=function(){this._started&&this.element.datepicker("destroy"),this._started=!1},e}();module.directive("datePicker",["$compile","$timeout",function(e,t){return{scope:{minDate:"=",ngModel:"=",ngChange:"&",datePickerDelegate:"="},transclude:!0,replace:!0,restrict:"E",require:"ngModel",template:'<input ng-transclude type="text" ng-readonly="isreadonly"/>',link:function(e,t,n,r){e.modelCtrl=r;var i=function(){return e.datePickerDelegate},o=function(){i()&&i().onValidationChange&&i().onValidationChange({valid:r.$valid})};e.$watch("modelCtrl.$valid",function(){return o()}),e.$on("$destroy",function(){i()&&i().onDestroy&&i().onDestroy({ngModel:r})}),i()&&i().onInit&&i().onInit({ngModel:r});var s=getDatePickerFormat(),a=getDatePickerMomentFormat();e.isreadonly=!!n.readonly;var u=new DatepickerController(t),c=function(e){return moment_1.moment(e,["DD/MM/YYYY","YYYY-MM-DD","YYYY-MM-DD[T]HH:mm:ss.SSS[Z]","YYYY-MM-DD[T]HH:mm:ss.SSS","YYYY-MM-DD[T]HH:mm:ss"],!0)};r.$formatters.push(function(e){var t=function(e){return"string"==typeof e?c(e):e instanceof Date?moment_1.moment(e):"object"==typeof e&&e.isValid?e:null}(e);return t&&t.isValid&&t.isValid()?(d(t),t.format(a)):""});var l=function(e){return e?moment_1.moment(e,[a,"YYYY-MM-DD"],!0):null};r.$parsers.push(function(e){var t=l(e);return t&&t.isValid&&t.isValid()?(d(t),t.toDate()):r.$modelValue}),r.$validators.validDateMoment=function(e,t){var n=l(t);return!n||!n.isValid||n.isValid()};var d=function(e){if(e&&e.isValid&&e.isValid()){var t=e.format(a);u.setValue(t)}};r.$viewChangeListeners.push(function(){var t=e.minDate;t&&t.setHours(0,0,0,0),t&&r.$modelValue<t?setTimeout(function(){r.$setViewValue(moment_1.moment(t).format(a))}):setTimeout(function(){e.$parent.$eval(e.ngChange),e.$parent.$apply()})});var h=function(){r.$setViewValue(t.val())};e.minDate&&e.$watch("minDate",function(e){h()}),http_1.http().loadScript("/"+globals_1.infraPrefix+"/public/js/bootstrap-datepicker.js").then(function(){var e=moment_1.moment.weekdays().indexOf(moment_1.moment.weekdays(!0)[0]);u.init({format:s,weekStart:e,dates:{months:moment_1.moment.months(),monthsShort:moment_1.moment.monthsShort(),days:moment_1.moment.weekdays(),daysShort:moment_1.moment.weekdaysShort(),daysMin:moment_1.moment.weekdaysMin()}}).on("changeDate",function(){h(),u.hide()}),u.hide()});var f=function(e){(!e.originalEvent||t[0]!==e.originalEvent.target&&0===jquery_1.$(".datepicker").find(e.originalEvent.target).length)&&u.hide()};jquery_1.$("body, lightbox").on("click",f),jquery_1.$("body, lightbox").on("focusin",f),t.on("focus",function(){jquery_1.$(this).parents("form").on("submit",function(){u.hide()}),u.show()}),t.on("$destroy",function(){u.hide()})}}}]),module.directive("datePickerIcon",function(){return{scope:{ngModel:"=",ngChange:"&"},replace:!0,restrict:"E",template:'<div class="date-picker-icon"> <input type="text" class="hiddendatepickerform" style="visibility: hidden; width: 0px; height: 0px; float: inherit"/> <a ng-click="openDatepicker()"><i class="calendar"></i></a> </div>',link:function(e,t,n){http_1.http().loadScript("/"+globals_1.infraPrefix+"/public/js/bootstrap-datepicker.js").then(function(){var n=getDatePickerFormat(),r=getDatePickerMomentFormat(),i=t.find(".hiddendatepickerform");i.value=moment_1.moment(new Date).format(r);var o=moment_1.moment.weekdays().indexOf(moment_1.moment.weekdays(!0)[0]);i.datepicker({format:n,weekStart:o,dates:{months:moment_1.moment.months(),monthsShort:moment_1.moment.monthsShort(),days:moment_1.moment.weekdays(),daysShort:moment_1.moment.weekdaysShort(),daysMin:moment_1.moment.weekdaysMin()}}).on("changeDate",function(t){e.ngModel=t.date,e.$apply("ngModel"),jquery_1.$(this).datepicker("hide"),"function"==typeof e.ngChange&&e.ngChange()}),i.datepicker("hide"),e.openDatepicker=function(){i.datepicker("show")}})}}}),module.directive("filters",function(){return{restrict:"E",template:'<div class="row line filters"><div class="filters-icons"><ul ng-transclude></ul></div></div><div class="row"></div> ',transclude:!0,link:function(e,t,n){}}}),module.directive("alphabetical",["$parse",function(e){return{restrict:"E",controller:["$scope",function(e){e.letters=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","#"],e.matchingElements={},e.matching=function(t){return function(n){return n[e.title][0].toUpperCase()===t||"#"===t&&n[e.title][0].toLowerCase()===n[e.title][0].toUpperCase()}},e.updateElements=function(){e.letters.forEach(function(t){e.matchingElements[t]=underscore_1._.filter(e.collection(e),function(n){return n[e.title][0].toUpperCase()===t||"#"===t&&n[e.title][0].toLowerCase()===n[e.title][0].toUpperCase()})})},e.display||(e.display={}),e.display.pickLetter}],compile:function(t,n){var r=n.list,i=t.html();i=i.replace('<div class="item"','<div ng-repeat="'+r+' |filter: matching(letter)" class="item"'),t.html('<lightbox class="letter-picker" show="display.pickLetter" on-close="display.pickLetter = false;"><div ng-repeat="letter in letters"><h2 ng-click="viewLetter(letter)" class="cell" ng-class="{disabled: matchingElements[letter].length <= 0 }">[[letter]]</h2></div></lightbox><div ng-repeat="letter in letters"><div ng-if="matchingElements[letter].length > 0" class="row"><h1 class="letter-picker" ng-click="display.pickLetter = true;" id="alphabetical-[[letter]]">[[letter]]</h1><hr class="line" /><div class="row">'+i+'</div></div><div ng-if="matchingElements[letter].length > 0" class="row"></div></div>'),t.addClass("alphabetical");var o=r.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),s=o[2];return function(t,n,r){t.title=r.title||"title",n.removeAttr("title"),t.collection=e(s),t.$watchCollection(s,function(e){t.updateElements()}),t.updateElements(),t.viewLetter=function(e){document.getElementById("alphabetical-"+e).scrollIntoView(),t.display.pickLetter=!1}}}}}]),module.directive("completeClick",["$parse",function(e){return{compile:function(t,n){var r=e(n.completeClick);return function(e,t,n){t.on("click",function(t){e.$apply(function(){r(e,{$event:t})})})}}}}]),module.directive("dragstart",["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=e(r.dragstart),o=e(r.ngModel);if(void 0!==r.dragcondition&&!1===t.$eval(r.dragcondition))return void n.attr("draggable","false");n.attr("draggable","true"),n.attr("native",""),n.on("dragstart",function(e){if(o&&o(t))try{e.originalEvent.dataTransfer.setData("application/json",JSON.stringify(o(t)))}catch(n){e.originalEvent.dataTransfer.setData("Text",JSON.stringify(o(t)))}""!==r.dragstart&&i(t,{$originalEvent:e.originalEvent})}),n.on("$destroy",function(){n.off()})}}}]),module.directive("dragend",["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=e(r.dragend);n.on("dragend",function(e){""!==r.dragend&&i(t,{$originalEvent:e.originalEvent})}),n.on("$destroy",function(){n.off()})}}}]),module.directive("dragdrop",["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=e(r.dragdrop),o=e(r.dropcondition);n.on("dragover",function(e){(void 0===r.dropcondition||o(t,{$originalEvent:e.originalEvent}))&&(e.preventDefault(),e.stopPropagation(),t.$eval(r.onDragover),n.addClass("droptarget"))}),n.on("dragleave",function(e){e.preventDefault(),e.stopPropagation(),n.removeClass("droptarget")}),n.on("drop",function(e){e.originalEvent.preventDefault(),n.removeClass("droptarget");var r;try{r=JSON.parse(e.originalEvent.dataTransfer.getData("application/json"))}catch(t){r=JSON.parse(e.originalEvent.dataTransfer.getData("Text"))}i(t,{$originalEvent:e.originalEvent,$item:r})}),t.$on("$destroy",function(){n.off()})}}}]),module.directive("dropFiles",["$parse",function(e){return{link:function(t,n,r){var i=e(r.dropFiles);n.on("dragover",function(e){e.preventDefault(),t.$eval(r.onDrag),n.addClass("droptarget")}),n.on("dragleave",function(e){e.preventDefault(),t.$eval(r.onLeave),n.removeClass("droptarget")}),n.on("drop",function(e){e.preventDefault(),i.assign(t,e.originalEvent.dataTransfer.files),t.$eval(r.onDrop),t.$apply(),n.removeClass("droptarget")})}}}]),module.directive("attachments",["$parse",function(e){return{scope:!0,restrict:"E",templateUrl:"/assets/js/entcore/template/attachments.html",controller:["$scope",function(e){e.linker={resource:{}},e.attachments={me:modelDefinitions_1.model.me,display:{search:{text:"",application:{}},pickFile:!1},addAttachment:function(t){t.provider=e.attachments.display.search.application,e.ngModel(e)instanceof Array?e.ngModel(e).push(t):e.ngModel.assign(e,[t]),e.attachments.display.pickFile=!1},removeAttachment:function(t){e.ngModel.assign(e,underscore_1._.reject(e.ngModel(e),function(e){return e===t}))},attachmentsList:function(){return e.list=e.ngModel(e),e.list}}}],link:function(t,n,r){t.ngModel=e(r.ngModel),t.attachments.onChange=function(){t.$eval(r.onChange)},t.apps=t.$eval(r.apps),t.$watch(function(){return t.attachments.display.pickFile},function(e){e?t.attachments.loadApplicationResources(function(){t.attachments.searchApplication(),t.attachments.display.search.text=" ",t.$apply("attachments")}):t.attachments.display.search.text=""},!0),http_1.http().get("/resources-applications").done(function(e){t.attachments.apps=underscore_1._.filter(modelDefinitions_1.model.me.apps,function(n){return underscore_1._.find(e,function(e){return-1!==n.address.indexOf(e)&&n.icon})&&underscore_1._.find(t.apps,function(e){return-1!==n.address.indexOf(e)})}),t.attachments.display.search.application=t.attachments.apps[0],t.attachments.loadApplicationResources(function(){}),t.$apply("attachments")}),t.attachments.loadApplicationResources=function(e){e||(e=function(){t.attachments.display.searchApplication(),t.$apply("attachments")});var n=t.attachments.display.search.application.address.split("/");t.prefix=n[n.length-1],behaviours_1.Behaviours.loadBehaviours(t.prefix,function(n){n.loadResources(e),t.attachments.addResource=n.create})},t.attachments.searchApplication=function(){var e=t.attachments.display.search.application.address.split("/");t.prefix=e[e.length-1],behaviours_1.Behaviours.loadBehaviours(t.prefix,function(e){t.attachments.resources=underscore_1._.filter(e.resources,function(e){return""!==t.attachments.display.search.text&&(-1!==idiom_1.idiom.removeAccents(e.title.toLowerCase()).indexOf(idiom_1.idiom.removeAccents(t.attachments.display.search.text).toLowerCase())||e._id===t.attachments.display.search.text)})})},t.linker.createResource=function(){var e=t.attachments.display.search.application.address.split("/"),n=e[e.length-1];behaviours_1.Behaviours.loadBehaviours(n,function(e){e.create(t.linker.resource,function(e,n){t.ngModel(t)instanceof Array||t.ngModel.assign(t,[]),t.attachments.display.pickFile=!1;var r=underscore_1._.find(e,function(e){return e._id===n._id});r.provider=t.attachments.display.search.application,t.ngModel(t).push(r),t.$apply()})})}}}}]),module.directive("ngTouchstart",function(){return{restrict:"A",scope:!0,link:function(e,t,n){t.on("touchstart",function(){e.$eval(n.ngTouchstart)}),n.ngTouchend&&jquery_1.$("body").on("touchend",function(){e.$eval(n.ngTouchend)})}}}),module.directive("sidePanel",function(){return{restrict:"E",transclude:!0,template:'<div class="opener"></div><div class="toggle"><div class="content" ng-transclude></div></div>',link:function(e,t,n){t.addClass("hidden"),t.children(".opener").on("click",function(e){t.hasClass("hidden")&&(t.removeClass("hidden"),setTimeout(function(){jquery_1.$("body").on("click.switch-side-panel",function(e){t.children(".toggle").find(e.originalEvent.target).length||(t.addClass("hidden"),jquery_1.$("body").off("click.switch-side-panel"))})},0))})}}}),module.directive("plus",function(){return{restrict:"E",transclude:!0,template:'<div class="opener"><div class="plus"></div><div class="minus"></div></div><section class="toggle-buttons"><div class="toggle" ng-transclude></div></div>',link:function(e,t,n){t.children(".toggle-buttons").addClass("hide"),t.children(".opener").addClass("plus"),t.children(".opener").on("click",function(e){t.children(".toggle-buttons").hasClass("hide")&&(t.children(".toggle-buttons").removeClass("hide"),t.children(".opener").removeClass("plus").addClass("minus"),setTimeout(function(){jquery_1.$("body").on("click.switch-plus-buttons",function(e){t.children(".toggle-buttons").addClass("hide"),t.children(".opener").removeClass("minus").addClass("plus"),jquery_1.$("body").off("click.switch-plus-buttons")})},0))})}}}),module.directive("stickToTop",function(){return{restrict:"EA",link:function(e,t,n){if(!("noStickMobile"in n&&ui.breakpoints.checkMaxWidth("wideScreen"))){var r=null,i=(jquery_1.$(window).scrollTop(),jquery_1.$(window).scrollTop()),o=function(){t.addClass("scrolling");var e=jquery_1.$(".height-marker").height();null==e&&(e=0);var n=null==i?0:i,r=t.offset().top,s=r+(n+e-r)/20;t.offset({top:s<0?0:s}),requestAnimationFrame(o)},s=!1;jquery_1.$(window).scroll(function(){r||(r=t.offset().top),i=jquery_1.$(window).scrollTop();var e=jquery_1.$(".height-marker").height();null==e&&(e=0),i<=r-e&&(i=r-e),s||o(),s=!0})}}}}),module.directive("floatingNavigation",function(){return{restrict:"E",replace:!0,transclude:!0,scope:{},template:'<nav class="vertical hash-magnet floating" stick-to-top><div class="previous arrow" ng-class="{ visible: step > 0 }"></div><div class="content" ng-transclude></div><div class="next arrow" ng-class="{ visible: step < stepsLength && stepsLength > 0 }"></div></nav>',link:function(e,t,n){var r;e.step=0,setTimeout(function(){r=t.offset(),t.height(jquery_1.$(window).height()-parseInt(t.css("margin-bottom"))-100),e.stepsLength=parseInt(t.find(".content")[0].scrollHeight/t.height())},800),t.find(".arrow.next").on("click",function(){e.step++,e.$apply(),t.find(".content").animate({scrollTop:t.height()*e.step},450)}),t.find(".arrow.previous").on("click",function(){e.step--,e.$apply(),t.find(".content").animate({scrollTop:t.height()*e.step},450)})}}}),module.directive("multiCombo",function(){return{restrict:"E",replace:!1,scope:{title:"@",comboModel:"=",filteredModel:"=",searchOn:"@",orderBy:"@",filterModel:"&",searchPlaceholder:"@",maxSelected:"@",labels:"&",disable:"&",selectionEvent:"&",deselectionEvent:"&"},templateUrl:"/assets/js/entcore/template/multi-combo.html",controller:["$scope","$filter","$timeout",function(e,t,n){e.search={input:"",reset:function(){this.input=""}},e.show=!1,e.toggleVisibility=function(){e.show=!e.show,e.show&&(e.addClickEvent(),e.search.reset(),n(function(){e.setComboPosition()},1))},e.filteredModel&&e.filteredModel instanceof Array||(e.filteredModel=[]),e.isSelected=function(t){return e.filteredModel.indexOf(t)>=0},e.toggleItem=function(t){var n=e.filteredModel.indexOf(t);n>=0?(e.filteredModel.splice(n,1),e.deselectionEvent()instanceof Function&&e.deselectionEvent()()):(!e.maxSelected||e.filteredModel.length<e.maxSelected)&&(e.filteredModel.push(t),e.selectionEvent()instanceof Function&&e.selectionEvent()())},e.selectAll=function(){e.filteredModel.length=0;for(var t=0;t<e.filteredComboModel.length;t++)e.filteredModel.push(e.filteredComboModel[t]);e.selectionEvent()instanceof Function&&e.selectionEvent()()},e.deselectAll=function(){e.filteredModel.length=0,e.deselectionEvent()instanceof Function&&e.deselectionEvent()()},e.fairInclusion=function(e,t){return idiom_1.idiom.removeAccents(e.toLowerCase()).indexOf(idiom_1.idiom.removeAccents(t.toLowerCase()))>=0},e.filteringFun=function(t){var n=!e.filterModel()||e.filterModel()(t);return e.searchOn&&t instanceof Object?n&&e.fairInclusion(t[e.searchOn],e.search.input):n&&e.fairInclusion(t,e.search.input)},e.display=function(e){return e instanceof Object?e.toString():e},e.$watchCollection("comboModel",function(){if(!e.comboModel)return void(e.filteredModel=[]);for(var t=0;t<e.filteredModel.length;t++){var n=e.comboModel.indexOf(e.filteredModel[t]);n<0&&(e.filteredModel.splice(n,1),t--)}})}],link:function(e,t,n){if(!n.comboModel||!n.filteredModel)throw"[<multi-combo> directive] Error: combo-model & filtered-model attributes are required.";if(e.maxSelected=parseInt(e.maxSelected),!isNaN(e.maxSelected)&&e.maxSelected<1)throw"[<multi-combo> directive] Error: max-selected must be an integer greater than 0.";e.addClickEvent=function(){if(e.show){var n=(new Date).getTime();jquery_1.$("body").on("click.multi-combo"+n,function(r){t.find(r.originalEvent.target).length||(e.show=!1,jquery_1.$("body").off("click.multi-combo"+n),e.$apply())})}},e.setComboPosition=function(){t.css("position","relative"),t.find(".multi-combo-root-panel").css("top",t.find(".multi-combo-root-button").outerHeight())},e.setComboPosition()}}}),module.directive("slide",function(){return{restrict:"A",scope:!1,link:function(e,t,n){e.$watch(function(){return e.$eval(n.slide)},function(e){e?t.slideDown():t.slideUp()}),e.$eval(n.slide)||t.hide()}}}),module.directive("sideNav",function(){return{restrict:"AE",link:function(e,t,n){function r(){ui.breakpoints.checkMaxWidth(o)?(t.height(jquery_1.$(window).height()),jquery_1.$(".mobile-nav-opener").hasClass("visible")&&i.find(".application-title").addClass("move-right"),ui.extendElement.touchEvents(i,{exclude:["longclick"],allowDefault:!0}),ui.extendElement.touchEvents(t,{exclude:["longclick"]}),i.on("swipe-right",function(){t.addClass("slide")}),t.on("swipe-left",function(){t.removeClass("slide"),jquery_1.$("body").removeClass("point-out")})):t.height("auto")}var i=jquery_1.$("body");jquery_1.$(".mobile-nav-opener").addClass("visible");var o=ui.breakpoints.tablette;n.targetElement;t.addClass("side-nav"),jquery_1.$("body").addClass("transition"),jquery_1.$(".mobile-nav-opener").on("click",function(){t.hasClass("slide")?(t.removeClass("slide"),jquery_1.$("body").removeClass("point-out")):(t.addClass("slide"),jquery_1.$("body").addClass("point-out"))}),jquery_1.$("body").on("click",function(e){t[0]===e.target||t.find(e.target).length||jquery_1.$(".mobile-nav-opener")[0]===e.target||(t.removeClass("slide"),jquery_1.$("body").removeClass("point-out"))}),n.maxWidth&&(o=parseInt(n.maxWidth)),r(),jquery_1.$(window).on("resize",r),e.$on("$destroy",function(){jquery_1.$(".mobile-nav-opener").removeClass("visible"),i.find(".application-title").removeClass("move-right")})}}}),module.directive("appTitle",["$compile",function(e){return{restrict:"E",link:function(t,n,r){function i(){var n=jquery_1.$("app-title").html(),r=jquery_1.$("header.main .application-title");ui.breakpoints.checkMaxWidth("tablette")?r.length||jquery_1.$("header.main").append(e(n)(t)):r.remove()}n.find("h1").addClass("application-title"),i(),jquery_1.$(window).on("resize",i),t.$on("$destroy",function(){jquery_1.$("body").find("header.main .application-title").remove()})}}}]),module.directive("microbox",["$compile",function(e){return{restrict:"E",compile:function(t,n,r){var i=t.html();return function(t,n,r){function o(r){ui.breakpoints.checkMaxWidth("tablette")?jquery_1.$(".microbox-wrapper").length||(jquery_1.$("body").append('<div class="microbox-wrapper zero"><div class="microbox-content"><i class="close-2x"></i><div class="microbox-material"></div><button class="microbox-close">'+a+"</button></div></div>"),jquery_1.$(".microbox-material").html(e(i)(t)),n.after('<button class="microbox">'+s+"</button>"),jquery_1.$("button.microbox").on("click",function(){jquery_1.$(".microbox-wrapper").hasClass("zero")&&jquery_1.$(".microbox-wrapper").removeClass("zero")}),jquery_1.$("button.microbox-close, .microbox-content i.close-2x").on("click",function(){jquery_1.$(".microbox-wrapper").hasClass("zero")||jquery_1.$(".microbox-wrapper").addClass("zero")}),r&&t.$apply()):(jquery_1.$(".microbox-wrapper").remove(),jquery_1.$("button.microbox").remove())}var s=idiom_1.idiom.translate(r.microtitle),a=idiom_1.idiom.translate(r.close);n.addClass("zero-mobile"),o(),jquery_1.$(window).on("resize",function(){o(!0)}),t.$on("$destroy",function(){jquery_1.$("body").find("button.microbox").remove(),jquery_1.$("body").find(".microbox-content").remove()})}}}}]),module.directive("subtitle",function(){return{restrict:"A",scope:!1,link:function(e,t,n){jquery_1.$("section.main").addClass("subtitle-push"),e.$on("$destroy",function(){jquery_1.$("section.main").removeClass("subtitle-push")})}}}),module.directive("whereami",function(){return{restrict:"A",scope:!1,link:function(e,t,n){t.addClass("whereami");var r=jquery_1.$("nav.side-nav a.selected").html();jquery_1.$("body").on("whereami.update",function(){t.html(jquery_1.$("nav.side-nav a.selected").html())}),t.html(r)}}});var checkToolDelay=function(){var e=!0;return function(t){e&&(e=!1,setTimeout(function(){t.$apply(),e=!0},200))}}();module.directive("checkTool",function(){return{restrict:"E",scope:{ngModel:"=",ngClick:"&",ngChange:"&"},template:'<div class="check-tool"><i class="check-status"></i></div>',link:function(e,t,n){t.on("click",function(){e.ngModel=!e.ngModel,checkToolDelay(e),e.ngModel?t.addClass("selected"):t.removeClass("selected"),e.ngClick&&e.ngClick(),e.ngChange&&e.ngChange(),checkToolDelay(e)}),jquery_1.$("body").on("click",function(n){0!==jquery_1.$(n.target).parents(".check-tool, .toggle, .lightbox").length||jquery_1.$(n.target).is(".lightbox")||"CHECK-TOOL"===n.target.nodeName||0===jquery_1.$("body").find(n.target).length||(e.ngModel=!1,t.removeClass("selected"),checkToolDelay(e),e.ngChange&&(e.ngChange(),checkToolDelay(e)))})}}}),module.directive("subtitle",function(){return{restrict:"A",scope:!1,link:function(e,t,n){jquery_1.$("section.main").addClass("subtitle-push"),e.$on("$destroy",function(){jquery_1.$("section.main").removeClass("subtitle-push")})}}}),module.directive("whereami",function(){return{restrict:"A",scope:!1,link:function(e,t,n){var r=jquery_1.$("nav.side-nav a.selected").text();jquery_1.$("body").on("whereami.update",function(){t.text(jquery_1.$("nav.side-nav a.selected").text())}),t.text(r)}}}),module.controller("Account",["$scope",function(e){e.nbNewMessages=0,e.messagerieLink="/zimbra/zimbra",e.me=modelDefinitions_1.model.me,e.rand=Math.random(),e.skin=entcore_1.skin,e.lang=idiom_1.idiom,e.currentLanguage=globals_1.currentLanguage,e.refreshAvatar=function(){http_1.http().get("/userbook/api/person",{},{requestName:"refreshAvatar"}).done(function(t){e.avatar=t.result[0].photo,e.avatar&&"no-avatar.jpg"!==e.avatar&&"no-avatar.svg"!==e.avatar||(e.avatar=entcore_1.skin.basePath+"/img/illustrations/no-avatar.svg"),e.username=modelDefinitions_1.model.me.firstName,modelDefinitions_1.model.me.profiles=t.result[0].type,e.$apply()})},e.goToMessagerie=function(){console.log(e.messagerieLink),http_1.http().get("/userbook/preference/zimbra").done(function(t){try{t.preference&&(JSON.parse(t.preference).modeExpert&&modelDefinitions_1.model.me.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth"))?(e.messagerieLink="/zimbra/preauth",window.open(e.messagerieLink)):(e.messagerieLink="/zimbra/zimbra",window.location.href=window.location.origin+e.messagerieLink),console.log(e.messagerieLink)}catch(t){e.messagerieLink="/zimbra/zimbra"}})},e.refreshMails=function(){modelDefinitions_1.model.me.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view")?http_1.http().get("/zimbra/count/INBOX",{unread:!0}).done(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")}):http_1.http().get("/conversation/count/INBOX",{unread:!0}).done(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")})},e.openApps=function(e){jquery_1.$(window).width()<=700&&e.preventDefault()},http_1.http().get("/directory/userbook/"+modelDefinitions_1.model.me.userId).done(function(t){modelDefinitions_1.model.me.userbook=t,e.$apply("me")}),entcore_1.skin.listThemes(function(t){e.themes=t,e.$apply("themes")}),e.$root.$on("refreshMails",e.refreshMails),e.refreshMails(),e.refreshAvatar(),e.currentURL=window.location.href}]),module.controller("Admin",["$scope",function(e){e.urls=[],http_1.http().get("/admin-urls").done(function(t){e.urls=t,e.$apply("urls")}),e.getHighlight=function(e){return window.location.href.indexOf(e.url)>=0},e.orderUrls=function(t){return e.getHighlight(t)?0:1},e.filterUrls=function(e){return!(e.allowed&&e.allowed instanceof Array)||underscore_1._.find(modelDefinitions_1.model.me.functions,function(t){return underscore_1._.contains(e.allowed,t.code)})},e.scrollUp=ui.scrollToTop}]),module.config(["$locationProvider",function(e){e.hashPrefix("")}]),jquery_1.$(document).ready(function(){setTimeout(function(){globals_1.routes.routing&&module.config(globals_1.routes.routing),lib_1.bootstrap(function(){function start(){idiom_1.idiom.addBundle("/i18n",function(){idiom_1.idiom.addBundle("/"+globals_1.appPrefix+"/i18n",function(){"fr"===globals_1.currentLanguage?(moment_1.moment.locale(globals_1.currentLanguage),moment_1.moment.updateLocale(globals_1.currentLanguage,moment_1.frLocales)):moment_1.moment.locale(globals_1.currentLanguage),angular_1.angular.bootstrap(jquery_1.$("html"),["app"]),modelDefinitions_1.model.trigger("bootstrap"),modelDefinitions_1.model.bootstrapped=!0,modelDefinitions_1.model.sync()})})}entcore_1.RTE.addDirectives(module),window.entcore.ng.init&&window.entcore.ng.init(module),modelDefinitions_1.model.build(),idiom_1.idiom.addDirectives(module),http_1.http().get(entcore_1.skin.basePath+"js/directives.js").done(function(d){eval(d),"function"==typeof entcore_1.skin.addDirectives?entcore_1.skin.addDirectives(module,start):start()}).error(function(){start()})})},10)}),module.controller("SearchPortal",["$scope",function(e){e.launchSearch=function(t){var n=e.mysearch;"link"!=t&&t.stopPropagation(),"link"!=t&&13!=t.keyCode||(n=n&&""!==n?n:" ",e.mysearch="",window.location.href="/searchengine#/"+n)}}]),exports.injectIntoSelector=injectIntoSelector,module.directive("cguLightbox",[function(){return{restrict:"E",scope:!0,templateUrl:template_1.template.viewPath+"entcore/cgu-lightbox.html",link:function(e,t,n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return e.show=!1,!me_1.Me.session.needRevalidateTerms||me_1.Me.session.deletePending?[3,2]:[4,Promise.all([idiom_1.idiom.addBundlePromise("/i18n"),idiom_1.idiom.addBundlePromise("/auth/i18n")])];case 1:return n.sent(),e.model={accept:!1},t="/auth/logout?callback="+entcore_1.skin.logoutCallback,e.title=idiom_1.idiom.translate("cgu.revalidate.title"),e.content=idiom_1.idiom.translate("cgu.revalidate.content"),e.userChartUrl=idiom_1.idiom.translate("auth.charter"),e.cguUrl=idiom_1.idiom.translate("cgu.file"),e.actionText=idiom_1.idiom.translate("cgu.revalidate.action"),e.show=!0,e.isDisabled=function(){return!e.model.accept},e.logout=function(){window.location.href=t},e.validate=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return[4,me_1.Me.revalidateTerms()];case 1:return t.sent(),e.show=!1,e.$apply(),[2]}})})},e.$apply(),[3,3];case 2:e.show=!1,n.label=3;case 3:return[2]}})})}}}]),module.directive("onEnter",function(){return function(e,t,n){t.bind("keydown keypress",function(t){13===t.which&&(e.$apply(function(){e.$eval(n.onEnter)}),t.preventDefault())})}}),module.service("CounterService",[function(){var e=function(){this.count=1};return e.prototype.increase=function(){return++this.count},e}()])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.$=n(2),window.jQuery=t.$,window.entcore||(window.entcore={}),window.entcore.jQuery=t.$,window.entcore.$=t.$,window.$=t.$},function(e,t,n){var r,i;/*!
|
|
4
4
|
* jQuery JavaScript Library v3.7.1
|
|
5
5
|
* https://jquery.com/
|
|
@@ -165,21 +165,21 @@ var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:
|
|
|
165
165
|
function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(i[r],+e)}function r(e,t){var n,r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):e?(n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",r[n][e.day()]):r.nominative}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";
|
|
166
166
|
//! moment.js locale configuration
|
|
167
167
|
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.wordExtensions=new Set,this.excelExtensions=new Set,this.pptExtensions=new Set,this.fileExtensionMap=new Map,this.csvContentType=new Set,this.csvExtensions=new Set,this.txtExtensions=new Set,this.PDF="application/pdf",this.OCTET_STREAM="application/octet-stream",this.txtExtensions.add("txt"),this.wordExtensions.add("doc"),this.wordExtensions.add("dot"),this.wordExtensions.add("docx"),this.wordExtensions.add("dotx"),this.wordExtensions.add("docm"),this.wordExtensions.add("dotm"),this.wordExtensions.add("odt"),this.wordExtensions.add("ott"),this.wordExtensions.add("oth"),this.wordExtensions.add("odm"),this.excelExtensions.add("xls"),this.excelExtensions.add("xlt"),this.excelExtensions.add("xla"),this.excelExtensions.add("xlsx"),this.excelExtensions.add("xltx"),this.excelExtensions.add("xlsm"),this.excelExtensions.add("xltm"),this.excelExtensions.add("xlam"),this.excelExtensions.add("xlsb"),this.excelExtensions.add("ods"),this.excelExtensions.add("ots"),this.pptExtensions.add("ppt"),this.pptExtensions.add("pot"),this.pptExtensions.add("pps"),this.pptExtensions.add("ppa"),this.pptExtensions.add("pptx"),this.pptExtensions.add("potx"),this.pptExtensions.add("ppsx"),this.pptExtensions.add("ppam"),this.pptExtensions.add("pptm"),this.pptExtensions.add("potm"),this.pptExtensions.add("ppsm"),this.pptExtensions.add("odp"),this.pptExtensions.add("otp"),this.csvExtensions.add("csv"),this.fileExtensionMap.set("doc","application/msword"),this.fileExtensionMap.set("dot","application/msword"),this.fileExtensionMap.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),this.fileExtensionMap.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),this.fileExtensionMap.set("docm","application/vnd.ms-word.document.macroEnabled.12"),this.fileExtensionMap.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),this.fileExtensionMap.set("xls","application/vnd.ms-excel"),this.fileExtensionMap.set("xlt","application/vnd.ms-excel"),this.fileExtensionMap.set("xla","application/vnd.ms-excel"),this.fileExtensionMap.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),this.fileExtensionMap.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),this.fileExtensionMap.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),this.fileExtensionMap.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),this.fileExtensionMap.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),this.fileExtensionMap.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),this.fileExtensionMap.set("ppt","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pot","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pps","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("ppa","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),this.fileExtensionMap.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),this.fileExtensionMap.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),this.fileExtensionMap.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),this.fileExtensionMap.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),this.fileExtensionMap.set("odt","application/vnd.oasis.opendocument.text"),this.fileExtensionMap.set("ott","application/vnd.oasis.opendocument.text-template"),this.fileExtensionMap.set("oth","application/vnd.oasis.opendocument.text-web"),this.fileExtensionMap.set("odm","application/vnd.oasis.opendocument.text-master"),this.fileExtensionMap.set("odg","application/vnd.oasis.opendocument.graphics"),this.fileExtensionMap.set("otg","application/vnd.oasis.opendocument.graphics-template"),this.fileExtensionMap.set("odp","application/vnd.oasis.opendocument.presentation"),this.fileExtensionMap.set("otp","application/vnd.oasis.opendocument.presentation-template"),this.fileExtensionMap.set("ods","application/vnd.oasis.opendocument.spreadsheet"),this.fileExtensionMap.set("ots","application/vnd.oasis.opendocument.spreadsheet-template"),this.fileExtensionMap.set("odc","application/vnd.oasis.opendocument.chart"),this.fileExtensionMap.set("odf","application/vnd.oasis.opendocument.formula"),this.fileExtensionMap.set("odb","application/vnd.oasis.opendocument.database"),this.fileExtensionMap.set("odi","application/vnd.oasis.opendocument.image"),this.fileExtensionMap.set("oxt","application/vnd.openofficeorg.extension"),this.fileExtensionMap.set("txt","text/plain"),this.csvContentType.add("text/comma-separated-values"),this.csvContentType.add("text/csv"),this.csvContentType.add("application/csv")}return e.prototype.getContentTypeForExtension=function(e){return this.fileExtensionMap.has(e)?this.fileExtensionMap.get(e):null},e.prototype.getExtensionForContentType=function(e){for(var t=0,n=Array.from(this.fileExtensionMap.keys());t<n.length;t++){var r=n[t];if((this.fileExtensionMap.get(r)||"").toLowerCase()==(e||"").toLowerCase())return r}return null},e.prototype.isWordLike=function(e,t){var n=this.getExtensionForContentType(e);return n?this.wordExtensions.has(n):!(e!=this.OCTET_STREAM||!t)&&this.wordExtensions.has(t)},e.prototype.isExcelLike=function(e,t){var n=this.getExtensionForContentType(e);return n?this.excelExtensions.has(n):!(e!=this.OCTET_STREAM||!t)&&this.excelExtensions.has(t)},e.prototype.isCsvLike=function(e,t){return!!this.csvContentType.has(e)||!(e!=this.OCTET_STREAM||!t)&&this.csvExtensions.has(t)},e.prototype.isPowerpointLike=function(e,t){var n=this.getExtensionForContentType(e);return n?this.pptExtensions.has(n):!(e!=this.OCTET_STREAM||!t)&&this.pptExtensions.has(t)},e.prototype.isTxtLike=function(e,t){var n=this.getExtensionForContentType(e);return n?this.txtExtensions.has(n):!(e!=this.OCTET_STREAM||!t)&&this.txtExtensions.has(t)},e.INSTANCE=new e,e}();t.MimeTypeUtils=n},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},s=this;Object.defineProperty(t,"__esModule",{value:!0});var a,u,c=n(37),l=n(34),d=n(3),h=n(35),f=n(392),p=n(407),m=n(551),_=function(e){return function(n){var r=n;if(r.deleted&&r.trasher)return c.model.me.userId==r.trasher;if(e.directShared&&r.eParent){if(t.workspaceService._cacheFolders.find(function(e){return e._id==r.eParent}))return!1}return!0}},v=function(e){var t=new f.Document(e),n=t.behaviours("workspace");return n instanceof Promise?n.then(function(e){return t.rights&&t.rights.fromBehaviours()}):t.rights&&t.rights.fromBehaviours(),t},y=function(e){var n=new p.Element(e),r=n.behaviours("workspace");return r instanceof Promise?r.then(function(e){return n.rights&&n.rights.fromBehaviours()}):n.rights&&n.rights.fromBehaviours(),t.workspaceService.isLazyMode()?n.cacheChildren.reset():n.cacheChildren.disableCache(),t.workspaceService.isLazyMode()?n.cacheDocument.reset():n.cacheDocument.disableCache(),n},g=function(e){var t=e;return!t.deleted||!t.trasher||c.model.me.userId==t.trasher},b=function(e){return e.isShared&&!e.deleted},w=function(e){return e.deleted},M=function(e){return e.protected},k=function(e){return e.public},L=function(e){return!b(e)&&(!w(e)&&(!M(e)&&!k(e)))},x=function(e,t){switch(e&&"all"!=e||(e=t?b(t)?"shared":w(t)?"trash":M(t)?"protected":k(t)?"public":L(t)?"owner":"all":"all"),e){case"all":return function(e){return!0};case"external":return function(e){return!1};case"owner":return L;case"protected":return M;case"public":return k;case"shared":return b;case"trash":return w}},Y=function(e){var t=p.sortByCreatedAsc();switch(e){case"created":t=p.sortByCreatedAsc();break;case"name":t=p.sortByNameAsc()}return t};if(document.cookie){var T=document.cookie.split(";").map(function(e){return{name:e.split("=")[0].trim(),val:e.split("=")[1].trim()}});u=T.find(function(e){return"XSRF-TOKEN"==e.name})}var S=null,D={view:"icons",quickstart:"notviewed"};t.workspaceService={_externalFullScreen:[],_externalActionFilter:[],_externalDocumentFilters:[],_externalFolders:[],_cacheFolders:[],onChange:new m.Subject,onImportFiles:new m.Subject,onConfirmImport:new m.Subject,isLazyMode:function(){return window.LAZY_MODE},hasExternalFolders:function(){return t.workspaceService._externalFolders.length>0},getExternalFolders:function(){return i(this,void 0,void 0,function(){var e;return o(this,function(n){switch(n.label){case 0:return[4,Promise.all(t.workspaceService._externalFolders)];case 1:return e=n.sent(),[2,e.filter(function(e){return null!=e})]}})})},getExternalFolderFor:function(e){var n=e.externalId;return i(this,void 0,void 0,function(){var e,r;return o(this,function(i){switch(i.label){case 0:return[4,t.workspaceService.getExternalFolders()];case 1:return e=i.sent(),r=e.find(function(e){return e.externalId==n}),[2,{exists:!!r,folder:r}]}})})},addExternalFolder:function(e){var n=e.then(function(e){if(null==e)return null;var n=p.Element.createExternalFolder(e);return t.workspaceService.createFolder(n)}).then(function(e){return null!=e&&e instanceof p.Element?e:null});t.workspaceService._externalFolders.push(n),t.workspaceService.onChange.next({action:"tree-change",treeDest:"external"})},registerExternalDocumentFilter:function(e){t.workspaceService._externalDocumentFilters.push(e)},registerExternalActionFilter:function(e){t.workspaceService._externalActionFilter.push(e)},registerExternalFullScreenRenderer:function(e){t.workspaceService._externalFullScreen.push(e)},renderFullScreen:function(e){for(var n=0,r=t.workspaceService._externalFullScreen;n<r.length;n++){var i=r[n],o=i(e);if(0!=o)return o}return!1},isActionAvailable:function(e,n){for(var r=0,i=n;r<i.length;r++)for(var o=i[r],s=0,a=t.workspaceService._externalActionFilter;s<a.length;s++){var u=a[s];if(!1===u(o,e))return!1}return!0},getPreference:function(){return i(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:if(S)return[2,S];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,l.httpPromisy().get("/userbook/preference/workspace")];case 2:return e=n.sent(),S=JSON.parse(e.preference)||{},[3,4];case 3:return t=n.sent(),S={},[3,4];case 4:return S=r({},D,S),[2,S]}})})},savePreference:function(e){return i(this,void 0,void 0,function(){var n,i;return o(this,function(o){switch(o.label){case 0:return[4,t.workspaceService.getPreference()];case 1:return n=o.sent(),i=r({},n,e),[4,l.httpPromisy().putJson("/userbook/preference/workspace",i)];case 2:return o.sent(),S=i,[2,S]}})})},fetchFolders:function(e,t){return void 0===t&&(t="name"),l.httpPromisy().get("/workspace/folders/list",e)},fetchParentInfo:function(e){return l.httpPromisy().get("/workspace/document/parent/"+e)},fetchTrees:function(e,n){return void 0===n&&(n="name"),i(this,void 0,void 0,function(){var r,i,s,a,u,c,d,h;return o(this,function(o){switch(o.label){case 0:return t.workspaceService.isLazyMode()?(r=[new p.ElementTree(!0,{children:[],name:"owner",filter:"owner"}),new p.ElementTree(!0,{children:[],name:"shared",filter:"shared"}),new p.ElementTree(!0,{children:[],name:"protected",filter:"protected"}),new p.ElementTree(!0,{children:[],name:"public",filter:"public"}),new p.ElementTree(!0,{children:[],name:"trash",filter:"trash"})],t.workspaceService.hasExternalFolders()&&r.push(new p.ElementTree(!0,{children:[],name:"external",filter:"external"})),[2,r]):[4,l.httpPromisy().get("/workspace/folders/list",e)];case 1:return i=o.sent(),i=i.filter(function(e){return!e.externalId}),t.workspaceService._cacheFolders=i,i=i.map(y),s=Y(n),a=function(e,t){var n=i.filter(t);i=i.filter(function(e){return!t(e)});for(var r=0,o=n;r<o.length;r++){var a=o[r];!function(e){e.children=n.filter(function(t){return t.eParent==e._id}),e.children=e.children.sort(s)}(a)}return{filter:e,children:n.filter(function(e){return!e.eParent||0==n.filter(function(t){return t._id==e.eParent}).length}).sort(s)}},u=[],u.push(a("shared",b)),u.push(a("trash",w)),u.push(a("protected",M)),u.push(a("owner",function(e){return!0})),t.workspaceService.hasExternalFolders()?[4,t.workspaceService.getExternalFolders()]:[3,3];case 2:c=o.sent(),u.push({filter:"external",children:c}),o.label=3;case 3:return d=u.find(function(e){return"trash"==e.filter}),d&&(h=function(e){var t=e;if(t.children){for(var n=0,r=t.children;n<r.length;n++){var i=r[n];h(i)}t.children=t.children.filter(g)}})(d),[2,u]}})})},fetchDocuments:function(e,t,n){return void 0===t&&(t="name"),void 0===n&&(n={directlyShared:!1}),i(this,void 0,void 0,function(){var r,i,s,a;return o(this,function(o){switch(o.label){case 0:return r=[],i="external"==e.filter&&!e.parentId,n&&n.directlyShared&&(e.directShared=!0),i?[3,2]:[4,l.httpPromisy().get("/workspace/documents",e)];case 1:r=o.sent(),o.label=2;case 2:return r=r.filter(_(e)),s=r.map(v),a=Y(t),[2,s.sort(a)]}})})},fetchChildren:function(e,t,n,r){return void 0===n&&(n="name"),void 0===r&&(r={directlyShared:!1,onlyFolders:!1,onlyDocument:!1}),i(this,void 0,void 0,function(){var s,a,u,c,d,h,f,m,b,b,b,w=this;return o(this,function(M){switch(M.label){case 0:return(s="external"==t.filter&&!t.parentId)?[2,[]]:(a=r&&r.onlyDocument,u=r&&r.onlyFolders,c=!a&&e.cacheChildren.isEmpty,d=!u&&e.cacheDocument.isEmpty,e instanceof p.ElementTree||(t.parentId=e._id),r&&r.directlyShared&&(t.directShared=!0),t.hierarchical=!1,h=Y(n||"name"),f=function(n){return i(w,void 0,void 0,function(){var r,i;return o(this,function(o){switch(o.label){case 0:return[4,n];case 1:return r=o.sent(),i=r.filter(function(e){return e.eType==p.FOLDER_TYPE}).map(y).filter(x(t.filter,e)).filter(g).sort(h),[2,i]}})})},m=function(e){return i(w,void 0,void 0,function(){var n,r;return o(this,function(i){switch(i.label){case 0:return[4,e];case 1:return n=i.sent(),r=n.filter(function(e){return e.eType==p.FILE_TYPE}).map(v).filter(_(t)).filter(g).sort(h),[2,r]}})})},c&&d?(t.includeall=!0,b=l.httpPromisy().get("/workspace/documents",t),[4,e.cacheChildren.setAsyncData(f(b))]):[3,3]);case 1:return M.sent(),[4,e.cacheDocument.setAsyncData(m(b))];case 2:return M.sent(),[2,m(b)];case 3:return d?(t.includeall=!1,b=l.httpPromisy().get("/workspace/documents",t),[4,e.cacheDocument.setAsyncData(m(b))]):[3,5];case 4:return M.sent(),[2,m(b)];case 5:return c?(b=l.httpPromisy().get("/workspace/folders/list",t),[4,e.cacheChildren.setAsyncData(f(b))]):[3,7];case 6:return M.sent(),[2,e.cacheDocument.data];case 7:return[2,e?e.cacheDocument.data:[]]}})})},fetchChildrenForRoot:function(e,n,r,s){return void 0===r&&(r="name"),void 0===s&&(s={directlyShared:!1,onlyFolders:!1,onlyDocument:!1}),i(this,void 0,void 0,function(){return o(this,function(i){return"shared"!=e.filter||s.directlyShared||(s.directlyShared=!0),[2,t.workspaceService.fetchChildren(e,n,r,s)]})})},fetchFolderById:function(e){return i(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return t={filter:"all",id:e},[4,l.httpPromisy().get("/workspace/folders/list",t)];case 1:return n=r.sent(),[2,n.length?n.map(y)[0]:null]}})})},countChildren:function(e){return e&&e.children?e.children.length:0},totalFilesSize:function(e){var t=0;if(!e)return t;for(var n=0;n<e.length;n++)t+=e[n].size;return t},isFile:function(e){return e.eType===p.FILE_TYPE},isFolder:function(e){return e.eType===p.FOLDER_TYPE},isInFoldersRecursively:function(e,t){var n=function(t){if(e===t)return!0;if(!t.children)return!1;var r=!1;t.children.forEach(function(e){r=r||n(e)})},r=!1;return t.forEach(function(e){r=r||n(e)}),r},restoreAll:function(e){var n=e.map(function(e){return e._id});return(0==n.length?Promise.resolve(null):l.httpPromisy().putJson("/workspace/documents/restore",{ids:n})).then(function(n){t.workspaceService.onChange.next({action:"tree-change",elements:e,treeSource:"trash"})})},removeAllFromList:function(e,t){if(!t||!e)return t;var n=e.map(function(e){return e._id});return t.filter(function(e){return-1==n.indexOf(e._id)})},removeFromTree:function(e,t){var n=function(e){var r=e;if(r.children){for(var i=0,o=r.children;i<o.length;i++){var s=o[i];n(s)}r.removeChild(t)}};n(e)},trashAll:function(e){var n=e.map(function(e){return e._id});return(0==n.length?Promise.resolve(null):l.httpPromisy().putJson("/workspace/documents/trash",{ids:n})).then(function(n){t.workspaceService.onChange.next({action:"tree-change",elements:e,treeDest:"trash"})})},emptyTrash:function(){return l.httpPromisy().delete("/workspace/trash").then(function(e){t.workspaceService.onChange.next({action:"empty",treeSource:"trash"})})},rename:function(e,n){var r=e.metadata&&e.metadata.extension,i=n;r&&-1===i.indexOf(r)&&(i+="."+r);var o=null;return o=t.workspaceService.isFile(e)?l.httpPromisy().putJson("/workspace/rename/"+e._id,{name:i}):l.httpPromisy().putJson("/workspace/folder/rename/"+e._id,{name:i}),o.then(function(r){t.workspaceService.onChange.next({action:"update",elements:[{name:n,eType:e.eType,_id:e._id}]})}),o.e400&&o.e400(function(e){var t=JSON.parse(e.responseText).error;t&&t.indexOf("duplicate")&&h.notify.error(d.idiom.translate(t))}),o},deleteAll:function(e){var n=e.map(function(e){return e._id}),r=e.filter(function(e){return t.workspaceService.isFile(e)}),i=e.filter(function(e){return t.workspaceService.isFolder(e)});return(0==n.length?Promise.resolve(null):l.httpPromisy().deleteJson("/workspace/documents",{ids:n})).then(function(n){t.workspaceService.onChange.next({action:"delete",elements:e})}).then(function(e){return Promise.resolve({nbFiles:r.length,nbFolders:i.length})})},elementEqualsByRefOrId:function(e,t){return e===t||e&&t&&e._id&&e._id==t._id},sendComment:function(e){return i(this,void 0,void 0,function(){var n,r;return o(this,function(i){switch(i.label){case 0:return n=t.workspaceService.isFile(e)?"/workspace/document/"+e._id+"/comment":"/workspace/folder/"+e._id+"/comment",[4,l.httpPromisy().post(n,"comment="+encodeURIComponent(e.comment))];case 1:return r=i.sent(),[2,{id:r.id,author:c.model.me.userId,authorName:c.model.me.username,comment:e.comment,posted:void 0}]}})})},removeComment:function(e,t){return l.httpPromisy().delete("document/"+e._id+"/comment/"+t.id)},getAppropriateDataUnit:function(e){for(var t=0,n={0:d.idiom.translate("byte"),1:"Ko",2:"Mo",3:"Go",4:"To"},r=e;r>=1024&&t<4;)r/=1024,t++;return{nb:r,order:n[t]}},formatDocumentSize:function(e){var n=t.workspaceService.getAppropriateDataUnit(e);return Math.round(10*n.nb)/10+" "+n.order},findFolderInTrees:function(e,n){for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t.workspaceService.findFolderInTree(o,n);if(s)return s}},updateInTree:function(e,n){for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t.workspaceService.findParentFolderInTree(o,n._id);if(s)return s.parent?s.parent.updateChild(n):s.child.updateSelf(n),s.child}},findParentFolderInTree:function(e,n){var r=function(e,i){var o=e;if(o._id==n&&t.workspaceService.isFolder(o))return{parent:i,child:o};if(o.children)for(var s=0,a=o.children;s<a.length;s++){var u=a[s],c=r(u,o);if(c)return c}};return r(e,null)},findFolderInTree:function(e,n){var r=function(e){var i=e;if(i._id==n&&t.workspaceService.isFolder(i))return i;if(i.children)for(var o=0,s=i.children;o<s.length;o++){var a=s[o],u=r(a);if(u)return u}};return r(e)},findFolderInTreeByRefOrId:function(e,t,n){var r=function(e){if(t===e||t._id&&t._id==e._id)return n&&n(e),!0;if(e&&e.children)for(var i=0;i<e.children.length;i++)if(r(e.children[i]))return!0;return!1};return r(e)},findElementInListByRefOrId:function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(t===i||t._id&&t._id==i._id)return n&&n(t),!0}return!1},folderToString:function(e,n){var r=function(e){var i=e.name;if(!e.children)return i;for(var o=0;o<e.children.length;o++)t.workspaceService.findFolderInTreeByRefOrId(e.children[o],n)&&(i=i+"_"+r(e.children[o]));return i};return r(e).split("_").filter(function(t){return t!=e.name}).join("_")},downloadFiles:function(e,t){void 0===t&&(t=!1);var n=e.map(function(e){return e._id}).join(",");window.open("/workspace/document/archive/"+n+"?"+(t?"deleted=true":""))},moveAll:function(e,n){var r=e.map(function(e){return e._id}),i=e.filter(function(e){return t.workspaceService.isFile(e)}),o=e.filter(function(e){return t.workspaceService.isFolder(e)}),s=0==r.length?Promise.resolve(null):l.httpPromisy().putJson("/workspace/documents/move/"+(n._id||"root"),{ids:r});return s.e400&&s.e400(function(e){var t=JSON.parse(e.responseText);h.notify.error(t.error)}),s.then(function(r){t.workspaceService.onChange.next({action:"tree-change",elements:e,dest:n})}).then(function(e){return Promise.resolve({nbFiles:i.length,nbFolders:o.length})})},moveAllForShared:function(e,n){return i(this,void 0,void 0,function(){var r;return o(this,function(i){switch(i.label){case 0:return[4,t.workspaceService.copyAll(e,n,!1)];case 1:return r=i.sent(),[4,t.workspaceService.deleteAll(e)];case 2:return i.sent(),t.workspaceService.onChange.next({action:"tree-change",elements:r.copies,dest:n}),[2,r]}})})},moveAllFromIds:function(e,n){var r=0==e.length?Promise.resolve(null):l.httpPromisy().putJson("/workspace/documents/move/"+(n._id||"root"),{ids:e});return r.e400&&r.e400(function(e){var t=JSON.parse(e.responseText);h.notify.error(t.error)}),r.then(function(r){t.workspaceService.onChange.next({action:"tree-change",ids:e,dest:n})}).then(function(t){return Promise.resolve({nbFiles:e.length,nbFolders:0})})},copyAll:function(e,n,r){void 0===r&&(r=!0);var i=e.map(function(e){return e._id}),o=e.filter(function(e){return t.workspaceService.isFile(e)}),s=e.filter(function(e){return t.workspaceService.isFolder(e)}),a=0==i.length?Promise.resolve(null):l.httpPromisy().postJson("/workspace/documents/copy/"+(n._id||"root"),{ids:i});return a.catch(function(e){if(e.responseText){var t=JSON.parse(e.responseText),n=d.idiom.translate(t.error);n!=t.error&&h.notify.error(n)}}),a.then(function(e){var i=e.map(function(e){var t=new p.Element(e);return t.fromMe(),t.behaviours("workspace"),n&&n.isShared&&(t._isShared=!0),t});return r&&t.workspaceService.onChange.next({action:"tree-change",elements:i,dest:n}),Promise.resolve(i)}).then(function(e){return Promise.resolve({nbFiles:o.length,nbFolders:s.length,copies:e})})},copyAllFromIds:function(e,n){var r=0==e.length?Promise.resolve(null):l.httpPromisy().postJson("/workspace/documents/copy/"+(n._id||"root"),{ids:e});return r.catch(function(e){if(e.responseText){var t=JSON.parse(e.responseText),n=d.idiom.translate(t.error);n!=t.error&&h.notify.error(n)}}),r.then(function(e){var r=e.map(function(e){var t=new p.Element(e);return t.fromMe(),t.behaviours("workspace"),n&&n.isShared&&(t._isShared=!0),t});return t.workspaceService.onChange.next({action:"tree-change",elements:r,dest:n}),Promise.resolve(r)}).then(function(t){return Promise.resolve({nbFiles:0,nbFolders:e.length,copies:t})})},notifyContrib:function(e,t,n){void 0===n&&(n=!1);var r=function(){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n];i instanceof p.Element?e.push(i._id):e.push(i)}return e};if(e){var i=r();return l.httpPromisy().postJson("/workspace/folder/notify/contrib/"+e,{ids:i,addVersion:n})}if(n){var i=r();return l.httpPromisy().postJson("/workspace/folder/notify/contrib/root",{ids:i,addVersion:n})}return Promise.resolve()},createExternalDocument:function(e,n,r,s){return i(this,void 0,void 0,function(){var i;return o(this,function(o){switch(o.label){case 0:return[4,t.workspaceService.getExternalFolderFor({externalId:r})];case 1:return i=o.sent(),i.exists?[2,t.workspaceService.createDocument(e,n,i.folder,s)]:(h.notify.error(d.idiom.translate("worksapce.external.folder.notfound")),console.warn("[WorkspaceService] Could not found external folder: ",r,t.workspaceService,t.workspaceService._externalFolders),[2])}})})},createDocument:function(e,n,r,s){return i(this,void 0,void 0,function(){var c,l,f,m,_,v=this;return o(this,function(y){return n.eType=p.FILE_TYPE,n.eParent=r?r._id:null,n.uploadStatus="loading",n.fromFile(e),c=n.metadata.extension?n.name+"."+n.metadata.extension:n.name,l=new FormData,l.append("file",e,c),n.uploadXhr=new XMLHttpRequest,f=[],s&&("public"!==s.visibility&&"protected"!==s.visibility||f.push(s.visibility+"=true"),s.application&&f.push("application="+s.application)),"img"===n.role()&&f.push("quality=1"),n.eParent&&f.push("parentId="+n.eParent),m="/workspace/document?"+f.join("&"),n.uploadXhr.open("POST",m),u&&n.uploadXhr.setRequestHeader("X-XSRF-TOKEN",u.val),n.uploadXhr.send(l),n.uploadXhr.onprogress=function(e){n.eventer.trigger("progress",e)},_=new Promise(function(e,s){n.uploadXhr.onload=function(){return i(v,void 0,void 0,function(){var i,u;return o(this,function(o){return n.uploadXhr.status>=200&&n.uploadXhr.status<400?(n.eventer.trigger("loaded"),n.uploadStatus="loaded",i=JSON.parse(n.uploadXhr.responseText),n.uploadXhr=null,r&&r.isShared&&(n._isShared=r.isShared),e(n),n._id=i._id,n.name=i.name,n.updateProps(),n.fromMe(),n.behaviours("workspace"),t.workspaceService.onChange.next({action:"add",elements:[n],dest:r})):(413===n.uploadXhr.status?(a||(a=parseInt(d.idiom.translate("max.file.size"))),h.notify.error(d.idiom.translate("file.too.large.limit")+a/1024/1024+d.idiom.translate("mb"))):403===n.uploadXhr.status?h.notify.error("upload.forbidden"):(u=JSON.parse(n.uploadXhr.responseText),h.notify.error(u.error)),n.eventer.trigger("error"),n.uploadStatus="failed",n.uploadXhr=null,s()),[2]})})}}),[2,_]})})},importZip:function(e,n,r,s){return i(this,void 0,void 0,function(){var c,l,f,m,_=this;return o(this,function(g){return n.eType=p.FILE_TYPE,n.eParent=r?r._id:null,n.uploadStatus="loading",n.fromFile(e),c=new FormData,c.append("file",e),n.uploadXhr=new XMLHttpRequest,l=[],s&&("public"!==s.visibility&&"protected"!==s.visibility||l.push(s.visibility+"=true"),s.application&&l.push("application="+s.application)),n.eParent&&l.push("parentId="+n.eParent),f="/workspace/zip?"+l.join("&"),n.uploadXhr.open("POST",f),u&&n.uploadXhr.setRequestHeader("X-XSRF-TOKEN",u.val),n.uploadXhr.send(c),n.uploadXhr.onprogress=function(e){n.eventer.trigger("progress",e)},m=new Promise(function(e,s){n.uploadXhr.onload=function(){return i(_,void 0,void 0,function(){var i,u,c,l,f;return o(this,function(o){return n.uploadXhr.status>=200&&n.uploadXhr.status<400?(n.eventer.trigger("loaded"),n.uploadStatus="loaded",i=JSON.parse(n.uploadXhr.responseText),u=i.saved,c=u.map(function(e){var t;return t=e.eType==p.FOLDER_TYPE?y(e):v(e),t.uploadStatus="loaded",t.updateProps(),t.fromMe(),t.behaviours("workspace"),t}),e(c),l=c.filter(function(e){return!r&&!e.eParent||r&&e.eParent==r._id}),t.workspaceService.onChange.next({action:"add",elements:l,dest:r}),i.errors&&i.errors.length&&h.notify.error("folder.zip.upload.partial"),n.uploadXhr=null):(413===n.uploadXhr.status?(a||(a=parseInt(d.idiom.translate("max.file.size"))),h.notify.error(d.idiom.translate("file.too.large.limit")+a/1024/1024+d.idiom.translate("mb"))):403===n.uploadXhr.status?h.notify.error("upload.forbidden"):(f=JSON.parse(n.uploadXhr.responseText),h.notify.error(f.error,2e4)),n.eventer.trigger("error"),n.uploadStatus="failed",n.uploadXhr=null,s()),[2]})})}}),[2,m]})})},getDocumentBlob:function(e){return i(this,void 0,void 0,function(){return o(this,function(t){return[2,new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET","/workspace/document/"+e,!0),r.responseType="blob",r.onload=function(e){200==r.status?t(r.response):n("Failed with status code: "+r.status)},r.send()})]})})},getPreviewBlob:function(e){return i(this,void 0,void 0,function(){return o(this,function(t){return[2,new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET","/workspace/document/preview/"+e,!0),r.responseType="blob",r.onload=function(e){200==r.status?t(r.response):n("Failed with status code: "+r.status)},r.send()})]})})},copyDocumentWithVisibility:function(e,n,r){return i(this,void 0,void 0,function(){var i,s;return o(this,function(o){switch(o.label){case 0:return[4,t.workspaceService.getDocumentBlob(e._id)];case 1:return i=o.sent(),s=new f.Document,Object.assign(s,e),s._id=null,[2,t.workspaceService.createDocument(i,s,r,{visibility:n.visibility,application:n.application})]}})})},updateDocument:function(e,n){return i(this,void 0,void 0,function(){var r,i,s,a;return o(this,function(o){switch(o.label){case 0:return r=new FormData,i=n.name||n.title,s=n.metadata&&n.metadata.extension,s&&-1===i.indexOf(s)&&(i+="."+s),r.append("file",e,i),a=["quality=1"],n.alt&&a.push("alt="+n.alt),n.legend&&a.push("legend="+n.legend),[4,l.httpPromisy().putFile("/workspace/document/"+n._id+"?"+a.join("&"),r)];case 1:return o.sent(),n.currentQuality=1,n.version=Math.floor(100*Math.random()),n.eventer.trigger("save"),t.workspaceService.onChange.next({action:"document-change",elements:[n]}),[2,n]}})})},createFolder:function(e,n){return i(this,void 0,void 0,function(){var r,i,s,a,u,c,f;return o(this,function(o){switch(o.label){case 0:return r=e.name,i=n?n._id:null,s=e.externalId?e.externalId:null,a=l.httpPromisy().post("/workspace/folder",{name:r,parentFolderId:i,shared:e.shared,externalId:s}),u=null,c=null,a.e400(function(e){(u=JSON.parse(e.responseText).error)&&u.indexOf("duplicate")&&h.notify.error(d.idiom.translate(u))}),[4,a.then(function(r){return e._id=r._id,c=new p.Element(e),n&&(c.eParent=n._id),c.fromMe(),c.behaviours("workspace"),n&&n.isShared&&(c._isShared=!0),c.children||(c.children=[]),c.ancestors||(c.ancestors=n?[].concat(n.ancestors||[]).concat([n._id]):[]),t.workspaceService.onChange.next({action:"add",elements:[c],dest:n}),Promise.resolve(c)})];case 1:return f=o.sent(),[2,null==u?f:{error:u}]}})})},createFolders:function(e,n){return i(this,void 0,void 0,function(){var r;return o(this,function(i){return r=n.map(function(n){return t.workspaceService.createFolder(e,n)}),[2,Promise.all(r)]})})},syncHistory:function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,l.httpPromisy().get("/workspace/document/"+e._id+"/revisions")];case 1:return t=n.sent(),e.revisions=t,[2,e]}})})},createRevision:function(e,n,r){if(e){var i=new FormData;i.append("file",e);var o=l.http();o.bind("request-started.add-revision",function(){r("pending")}),o.bind("request-ended.add-revision",function(){r("end")});var s=l.httpPromisy(o).putFile("/workspace/document/"+n._id,i,{requestName:"add-revision"});return s.e400(function(e){var t=JSON.parse(e.responseText);r("error",t)}),s.then(function(e){t.workspaceService.onChange.next({action:"document-change",elements:[n]})}),s}},deleteRevision:function(e){return l.httpPromisy().delete("/workspace/document/"+e.documentId+"/revision/"+e._id)},resetAllCache:function(e,t,n){void 0===n&&(n=function(e){return!0});var r=function(e){var i=e;if(i.children){for(var o=0,s=i.children;o<s.length;o++){var a=s[o];r(a)}n(i)&&("document"!=t&&"all"!=t||i.cacheDocument.reset(),"folder"!=t&&"all"!=t||i.cacheChildren.reset())}};r(e)}},t.workspaceService.onChange.subscribe(function(e){if("add"!=e.action||!e.elements||0!=e.elements.filter(function(e){return t.workspaceService.isFolder(e)}).length){if("document-change"==e.action&&e.elements&&e.elements.length){var n=e.elements,r=n.filter(function(e){return e.eParent}).map(function(e){return e.eParent}),i=r.filter(function(e,t,n){return n.indexOf(e)==t});return void(0==i.length?t.workspaceService.notifyContrib(null,n,!0):i.forEach(function(e){var r=n.filter(function(t){return t.eParent==e});t.workspaceService.notifyContrib(e,r,!0)}))}e.dest&&e.dest.isShared&&(e.elements&&e.elements.length||e.ids&&e.ids.length)&&t.workspaceService.notifyContrib(e.dest._id,e.elements||e.ids)}}),t.workspaceService.onConfirmImport.subscribe(function(e){e.filter(function(e){return e.eParent}).map(function(e){return e.eParent}).filter(function(e,t,n){return n.indexOf(e)==t}).forEach(function(n){var r=e.filter(function(e){return e.eParent==n});t.workspaceService.notifyContrib(n,r)})});!function(){i(s,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),window.location.pathname.startsWith("/workspace")?[3,2]:[4,l.httpPromisy().get("/workspace/conf/public")];case 1:return e=n.sent(),window.LAZY_MODE=e["lazy-mode"],e["ttl-documents"]&&(p.Element.cacheConfiguration.ttlDocumentSeconds=e["ttl-documents"]),e["ttl-folders"]&&(p.Element.cacheConfiguration.ttlFolderSeconds=e["ttl-folders"]),[3,3];case 2:window.CACHE_DOC_TTL_SEC>0&&(p.Element.cacheConfiguration.ttlDocumentSeconds=window.CACHE_DOC_TTL_SEC)(window.CACHE_FOLDER_TTL_SEC>0)&&(p.Element.cacheConfiguration.ttlFolderSeconds=window.CACHE_FOLDER_TTL_SEC),n.label=3;case 3:return[3,5];case 4:return t=n.sent(),console.warn("[workspaceService.initLazyMode] failed: ",t),[3,5];case 5:return[2]}})})}()},function(e,t,n){"use strict";var r=n(552);t.Subject=r.Subject,t.AnonymousSubject=r.AnonymousSubject;var i=n(553);t.Observable=i.Observable,n(569),n(573),n(576),n(589),n(593),n(596),n(598),n(601),n(609),n(612),n(615),n(617),n(619),n(622),n(631),n(634),n(636),n(640),n(642),n(644),n(647),n(650),n(653),n(656),n(660),n(663),n(667),n(675),n(677),n(679),n(681),n(683),n(685),n(687),n(689),n(690),n(691),n(693),n(696),n(699),n(701),n(703),n(705),n(707),n(709),n(711),n(713),n(716),n(718),n(720),n(722),n(724),n(726),n(728),n(731),n(733),n(735),n(737),n(739),n(742),n(747),n(749),n(751),n(753),n(755),n(757),n(759),n(761),n(762),n(764),n(766),n(769),n(770),n(771),n(772),n(773),n(775),n(777),n(780),n(781),n(782),n(784),n(787),n(789),n(791),n(794),n(796),n(798),n(799),n(800),n(802),n(804),n(806),n(808),n(810),n(812),n(814),n(816),n(818),n(820),n(822),n(824),n(826),n(828),n(830),n(832),n(841),n(843),n(845),n(847),n(849),n(851),n(853),n(855),n(857),n(859),n(861),n(864),n(866),n(868),n(870),n(872),n(874),n(876),n(878),n(880),n(882),n(884),n(885);var o=n(558);t.Subscription=o.Subscription;var s=n(556);t.Subscriber=s.Subscriber;var a=n(572);t.AsyncSubject=a.AsyncSubject;var u=n(670);t.ReplaySubject=u.ReplaySubject;var c=n(793);t.BehaviorSubject=c.BehaviorSubject;var l=n(779);t.ConnectableObservable=l.ConnectableObservable;var d=n(608);t.Notification=d.Notification;var h=n(741);t.EmptyError=h.EmptyError;var f=n(730);t.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var p=n(567);t.ObjectUnsubscribedError=p.ObjectUnsubscribedError;var m=n(863);t.TimeoutError=m.TimeoutError;var _=n(563);t.UnsubscriptionError=_.UnsubscriptionError;var v=n(860);t.TimeInterval=v.TimeInterval;var y=n(867);t.Timestamp=y.Timestamp;var g=n(887);t.TestScheduler=g.TestScheduler;var b=n(893);t.VirtualTimeScheduler=b.VirtualTimeScheduler;var w=n(665);t.AjaxResponse=w.AjaxResponse,t.AjaxError=w.AjaxError,t.AjaxTimeoutError=w.AjaxTimeoutError;var M=n(835),k=n(626),L=n(671),x=n(894),Y=n(565),T=n(587),S=n(566),D={asap:M.asap,queue:L.queue,animationFrame:x.animationFrame,async:k.async};t.Scheduler=D;var $={rxSubscriber:Y.rxSubscriber,observable:S.observable,iterator:T.iterator};t.Symbol=$},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(556),s=n(558),a=n(567),u=n(568),c=n(565),l=function(e){function t(t){e.call(this,t),this.destination=t}return r(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(e.complete(),s.Subscription.EMPTY):(this.observers.push(e),new u.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new h(e,t)},t}(i.Observable);t.Subject=d;var h=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return r(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):s.Subscription.EMPTY},t}(d);t.AnonymousSubject=h},function(e,t,n){"use strict";var r=n(554),i=n(555),o=n(566),s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=i.toSubscriber(e,t,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var i;i=n.subscribe(function(t){if(i)try{e(t)}catch(e){r(e),i.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[o.observable]=function(){return this},e.create=function(t){return new e(t)},e}();t.Observable=s},function(e,t){(function(e){"use strict";var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==e&&e,o=n||i||r;t.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e,t,n){if(e){if(e instanceof i.Subscriber)return e;if(e[o.rxSubscriber])return e[o.rxSubscriber]()}return e||t||n?new i.Subscriber(e,t,n):new i.Subscriber(s.empty)}var i=n(556),o=n(565),s=n(564);t.toSubscriber=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(557),o=n(558),s=n(564),a=n(565),u=function(e){function t(n,r,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof t?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(t,e),t.prototype[a.rxSubscriber]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this,t=e._parent,n=e._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=n,this},t}(o.Subscription);t.Subscriber=u;var c=function(e){function t(t,n,r,o){e.call(this),this._parentSubscriber=t;var a,u=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(u=Object.create(n),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=o}return r(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u)},function(e,t){"use strict";function n(e){return"function"==typeof e}t.isFunction=n},function(e,t,n){"use strict";function r(e){return e.reduce(function(e,t){return e.concat(t instanceof c.UnsubscriptionError?t.errors:t)},[])}var i=n(559),o=n(560),s=n(557),a=n(561),u=n(562),c=n(563),l=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this,l=n._parent,d=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,m=d?d.length:0;l;)l.remove(this),l=++p<m&&d[p]||null;if(s.isFunction(h)){var _=a.tryCatch(h).call(this);_===u.errorObject&&(t=!0,e=e||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(f))for(p=-1,m=f.length;++p<m;){var v=f[p];if(o.isObject(v)){var _=a.tryCatch(v.unsubscribe).call(v);if(_===u.errorObject){t=!0,e=e||[];var y=u.errorObject.e;y instanceof c.UnsubscriptionError?e=e.concat(r(y.errors)):e.push(y)}}}if(t)throw new c.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new e,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this,n=t._parent,r=t._parents;n&&n!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();t.Subscription=l},function(e,t){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.isObject=n},function(e,t,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(e){return s.errorObject.e=e,s.errorObject}}function i(e){return o=e,r}var o,s=n(562);t.tryCatch=i},function(e,t){"use strict";t.errorObject={e:{}}},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return n(t,e),t}(Error);t.UnsubscriptionError=r},function(e,t){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},function(e,t,n){"use strict";var r=n(554),i=r.root.Symbol;t.rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}var i=n(554);t.getSymbolObservable=r,t.observable=r(i.root),t.$$observable=t.observable},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return n(t,e),t}(Error);t.ObjectUnsubscribedError=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(558),o=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return r(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(i.Subscription);t.SubjectSubscription=o},function(e,t,n){"use strict";var r=n(553),i=n(570);r.Observable.bindCallback=i.bindCallback},function(e,t,n){"use strict";var r=n(571);t.bindCallback=r.BoundCallbackObservable.create},function(e,t,n){"use strict";function r(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function i(e){var t=e.err;e.subject.error(t)}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(553),a=n(561),u=n(562),c=n(572),l=function(e){function t(t,n,r,i,o){e.call(this),this.callbackFunc=t,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return o(t,e),t.create=function(e,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new t(e,n,i,this,r)}},t.prototype._subscribe=function(e){var n=this.callbackFunc,r=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(t.dispatch,0,{source:this,subscriber:e,context:this.context});if(!o){o=this.subject=new c.AsyncSubject;var s=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=e.source,i=r.selector,o=r.subject;if(i){var s=a.tryCatch(i).apply(this,t);s===u.errorObject?o.error(u.errorObject.e):(o.next(s),o.complete())}else o.next(t.length<=1?t[0]:t),o.complete()};s.source=this;a.tryCatch(n).apply(this.context,r.concat(s))===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(e)},t.dispatch=function(e){var t=this,n=e.source,o=e.subscriber,s=e.context,l=n.callbackFunc,d=n.args,h=n.scheduler,f=n.subject;if(!f){f=n.subject=new c.AsyncSubject;var p=function e(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];var s=e.source,c=s.selector,l=s.subject;if(c){var d=a.tryCatch(c).apply(this,n);d===u.errorObject?t.add(h.schedule(i,0,{err:u.errorObject.e,subject:l})):t.add(h.schedule(r,0,{value:d,subject:l}))}else{var f=n.length<=1?n[0]:n;t.add(h.schedule(r,0,{value:f,subject:l}))}};p.source=n;a.tryCatch(l).apply(s,d.concat(p))===u.errorObject&&f.error(u.errorObject.e)}t.add(f.subscribe(o))},t}(s.Observable);t.BoundCallbackObservable=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(552),o=n(558),s=function(e){function t(){e.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return r(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.Subscription.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.Subject);t.AsyncSubject=s},function(e,t,n){"use strict";var r=n(553),i=n(574);r.Observable.bindNodeCallback=i.bindNodeCallback},function(e,t,n){"use strict";var r=n(575);t.bindNodeCallback=r.BoundNodeCallbackObservable.create},function(e,t,n){"use strict";function r(e){var t=this,n=e.source,r=e.subscriber,s=e.context,a=n,d=a.callbackFunc,h=a.args,f=a.scheduler,p=n.subject;if(!p){p=n.subject=new l.AsyncSubject;var m=function e(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];var s=e.source,a=s.selector,l=s.subject,d=n.shift();if(d)t.add(f.schedule(o,0,{err:d,subject:l}));else if(a){var h=u.tryCatch(a).apply(this,n);h===c.errorObject?t.add(f.schedule(o,0,{err:c.errorObject.e,subject:l})):t.add(f.schedule(i,0,{value:h,subject:l}))}else{var p=n.length<=1?n[0]:n;t.add(f.schedule(i,0,{value:p,subject:l}))}};m.source=n;u.tryCatch(d).apply(s,h.concat(m))===c.errorObject&&t.add(f.schedule(o,0,{err:c.errorObject.e,subject:p}))}t.add(p.subscribe(r))}function i(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function o(e){var t=e.err;e.subject.error(t)}var s=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a=n(553),u=n(561),c=n(562),l=n(572),d=function(e){function t(t,n,r,i,o){e.call(this),this.callbackFunc=t,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return s(t,e),t.create=function(e,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new t(e,n,i,this,r)}},t.prototype._subscribe=function(e){var t=this.callbackFunc,n=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(r,0,{source:this,subscriber:e,context:this.context});if(!o){o=this.subject=new l.AsyncSubject;var s=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=e.source,i=r.selector,o=r.subject,s=t.shift();if(s)o.error(s);else if(i){var a=u.tryCatch(i).apply(this,t);a===c.errorObject?o.error(c.errorObject.e):(o.next(a),o.complete())}else o.next(t.length<=1?t[0]:t),o.complete()};s.source=this;u.tryCatch(t).apply(this.context,n.concat(s))===c.errorObject&&o.error(c.errorObject.e)}return o.subscribe(e)},t}(a.Observable);t.BoundNodeCallbackObservable=d},function(e,t,n){"use strict";var r=n(553),i=n(577);r.Observable.combineLatest=i.combineLatest},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null,r=null;return i.isScheduler(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&o.isArray(e[0])&&(e=e[0]),new s.ArrayObservable(e,r).lift(new a.CombineLatestOperator(n))}var i=n(578),o=n(559),s=n(579),a=n(582);t.combineLatest=r},function(e,t){"use strict";function n(e){return e&&"function"==typeof e.schedule}t.isScheduler=n},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(580),s=n(581),a=n(578),u=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];a.isScheduler(r)?e.pop():r=null;var i=e.length;return i>1?new t(e,r):1===i?new o.ScalarObservable(e[0],r):new s.EmptyObservable(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,i=e.subscriber;if(n>=r)return void i.complete();i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var o=0;o<r&&!e.closed;o++)e.next(n[o]);e.complete()},t}(i.Observable);t.ArrayObservable=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;if(t)return void r.complete();r.next(n),r.closed||(e.done=!0,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(i.Observable);t.ScalarObservable=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=function(e){function t(t){e.call(this),this.scheduler=t}return r(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(i.Observable);t.EmptyObservable=o},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&s.isArray(e[0])&&(e=e[0].slice()),e.unshift(this),this.lift.call(new o.ArrayObservable(e),new l(n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(579),s=n(559),a=n(583),u=n(584),c={};t.combineLatest=r;var l=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.project))},e}();t.CombineLatestOperator=l;var d=function(e){function t(t,n){e.call(this,t),this.project=n,this.active=0,this.values=[],this.observables=[]}return i(t,e),t.prototype._next=function(e){this.values.push(c),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(u.subscribeToResult(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===c?--this.toRespond:this.toRespond:0;o[n]=t,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(a.OuterSubscriber);t.CombineLatestSubscriber=d},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(556),o=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(i.Subscriber);t.OuterSubscriber=o},function(e,t,n){"use strict";function r(e,t,n,r){var h=new l.InnerSubscriber(e,n,r);if(h.closed)return null;if(t instanceof u.Observable)return t._isScalar?(h.next(t.value),h.complete(),null):t.subscribe(h);if(o.isArrayLike(t)){for(var f=0,p=t.length;f<p&&!h.closed;f++)h.next(t[f]);h.closed||h.complete()}else{if(s.isPromise(t))return t.then(function(e){h.closed||(h.next(e),h.complete())},function(e){return h.error(e)}).then(null,function(e){i.root.setTimeout(function(){throw e})}),h;if(t&&"function"==typeof t[c.iterator])for(var m=t[c.iterator]();;){var _=m.next();if(_.done){h.complete();break}if(h.next(_.value),h.closed)break}else if(t&&"function"==typeof t[d.observable]){var v=t[d.observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(e,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var y=a.isObject(t)?"an invalid object":"'"+t+"'",g="You provided "+y+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}var i=n(554),o=n(585),s=n(586),a=n(560),u=n(553),c=n(587),l=n(588),d=n(566);t.subscribeToResult=r},function(e,t){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},function(e,t){"use strict";function n(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}t.isPromise=n},function(e,t,n){"use strict";function r(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=n(554);t.symbolIteratorPonyfill=r,t.iterator=r(i.root),t.$$iterator=t.iterator},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(556),o=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return r(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(i.Subscriber);t.InnerSubscriber=o},function(e,t,n){"use strict";var r=n(553),i=n(590);r.Observable.concat=i.concat},function(e,t,n){"use strict";var r=n(591);t.concat=r.concatStatic},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.lift.call(i.apply(void 0,[this].concat(e)))}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null,r=e;return s.isScheduler(r[e.length-1])&&(n=r.pop()),null===n&&1===e.length&&e[0]instanceof o.Observable?e[0]:new a.ArrayObservable(e,n).lift(new u.MergeAllOperator(1))}var o=n(553),s=n(578),a=n(579),u=n(592);t.concat=r,t.concatStatic=i},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.mergeAll=r;var a=function(){function e(e){this.concurrent=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.concurrent))},e}();t.MergeAllOperator=a;var u=function(e){function t(t,n){e.call(this,t),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(t,e),t.prototype._next=function(e){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,e))):this.buffer.push(e)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeAllSubscriber=u},function(e,t,n){"use strict";var r=n(553),i=n(594);r.Observable.defer=i.defer},function(e,t,n){"use strict";var r=n(595);t.defer=r.DeferObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(584),s=n(583),a=function(e){function t(t){e.call(this),this.observableFactory=t}return r(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new u(e,this.observableFactory)},t}(i.Observable);t.DeferObservable=a;var u=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return r(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(o.subscribeToResult(this,e))},t}(s.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(597);r.Observable.empty=i.empty},function(e,t,n){"use strict";var r=n(581);t.empty=r.EmptyObservable.create},function(e,t,n){"use strict";var r=n(553),i=n(599);r.Observable.forkJoin=i.forkJoin},function(e,t,n){"use strict";var r=n(600);t.forkJoin=r.ForkJoinObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(581),s=n(559),a=n(584),u=n(583),c=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return r(t,e),t.create=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];if(null===e||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&s.isArray(e[0])&&(e=e[0]),0===e.length?new o.EmptyObservable:new t(e,r)},t.prototype._subscribe=function(e){return new l(e,this.sources,this.resultSelector)},t}(i.Observable);t.ForkJoinObservable=c;var l=function(e){function t(t,n,r){e.call(this,t),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this,r=n.haveValues,i=n.resultSelector,o=n.values,s=o.length;if(!e._hasValue)return void t.complete();if(++this.completed===s){if(r===s){var a=i?i.apply(this,o):o;t.next(a)}t.complete()}},t}(u.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(602);r.Observable.from=i.from},function(e,t,n){"use strict";var r=n(603);t.from=r.FromObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(559),o=n(585),s=n(586),a=n(604),u=n(605),c=n(579),l=n(606),d=n(587),h=n(553),f=n(607),p=n(566),m=function(e){function t(t,n){e.call(this,null),this.ish=t,this.scheduler=n}return r(t,e),t.create=function(e,n){if(null!=e){if("function"==typeof e[p.observable])return e instanceof h.Observable&&!n?e:new t(e,n);if(i.isArray(e))return new c.ArrayObservable(e,n);if(s.isPromise(e))return new a.PromiseObservable(e,n);if("function"==typeof e[d.iterator]||"string"==typeof e)return new u.IteratorObservable(e,n);if(o.isArrayLike(e))return new l.ArrayLikeObservable(e,n)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")},t.prototype._subscribe=function(e){var t=this.ish,n=this.scheduler;return null==n?t[p.observable]().subscribe(e):t[p.observable]().subscribe(new f.ObserveOnSubscriber(e,n,0))},t}(h.Observable);t.FromObservable=m},function(e,t,n){"use strict";function r(e){var t=e.value,n=e.subscriber;n.closed||(n.next(t),n.complete())}function i(e){var t=e.err,n=e.subscriber;n.closed||n.error(t)}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(554),a=n(553),u=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return o(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){s.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return o.schedule(r,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(o.schedule(r,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(o.schedule(i,0,{err:t,subscriber:e}))}).then(null,function(e){s.root.setTimeout(function(){throw e})})},t}(a.Observable);t.PromiseObservable=u},function(e,t,n){"use strict";function r(e){var t=e[l.iterator];if(!t&&"string"==typeof e)return new h(e);if(!t&&void 0!==e.length)return new f(e);if(!t)throw new TypeError("object is not iterable");return e[l.iterator]()}function i(e){var t=+e.length;return isNaN(t)?0:0!==t&&o(t)?(t=s(t)*Math.floor(Math.abs(t)),t<=0?0:t>p?p:t):t}function o(e){return"number"==typeof e&&u.root.isFinite(e)}function s(e){var t=+e;return 0===t?t:isNaN(t)?t:t<0?-1:1}var a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=n(554),c=n(553),l=n(587),d=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=r(t)}return a(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.hasError,r=e.iterator,i=e.subscriber;if(n)return void i.error(e.error);var o=r.next();return o.done?void i.complete():(i.next(o.value),e.index=t+1,i.closed?void("function"==typeof r.return&&r.return()):void this.schedule(e))},t.prototype._subscribe=function(e){var n=this,r=n.iterator,i=n.scheduler;if(i)return i.schedule(t.dispatch,0,{index:0,iterator:r,subscriber:e});for(;;){var o=r.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof r.return&&r.return();break}}},t}(c.Observable);t.IteratorObservable=d;var h=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},e}(),f=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=i(e)),this.arr=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},e}(),p=Math.pow(2,53)-1},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(580),s=n(581),a=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){var r=e.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,r=e.length,i=e.subscriber;if(!i.closed){if(n>=r)return void i.complete();i.next(t[n]),e.index=n+1,this.schedule(e)}},t.prototype._subscribe=function(e){var n=this,r=n.arrayLike,i=n.scheduler,o=r.length;if(i)return i.schedule(t.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:e});for(var s=0;s<o&&!e.closed;s++)e.next(r[s]);e.complete()},t}(i.Observable);t.ArrayLikeObservable=a},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=0),this.lift(new a(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(608);t.observeOn=r;var a=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=a;var u=function(e){function t(t,n,r){void 0===r&&(r=0),e.call(this,t),this.scheduler=n,this.delay=r}return i(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new c(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(s.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(s.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},t}(o.Subscriber);t.ObserveOnSubscriber=u;var c=function(){function e(e,t){this.notification=e,this.destination=t}return e}();t.ObserveOnMessage=c},function(e,t,n){"use strict";var r=n(553),i=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();t.Notification=i},function(e,t,n){"use strict";var r=n(553),i=n(610);r.Observable.fromEvent=i.fromEvent},function(e,t,n){"use strict";var r=n(611);t.fromEvent=r.FromEventObservable.create},function(e,t,n){"use strict";function r(e){return!!e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function i(e){return!!e&&"function"==typeof e.on&&"function"==typeof e.off}function o(e){return!!e&&"[object NodeList]"===p.call(e)}function s(e){return!!e&&"[object HTMLCollection]"===p.call(e)}function a(e){return!!e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var u=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},c=n(553),l=n(561),d=n(557),h=n(562),f=n(558),p=Object.prototype.toString,m=function(e){function t(t,n,r,i){e.call(this),this.sourceObj=t,this.eventName=n,this.selector=r,this.options=i}return u(t,e),t.create=function(e,n,r,i){return d.isFunction(r)&&(i=r,r=void 0),new t(e,n,i,r)},t.setupSubscription=function(e,n,u,c,l){var d;if(o(e)||s(e))for(var h=0,p=e.length;h<p;h++)t.setupSubscription(e[h],n,u,c,l);else if(a(e)){var m=e;e.addEventListener(n,u,l),d=function(){return m.removeEventListener(n,u)}}else if(i(e)){var _=e;e.on(n,u),d=function(){return _.off(n,u)}}else{if(!r(e))throw new TypeError("Invalid event target");var v=e;e.addListener(n,u),d=function(){return v.removeListener(n,u)}}c.add(new f.Subscription(d))},t.prototype._subscribe=function(e){var n=this.sourceObj,r=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=l.tryCatch(o).apply(void 0,t);r===h.errorObject?e.error(h.errorObject.e):e.next(r)}:function(t){return e.next(t)};t.setupSubscription(n,r,s,e,i)},t}(c.Observable);t.FromEventObservable=m},function(e,t,n){"use strict";var r=n(553),i=n(613);r.Observable.fromEventPattern=i.fromEventPattern},function(e,t,n){"use strict";var r=n(614);t.fromEventPattern=r.FromEventPatternObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(557),o=n(553),s=n(558),a=function(e){function t(t,n,r){e.call(this),this.addHandler=t,this.removeHandler=n,this.selector=r}return r(t,e),t.create=function(e,n,r){return new t(e,n,r)},t.prototype._subscribe=function(e){var t=this,n=this.removeHandler,r=this.selector?function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];t._callSelector(e,n)}:function(t){e.next(t)},o=this._callAddHandler(r,e);i.isFunction(n)&&e.add(new s.Subscription(function(){n(r,o)}))},t.prototype._callSelector=function(e,t){try{var n=this.selector.apply(this,t);e.next(n)}catch(t){e.error(t)}},t.prototype._callAddHandler=function(e,t){try{return this.addHandler(e)||null}catch(e){t.error(e)}},t}(o.Observable);t.FromEventPatternObservable=a},function(e,t,n){"use strict";var r=n(553),i=n(616);r.Observable.fromPromise=i.fromPromise},function(e,t,n){"use strict";var r=n(604);t.fromPromise=r.PromiseObservable.create},function(e,t,n){"use strict";var r=n(553),i=n(618);r.Observable.generate=i.GenerateObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(578),s=function(e){return e},a=function(e){function t(t,n,r,i,o){e.call(this),this.initialState=t,this.condition=n,this.iterate=r,this.resultSelector=i,this.scheduler=o}return r(t,e),t.create=function(e,n,r,i,a){return 1==arguments.length?new t(e.initialState,e.condition,e.iterate,e.resultSelector||s,e.scheduler):void 0===i||o.isScheduler(i)?new t(e,n,r,s,i):new t(e,n,r,i,a)},t.prototype._subscribe=function(e){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(t.dispatch,0,{subscriber:e,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var r=this,i=r.condition,o=r.resultSelector,s=r.iterate;;){if(i){var a=void 0;try{a=i(n)}catch(t){return void e.error(t)}if(!a){e.complete();break}}var u=void 0;try{u=o(n)}catch(t){return void e.error(t)}if(e.next(u),e.closed)break;try{n=s(n)}catch(t){return void e.error(t)}}},t.dispatch=function(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(n){var r=void 0;try{r=n(e.state)}catch(e){return void t.error(e)}if(!r)return void t.complete();if(t.closed)return}var i;try{i=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}},t}(i.Observable);t.GenerateObservable=a},function(e,t,n){"use strict";var r=n(553),i=n(620);r.Observable.if=i._if},function(e,t,n){"use strict";var r=n(621);t._if=r.IfObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(584),s=n(583),a=function(e){function t(t,n,r){e.call(this),this.condition=t,this.thenSource=n,this.elseSource=r}return r(t,e),t.create=function(e,n,r){return new t(e,n,r)},t.prototype._subscribe=function(e){var t=this,n=t.condition,r=t.thenSource,i=t.elseSource;return new u(e,n,r,i)},t}(i.Observable);t.IfObservable=a;var u=function(e){function t(t,n,r,i){e.call(this,t),this.condition=n,this.thenSource=r,this.elseSource=i,this.tryIf()}return r(t,e),t.prototype.tryIf=function(){var e,t=this,n=t.condition,r=t.thenSource,i=t.elseSource;try{e=n();var s=e?r:i;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(e){this._error(e)}},t}(s.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(623);r.Observable.interval=i.interval},function(e,t,n){"use strict";var r=n(624);t.interval=r.IntervalObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(625),o=n(553),s=n(626),a=function(e){function t(t,n){void 0===t&&(t=0),void 0===n&&(n=s.async),e.call(this),this.period=t,this.scheduler=n,(!i.isNumeric(t)||t<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return r(t,e),t.create=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=s.async),new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.subscriber,r=e.period;n.next(t),n.closed||(e.index+=1,this.schedule(e,r))},t.prototype._subscribe=function(e){var n=this.period,r=this.scheduler;e.add(r.schedule(t.dispatch,n,{index:0,subscriber:e,period:n}))},t}(o.Observable);t.IntervalObservable=a},function(e,t,n){"use strict";function r(e){return!i.isArray(e)&&e-parseFloat(e)+1>=0}var i=n(559);t.isNumeric=r},function(e,t,n){"use strict";var r=n(627),i=n(629);t.async=new i.AsyncScheduler(r.AsyncAction)},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(554),o=n(628),s=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n,this.pending=!1}return r(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),i.root.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?t:i.root.clearInterval(t)&&void 0||void 0},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(o.Action);t.AsyncAction=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(558),o=function(e){function t(t,n){e.call(this)}return r(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(i.Subscription);t.Action=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(630),o=function(e){function t(){e.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(t,e),t.prototype.flush=function(e){var t=this.actions;if(this.active)return void t.push(e);var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},t}(i.Scheduler);t.AsyncScheduler=o},function(e,t){"use strict";var n=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=Date.now?Date.now:function(){return+new Date},e}();t.Scheduler=n},function(e,t,n){"use strict";var r=n(553),i=n(632);r.Observable.merge=i.merge},function(e,t,n){"use strict";var r=n(633);t.merge=r.mergeStatic},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.lift.call(i.apply(void 0,[this].concat(e)))}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return u.isScheduler(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof o.Observable?e[0]:new s.ArrayObservable(e,r).lift(new a.MergeAllOperator(n))}var o=n(553),s=n(579),a=n(592),u=n(578);t.merge=r,t.mergeStatic=i},function(e,t,n){"use strict";var r=n(553),i=n(635);r.Observable.race=i.raceStatic},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length&&s.isArray(e[0])&&(e=e[0]),this.lift.call(i.apply(void 0,[this].concat(e)))}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(1===e.length){if(!s.isArray(e[0]))return e[0];e=e[0]}return new a.ArrayObservable(e).lift(new l)}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(559),a=n(579),u=n(583),c=n(584);t.race=r,t.raceStatic=i;var l=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new d(e))},e}();t.RaceOperator=l;var d=function(e){function t(t){e.call(this,t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return o(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=e[n],i=c.subscribeToResult(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(t)},t}(u.OuterSubscriber);t.RaceSubscriber=d},function(e,t,n){"use strict";var r=n(553),i=n(637);r.Observable.never=i.never},function(e,t,n){"use strict";var r=n(638);t.never=r.NeverObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(639),s=function(e){function t(){e.call(this)}return r(t,e),t.create=function(){return new t},t.prototype._subscribe=function(e){o.noop()},t}(i.Observable);t.NeverObservable=s},function(e,t){"use strict";function n(){}t.noop=n},function(e,t,n){"use strict";var r=n(553),i=n(641);r.Observable.of=i.of},function(e,t,n){"use strict";var r=n(579);t.of=r.ArrayObservable.of},function(e,t,n){"use strict";var r=n(553),i=n(643);r.Observable.onErrorResumeNext=i.onErrorResumeNextStatic},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length&&a.isArray(e[0])&&(e=e[0]),this.lift(new l(e))}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null;return 1===e.length&&a.isArray(e[0])&&(e=e[0]),n=e.shift(),new s.FromObservable(n,null).lift(new l(e))}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(603),a=n(559),u=n(583),c=n(584);t.onErrorResumeNext=r,t.onErrorResumeNextStatic=i;var l=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.nextSources))},e}(),d=function(e){function t(t,n){e.call(this,t),this.destination=t,this.nextSources=n}return o(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource()},t.prototype._complete=function(){this.subscribeToNextSource()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();e?this.add(c.subscribeToResult(this,e)):this.destination.complete()},t}(u.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(645);r.Observable.pairs=i.pairs},function(e,t,n){"use strict";var r=n(646);t.pairs=r.PairsObservable.create},function(e,t,n){"use strict";function r(e){var t=e.obj,n=e.keys,r=e.length,i=e.index,o=e.subscriber;if(i===r)return void o.complete();var s=n[i];o.next([s,t[s]]),e.index=i+1,this.schedule(e)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(553),s=function(e){function t(t,n){e.call(this),this.obj=t,this.scheduler=n,this.keys=Object.keys(t)}return i(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=t.keys,i=t.scheduler,o=n.length;if(i)return i.schedule(r,0,{obj:this.obj,keys:n,length:o,index:0,subscriber:e});for(var s=0;s<o;s++){var a=n[s];e.next([a,this.obj[a]])}e.complete()},t}(o.Observable);t.PairsObservable=s},function(e,t,n){"use strict";var r=n(553),i=n(648);r.Observable.range=i.range},function(e,t,n){"use strict";var r=n(649);t.range=r.RangeObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=function(e){function t(t,n,r){e.call(this),this.start=t,this._count=n,this.scheduler=r}return r(t,e),t.create=function(e,n,r){return void 0===e&&(e=0),void 0===n&&(n=0),new t(e,n,r)},t.dispatch=function(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;if(n>=r)return void i.complete();i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e))},t.prototype._subscribe=function(e){var n=0,r=this.start,i=this._count,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{index:n,count:i,start:r,subscriber:e});for(;;){if(n++>=i){e.complete();break}if(e.next(r++),e.closed)break}},t}(i.Observable);t.RangeObservable=o},function(e,t,n){"use strict";var r=n(553),i=n(651);r.Observable.using=i.using},function(e,t,n){"use strict";var r=n(652);t.using=r.UsingObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(584),s=n(583),a=function(e){function t(t,n){e.call(this),this.resourceFactory=t,this.observableFactory=n}return r(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t,n=this,r=n.resourceFactory,i=n.observableFactory;try{return t=r(),new u(e,t,i)}catch(t){e.error(t)}},t}(i.Observable);t.UsingObservable=a;var u=function(e){function t(t,n,r){e.call(this,t),this.resource=n,this.observableFactory=r,t.add(n),this.tryUse()}return r(t,e),t.prototype.tryUse=function(){try{var e=this.observableFactory.call(this,this.resource);e&&this.add(o.subscribeToResult(this,e))}catch(e){this._error(e)}},t}(s.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(654);r.Observable.throw=i._throw},function(e,t,n){"use strict";var r=n(655);t._throw=r.ErrorObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=function(e){function t(t,n){e.call(this),this.error=t,this.scheduler=n}return r(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.error;e.subscriber.error(t)},t.prototype._subscribe=function(e){var n=this.error,r=this.scheduler;if(e.syncErrorThrowable=!0,r)return r.schedule(t.dispatch,0,{error:n,subscriber:e});e.error(n)},t}(i.Observable);t.ErrorObservable=o},function(e,t,n){"use strict";var r=n(553),i=n(657);r.Observable.timer=i.timer},function(e,t,n){"use strict";var r=n(658);t.timer=r.TimerObservable.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(625),o=n(553),s=n(626),a=n(578),u=n(659),c=function(e){function t(t,n,r){void 0===t&&(t=0),e.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):a.isScheduler(n)&&(r=n),a.isScheduler(r)||(r=s.async),this.scheduler=r,this.dueTime=u.isDate(t)?+t-this.scheduler.now():t}return r(t,e),t.create=function(e,n,r){return void 0===e&&(e=0),new t(e,n,r)},t.dispatch=function(e){var t=e.index,n=e.period,r=e.subscriber,i=this;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,i.schedule(e,n)}},t.prototype._subscribe=function(e){var n=this,r=n.period,i=n.dueTime;return n.scheduler.schedule(t.dispatch,i,{index:0,period:r,subscriber:e})},t}(o.Observable);t.TimerObservable=c},function(e,t){"use strict";function n(e){return e instanceof Date&&!isNaN(+e)}t.isDate=n},function(e,t,n){"use strict";var r=n(553),i=n(661);r.Observable.zip=i.zip},function(e,t,n){"use strict";var r=n(662);t.zip=r.zipStatic},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.lift.call(i.apply(void 0,[this].concat(e)))}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),new s.ArrayObservable(e).lift(new h(n))}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(579),a=n(559),u=n(556),c=n(583),l=n(584),d=n(587);t.zipProto=r,t.zipStatic=i;var h=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project))},e}();t.ZipOperator=h;var f=function(e){function t(t,n,r){void 0===r&&(r=Object.create(null)),e.call(this,t),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=r}return o(t,e),t.prototype._next=function(e){var t=this.iterators;a.isArray(e)?t.push(new m(e)):"function"==typeof e[d.iterator]?t.push(new p(e[d.iterator]())):t.push(new _(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(0===t)return void this.destination.complete();this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}},t.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++){var i=e[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],r=0;r<t;r++){var i=e[r],a=i.next();if(i.hasCompleted()&&(o=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),o&&n.complete()},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(u.Subscriber);t.ZipSubscriber=f;var p=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),m=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[d.iterator]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),_=function(e){function t(t,n,r){e.call(this,t),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(t,e),t.prototype[d.iterator]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return l.subscribeToResult(this,this.observable,this,t)},t}(c.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(664);r.Observable.ajax=i.ajax},function(e,t,n){"use strict";var r=n(665);t.ajax=r.AjaxObservable.create},function(e,t,n){"use strict";function r(){if(h.root.XMLHttpRequest)return new h.root.XMLHttpRequest;if(h.root.XDomainRequest)return new h.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function i(){if(h.root.XMLHttpRequest)return new h.root.XMLHttpRequest;var e=void 0;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(e=t[n],new h.root.ActiveXObject(e))break}catch(e){}return new h.root.ActiveXObject(e)}catch(e){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(e,t){return void 0===t&&(t=null),new y({method:"GET",url:e,headers:t})}function s(e,t,n){return new y({method:"POST",url:e,body:t,headers:n})}function a(e,t){return new y({method:"DELETE",url:e,headers:t})}function u(e,t,n){return new y({method:"PUT",url:e,body:t,headers:n})}function c(e,t,n){return new y({method:"PATCH",url:e,body:t,headers:n})}function l(e,t){return new y({method:"GET",url:e,responseType:"json",headers:t}).lift(new v.MapOperator(function(e,t){return e.response},null))}var d=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},h=n(554),f=n(561),p=n(562),m=n(553),_=n(556),v=n(666);t.ajaxGet=o,t.ajaxPost=s,t.ajaxDelete=a,t.ajaxPut=u,t.ajaxPatch=c,t.ajaxGetJSON=l;var y=function(e){function t(t){e.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?r.call(this):i()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)n.url=t;else for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);this.request=n}return d(t,e),t.prototype._subscribe=function(e){return new g(e,this.request)},t.create=function(){var e=function(e){return new t(e)};return e.get=o,e.post=s,e.delete=a,e.put=u,e.patch=c,e.getJSON=l,e}(),t}(m.Observable);t.AjaxObservable=y;var g=function(e){function t(t,n){e.call(this,t),this.request=n,this.done=!1;var r=n.headers=n.headers||{};n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in r||h.root.FormData&&n.body instanceof h.root.FormData||void 0===n.body||(r["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return d(t,e),t.prototype.next=function(e){this.done=!0;var t=this,n=t.xhr,r=t.request,i=t.destination,o=new b(e,n,r);i.next(o)},t.prototype.send=function(){var e=this,t=e.request,n=e.request,r=n.user,i=n.method,o=n.url,s=n.async,a=n.password,u=n.headers,c=n.body,l=t.createXHR,d=f.tryCatch(l).call(t);if(d===p.errorObject)this.error(p.errorObject.e);else{this.xhr=d,this.setupEvents(d,t);if((r?f.tryCatch(d.open).call(d,i,o,s,r,a):f.tryCatch(d.open).call(d,i,o,s))===p.errorObject)return this.error(p.errorObject.e),null;if(s&&(d.timeout=t.timeout,d.responseType=t.responseType),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),this.setHeaders(d,u),(c?f.tryCatch(d.send).call(d,c):f.tryCatch(d.send).call(d))===p.errorObject)return this.error(p.errorObject.e),null}return d},t.prototype.serializeBody=function(e,t){if(!e||"string"==typeof e)return e;if(h.root.FormData&&e instanceof h.root.FormData)return e;if(t){var n=t.indexOf(";");-1!==n&&(t=t.substring(0,n))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map(function(t){return encodeURI(t)+"="+encodeURI(e[t])}).join("&");case"application/json":return JSON.stringify(e);default:return e}},t.prototype.setHeaders=function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setRequestHeader(n,t[n])},t.prototype.setupEvents=function(e,t){function n(e){var t=n,r=t.subscriber,i=t.progressSubscriber,o=t.request;i&&i.error(e),r.error(new M(this,o))}function r(e){var t=r,n=t.subscriber,i=t.progressSubscriber,o=t.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(i&&i.complete(),n.next(e),n.complete()):(i&&i.error(e),n.error(new w("ajax error "+s,this,o)))}}var i=t.progressSubscriber;if(e.ontimeout=n,n.request=t,n.subscriber=this,n.progressSubscriber=i,e.upload&&"withCredentials"in e){if(i){var o;o=function(e){o.progressSubscriber.next(e)},h.root.XDomainRequest?e.onprogress=o:e.upload.onprogress=o,o.progressSubscriber=i}var s;s=function(e){var t=s,n=t.progressSubscriber,r=t.subscriber,i=t.request;n&&n.error(e),r.error(new w("ajax error",this,i))},e.onerror=s,s.request=t,s.subscriber=this,s.progressSubscriber=i}e.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=i,r.request=t},t.prototype.unsubscribe=function(){var t=this,n=t.done,r=t.xhr;!n&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),e.prototype.unsubscribe.call(this)},t}(_.Subscriber);t.AjaxSubscriber=g;var b=function(){function e(e,t,n){switch(this.originalEvent=e,this.xhr=t,this.request=n,this.status=t.status,this.responseType=t.responseType||n.responseType,this.responseType){case"json":this.response="response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null");break;case"xml":this.response=t.responseXML;break;case"text":default:this.response="response"in t?t.response:t.responseText}}return e}();t.AjaxResponse=b;var w=function(e){function t(t,n,r){e.call(this,t),this.message=t,this.xhr=n,this.request=r,this.status=n.status}return d(t,e),t}(Error);t.AjaxError=w;var M=function(e){function t(t,n){e.call(this,"ajax timeout",t,n)}return d(t,e),t}(w);t.AjaxTimeoutError=M},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.map=r;var s=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}();t.MapOperator=s;var a=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return i(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(668);r.Observable.webSocket=i.webSocket},function(e,t,n){"use strict";var r=n(669);t.webSocket=r.WebSocketSubject.create},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(552),o=n(556),s=n(553),a=n(558),u=n(554),c=n(670),l=n(561),d=n(562),h=n(674),f=function(e){function t(t,n){if(t instanceof s.Observable)e.call(this,n,t);else{if(e.call(this),this.WebSocketCtor=u.root.WebSocket,this._output=new i.Subject,"string"==typeof t?this.url=t:h.assign(this,t),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.ReplaySubject}}return r(t,e),t.prototype.resultSelector=function(e){return JSON.parse(e.data)},t.create=function(e){return new t(e)},t.prototype.lift=function(e){var n=new t(this,this.destination);return n.operator=e,n},t.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new c.ReplaySubject),this._output=new i.Subject},t.prototype.multiplex=function(e,t,n){var r=this;return new s.Observable(function(i){var o=l.tryCatch(e)();o===d.errorObject?i.error(d.errorObject.e):r.next(o);var s=r.subscribe(function(e){var t=l.tryCatch(n)(e);t===d.errorObject?i.error(d.errorObject.e):t&&i.next(e)},function(e){return i.error(e)},function(){return i.complete()});return function(){var e=l.tryCatch(t)();e===d.errorObject?i.error(d.errorObject.e):r.next(e),s.unsubscribe()}})},t.prototype._connectSocket=function(){var e=this,t=this.WebSocketCtor,n=this._output,r=null;try{r=this.protocol?new t(this.url,this.protocol):new t(this.url),this.socket=r,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(e){return void n.error(e)}var i=new a.Subscription(function(){e.socket=null,r&&1===r.readyState&&r.close()});r.onopen=function(t){var s=e.openObserver;s&&s.next(t);var a=e.destination;e.destination=o.Subscriber.create(function(e){return 1===r.readyState&&r.send(e)},function(t){var i=e.closingObserver;i&&i.next(void 0),t&&t.code?r.close(t.code,t.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()},function(){var t=e.closingObserver;t&&t.next(void 0),r.close(),e._resetState()}),a&&a instanceof c.ReplaySubject&&i.add(a.subscribe(e.destination))},r.onerror=function(t){e._resetState(),n.error(t)},r.onclose=function(t){e._resetState();var r=e.closeObserver;r&&r.next(t),t.wasClean?n.complete():n.error(t)},r.onmessage=function(t){var r=l.tryCatch(e.resultSelector)(t);r===d.errorObject?n.error(d.errorObject.e):n.next(r)}},t.prototype._subscribe=function(e){var t=this,n=this.source;if(n)return n.subscribe(e);this.socket||this._connectSocket();var r=new a.Subscription;return r.add(this._output.subscribe(e)),r.add(function(){var e=t.socket;0===t._output.observers.length&&(e&&1===e.readyState&&e.close(),t._resetState())}),r},t.prototype.unsubscribe=function(){var t=this,n=t.source,r=t.socket;r&&1===r.readyState&&(r.close(),this._resetState()),e.prototype.unsubscribe.call(this),n||(this.destination=new c.ReplaySubject)},t}(i.AnonymousSubject);t.WebSocketSubject=f},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(552),o=n(671),s=n(558),a=n(607),u=n(567),c=n(568),l=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=r,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return r(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new d(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?t=s.Subscription.EMPTY:this.isStopped?t=s.Subscription.EMPTY:(this.observers.push(e),t=new c.SubjectSubscription(this,e)),r&&e.add(e=new a.ObserveOnSubscriber(e,r));for(var i=n.length,o=0;o<i&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||o.queue).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.Subject);t.ReplaySubject=l;var d=function(){function e(e,t){this.time=e,this.value=t}return e}()},function(e,t,n){"use strict";var r=n(672),i=n(673);t.queue=new i.QueueScheduler(r.QueueAction)},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(627),o=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return r(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(i.AsyncAction);t.QueueAction=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(629),o=function(e){function t(){e.apply(this,arguments)}return r(t,e),t}(i.AsyncScheduler);t.QueueScheduler=o},function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t.length,i=0;i<r;i++){var o=t[i];for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}function i(e){return e.Object.assign||r}var o=n(554);t.assignImpl=r,t.getAssign=i,t.assign=i(o.root)},function(e,t,n){"use strict";var r=n(553),i=n(676);r.Observable.prototype.buffer=i.buffer},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.buffer=r;var a=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.closingNotifier))},e}(),u=function(e){function t(t,n){e.call(this,t),this.buffer=[],this.add(s.subscribeToResult(this,n))}return i(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(678);r.Observable.prototype.bufferCount=i.bufferCount},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=null),this.lift(new s(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.bufferCount=r;var s=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?u:a}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),a=function(e){function t(t,n){e.call(this,t),this.bufferSize=n,this.buffer=[]}return i(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(o.Subscriber),u=function(e){function t(t,n,r){e.call(this,t),this.bufferSize=n,this.startBufferEvery=r,this.buffers=[],this.count=0}return i(t,e),t.prototype._next=function(e){var t=this,n=t.bufferSize,r=t.startBufferEvery,i=t.buffers,o=t.count;this.count++,o%r==0&&i.push([]);for(var s=i.length;s--;){var a=i[s];a.push(e),a.length===n&&(i.splice(s,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this,n=t.buffers,r=t.destination;n.length>0;){var i=n.shift();i.length>0&&r.next(i)}e.prototype._complete.call(this)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(680);r.Observable.prototype.bufferTime=i.bufferTime},function(e,t,n){"use strict";function r(e){var t=arguments.length,n=u.async;l.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),this.lift(new d(e,r,i,n))}function i(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function o(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext(),a=this;r.closed||(r.add(o.closeAction=i.schedule(s,n,{subscriber:r,context:o})),a.schedule(e,t))}function s(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=n(626),c=n(556),l=n(578);t.bufferTime=r;var d=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),h=function(){function e(){this.buffer=[]}return e}(),f=function(e){function t(t,n,r,a,u){e.call(this,t),this.bufferTimeSpan=n,this.bufferCreationInterval=r,this.maxBufferSize=a,this.scheduler=u,this.contexts=[];var c=this.openContext();if(this.timespanOnly=null==r||r<0,this.timespanOnly){var l={subscriber:this,context:c,bufferTimeSpan:n};this.add(c.closeAction=u.schedule(i,n,l))}else{var d={subscriber:this,context:c},h={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:this,scheduler:u};this.add(c.closeAction=u.schedule(s,n,d)),this.add(u.schedule(o,r,h))}}return a(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(e),s.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this,n=t.contexts,r=t.destination;n.length>0;){var i=n.shift();r.next(i.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(i,n,r))}},t.prototype.openContext=function(){var e=new h;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(c.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(682);r.Observable.prototype.bufferToggle=i.bufferToggle},function(e,t,n){"use strict";function r(e,t){return this.lift(new u(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(558),s=n(584),a=n(583);t.bufferToggle=r;var u=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.openings,this.closingSelector))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(s.subscribeToResult(this,n))}return i(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r<n;r++)t[r].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector,n=t.call(this,e);n&&this.trySubscribe(n)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=[],r=new o.Subscription,i={buffer:n,subscription:r};t.push(i);var a=s.subscribeToResult(this,e,i);!a||a.closed?this.closeBuffer(i):(a.context=i,this.add(a),r.add(a))},t}(a.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(684);r.Observable.prototype.bufferWhen=i.bufferWhen},function(e,t,n){"use strict";function r(e){return this.lift(new l(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(558),s=n(561),a=n(562),u=n(583),c=n(584);t.bufferWhen=r;var l=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.closingSelector))},e}(),d=function(e){function t(t,n){e.call(this,t),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return i(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,r,i){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t=this.buffer;this.buffer&&this.destination.next(t),this.buffer=[];var n=s.tryCatch(this.closingSelector)();n===a.errorObject?this.error(a.errorObject.e):(e=new o.Subscription,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(c.subscribeToResult(this,n)),this.subscribing=!1)},t}(u.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(686);r.Observable.prototype.catch=i._catch,r.Observable.prototype._catch=i._catch},function(e,t,n){"use strict";function r(e){var t=new a(e),n=this.lift(t);return t.caught=n}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t._catch=r;var a=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.selector,this.caught))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.selector=n,this.caught=r}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(688);r.Observable.prototype.combineAll=i.combineAll},function(e,t,n){"use strict";function r(e){return this.lift(new i.CombineLatestOperator(e))}var i=n(582);t.combineAll=r},function(e,t,n){"use strict";var r=n(553),i=n(582);r.Observable.prototype.combineLatest=i.combineLatest},function(e,t,n){"use strict";var r=n(553),i=n(591);r.Observable.prototype.concat=i.concat},function(e,t,n){"use strict";var r=n(553),i=n(692);r.Observable.prototype.concatAll=i.concatAll},function(e,t,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=n(592);t.concatAll=r},function(e,t,n){"use strict";var r=n(553),i=n(694);r.Observable.prototype.concatMap=i.concatMap},function(e,t,n){"use strict";function r(e,t){return this.lift(new i.MergeMapOperator(e,t,1))}var i=n(695);t.concatMap=r},function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new a(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(584),s=n(583);t.mergeMap=r;var a=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var u=function(e){function t(t,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(o.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.resultSelector?this._notifyResultSelector(e,t,n,r):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,r){var i;try{i=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(s.OuterSubscriber);t.MergeMapSubscriber=u},function(e,t,n){"use strict";var r=n(553),i=n(697);r.Observable.prototype.concatMapTo=i.concatMapTo},function(e,t,n){"use strict";function r(e,t){return this.lift(new i.MergeMapToOperator(e,t,1))}var i=n(698);t.concatMapTo=r},function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new a(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.mergeMapTo=r;var a=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.ish,this.resultSelector,this.concurrent))},e}();t.MergeMapToOperator=a;var u=function(e){function t(t,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.ish=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.resultSelector,n=this.index++,r=this.ish,i=this.destination;this.active++,this._innerSub(r,i,t,e,n)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n,r,i){this.add(s.subscribeToResult(this,e,r,i))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(e,t,n,r):a.next(t)},t.prototype.trySelectResult=function(e,t,n,r){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(e,t,n,r)}catch(e){return void a.error(e)}a.next(i)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeMapToSubscriber=u},function(e,t,n){"use strict";var r=n(553),i=n(700);r.Observable.prototype.count=i.count},function(e,t,n){"use strict";function r(e){return this.lift(new s(e,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.count=r;var s=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.source))},e}(),a=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.source=r,this.count=0,this.index=0}return i(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(702);r.Observable.prototype.dematerialize=i.dematerialize},function(e,t,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.dematerialize=r;var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){e.call(this,t)}return i(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(704);r.Observable.prototype.debounce=i.debounce},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.debounce=r;var a=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function t(t,n){e.call(this,t),this.durationSelector=n,this.hasValue=!1,this.durationSubscription=null}return i(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=s.subscribeToResult(this,t),n.closed||this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(706);r.Observable.prototype.debounceTime=i.debounceTime},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=a.async),this.lift(new u(e,t))}function i(e){e.debouncedNext()}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(556),a=n(626);t.debounceTime=r;var u=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.dueTime,this.scheduler))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(i,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(s.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(708);r.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=null),this.lift(new s(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.defaultIfEmpty=r;var s=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.defaultValue))},e}(),a=function(e){function t(t,n){e.call(this,t),this.defaultValue=n,this.isEmpty=!0}return i(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(710);r.Observable.prototype.delay=i.delay},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t=o.async);var n=s.isDate(e),r=n?+e-t.now():Math.abs(e);return this.lift(new c(r,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(626),s=n(659),a=n(556),u=n(608);t.delay=r;var c=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.delay,this.scheduler))},e}(),l=function(e){function t(t,n,r){e.call(this,t),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return i(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new d(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(u.Notification.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},t.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},t}(a.Subscriber),d=function(){function e(e,t){this.time=e,this.notification=t}return e}()},function(e,t,n){"use strict";var r=n(553),i=n(712);r.Observable.prototype.delayWhen=i.delayWhen},function(e,t,n){"use strict";function r(e,t){return t?new d(this,t).lift(new c(e)):this.lift(new c(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(553),a=n(583),u=n(584);t.delayWhen=r;var c=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.delayDurationSelector))},e}(),l=function(e){function t(t,n){e.call(this,t),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){try{var t=this.delayDurationSelector(e);t&&this.tryDelay(t,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e),n=null;return-1!==t&&(n=this.values[t],this.delayNotifierSubscriptions.splice(t,1),this.values.splice(t,1)),n},t.prototype.tryDelay=function(e,t){var n=u.subscribeToResult(this,e,t);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(t)},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(a.OuterSubscriber),d=function(e){function t(t,n){e.call(this),this.source=t,this.subscriptionDelay=n}return i(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new h(e,this.source))},t}(s.Observable),h=function(e){function t(t,n){e.call(this),this.parent=t,this.source=n,this.sourceSubscribed=!1}return i(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(714);r.Observable.prototype.distinct=i.distinct},function(e,t,n){"use strict";function r(e,t){return this.lift(new u(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584),a=n(715);t.distinct=r;var u=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.keySelector,this.flushes))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.keySelector=n,this.values=new a.Set,r&&this.add(s.subscribeToResult(this,r))}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(o.OuterSubscriber);t.DistinctSubscriber=c},function(e,t,n){"use strict";function r(){return function(){function e(){this._values=[]}return e.prototype.add=function(e){this.has(e)||this._values.push(e)},e.prototype.has=function(e){return-1!==this._values.indexOf(e)},Object.defineProperty(e.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._values.length=0},e}()}var i=n(554);t.minimalSetImpl=r,t.Set=i.root.Set||r()},function(e,t,n){"use strict";var r=n(553),i=n(717);r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},function(e,t,n){"use strict";function r(e,t){return this.lift(new u(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(561),a=n(562);t.distinctUntilChanged=r;var u=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.compare,this.keySelector))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return i(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=this.keySelector,n=e;if(t&&(n=s.tryCatch(this.keySelector)(e))===a.errorObject)return this.destination.error(a.errorObject.e);var r=!1;if(this.hasKey){if((r=s.tryCatch(this.compare)(this.key,n))===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=n,this.destination.next(e))},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(719);r.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},function(e,t,n){"use strict";function r(e,t){return i.distinctUntilChanged.call(this,function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}var i=n(717);t.distinctUntilKeyChanged=r},function(e,t,n){"use strict";var r=n(553),i=n(721);r.Observable.prototype.do=i._do,r.Observable.prototype._do=i._do},function(e,t,n){"use strict";function r(e,t,n){return this.lift(new s(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t._do=r;var s=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.nextOrObserver,this.error,this.complete))},e}(),a=function(e){function t(t,n,r,i){e.call(this,t);var s=new o.Subscriber(n,r,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return i(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.error(e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(723);r.Observable.prototype.exhaust=i.exhaust},function(e,t,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.exhaust=r;var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){e.call(this,t),this.hasCompleted=!1,this.hasSubscription=!1}return i(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(725);r.Observable.prototype.exhaustMap=i.exhaustMap},function(e,t,n){"use strict";function r(e,t){return this.lift(new a(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.exhaustMap=r;var a=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.resultSelector))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.resultSelector=r,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return i(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t=this.index++,n=this.destination;try{var r=this.project(e,t);this.hasSubscription=!0,this.add(s.subscribeToResult(this,r,e,t))}catch(e){n.error(e)}},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(e,t,n,r):a.next(t)},t.prototype.trySelectResult=function(e,t,n,r){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(e,t,n,r);s.next(a)}catch(e){s.error(e)}},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(727);r.Observable.prototype.expand=i.expand},function(e,t,n){"use strict";function r(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,this.lift(new c(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(561),s=n(562),a=n(583),u=n(584);t.expand=r;var c=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.project,this.concurrent,this.scheduler))},e}();t.ExpandOperator=c;var l=function(e){function t(t,n,r,i){e.call(this,t),this.project=n,this.concurrent=r,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(this.buffer=[])}return i(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)},t.prototype._next=function(e){var n=this.destination;if(n.closed)return void this._complete();var r=this.index++;if(this.active<this.concurrent){n.next(e);var i=o.tryCatch(this.project)(e,r);if(i===s.errorObject)n.error(s.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:i,value:e,index:r};this.add(this.scheduler.schedule(t.dispatch,0,a))}else this.subscribeToProjection(i,e,r)}else this.buffer.push(e)},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.add(u.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(a.OuterSubscriber);t.ExpandSubscriber=l},function(e,t,n){"use strict";var r=n(553),i=n(729);r.Observable.prototype.elementAt=i.elementAt},function(e,t,n){"use strict";function r(e,t){return this.lift(new a(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(730);t.elementAt=r;var a=function(){function e(e,t){if(this.index=e,this.defaultValue=t,e<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.index,this.defaultValue))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.index=n,this.defaultValue=r}return i(t,e),t.prototype._next=function(e){0==this.index--&&(this.destination.next(e),this.destination.complete())},t.prototype._complete=function(){var e=this.destination;this.index>=0&&(void 0!==this.defaultValue?e.next(this.defaultValue):e.error(new s.ArgumentOutOfRangeError)),e.complete()},t}(o.Subscriber)},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return n(t,e),t}(Error);t.ArgumentOutOfRangeError=r},function(e,t,n){"use strict";var r=n(553),i=n(732);r.Observable.prototype.filter=i.filter},function(e,t,n){"use strict";function r(e,t){return this.lift(new s(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.filter=r;var s=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(734);r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(558);t._finally=r;var a=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.callback))},e}(),u=function(e){function t(t,n){e.call(this,t),this.add(new s.Subscription(n))}return i(t,e),t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(736);r.Observable.prototype.find=i.find},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return this.lift(new s(e,this,!1,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.find=r;var s=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}();t.FindValueOperator=s;var a=function(e){function t(t,n,r,i,o){e.call(this,t),this.predicate=n,this.source=r,this.yieldIndex=i,this.thisArg=o,this.index=0}return i(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){var t=this,n=t.predicate,r=t.thisArg,i=this.index++;try{n.call(r||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(o.Subscriber);t.FindValueSubscriber=a},function(e,t,n){"use strict";var r=n(553),i=n(738);r.Observable.prototype.findIndex=i.findIndex},function(e,t,n){"use strict";function r(e,t){return this.lift(new i.FindValueOperator(e,this,!0,t))}var i=n(736);t.findIndex=r},function(e,t,n){"use strict";var r=n(553),i=n(740);r.Observable.prototype.first=i.first},function(e,t,n){"use strict";function r(e,t,n){return this.lift(new a(e,t,n,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(741);t.first=r;var a=function(){function e(e,t,n,r){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),u=function(e){function t(t,n,r,i,o){e.call(this,t),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(t,e),t.prototype._next=function(e){var t=this.index++;this.predicate?this._tryPredicate(e,t):this._emit(e,t)},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}n&&this._emit(e,t)},t.prototype._emit=function(e,t){if(this.resultSelector)return void this._tryResultSelector(e,t);this._emitFinal(e)},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this._emitFinal(n)},t.prototype._emitFinal=function(e){var t=this.destination;this._emitted||(this._emitted=!0,t.next(e),t.complete(),this.hasCompleted=!0)},t.prototype._complete=function(){var e=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||e.error(new s.EmptyError):(e.next(this.defaultValue),e.complete())},t}(o.Subscriber)},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return n(t,e),t}(Error);t.EmptyError=r},function(e,t,n){"use strict";var r=n(553),i=n(743);r.Observable.prototype.groupBy=i.groupBy},function(e,t,n){"use strict";function r(e,t,n,r){return this.lift(new d(e,t,n,r))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(558),a=n(553),u=n(552),c=n(744),l=n(746);t.groupBy=r;var d=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),h=function(e){function t(t,n,r,i,o){e.call(this,t),this.keySelector=n,this.elementSelector=r,this.durationSelector=i,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return i(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups="string"==typeof t?new l.FastMap:new c.Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new u.Subject,n.set(t,i);var o=new p(t,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new p(t,i))}catch(e){return void this.error(e)}this.add(s.subscribe(new f(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(o.Subscriber),f=function(e){function t(t,n,r){e.call(this,n),this.key=t,this.group=n,this.parent=r}return i(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this,t=e.parent,n=e.key;this.key=this.parent=null,t&&t.removeGroup(n)},t}(o.Subscriber),p=function(e){function t(t,n,r){e.call(this),this.key=t,this.groupSubject=n,this.refCountSubscription=r}return i(t,e),t.prototype._subscribe=function(e){var t=new s.Subscription,n=this,r=n.refCountSubscription,i=n.groupSubject;return r&&!r.closed&&t.add(new m(r)),t.add(i.subscribe(e)),t},t}(a.Observable);t.GroupedObservable=p;var m=function(e){function t(t){e.call(this),this.parent=t,t.count++}return i(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(s.Subscription)},function(e,t,n){"use strict";var r=n(554),i=n(745);t.Map=r.root.Map||function(){return i.MapPolyfill}()},function(e,t){"use strict";var n=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},e}();t.MapPolyfill=n},function(e,t){"use strict";var n=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var r in n)n.hasOwnProperty(r)&&null!==n[r]&&e.call(t,n[r],r)},e.prototype.clear=function(){this.values={}},e}();t.FastMap=n},function(e,t,n){"use strict";var r=n(553),i=n(748);r.Observable.prototype.ignoreElements=i.ignoreElements},function(e,t,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(639);t.ignoreElements=r;var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(){e.apply(this,arguments)}return i(t,e),t.prototype._next=function(e){s.noop()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(750);r.Observable.prototype.isEmpty=i.isEmpty},function(e,t,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.isEmpty=r;var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){e.call(this,t)}return i(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(752);r.Observable.prototype.audit=i.audit},function(e,t,n){"use strict";function r(e){return this.lift(new c(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(561),s=n(562),a=n(583),u=n(584);t.audit=r;var c=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.durationSelector))},e}(),l=function(e){function t(t,n){e.call(this,t),this.durationSelector=n,this.hasValue=!1}return i(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=o.tryCatch(this.durationSelector)(e);if(t===s.errorObject)this.destination.error(s.errorObject.e);else{var n=u.subscribeToResult(this,t);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this,t=e.value,n=e.hasValue,r=e.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(t))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(a.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(754);r.Observable.prototype.auditTime=i.auditTime},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=s.async),this.lift(new u(e,t))}function i(e){e.clearThrottle()}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(626),a=n(556);t.auditTime=r;var u=function(){function e(e,t){this.duration=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.duration,this.scheduler))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.duration=n,this.scheduler=r,this.hasValue=!1}return o(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0,this.throttled||this.add(this.throttled=this.scheduler.schedule(i,this.duration,this))},t.prototype.clearThrottle=function(){var e=this,t=e.value,n=e.hasValue,r=e.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(t))},t}(a.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(756);r.Observable.prototype.last=i.last},function(e,t,n){"use strict";function r(e,t,n){return this.lift(new a(e,t,n,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(741);t.last=r;var a=function(){function e(e,t,n,r){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),u=function(e){function t(t,n,r,i,o){e.call(this,t),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return i(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new s.EmptyError)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(758);r.Observable.prototype.let=i.letProto,r.Observable.prototype.letBind=i.letProto},function(e,t){"use strict";function n(e){return e(this)}t.letProto=n},function(e,t,n){"use strict";var r=n(553),i=n(760);r.Observable.prototype.every=i.every},function(e,t,n){"use strict";function r(e,t){return this.lift(new s(e,t,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.every=r;var s=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg,this.source))},e}(),a=function(e){function t(t,n,r,i){e.call(this,t),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(666);r.Observable.prototype.map=i.map},function(e,t,n){"use strict";var r=n(553),i=n(763);r.Observable.prototype.mapTo=i.mapTo},function(e,t,n){"use strict";function r(e){return this.lift(new s(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.mapTo=r;var s=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.value))},e}(),a=function(e){function t(t,n){e.call(this,t),this.value=n}return i(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(765);r.Observable.prototype.materialize=i.materialize},function(e,t,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(608);t.materialize=r;var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){e.call(this,t)}return i(t,e),t.prototype._next=function(e){this.destination.next(s.Notification.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(s.Notification.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(s.Notification.createComplete()),e.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(767);r.Observable.prototype.max=i.max},function(e,t,n){"use strict";function r(e){var t="function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t};return this.lift(new i.ReduceOperator(t))}var i=n(768);t.max=r},function(e,t,n){"use strict";function r(e,t){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.reduce=r;var s=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))},e}();t.ReduceOperator=s;var a=function(e){function t(t,n,r,i){e.call(this,t),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return i(t,e),t.prototype._next=function(e){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(e):(this.acc=e,this.hasValue=!0)},t.prototype._tryReduce=function(e){var t;try{t=this.accumulator(this.acc,e,this.index++)}catch(e){return void this.destination.error(e)}this.acc=t},t.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},t}(o.Subscriber);t.ReduceSubscriber=a},function(e,t,n){"use strict";var r=n(553),i=n(633);r.Observable.prototype.merge=i.merge},function(e,t,n){"use strict";var r=n(553),i=n(592);r.Observable.prototype.mergeAll=i.mergeAll},function(e,t,n){"use strict";var r=n(553),i=n(695);r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},function(e,t,n){"use strict";var r=n(553),i=n(698);r.Observable.prototype.flatMapTo=i.mergeMapTo,r.Observable.prototype.mergeMapTo=i.mergeMapTo},function(e,t,n){"use strict";var r=n(553),i=n(774);r.Observable.prototype.mergeScan=i.mergeScan},function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),this.lift(new c(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(561),s=n(562),a=n(584),u=n(583);t.mergeScan=r;var c=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.concurrent))},e}();t.MergeScanOperator=c;var l=function(e){function t(t,n,r,i){e.call(this,t),this.accumulator=n,this.acc=r,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=o.tryCatch(this.accumulator)(this.acc,e),r=this.destination;n===s.errorObject?r.error(s.errorObject.e):(this.active++,this._innerSub(n,e,t))}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){this.add(a.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(u.OuterSubscriber);t.MergeScanSubscriber=l},function(e,t,n){"use strict";var r=n(553),i=n(776);r.Observable.prototype.min=i.min},function(e,t,n){"use strict";function r(e){var t="function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t};return this.lift(new i.ReduceOperator(t))}var i=n(768);t.min=r},function(e,t,n){"use strict";var r=n(553),i=n(778);r.Observable.prototype.multicast=i.multicast},function(e,t,n){"use strict";function r(e,t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof t)return this.lift(new o(n,t));var r=Object.create(this,i.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var i=n(779);t.multicast=r;var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}();t.MulticastOperator=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(552),o=n(553),s=n(556),a=n(558),u=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return r(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,e=this._connection=new a.Subscription,e.add(this.source.subscribe(new l(this.getSubject(),this))),e.closed?(this._connection=null,e=a.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return this.lift(new d(this))},t}(o.Observable);t.ConnectableObservable=u;var c=u.prototype;t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}};var l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return r(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.SubjectSubscriber),d=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new h(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return r(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(!e)return void(this.connection=null);this.connectable=null;var t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},t}(s.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(607);r.Observable.prototype.observeOn=i.observeOn},function(e,t,n){"use strict";var r=n(553),i=n(643);r.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},function(e,t,n){"use strict";var r=n(553),i=n(783);r.Observable.prototype.pairwise=i.pairwise},function(e,t,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.pairwise=r;var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){e.call(this,t),this.hasPrev=!1}return i(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(785);r.Observable.prototype.partition=i.partition},function(e,t,n){"use strict";function r(e,t){return[o.filter.call(this,e,t),o.filter.call(this,i.not(e,t))]}var i=n(786),o=n(732);t.partition=r},function(e,t){"use strict";function n(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}t.not=n},function(e,t,n){"use strict";var r=n(553),i=n(788);r.Observable.prototype.pluck=i.pluck},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return o.map.call(this,i(e,n))}function i(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=r[e[i]];if(void 0===o)return;r=o}return r}}var o=n(666);t.pluck=r},function(e,t,n){"use strict";var r=n(553),i=n(790);r.Observable.prototype.publish=i.publish},function(e,t,n){"use strict";function r(e){return e?o.multicast.call(this,function(){return new i.Subject},e):o.multicast.call(this,new i.Subject)}var i=n(552),o=n(778);t.publish=r},function(e,t,n){"use strict";var r=n(553),i=n(792);r.Observable.prototype.publishBehavior=i.publishBehavior},function(e,t,n){"use strict";function r(e){return o.multicast.call(this,new i.BehaviorSubject(e))}var i=n(793),o=n(778);t.publishBehavior=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(552),o=n(567),s=function(e){function t(t){e.call(this),this._value=t}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.Subject);t.BehaviorSubject=s},function(e,t,n){"use strict";var r=n(553),i=n(795);r.Observable.prototype.publishReplay=i.publishReplay},function(e,t,n){"use strict";function r(e,t,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY),o.multicast.call(this,new i.ReplaySubject(e,t,n))}var i=n(670),o=n(778);t.publishReplay=r},function(e,t,n){"use strict";var r=n(553),i=n(797);r.Observable.prototype.publishLast=i.publishLast},function(e,t,n){"use strict";function r(){return o.multicast.call(this,new i.AsyncSubject)}var i=n(572),o=n(778);t.publishLast=r},function(e,t,n){"use strict";var r=n(553),i=n(635);r.Observable.prototype.race=i.race},function(e,t,n){"use strict";var r=n(553),i=n(768);r.Observable.prototype.reduce=i.reduce},function(e,t,n){"use strict";var r=n(553),i=n(801);r.Observable.prototype.repeat=i.repeat},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=-1),0===e?new s.EmptyObservable:e<0?this.lift(new a(-1,this)):this.lift(new a(e-1,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(581);t.repeat=r;var a=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.count,this.source))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.count=n,this.source=r}return i(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,r=t.count;if(0===r)return e.prototype.complete.call(this);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(803);r.Observable.prototype.repeatWhen=i.repeatWhen},function(e,t,n){"use strict";function r(e){return this.lift(new l(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(552),s=n(561),a=n(562),u=n(583),c=n(584);t.repeatWhen=r;var l=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.notifier,t))},e}(),d=function(e){function t(t,n,r){e.call(this,t),this.notifier=n,this.source=r,this.sourceIsBeingSubscribedTo=!0}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return e.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this,t=e.notifications,n=e.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this,n=t.notifications,r=t.retries,i=t.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,e.prototype._unsubscribeAndRecycle.call(this),this.notifications=n,this.retries=r,this.retriesSubscription=i,this},t.prototype.subscribeToRetries=function(){this.notifications=new o.Subject;var t=s.tryCatch(this.notifier)(this.notifications);if(t===a.errorObject)return e.prototype.complete.call(this);this.retries=t,this.retriesSubscription=c.subscribeToResult(this,t)},t}(u.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(805);r.Observable.prototype.retry=i.retry},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=-1),this.lift(new s(e,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.retry=r;var s=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.count,this.source))},e}(),a=function(e){function t(t,n,r){e.call(this,t),this.count=n,this.source=r}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this,r=n.source,i=n.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),r.subscribe(this._unsubscribeAndRecycle())}},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(807);r.Observable.prototype.retryWhen=i.retryWhen},function(e,t,n){"use strict";function r(e){return this.lift(new l(e,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(552),s=n(561),a=n(562),u=n(583),c=n(584);t.retryWhen=r;var l=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.notifier,this.source))},e}(),d=function(e){function t(t,n,r){e.call(this,t),this.notifier=n,this.source=r}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new o.Subject,(r=s.tryCatch(this.notifier)(n))===a.errorObject)return e.prototype.error.call(this,a.errorObject.e);i=c.subscribeToResult(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this,t=e.errors,n=e.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,r,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},t}(u.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(809);r.Observable.prototype.sample=i.sample},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.sample=r;var a=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new u(e),r=t.subscribe(n);return r.add(s.subscribeToResult(n,this.notifier)),r},e}(),u=function(e){function t(){e.apply(this,arguments),this.hasValue=!1}return i(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(811);r.Observable.prototype.sampleTime=i.sampleTime},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=a.async),this.lift(new u(e,t))}function i(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(556),a=n(626);t.sampleTime=r;var u=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.period,this.scheduler))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.period=n,this.scheduler=r,this.hasValue=!1,this.add(r.schedule(i,n,{subscriber:this,period:n}))}return o(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(s.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(813);r.Observable.prototype.scan=i.scan},function(e,t,n){"use strict";function r(e,t){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(e,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.scan=r;var s=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))},e}(),a=function(e){function t(t,n,r,i){e.call(this,t),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(815);r.Observable.prototype.sequenceEqual=i.sequenceEqual},function(e,t,n){"use strict";function r(e,t){return this.lift(new u(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(561),a=n(562);t.sequenceEqual=r;var u=function(){function e(e,t){this.compareTo=e,this.comparor=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.compareTo,this.comparor))},e}();t.SequenceEqualOperator=u;var c=function(e){function t(t,n,r){e.call(this,t),this.compareTo=n,this.comparor=r,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new l(t,this)))}return i(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t.prototype.checkValues=function(){for(var e=this,t=e._a,n=e._b,r=e.comparor;t.length>0&&n.length>0;){var i=t.shift(),o=n.shift(),u=!1;r?(u=s.tryCatch(r)(i,o))===a.errorObject&&this.destination.error(a.errorObject.e):u=i===o,u||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t}(o.Subscriber);t.SequenceEqualSubscriber=c;var l=function(e){function t(t,n){e.call(this,t),this.parent=n}return i(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e)},t.prototype._complete=function(){this.parent._complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(817);r.Observable.prototype.share=i.share},function(e,t,n){"use strict";function r(){return new s.Subject}function i(){return o.multicast.call(this,r).refCount()}var o=n(778),s=n(552);t.share=i},function(e,t,n){"use strict";var r=n(553),i=n(819);r.Observable.prototype.shareReplay=i.shareReplay},function(e,t,n){"use strict";function r(e,t,n){var r;return i.multicast.call(this,function(){return this._isComplete?r:r=new o.ReplaySubject(e,t,n)}).refCount()}var i=n(778),o=n(670);t.shareReplay=r},function(e,t,n){"use strict";var r=n(553),i=n(821);r.Observable.prototype.single=i.single},function(e,t,n){"use strict";function r(e){return this.lift(new a(e,this))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(741);t.single=r;var a=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.source))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.source=r,this.seenValue=!1,this.index=0}return i(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new s.EmptyError)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(823);r.Observable.prototype.skip=i.skip},function(e,t,n){"use strict";function r(e){return this.lift(new s(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.skip=r;var s=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.total))},e}(),a=function(e){function t(t,n){e.call(this,t),this.total=n,this.count=0}return i(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(825);r.Observable.prototype.skipLast=i.skipLast},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(730);t.skipLast=r;var a=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new o.Subscriber(e)):t.subscribe(new u(e,this._skipCount))},e}(),u=function(e){function t(t,n){e.call(this,t),this._skipCount=n,this._count=0,this._ring=new Array(n)}return i(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var r=n%t,i=this._ring,o=i[r];i[r]=e,this.destination.next(o)}},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(827);r.Observable.prototype.skipUntil=i.skipUntil},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.skipUntil=r;var a=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier))},e}(),u=function(e){function t(t,n){e.call(this,t),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,n))}return i(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype._complete=function(){this.isInnerStopped?e.prototype._complete.call(this):this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.hasValue=!0},t.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&e.prototype._complete.call(this)},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(829);r.Observable.prototype.skipWhile=i.skipWhile},function(e,t,n){"use strict";function r(e){return this.lift(new s(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.skipWhile=r;var s=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate))},e}(),a=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.skipping=!0,this.index=0}return i(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(831);r.Observable.prototype.startWith=i.startWith},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=e[e.length-1];u.isScheduler(n)?e.pop():n=null;var r=e.length;return 1===r?a.concatStatic(new o.ScalarObservable(e[0],n),this):r>1?a.concatStatic(new i.ArrayObservable(e,n),this):a.concatStatic(new s.EmptyObservable(n),this)}var i=n(579),o=n(580),s=n(581),a=n(591),u=n(578);t.startWith=r},function(e,t,n){"use strict";var r=n(553),i=n(833);r.Observable.prototype.subscribeOn=i.subscribeOn},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=0),this.lift(new o(e,t))}var i=n(834);t.subscribeOn=r;var o=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new i.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},e}()},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(835),s=n(625),a=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=o.asap),e.call(this),this.source=t,this.delayTime=n,this.scheduler=r,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),r&&"function"==typeof r.schedule||(this.scheduler=o.asap)}return r(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=o.asap),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(i.Observable);t.SubscribeOnObservable=a},function(e,t,n){"use strict";var r=n(836),i=n(840);t.asap=new i.AsapScheduler(r.AsapAction)},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(837),o=n(627),s=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return r(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=i.Immediate.setImmediate(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(i.Immediate.clearImmediate(n),t.scheduled=void 0)},t}(o.AsyncAction);t.AsapAction=s},function(e,t,n){(function(e,r){"use strict";var i=n(554),o=function(){function e(e){if(this.root=e,e.setImmediate&&"function"==typeof e.setImmediate)this.setImmediate=e.setImmediate.bind(e),this.clearImmediate=e.clearImmediate.bind(e);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var t=function e(t){delete e.instance.tasksByHandle[t]};t.instance=this,this.clearImmediate=t}}return e.prototype.identify=function(e){return this.root.Object.prototype.toString.call(e)},e.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},e.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},e.prototype.canUseReadyStateChange=function(){var e=this.root.document;return Boolean(e&&"onreadystatechange"in e.createElement("script"))},e.prototype.canUsePostMessage=function(){var e=this.root;if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}return!1},e.prototype.partiallyApplied=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=function e(){var t=e,n=t.handler,r=t.args;"function"==typeof n?n.apply(void 0,r):new Function(""+n)()};return r.handler=e,r.args=t,r},e.prototype.addFromSetImmediateArguments=function(e){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,e),this.nextHandle++},e.prototype.createProcessNextTickSetImmediate=function(){var e=function e(){var t=e.instance,n=t.addFromSetImmediateArguments(arguments);return t.root.process.nextTick(t.partiallyApplied(t.runIfPresent,n)),n};return e.instance=this,e},e.prototype.createPostMessageSetImmediate=function(){var e=this.root,t="setImmediate$"+e.Math.random()+"$",n=function n(r){var i=n.instance;r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&i.runIfPresent(+r.data.slice(t.length))};n.instance=this,e.addEventListener("message",n,!1);var r=function e(){var t=e,n=t.messagePrefix,r=t.instance,i=r.addFromSetImmediateArguments(arguments);return r.root.postMessage(n+i,"*"),i};return r.instance=this,r.messagePrefix=t,r},e.prototype.runIfPresent=function(e){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,e),0);else{var t=this.tasksByHandle[e];if(t){this.currentlyRunningATask=!0;try{t()}finally{this.clearImmediate(e),this.currentlyRunningATask=!1}}}},e.prototype.createMessageChannelSetImmediate=function(){var e=this,t=new this.root.MessageChannel;t.port1.onmessage=function(t){var n=t.data;e.runIfPresent(n)};var n=function e(){var t=e,n=t.channel,r=t.instance,i=r.addFromSetImmediateArguments(arguments);return n.port2.postMessage(i),i};return n.channel=t,n.instance=this,n},e.prototype.createReadyStateChangeSetImmediate=function(){var e=function e(){var t=e.instance,n=t.root,r=n.document,i=r.documentElement,o=t.addFromSetImmediateArguments(arguments),s=r.createElement("script");return s.onreadystatechange=function(){t.runIfPresent(o),s.onreadystatechange=null,i.removeChild(s),s=null},i.appendChild(s),o};return e.instance=this,e},e.prototype.createSetTimeoutSetImmediate=function(){var e=function e(){var t=e.instance,n=t.addFromSetImmediateArguments(arguments);return t.root.setTimeout(t.partiallyApplied(t.runIfPresent,n),0),n};return e.instance=this,e},e}();t.ImmediateDefinition=o,t.Immediate=new o(i.root)}).call(t,n(838).clearImmediate,n(838).setImmediate)},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(839),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,function(){return this}())},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[u]=r,a(u),u++}function i(e){delete c[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function s(e){if(l)setTimeout(s,0,e);else{var t=c[e];if(t){l=!0;try{o(t)}finally{i(e),l=!1}}}}if(!e.setImmediate){var a,u=1,c={},l=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?function(){a=function(e){t.nextTick(function(){s(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&s(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),a=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){s(e.data)},a=function(t){e.port2.postMessage(t)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var e=d.documentElement;a=function(t){var n=d.createElement("script");n.onreadystatechange=function(){s(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){a=function(e){setTimeout(s,0,e)}}(),h.setImmediate=r,h.clearImmediate=i}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,function(){return this}(),n(13))},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(629),o=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(i.AsyncScheduler);t.AsapScheduler=o},function(e,t,n){"use strict";var r=n(553),i=n(842);r.Observable.prototype.switch=i._switch,r.Observable.prototype._switch=i._switch},function(e,t,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t._switch=r;var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new u(e))},e}(),u=function(e){function t(t){e.call(this,t),this.active=0,this.hasCompleted=!1}return i(t,e),t.prototype._next=function(e){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=s.subscribeToResult(this,e))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},t.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var e=this.innerSubscription;e&&(e.unsubscribe(),this.remove(e))},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(844);r.Observable.prototype.switchMap=i.switchMap},function(e,t,n){"use strict";function r(e,t){return this.lift(new a(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.switchMap=r;var a=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.resultSelector))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.resultSelector=r,this.index=0}return i(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.resultSelector?this._tryNotifyNext(e,t,n,r):this.destination.next(t)},t.prototype._tryNotifyNext=function(e,t,n,r){var i;try{i=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(846);r.Observable.prototype.switchMapTo=i.switchMapTo},function(e,t,n){"use strict";function r(e,t){return this.lift(new a(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.switchMapTo=r;var a=function(){function e(e,t){this.observable=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.observable,this.resultSelector))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.inner=n,this.resultSelector=r,this.index=0}return i(t,e),t.prototype._next=function(e){var t=this.innerSubscription;t&&t.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,e,this.index++))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(e,t,n,r):a.next(t)},t.prototype.tryResultSelector=function(e,t,n,r){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(e,t,n,r)}catch(e){return void a.error(e)}a.next(i)},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(848);r.Observable.prototype.take=i.take},function(e,t,n){"use strict";function r(e){return 0===e?new a.EmptyObservable:this.lift(new u(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(730),a=n(581);t.take=r;var u=function(){function e(e){if(this.total=e,this.total<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.total))},e}(),c=function(e){function t(t,n){e.call(this,t),this.total=n,this.count=0}return i(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(850);r.Observable.prototype.takeLast=i.takeLast},function(e,t,n){"use strict";function r(e){return 0===e?new a.EmptyObservable:this.lift(new u(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(730),a=n(581);t.takeLast=r;var u=function(){function e(e){if(this.total=e,this.total<0)throw new s.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.total))},e}(),c=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;if(t.length<n)t.push(e);else{t[r%n]=e}},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(852);r.Observable.prototype.takeUntil=i.takeUntil},function(e,t,n){"use strict";function r(e){return this.lift(new a(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.takeUntil=r;var a=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier))},e}(),u=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(s.subscribeToResult(this,n))}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.complete()},t.prototype.notifyComplete=function(){},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(854);r.Observable.prototype.takeWhile=i.takeWhile},function(e,t,n){"use strict";function r(e){return this.lift(new s(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.takeWhile=r;var s=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate))},e}(),a=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return i(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(856);r.Observable.prototype.throttle=i.throttle},function(e,t,n){"use strict";function r(e,n){return void 0===n&&(n=t.defaultThrottleConfig),this.lift(new a(e,n.leading,n.trailing))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=r;var a=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector,this.leading,this.trailing))},e}(),u=function(e){function t(t,n,r,i){e.call(this,t),this.destination=t,this.durationSelector=n,this._leading=r,this._trailing=i,this._hasTrailingValue=!1}return i(t,e),t.prototype._next=function(e){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=e);else{var t=this.tryDurationSelector(e);t&&this.add(this.throttled=s.subscribeToResult(this,t)),this._leading&&(this.destination.next(e),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=e))}},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype._unsubscribe=function(){var e=this,t=e.throttled;e._trailingValue,e._hasTrailingValue,e._trailing;this._trailingValue=null,this._hasTrailingValue=!1,t&&(this.remove(t),this.throttled=null,t.unsubscribe())},t.prototype._sendTrailing=function(){var e=this,t=e.destination,n=e.throttled,r=e._trailing,i=e._trailingValue,o=e._hasTrailingValue;n&&r&&o&&(t.next(i),this._trailingValue=null,this._hasTrailingValue=!1)},t.prototype.notifyNext=function(e,t,n,r,i){this._sendTrailing(),this._unsubscribe()},t.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(858);r.Observable.prototype.throttleTime=i.throttleTime},function(e,t,n){"use strict";function r(e,t,n){return void 0===t&&(t=a.async),void 0===n&&(n=u.defaultThrottleConfig),this.lift(new c(e,t,n.leading,n.trailing))}function i(e){e.subscriber.clearThrottle()}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(556),a=n(626),u=n(856);t.throttleTime=r;var c=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),l=function(e){function t(t,n,r,i,o){e.call(this,t),this.duration=n,this.scheduler=r,this.leading=i,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return o(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(i,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(s.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(860);r.Observable.prototype.timeInterval=i.timeInterval},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=s.async),this.lift(new u(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(626);t.timeInterval=r;var a=function(){function e(e,t){this.value=e,this.interval=t}return e}();t.TimeInterval=a;var u=function(){function e(e){this.scheduler=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler))},e}(),c=function(e){function t(t,n){e.call(this,t),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return i(t,e),t.prototype._next=function(e){var t=this.scheduler.now(),n=t-this.lastTime;this.lastTime=t,this.destination.next(new a(e,n))},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(862);r.Observable.prototype.timeout=i.timeout},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t=o.async);var n=s.isDate(e),r=n?+e-t.now():Math.abs(e);return this.lift(new c(r,n,t,new u.TimeoutError))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(626),s=n(659),a=n(556),u=n(863);t.timeout=r;var c=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.scheduler=n,this.errorInstance=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},e}(),l=function(e){function t(t,n,r,i,o){e.call(this,t),this.absoluteTimeout=n,this.waitFor=r,this.scheduler=i,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return i(t,e),t.dispatchTimeout=function(e){e.error(e.errorInstance)},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},t}(a.Subscriber)},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(){var t=e.call(this,"Timeout has occurred");this.name=t.name="TimeoutError",this.stack=t.stack,this.message=t.message}return n(t,e),t}(Error);t.TimeoutError=r},function(e,t,n){"use strict";var r=n(553),i=n(865);r.Observable.prototype.timeoutWith=i.timeoutWith},function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n=o.async);var r=s.isDate(e),i=r?+e-n.now():Math.abs(e);return this.lift(new c(i,r,t,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(626),s=n(659),a=n(583),u=n(584);t.timeoutWith=r;var c=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),l=function(e){function t(t,n,r,i,o){e.call(this,t),this.absoluteTimeout=n,this.waitFor=r,this.withObservable=i,this.scheduler=o,this.action=null,this.scheduleTimeout()}return i(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(u.subscribeToResult(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(a.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(867);r.Observable.prototype.timestamp=i.timestamp},function(e,t,n){"use strict";function r(e){return void 0===e&&(e=s.async),this.lift(new u(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(626);t.timestamp=r;var a=function(){function e(e,t){this.value=e,this.timestamp=t}return e}();t.Timestamp=a;var u=function(){function e(e){this.scheduler=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler))},e}(),c=function(e){function t(t,n){e.call(this,t),this.scheduler=n}return i(t,e),t.prototype._next=function(e){var t=this.scheduler.now();this.destination.next(new a(e,t))},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(869);r.Observable.prototype.toArray=i.toArray},function(e,t,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556);t.toArray=r;var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){e.call(this,t),this.array=[]}return i(t,e),t.prototype._next=function(e){this.array.push(e)},t.prototype._complete=function(){this.destination.next(this.array),this.destination.complete()},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(871);r.Observable.prototype.toPromise=i.toPromise},function(e,t,n){"use strict";function r(e){var t=this;if(e||(i.root.Rx&&i.root.Rx.config&&i.root.Rx.config.Promise?e=i.root.Rx.config.Promise:i.root.Promise&&(e=i.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}var i=n(554);t.toPromise=r},function(e,t,n){"use strict";var r=n(553),i=n(873);r.Observable.prototype.window=i.window},function(e,t,n){"use strict";function r(e){return this.lift(new u(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(552),s=n(583),a=n(584);t.window=r;var u=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new c(e),r=t.subscribe(n);return r.closed||n.add(a.subscribeToResult(n,this.windowBoundaries)),r},e}(),c=function(e){function t(t){e.call(this,t),this.window=new o.Subject,t.next(this.window)}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new o.Subject;t.next(n)},t}(s.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(875);r.Observable.prototype.windowCount=i.windowCount},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=0),this.lift(new a(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(556),s=n(552);t.windowCount=r;var a=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.windowSize,this.startWindowEvery))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.destination=t,this.windowSize=n,this.startWindowEvery=r,this.windows=[new s.Subject],this.count=0,t.next(this.windows[0])}return i(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(e);var u=this.count-r+1;if(u>=0&&u%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var c=new s.Subject;i.push(c),n.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(o.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(877);r.Observable.prototype.windowTime=i.windowTime},function(e,t,n){"use strict";function r(e){var t=c.async,n=null,r=Number.POSITIVE_INFINITY;return h.isScheduler(arguments[3])&&(t=arguments[3]),h.isScheduler(arguments[2])?t=arguments[2]:d.isNumeric(arguments[2])&&(r=arguments[2]),h.isScheduler(arguments[1])?t=arguments[1]:d.isNumeric(arguments[1])&&(n=arguments[1]),this.lift(new f(e,n,r,t))}function i(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function o(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a=this,u={action:a,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(s,t,c),a.add(u.subscription),a.schedule(e,i)}function s(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}var a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=n(552),c=n(626),l=n(556),d=n(625),h=n(578);t.windowTime=r;var f=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new m(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),p=function(e){function t(){e.apply(this,arguments),this._numberOfNextedValues=0}return a(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(u.Subject),m=function(e){function t(t,n,r,a,u){e.call(this,t),this.destination=t,this.windowTimeSpan=n,this.windowCreationInterval=r,this.maxWindowSize=a,this.scheduler=u,this.windows=[];var c=this.openWindow();if(null!==r&&r>=0){var l={subscriber:this,window:c,context:null},d={windowTimeSpan:n,windowCreationInterval:r,subscriber:this,scheduler:u};this.add(u.schedule(s,n,l)),this.add(u.schedule(o,r,d))}else{var h={subscriber:this,window:c,windowTimeSpan:n};this.add(u.schedule(i,n,h))}}return a(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r<n;r++){var i=t[r];i.closed||(i.next(e),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new p;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(l.Subscriber)},function(e,t,n){"use strict";var r=n(553),i=n(879);r.Observable.prototype.windowToggle=i.windowToggle},function(e,t,n){"use strict";function r(e,t){return this.lift(new d(e,t))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(552),s=n(558),a=n(561),u=n(562),c=n(583),l=n(584);t.windowToggle=r;var d=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.openings,this.closingSelector))},e}(),h=function(e){function t(t,n,r){e.call(this,t),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(this.openSubscription=l.subscribeToResult(this,n,n))}return i(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r<n;r++)t[r].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,r=-1;++r<n;){var i=t[r];i.window.complete(),i.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var r=e[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,r,i){if(e===this.openings){var c=this.closingSelector,d=a.tryCatch(c)(t);if(d===u.errorObject)return this.error(u.errorObject.e);var h=new o.Subject,f=new s.Subscription,p={window:h,subscription:f};this.contexts.push(p);var m=l.subscribeToResult(this,d,p);m.closed?this.closeWindow(this.contexts.length-1):(m.context=p,f.add(m)),this.destination.next(h)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],r=n.window,i=n.subscription;t.splice(e,1),r.complete(),i.unsubscribe()}},t}(c.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(881);r.Observable.prototype.windowWhen=i.windowWhen},function(e,t,n){"use strict";function r(e){return this.lift(new l(e))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(552),s=n(561),a=n(562),u=n(583),c=n(584);t.windowWhen=r;var l=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.closingSelector))},e}(),d=function(e){function t(t,n){e.call(this,t),this.destination=t,this.closingSelector=n,this.openWindow()}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow(i)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n=this.window=new o.Subject;this.destination.next(n);var r=s.tryCatch(this.closingSelector)();if(r===a.errorObject){var i=a.errorObject.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=c.subscribeToResult(this,r))},t}(u.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(883);r.Observable.prototype.withLatestFrom=i.withLatestFrom},function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return this.lift(new a(r,n))}var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=n(583),s=n(584);t.withLatestFrom=r;var a=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.observables,this.project))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.observables=n,this.project=r,this.toRespond=[];var i=n.length;this.values=new Array(i);for(var o=0;o<i;o++)this.toRespond.push(o);for(var o=0;o<i;o++){var a=n[o];this.add(s.subscribeToResult(this,a,a,o))}}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.OuterSubscriber)},function(e,t,n){"use strict";var r=n(553),i=n(662);r.Observable.prototype.zip=i.zipProto},function(e,t,n){"use strict";var r=n(553),i=n(886);r.Observable.prototype.zipAll=i.zipAll},function(e,t,n){"use strict";function r(e){return this.lift(new i.ZipOperator(e))}var i=n(662);t.zipAll=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(608),s=n(888),a=n(892),u=n(890),c=n(893),l=750,d=function(e){function t(t){e.call(this,c.VirtualAction,l),this.assertDeepEqual=t,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return r(t,e),t.prototype.createTime=function(e){var n=e.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*t.frameTimeFactor},t.prototype.createColdObservable=function(e,n,r){if(-1!==e.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==e.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var i=t.parseMarbles(e,n,r),o=new s.ColdObservable(i,this);return this.coldObservables.push(o),o},t.prototype.createHotObservable=function(e,n,r){if(-1!==e.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=t.parseMarbles(e,n,r),o=new a.HotObservable(i,this);return this.hotObservables.push(o),o},t.prototype.materializeInnerObservable=function(e,t){var n=this,r=[];return e.subscribe(function(e){r.push({frame:n.frame-t,notification:o.Notification.createNext(e)})},function(e){r.push({frame:n.frame-t,notification:o.Notification.createError(e)})},function(){r.push({frame:n.frame-t,notification:o.Notification.createComplete()})}),r},t.prototype.expectObservable=function(e,n){var r=this;void 0===n&&(n=null);var s,a=[],u={actual:a,ready:!1},c=t.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=e.subscribe(function(e){var t=e;e instanceof i.Observable&&(t=r.materializeInnerObservable(t,r.frame)),a.push({frame:r.frame,notification:o.Notification.createNext(t)})},function(e){a.push({frame:r.frame,notification:o.Notification.createError(e)})},function(){a.push({frame:r.frame,notification:o.Notification.createComplete()})})},0),c!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},c),this.flushTests.push(u),{toBe:function(e,n,r){u.ready=!0,u.expected=t.parseMarbles(e,n,r,!0)}}},t.prototype.expectSubscriptions=function(e){var n={actual:e,ready:!1};return this.flushTests.push(n),{toBe:function(e){var r="string"==typeof e?[e]:e;n.ready=!0,n.expected=r.map(function(e){return t.parseMarblesAsSubscriptions(e)})}}},t.prototype.flush=function(){for(var t=this.hotObservables;t.length>0;)t.shift().setup();e.prototype.flush.call(this);for(var n=this.flushTests.filter(function(e){return e.ready});n.length>0;){var r=n.shift();this.assertDeepEqual(r.actual,r.expected)}},t.parseMarblesAsSubscriptions=function(e){if("string"!=typeof e)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var t=e.length,n=-1,r=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;o<t;o++){var s=o*this.frameTimeFactor,a=e[o];switch(a){case"-":case" ":break;case"(":n=s;break;case")":n=-1;break;case"^":if(r!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");r=n>-1?n:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return i<0?new u.SubscriptionLog(r):new u.SubscriptionLog(r,i)},t.parseMarbles=function(e,t,n,r){if(void 0===r&&(r=!1),-1!==e.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=e.length,a=[],u=e.indexOf("^"),c=-1===u?0:u*-this.frameTimeFactor,l="object"!=typeof t?function(e){return e}:function(e){return r&&t[e]instanceof s.ColdObservable?t[e].messages:t[e]},d=-1,h=0;h<i;h++){var f=h*this.frameTimeFactor+c,p=void 0,m=e[h];switch(m){case"-":case" ":break;case"(":d=f;break;case")":d=-1;break;case"|":p=o.Notification.createComplete();break;case"^":break;case"#":p=o.Notification.createError(n||"error");break;default:p=o.Notification.createNext(l(m))}p&&a.push({frame:d>-1?d:f,notification:p})}return a},t}(c.VirtualTimeScheduler);t.TestScheduler=d},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(553),o=n(558),s=n(889),a=n(891),u=function(e){function t(t,n){e.call(this,function(e){var t=this,n=t.logSubscribedFrame();return e.add(new o.Subscription(function(){t.logUnsubscribedFrame(n)})),t.scheduleMessages(e),e}),this.messages=t,this.subscriptions=[],this.scheduler=n}return r(t,e),t.prototype.scheduleMessages=function(e){for(var t=this.messages.length,n=0;n<t;n++){var r=this.messages[n];e.add(this.scheduler.schedule(function(e){var t=e.message,n=e.subscriber;t.notification.observe(n)},r.frame,{message:r,subscriber:e}))}},t}(i.Observable);t.ColdObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},function(e,t,n){"use strict";var r=n(890),i=function(){function e(){this.subscriptions=[]}return e.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new r.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},e.prototype.logUnsubscribedFrame=function(e){var t=this.subscriptions,n=t[e];t[e]=new r.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},e}();t.SubscriptionLoggable=i},function(e,t){"use strict";var n=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.subscribedFrame=e,this.unsubscribedFrame=t}return e}();t.SubscriptionLog=n},function(e,t){"use strict";function n(e,t){for(var n=0,r=t.length;n<r;n++)for(var i=t[n],o=Object.getOwnPropertyNames(i.prototype),s=0,a=o.length;s<a;s++){var u=o[s];e.prototype[u]=i.prototype[u]}}t.applyMixins=n},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(552),o=n(558),s=n(889),a=n(891),u=function(e){function t(t,n){e.call(this),this.messages=t,this.subscriptions=[],this.scheduler=n}return r(t,e),t.prototype._subscribe=function(t){var n=this,r=n.logSubscribedFrame();return t.add(new o.Subscription(function(){n.logUnsubscribedFrame(r)})),e.prototype._subscribe.call(this,t)},t.prototype.setup=function(){for(var e=this,t=e.messages.length,n=0;n<t;n++)!function(){var t=e.messages[n];e.scheduler.schedule(function(){t.notification.observe(e)},t.frame)}()},t}(i.Subject);t.HotObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(627),o=n(629),s=function(e){function t(t,n){var r=this;void 0===t&&(t=a),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this,t,function(){return r.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return r(t,e),t.prototype.flush=function(){for(var e,t,n=this,r=n.actions,i=n.maxFrames;(t=r.shift())&&(this.frame=t.delay)<=i&&!(e=t.execute(t.state,t.delay)););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(o.AsyncScheduler);t.VirtualTimeScheduler=s;var a=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1),e.call(this,t,n),this.scheduler=t,this.work=n,this.index=r,this.active=!0,this.index=t.index=r}return r(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(i.AsyncAction);t.VirtualAction=a},function(e,t,n){"use strict";var r=n(895),i=n(897);t.animationFrame=new i.AnimationFrameScheduler(r.AnimationFrameAction)},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(627),o=n(896),s=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return r(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=o.AnimationFrame.requestAnimationFrame(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(o.AnimationFrame.cancelAnimationFrame(n),t.scheduled=void 0)},t}(i.AsyncAction);t.AnimationFrameAction=s},function(e,t,n){"use strict";var r=n(554),i=function(){function e(e){e.requestAnimationFrame?(this.cancelAnimationFrame=e.cancelAnimationFrame.bind(e),this.requestAnimationFrame=e.requestAnimationFrame.bind(e)):e.mozRequestAnimationFrame?(this.cancelAnimationFrame=e.mozCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.mozRequestAnimationFrame.bind(e)):e.webkitRequestAnimationFrame?(this.cancelAnimationFrame=e.webkitCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.webkitRequestAnimationFrame.bind(e)):e.msRequestAnimationFrame?(this.cancelAnimationFrame=e.msCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.msRequestAnimationFrame.bind(e)):e.oRequestAnimationFrame?(this.cancelAnimationFrame=e.oCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.oRequestAnimationFrame.bind(e)):(this.cancelAnimationFrame=e.clearTimeout.bind(e),this.requestAnimationFrame=function(t){return e.setTimeout(t,1e3/60)})}return e}();t.RequestAnimationFrameDefinition=i,t.AnimationFrame=new i(r.root)},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(629),o=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(i.AsyncScheduler);t.AnimationFrameScheduler=o},function(module,exports,__webpack_require__){"use strict";function removeNodes(e,t){for(var n=t.querySelectorAll(e),r=n.length-1;r>=0;r--)n.item(r).parentNode.removeChild(n.item(r));return t}function isFunction(e){return"function"==typeof e}function getFontSizeFromSizeAttribute(e){return mapping[e]||mapping[4]}function removeUnauthorizedClasses(e){for(var t=e.querySelectorAll("[class]"),n=t.length-1;n>=0;n--)!function(e){var n=t.item(e),r=[];whitelistedClasses.forEach(function(e){jquery_1.$(n).hasClass(e)&&r.push(e)}),n.removeAttribute("class"),r.length>0&&(n.className=r.join(" "))}(n);return e}function removeUnauthorizedStyleProperties(e){for(var t=e.querySelectorAll("[style]"),n=t.length-1;n>=0;n--)!function(e){var n=t.item(e),r={};whitelistedProperties.forEach(function(e){var t=n.style.getPropertyValue(e),i=n.style.getPropertyPriority(e);r[e]={priority:i,value:t}}),n.removeAttribute("style"),whitelistedProperties.forEach(function(e){return n.style.setProperty(e,r[e].value,r[e].priority)})}(n);return e}function removeUnauthorizedAttributeProperties(e){var t=function(e){for(var t=e.attributes,n=whiteList_1.getEditorWhiteListAttributes(),r=whiteList_1.getEditorWhiteListAttributesStartingBy(),i=0;i<t.length;i++)!function(i){var o=t.item(i);if(r.findIndex(function(e){return o.name.startsWith(e)})>=0)return"continue";-1==n.indexOf(o.name)&&e.removeAttribute(o.name)}(i)},n=e.querySelectorAll("*");t(e),e.setAttribute("role","textbox");for(var r=n.length-1;r>=0;r--){t(n.item(r))}return e}function convertNode(e,t,n,r){for(var i=r.querySelectorAll(e),o=i.length-1;o>=0;o--){var s=i.item(o),a=document.createElement(t);isFunction(n)?jquery_1.$(a).css(n(s)):jquery_1.$(a).css(n);for(var u=void 0;u=s.firstChild;)a.appendChild(u);s.parentNode.replaceChild(a,s)}return r}function convertNodeAndChangeAttributeToStyle(e,t,n,r,i,o){void 0===o&&(o=function(e){return e});for(var s=i.querySelectorAll(e),a=s.length-1;a>=0;a--){var u=s.item(a),c=document.createElement(t);c.style.setProperty(r,o(u.getAttribute(n)));for(var l=void 0;l=u.firstChild;)c.appendChild(l);u.parentNode.replaceChild(c,u)}return i}function removeComments(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,null,!1);t=n.nextNode();)t.parentNode.removeChild(t);return e}function convertHTMLToEditorFormat(e){var t=document.createElement("div");t.innerHTML=e,removeNodes("xml, title, meta, style",t),removeUnauthorizedClasses(t),removeUnauthorizedStyleProperties(t),removeUnauthorizedAttributeProperties(t),convertNode("b","span",{"font-weight":"bold"},t),convertNode("i","span",{"font-style":"italic"},t),convertNode("u","span",{"text-decoration":"underline"},t),convertNode("sup","span",{"font-size":"12px","vertical-align":"super"},t),convertNode("sub","span",{"font-size":"12px","vertical-align":"sub"},t),convertNode("strike","span",{},t),convertNodeAndChangeAttributeToStyle("p[align]","div","align","text-align",t),convertNode("p","div",{},t),convertNodeAndChangeAttributeToStyle("font[color]","span","color","color",t),convertNodeAndChangeAttributeToStyle("font[face]","span","face","font-family",t),convertNode("font[style]","span",function(e){return{"font-size":e.style.getPropertyValue("font-size")}},t),convertNode("font[size]","span",function(e){return{"font-size":getFontSizeFromSizeAttribute(e.getAttribute("size"))}},t),convertNode("font","span",{},t),removeComments(t);for(var n=t.querySelectorAll("li > div"),r=n.length-1;r>=0;r--){for(var i=n.item(r),o=void 0;o=i.firstChild;)i.parentNode.insertBefore(o,i.nextSibling);i.parentNode.removeChild(i)}return t.innerHTML}function convertTextToEditorFormat(e){return e.split("\n").map(function(e,t){return 0===t?e:0===e.length?"<div></div>":"<div>"+e+"</div>"}).join("")}function tryToConvertClipboardToEditorFormat(e,t,n){e.clipboardData&&e.clipboardData.types.indexOf("text/html")>=0?(e.preventDefault(),document.execCommand("insertHTML",!1,t(e.clipboardData.getData("text/html")))):e.clipboardData&&e.clipboardData.types.indexOf("text/plain")>=0&&(e.preventDefault(),document.execCommand("insertHTML",!1,n(e.clipboardData.getData("text/plain"))))}var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(exports,"__esModule",{value:!0});var jquery_1=__webpack_require__(1),idiom_1=__webpack_require__(3),workspace_1=__webpack_require__(391),ui_1=__webpack_require__(6),modelDefinitions_1=__webpack_require__(37),http_1=__webpack_require__(34),notify_1=__webpack_require__(35),selection_1=__webpack_require__(899),editorOptions=__webpack_require__(900),onPressEnter_1=__webpack_require__(939),onDropFromDesktop_1=__webpack_require__(940),onPressDelete_1=__webpack_require__(907),rxjs_1=__webpack_require__(551),whiteList_1=__webpack_require__(938),EditorEvents=function(){function e(){this.onLinkerAdd=new rxjs_1.Subject}return e}();exports.EditorEvents=EditorEvents,exports.editorEvents=new EditorEvents;var whitelistedProperties=["background-color","color","cursor","font-family","font-size","font-style","font-weight","height","line-height","text-align","text-decoration","vertical-align","width"],whitelistedClasses=["audio-wrapper","image-container","smiley"],mapping={1:"7pt",2:"10pt",3:"12pt",4:"14pt",5:"18pt",6:"24pt",7:"36pt"};exports.convertHTMLToEditorFormat=convertHTMLToEditorFormat,exports.convertTextToEditorFormat=convertTextToEditorFormat,exports.tryToConvertClipboardToEditorFormat=tryToConvertClipboardToEditorFormat,exports.RTE={baseToolbarConf:{},Instance:function(e){var t=this;this.states=[],this.stateIndex=0,this.editZone=this.element.find("[contenteditable]"),this.selection=new exports.RTE.Selection({instance:this,editZone:this.editZone}),this.focus=function(){var e=window.getSelection();e.removeAllRanges(),this.selection.range?e.addRange(this.selection.range):this.editZone.focus()},this.execCommand=function(e,t,n){this.addState(this.editZone.html()),document.execCommand(e,t,n),this.trigger("contentupdated")};var n={};this.editZone.on("mousemove",function(e){n={left:e.pageX,top:e.pageY}});var r=this.element.children("contextual-menu");r.on("contextmenu",function(e){return e.preventDefault(),!1}),this.bindContextualMenu=function(e,t,i){this.editZone.on("contextmenu longclick",t,function(t,o){return t.preventDefault(),o&&(n=o),r.children("ul").html(""),i.forEach(function(n){var i=jquery_1.$("<li></li>");i.on("click",function(r){n.action(t),e.$apply()}),i.html(idiom_1.idiom.translate(n.label)),r.children("ul").append(i)}),r.addClass("show"),t.preventDefault(),r.offset({top:n.top,left:n.left}),r.children("li").on("click",function(){r.removeClass("show")}),!1})},jquery_1.$("body").on("click",function(e){r.removeClass("show")}),jquery_1.$("body").on("touchstart",this.editZone,function(e){jquery_1.$("body").on("touchend touchleave",this.editZone,function(n){jquery_1.$(e.target).parents("lightbox").parents("editor").length>0||!t.selection.changed()||t.trigger("selectionchange",{selection:t.selection})})}),jquery_1.$("body").on("mouseup",function(e){jquery_1.$(e.target).parents("lightbox").parents("editor").length>0||!t.selection.changed()||t.trigger("selectionchange",{selection:t.selection})}),e.element.on("keyup",function(e){t.trigger("contentupdated"),t.selection.changed()&&(t.trigger("selectionchange",{selection:t.selection}),t.scope.$apply())}),this.applyState=function(){if(this.editZone.html(this.compile(this.states[this.stateIndex-1].html)(this.scope)),this.states[this.stateIndex-1].range){var e=window.getSelection();e.removeAllRanges(),e.addRange(this.states[this.stateIndex-1].range)}},this.undo=function(){1!==this.stateIndex&&(this.stateIndex--,this.applyState())},this.redo=function(){this.stateIndex!==this.states.length&&(this.stateIndex++,this.applyState())},this.addState=function(e){this.states[this.stateIndex-1]&&e===this.states[this.stateIndex-1].html||(this.stateIndex===this.states.length?(this.states.push({html:e,range:this.selection.range}),this.stateIndex++):(this.states=this.states.slice(0,this.stateIndex),this.addState(e)))},this.toolbar=new exports.RTE.Toolbar(this)},Selection:selection_1.Selection,Toolbar:function(e){e.toolbarConfiguration.options.forEach(function(t){function n(n){var r=jquery_1.$("<div></div>");r.addClass("option"),r.addClass(n),e.element.find("editor-toolbar").append(r);var i=e.scope.$new(),o=t.run(e);o.template&&(r.html(e.compile(o.template)(i)),o.link(i,r,e.attributes)),o.templateUrl&&http_1.http().get(o.templateUrl).done(function(t){r.html(e.compile(t)(i)),o.link(i,r,e.attributes)}.bind(this))}if(!(!1===t.mobile&&jquery_1.$(window).width()<=ui_1.ui.breakpoints.tablette)){var r=t.name.replace(/([A-Z])/g,"-$1").toLowerCase();"sound"==r?e.hiddenShareSoundCode||n(r):"embed"==r?e.hiddenShareVideoCode||n(r):n(r)}})},ToolbarConfiguration:function(){this.collection(exports.RTE.Option),this.option=function(e,t){this.options.push({name:e,run:t})};for(var e in editorOptions)this.options.push(editorOptions[e])},Option:function(){},setModel:function(){modelDefinitions_1.model.makeModels(exports.RTE),exports.RTE.baseToolbarConf=new exports.RTE.ToolbarConfiguration},addDirectives:function(module){this.setModel(),module.directive("editor",["$parse","$compile",function($parse,$compile){return{restrict:"E",template:'\n<button type="button" class="editor-toolbar-opener" tabindex="-1"></button>\n<button type="button" class="close-focus" tabindex="-1">OK</button>\n<editor-toolbar></editor-toolbar>\n<contextual-menu><ul></ul></contextual-menu>\n<popover>\n\t<i class="tools" popover-opener opening-event="click"></i>\n\t<popover-content>\n\t\t<ul>\n\t\t\t<li><i18n>editor.mode.wysiwyg</i18n></li>\n\t\t\t<li><i18n>editor.mode.html</i18n></li>\n\t\t\t<li><i18n>editor.mode.mixed</i18n></li>\n\t\t</ul>\n\t</popover-content>\n</popover>\n<div><div role="textbox" contenteditable="true" aria-label="[[lang.translate(\'aria.message.content\')]]" aria-multiline="true"></div>\n</div>\n<textarea tabindex="-1"></textarea>\n<code class="language-html" tabindex="-1"></code>\n<button type="button" class="editor-edit-action" style="z-index:10"><i18n>editor.edit</i18n></button>\n\t\t\t\t\t\t\t\t',link:function(scope,element,attributes){function b64toBlob(e,t,n){t=t||"",n=n||512;for(var r=atob(e),i=[],o=0;o<r.length;o+=n){for(var s=r.slice(o,o+n),a=new Array(s.length),u=0;u<s.length;u++)a[u]=s.charCodeAt(u);var c=new Uint8Array(a);i.push(c)}var l=new Blob(i,{type:t});return l.name="image",l}function wrapFirstLine(){if(editZone.contents()[0]&&3===editZone.contents()[0].nodeType){var e=jquery_1.$("<div></div>");e.text(editZone.contents()[0].textContent),jquery_1.$(editZone.contents()[0]).remove(),editZone.prepend(e),editorInstance.selection.moveCaret(e[0],e.text().length),editorInstance.trigger("contentupdated")}}function editingDone(){editorInstance.addState(editZone.html()),editorInstance.trigger("contentupdated")}-1===navigator.userAgent.indexOf("Trident")&&-1===navigator.userAgent.indexOf("Edge")||element.find("code").hide(),0===jquery_1.$(".prism-css").length&&(jquery_1.$("body").append(jquery_1.$("<link />").attr("rel","stylesheet").attr("type","text/css").attr("class","prism-css").attr("crossorigin","anonymous").attr("href",window.CDN_DOMAIN+"/infra/public/js/prism/prism.css")),http_1.http().get("/infra/public/js/prism/prism.js")),element.find(".close-focus").on("click",function(){element.removeClass("focus"),element.parent().data("lock",!1),element.parents("grid-cell").data("lock",!1),element.trigger("editor-blur"),scope.$emit("editor-blur",{target:element.get(0)}),jquery_1.$("body").css({overflow:"auto"})}),element.find(".editor-toolbar-opener").on("click",function(e){jquery_1.$(this).hasClass("active")?(jquery_1.$(this).removeClass("active"),element.find("editor-toolbar").removeClass("opened")):(jquery_1.$(this).addClass("active"),element.find("editor-toolbar").addClass("opened"))}),element.find(".editor-toolbar-opener").on("touchstart",function(e){e.preventDefault(),jquery_1.$(this).hasClass("active")?(jquery_1.$(this).removeClass("active"),element.find("editor-toolbar").removeClass("opened")):(jquery_1.$(this).addClass("active"),element.find("editor-toolbar").addClass("opened")),setTimeout(function(){var e=window.getSelection();e.removeAllRanges(),e.addRange(editorInstance.selection.range)},100)}),document.execCommand("enableObjectResizing",!1,!1),document.execCommand("enableInlineTableEditing",null,!1),document.execCommand("insertBrOnReturn",!1,!0),element.addClass("edit");var editZone=element.find("[contenteditable=true]"),htmlZone=element.children("textarea"),highlightZone=element.children("code"),toolbarElement=element.children("editor-toolbar");document.execCommand("styleWithCSS",!1,!0),void 0!==attributes.inline&&element.children("editor-toolbar").addClass("inline");var toolbarConf=exports.RTE.baseToolbarConf;attributes.toolbarConf&&(toolbarConf=scope.$eval(attributes.toolbarConf)),attributes.placeholder&&(editZone.attr("placeholder",attributes.placeholder),attributes.$observe("placeholder",function(e){editZone.attr("placeholder",e)}));var editorInstance,instance=$parse(attributes.instance);editorInstance=instance(scope)?instance:new exports.RTE.Instance({hiddenShareVideoCode:"true"===attributes.hiddenShareVideoCode,hiddenShareSoundCode:"true"===attributes.hiddenShareSoundCode,showOnboardingVideo:void 0!==attributes.onboardingvideo,toolbarConfiguration:toolbarConf,element:element,scope:scope,compile:$compile,editZone:editZone,visibility:scope.$parent.$eval(element.attr("visibility"))}),setTimeout(function(){editorInstance.addState(editorInstance.editZone.html())},500);var ngModel=$parse(attributes.ngModel);ngModel(scope)||ngModel.assign(scope,""),scope.$watch(function(){return ngModel(scope)},function(e){jquery_1.$(e).find(".math-tex").each(function(e,t){var n=jquery_1.$("<mathjax></mathjax>");n.attr("formula",t.textContent.replace("\\(","$$$$").replace("\\)","$$$$").replace("x = ","")),jquery_1.$(t).removeClass("math-tex"),jquery_1.$(t).text(""),jquery_1.$(t).append(n)}),e===editZone.html()||editZone.is(":focus")||0!==jquery_1.$("editor-toolbar").find(":focus").length||(editZone.html($compile(ngModel(scope))(scope)),editorInstance.trigger("model-updated"),editZone.find("i18n").each(function(e,t){var n=jquery_1.$(t).parent()[0],r=jquery_1.$("<span></span>").html(jquery_1.$(t).html());n.insertBefore(r[0],t),t.remove()})),e===htmlZone.val()||htmlZone.is(":focus")||(window.html_beautify?(htmlZone.val(window.html_beautify(e)),highlightZone.text(window.html_beautify(e)),Prism.highlightAll()):htmlZone.val(e))});var previousScroll=0,placeEditorToolbar=0,sticky=function(){if(!(element.parents(".editor-media").length>0||0===element.parents("body").length)&&(void 0===attributes.inline||element.hasClass("focus"))){"absolute"!==toolbarElement.css("position")&&(toolbarElement.css({position:"absolute",top:"0px"}),element.css({"padding-top":toolbarElement.height()+1+"px"}));var e=jquery_1.$(".height-marker").height();null==e&&(e=0);var t=element.offset().top-e;t<(window.scrollY||window.pageYOffset)&&(t=window.scrollY||window.pageYOffset),t>editZone.offset().top+editZone.height()-toolbarElement.height()&&(t=editZone.offset().top+editZone.height()-toolbarElement.height()),void 0!==attributes.inline?(toolbarElement.offset({top:t+e}),element.children("popover").offset({top:t+e+10-parseInt(element.css("margin-top"))})):(toolbarElement.offset({top:t+e}),element.children("popover").offset({top:t+e+10})),setTimeout(function(){highlightZone.offset({top:htmlZone.offset().top})},100),previousScroll=window.scrollY||window.pageYOffset,placeEditorToolbar=requestAnimationFrame(sticky)}};ui_1.ui.breakpoints.tablette<=jquery_1.$(window).width()&&(placeEditorToolbar=requestAnimationFrame(sticky));var resizeFn=function(){if(!(element.parents(".editor-media").length>0)){if(highlightZone.css({top:element.find("editor-toolbar").height()+1+"px"}),jquery_1.$(window).width()>ui_1.ui.breakpoints.tablette){void 0===attributes.inline||element.hasClass("focus")?toolbarElement.css({position:"relative"}):toolbarElement.css({position:""}),cancelAnimationFrame(e);var e=requestAnimationFrame(sticky)}else cancelAnimationFrame(e);placeToolbar(),editorInstance.trigger("contentupdated")}};jquery_1.$(window).on("resize",resizeFn),element.children("popover").find("li:first-child").on("click",function(){element.removeClass("html"),element.removeClass("both"),element.addClass("edit"),editorInstance.trigger("contentupdated")}),element.children("popover").find("li:nth-child(2)").on("click",function(){element.removeClass("edit"),element.removeClass("both"),element.addClass("html"),highlightZone.css({top:element.find("editor-toolbar").height()+1+"px"}),editorInstance.trigger("contentupdated"),setTimeout(function(){editorInstance.trigger("contentupdated")},300),window.html_beautify||http_1.http().get("/infra/public/js/beautify-html.js").done(function(content){eval(content),htmlZone.val(window.html_beautify(ngModel(scope))),highlightZone.text(window.html_beautify(ngModel(scope))),Prism.highlightAll()})}),element.children("popover").find("li:nth-child(3)").on("click",function(){element.removeClass("edit"),element.removeClass("html"),element.addClass("both"),highlightZone.css({top:element.find("editor-toolbar").height()+1+"px"}),editorInstance.trigger("contentupdated"),setTimeout(function(){editorInstance.trigger("contentupdated")},300),window.html_beautify||http_1.http().get("/infra/public/js/beautify-html.js").done(function(content){eval(content),htmlZone.val(window.html_beautify(ngModel(scope))),highlightZone.text(window.html_beautify(ngModel(scope))),Prism.highlightAll()})}),element.find(".option i").click(function(){editZone.is(":focus")||editZone.focus(),scope.$apply(function(){scope.$eval(attributes.ngChange);var e=editZone.html();ngModel.assign(scope,e)})}),editorInstance.on("change",function(){editorInstance.trigger("contentupdated"),setTimeout(function(){attributes.onChange&&scope.$eval(attributes.onChange),scope.$apply()},10)}),editorInstance.on("contentupdated",function(){var e=this;parseInt(htmlZone.css("min-height"))<editZone.height()&&htmlZone.css("min-height",editZone.height()+"px"),ui_1.ui.extendElement.resizable(element.find("[contenteditable]").find("table, .column"),{moveWithResize:!1,mouseUp:function(){editorInstance.addState(editorInstance.editZone.html()),editorInstance.trigger("contentupdated")},extendParent:{bottom:!0}}),editZone.find("[ng-repeat]").removeAttr("ng-repeat"),htmlZone.css({"min-height":"250px",height:0});var t=htmlZone[0].scrollHeight+2;t>htmlZone.height()&&htmlZone.height(t),htmlZone[0].scrollHeight>parseInt(htmlZone.css("min-height"))&&!element.hasClass("edit")&&editZone.css("min-height",htmlZone[0].scrollHeight+2+"px"),editorInstance.selection.changed()&&editorInstance.trigger("selectionchange",{selection:editorInstance.selection});var n=function(t){return __awaiter(e,void 0,void 0,function(){var e,n,r,i,o;return __generator(this,function(s){switch(s.label){case 0:return e=jquery_1.$(t).attr("src").split("data:")[1].split(","),n=b64toBlob(e[1],e[0].split(";")[0]),n.name="image",jquery_1.$(t).attr("src","http://loading"),r=new workspace_1.Document,i="protected","public"===editorInstance.visibility&&(i="public"),[4,r.upload(n,i)];case 1:return o=s.sent(),jquery_1.$(t).attr("src","/workspace/document/"+r._id),notify_1.notify.info("editor.b64.uploaded"),editorInstance.trigger("contentupdated"),[2]}})})};if(editZone.find("img").each(function(e,t){jquery_1.$(t).attr("src")&&jquery_1.$(t).attr("src").startsWith("data:")&&n(t)}),scope.$$phase){scope.$eval(attributes.ngChange);var r=editZone.html();jquery_1.$(r).find("mathjax").html(""),ngModel.assign(scope,r)}else scope.$apply(function(){scope.$eval(attributes.ngChange);var e=editZone.html();jquery_1.$(e).find("mathjax").html(""),ngModel.assign(scope,e)})});var placeToolbar=function(){element.parents(".editor-media").length>0||(void 0!==attributes.inline&&jquery_1.$(window).width()>ui_1.ui.breakpoints.tablette?(element.children("editor-toolbar").css({left:0}),element.hasClass("focus")?element.css({"padding-top":toolbarElement.height()+1+"px"}):element.css({"padding-top":""})):jquery_1.$(window).width()<ui_1.ui.breakpoints.tablette&&element.css({"padding-top":""}))},focus=function(){element.trigger("editor-focus"),scope.$emit("editor-focus",{target:element.get(0)}),element.addClass("focus"),element.find("button.editor-edit-action").css({display:"none"}),resizeFn(),element.parent().data("lock",!0),element.parents("grid-cell").data("lock",!0),jquery_1.$(window).width()<ui_1.ui.breakpoints.tablette&&(jquery_1.$("body").css({overflow:"hidden"}),window.scrollTo(0,0),setTimeout(function(){var e=document.getSelection(),t=document.createRange();t.setStart(editZone[0].firstChild,0),e.removeAllRanges(),e.addRange(t)},600))};element.parents().on("resizing",placeToolbar),element.on("click",function(e){if(e.target!==element.find(".close-focus")[0]&&!element.hasClass("focus"))return void 0!==attributes.confirmFocus?void editZone.blur():void focus()}),element.on("dblclick",function(e){e.target===element.find(".close-focus")[0]||element.hasClass("focus")||void 0!==attributes.confirmFocus&&(focus(),editZone.focus())}),element.find("button.editor-edit-action").on("click",function(e){focus(),editZone.focus(),editZone.children(":last").get(0)&&editorInstance.selection.moveCaret(editZone.children(":last").get(0),editZone.children(":last").get(0).textContent.length),e.stopPropagation()}),element.find("button.editor-edit-action").on("mousedown.resize touchstart.resize",function(e){e.stopPropagation()}),void 0===attributes.confirmFocus&&element.find("button.editor-edit-action").css({display:"none"}),jquery_1.$("body").on("mousedown",function(e,t){var n=t&&t.restrict;if(jquery_1.$(e.target).parents("[ignore-editor-mousedown]").length>0||void 0!=n&&!jquery_1.$(element).is("#"+n))return!0;if(e.target!==element.find(".editor-toolbar-opener")[0]&&0===element.find("editor-toolbar, .editor-toolbar-opener").find(e.target).length&&(element.find("editor-toolbar").removeClass("opened"),element.find(".editor-toolbar-opener").removeClass("active")),0===element.find(e.target).length&&!jquery_1.$(e.target).hasClass("sp-choose")&&element.hasClass("focus")&&!jquery_1.$(e.target).parents(".image-contextual-menu").length){element.children("editor-toolbar").removeClass("show"),element.removeClass("focus");var r=editZone.html();ngModel.assign(scope,r),element.trigger("editor-blur"),scope.$emit("editor-blur",{target:element.get(0)}),editorInstance.trigger("change"),editorInstance.trigger("blur"),jquery_1.$("body").css({overflow:"auto"}),element.parent().data("lock",!1),element.parents("grid-cell").data("lock",!1),element.find("code").attr("style",""),void 0!==attributes.confirmFocus&&element.find("button.editor-edit-action").css({display:""}),void 0!==attributes.inline&&(element.css({"margin-top":0,"padding-top":0}),element.children("editor-toolbar").attr("style",""))}}),jquery_1.$("editor-toolbar").on("mousedown",function(e){e.preventDefault()});var typingTimer,editingTimer;editZone.on("paste",function(e){tryToConvertClipboardToEditorFormat(e.originalEvent,convertHTMLToEditorFormat,convertTextToEditorFormat),setTimeout(function(){if(editorInstance.editZone.find("[resizable]").removeAttr("resizable").css("cursor","initial"),editorInstance.editZone.find("[bind-html]").removeAttr("bind-html"),editorInstance.editZone.find("[ng-include]").removeAttr("ng-include"),editorInstance.editZone.find("[ng-repeat]").removeAttr("ng-repeat"),editorInstance.editZone.find("[data-ng-repeat]").removeAttr("data-ng-repeat"),editorInstance.editZone.find("[ng-transclude]").removeAttr("ng-transclude"),editorInstance.editZone.find("portal").length){var e=editorInstance.editZone.find("portal");editorInstance.editZone[0].innerHTML=jquery_1.$("<div>"+(e.find("[bind-html]").html()||"")+"</div>")}if(editorInstance.addState(editZone.html()),editorInstance.editZone[0].childNodes.length>editorInstance.editZone[0].children.length){for(var t=jquery_1.$("<div></div>");editorInstance.editZone[0].childNodes.length;)t.append(editorInstance.editZone[0].childNodes[0]);editorInstance.editZone.append(t)}editorInstance.trigger("contentupdated"),editorInstance.scope.$apply()},100)}),editZone.on("keydown",function(e){clearTimeout(typingTimer),clearTimeout(editingTimer),typingTimer=setTimeout(wrapFirstLine,10);var t=window.getSelection();if(t.rangeCount>0){var n=t.getRangeAt(0);if(1!==n.startContainer.nodeType&&e.which>64&&e.which<91&&null!==n.startContainer.parentNode){var r=n.startContainer,i=n.startOffset;if(i===r.textContent.length&&(i=-1),"​"===n.startContainer.parentNode.innerHTML&&1===n.startOffset){var o=n.startContainer.parentNode;setTimeout(function(){o.innerHTML=o.innerHTML.substring(7),setTimeout(function(){var e=document.createRange();-1===i&&(i=(o.firstChild||o).textContent.length),e.setStart(o.firstChild||o,i),t.removeAllRanges(),t.addRange(e)},1)},1)}}}if(e.ctrlKey||e.metaKey||(editingTimer=setTimeout(editingDone,500)),13===e.keyCode&&onPressEnter_1.onPressEnter(e,n,editorInstance,editZone,selection_1.textNodes),8!==e.keyCode&&46!==e.keyCode||onPressDelete_1.onPressDelete(e,t,editorInstance,editZone),(e.ctrlKey||e.metaKey)&&86===e.keyCode&&setTimeout(function(){editorInstance.editZone.find("i").contents().unwrap().wrap("<em/>"),editorInstance.addState(editorInstance.editZone.html())},0),90!==e.keyCode||!e.ctrlKey&&!e.metaKey||e.shiftKey||(editorInstance.undo(),e.preventDefault(),scope.$apply()),(90===e.keyCode&&(e.ctrlKey||e.metaKey)&&e.shiftKey||89===e.keyCode&&(e.ctrlKey||e.metaKey))&&(editorInstance.redo(),e.preventDefault(),scope.$apply()),9===e.keyCode){var s;if(s=editorInstance.selection.range.startContainer.tagName?editorInstance.selection.range.startContainer:editorInstance.selection.range.startContainer.parentNode,"TD"===s.tagName){e.preventDefault();var a=s.nextSibling;if(a||(a=jquery_1.$(s).parent("tr").next().children("td")[0]),!a){for(var u=jquery_1.$("<tr></tr>"),c=0;c<jquery_1.$(s).parent("tr").children("td").length;c++)u.append(jquery_1.$("<td><br /></td>"));a=u.children("td")[0],jquery_1.$(s).closest("table").append(u)}editorInstance.selection.moveCaret(a,a.firstChild.textContent.length)}else"LI"===s.tagName?(e.preventDefault(),document.execCommand("indent")):e.currentTarget.blur()}}),editZone.on("keyup",function(e){htmlZone.css({"min-height":"250px",height:0});var t=htmlZone[0].scrollHeight+2;t>htmlZone.height()&&htmlZone.height(t)}),editorInstance.on("contentupdated",function(e){htmlZone.css({"min-height":"250px",height:0}),editZone.css({"min-height":"250px"});var t=htmlZone[0].scrollHeight+2;t>htmlZone.height()&&htmlZone.height(t),t>parseInt(editZone.css("min-height"))&&!element.hasClass("edit")&&editZone.css("min-height",t),scope.$apply(function(){scope.$eval(attributes.ngChange),ngModel.assign(scope,htmlZone.val())})}),htmlZone.on("keydown",function(e){if(setTimeout(function(){highlightZone.text(jquery_1.$(this).val()),Prism.highlightAll()}.bind(this),200),9===e.keyCode){e.preventDefault();var t=this.selectionStart,n=this.selectionEnd;jquery_1.$(this).val(jquery_1.$(this).val().substring(0,t)+"\t"+jquery_1.$(this).val().substring(n)),this.selectionStart=this.selectionEnd=t+1}}),htmlZone.on("blur",function(){scope.$apply(function(){scope.$eval(attributes.ngChange),ngModel.assign(scope,htmlZone.val())}),editorInstance.trigger("change")}),element.find("[contenteditable]").on("drop",function(e){onDropFromDesktop_1.onDropFromDesktop(e,editorInstance,element)});var cleanAttributesOnChange=function(){var e=new rxjs_1.Subject;return e.debounceTime(750).subscribe(function(){removeUnauthorizedAttributeProperties(editorInstance.editZone[0])}),editorInstance.on("contentupdated",function(){return e.next()}),function(){e.unsubscribe()}},cancelAttributesClean=cleanAttributesOnChange();scope.$on("$destroy",function(){cancelAttributesClean(),cancelAnimationFrame(placeEditorToolbar)})}}}]),module.directive("popover",function(){return{controller:function(){},restrict:"E",link:function(e,t,n){t.on("close",function(){n.onClose&&e.$eval(n.onClose)})}}}),module.directive("popoverOpener",function(){return{require:"^popover",link:function(e,t,n){var r=t.parents("popover"),i=r.attr("mouse-event")||"mouseover",o=r.find("popover-content");r.on(i,function(e){"click"===i&&(o.hasClass("hidden")&&e.stopPropagation(),jquery_1.$("body").one("click",function(e){r.trigger("close"),o.addClass("hidden")})),o.offset().left+o.width()>jquery_1.$(window).width()&&o.addClass("right"),o.offset().left<0&&o.addClass("left"),o.offset().top+o.height()>jquery_1.$(window).height()&&o.addClass("bottom"),o.removeClass("hidden")}),"mouseover"===i&&r.on("mouseout",function(e){r.trigger("close"),o.addClass("hidden")})}}}),module.directive("popoverContent",function(){return{require:"^popover",restrict:"E",link:function(e,t,n){t.addClass("hidden")}}}),module.directive("mathjax",function(){return{restrict:"E",scope:{formula:"@"},link:function(e,t,n){window.MathJax||window.MathJaxLoading||(window.MathJaxLoading=!0,jquery_1.$.getScript(window.CDN_DOMAIN+"/infra/public/mathjax/MathJax.js",function(){window.MathJax.Ajax.config.root=window.CDN_DOMAIN+"/infra/public/mathjax/",window.MathJax.Hub.Config({messageStyle:"none",tex2jax:{preview:"none"},jax:["input/TeX","output/CommonHTML"],extensions:["tex2jax.js","MathMenu.js","MathZoom.js"],TeX:{extensions:["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]}}),jquery_1.$(".MathJax_CHTML_Display").remove(),window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub]),e.$apply()})),e.updateFormula=function(e){t.text("$$"+e+"$$"),window.MathJax&&window.MathJax.Hub&&window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub])},n.$observe("formula",function(t){e.updateFormula(t)})}}})}},window.entcore||(window.entcore={}),window.entcore.RTE=exports.RTE,window.entcore.editorEvents=exports.editorEvents},function(e,t,n){"use strict";function r(e){for(var t=e.nodeType===Node.TEXT_NODE?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;)t.appendChild(r(n)),n=n.nextSibling;return t}function i(e,t){S.$(e).css(t),e.style.cssText||e.removeAttribute("style")}function o(e){return e.startContainer===e.endContainer&&e.startContainer.nodeType===Node.TEXT_NODE&&("UL"===e.endContainer.parentNode.nodeName||"OL"===e.endContainer.parentNode.nodeName)}function s(e,t){if(!e||0===t.startOffset&&0===t.endOffset)return{isInRange:!0,maskStart:0,maskEnd:0};var n={isInRange:!1,maskStart:e.compareDocumentPosition(t.startContainer),maskEnd:e.compareDocumentPosition(t.endContainer)};return n.isInRange=!(w(n.maskStart)||M(n.maskEnd)),n}function a(e,t){if(!d(e)&&t.every(function(t){return!s(e,t).isInRange}))if(""===e.textContent||""===e.textContent)d(e.parentNode)&&1===e.parentNode.childNodes.length||!u(e)||e.parentNode.removeChild(e);else if(e.previousSibling&&t.every(function(t){return!s(e.previousSibling,t).isInRange})){var n=e.previousSibling,r=e.cloneNode(!1),i=n.cloneNode(!1);if(r.isEqualNode(i)){for(;n.lastChild;)e.insertBefore(n.lastChild,e.firstChild);e.parentNode.removeChild(n)}}return e}function u(e){return Array.from(e.childNodes).every(function(e){return e.nodeType===Node.TEXT_NODE})}function c(e){return e&&e.nodeType===e.ELEMENT_NODE}function l(e){for(var t,n=e;(n=n.parentNode)&&!t;)c(n)&&(t=n);return t}function d(e){return e&&c(e)&&D.indexOf(e.nodeName)>=0}function h(e,t){return void 0!==e.style[t]&&""!==e.style[t]}function f(e,t){for(var n;(e=l(e))&&!d(e)&&!n;)h(e,t)&&(n=e);return n}function p(e,t,n){var i,o=r(t);if(t.nodeType===Node.TEXT_NODE)t.textContent=t.textContent.substring(0,n),o.textContent=o.textContent.substring(n,o.textContent.length);else for(var s=t.childNodes.length,a=n;a<s;a++)o.appendChild(t.childNodes[a]);for(var u,c=t;c!==e;){for(i=c.parentNode.cloneNode(!1),u=c,i.appendChild(o);u=u.nextSibling;)i.appendChild(u);o=i,c=c.parentNode}return i}function m(e,t,n){var r,i=t.cloneNode();if(t.nodeType===Node.TEXT_NODE)t.textContent=t.textContent.substring(n,t.textContent.length),i.textContent=i.textContent.substring(0,n);else for(var o=0;o<n;o++)i.appendChild(t.firstChild);for(var s,a=t;a!==e;){for(r=a.parentNode.cloneNode(!1),r.appendChild(i),s=a;s=s.previousSibling;)r.insertBefore(s,i),i=s;i=r,a=a.parentNode}return r}function _(e){return e.nodeType===Node.TEXT_NODE?e.textContent.length:e.childNodes.length}function v(e){return document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1).nextNode()}function y(e){for(var t,n,r=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);n=r.nextNode();)t=n;return t}function g(e){if(e&&e.nodeType===Node.TEXT_NODE&&e.textContent.length>0)return!1;if(e&&e.nodeType===Node.ELEMENT_NODE)for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(n&&n.nodeType===Node.ELEMENT_NODE)return!1;if(n&&n.nodeType===Node.TEXT_NODE&&n.textContent.length>0)return!1}return!0}function b(e,t){var n=e,r=t.startOffset,i=t.endOffset,o=t.startContainer,s=t.endContainer,a=m(e,o,r),u=p(e,s,i);g(a)||(n=e.parentNode.insertBefore(a,e)),g(u)||e.parentNode.insertBefore(u,e.nextSibling),g(o)&&o&&(o.textContent=""),g(s)&&s&&(s.textContent="");var c=v(t.startContainer)||t.startContainer,l=y(t.endContainer)||t.endContainer;return t.setStart(c,0),t.setEnd(l,_(l)),n}function w(e){return(e&Node.DOCUMENT_POSITION_FOLLOWING)===Node.DOCUMENT_POSITION_FOLLOWING&&!(e&Node.DOCUMENT_POSITION_CONTAINED_BY)}function M(e){return(e&Node.DOCUMENT_POSITION_PRECEDING)===Node.DOCUMENT_POSITION_PRECEDING&&!(e&Node.DOCUMENT_POSITION_CONTAINS)}function k(e){return(e&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY}function L(e,t){for(var n=[],r=t.firstChild;r;){var i=s(r,e);if(i.isInRange){var o=document.createRange();if(k(i.maskStart)||r===e.startContainer)o.setStart(e.startContainer,e.startOffset);else{var a=v(r)||r;o.setStart(a,0)}if(k(i.maskEnd)||r===e.endContainer)o.setEnd(e.endContainer,e.endOffset);else{var u=y(r)||r,c=_(u);o.setEnd(u,c)}n.push({node:r,range:o})}r=r.nextSibling}return n}function x(e,t,n,r){var o=e.parentNode,s=document.createElement("span"),a=document.createTextNode(e.textContent.substring(t,n)||"");s.appendChild(a),i(s,r);var u=e.textContent.substring(0,t),c=e.textContent.substring(n,e.textContent.length);return u&&u.length>0&&o.insertBefore(document.createTextNode(u),e),o.replaceChild(s,e),c&&c.length>0&&o.insertBefore(document.createTextNode(c),s.nextSibling),a}function Y(e,t){for(var n,r=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,null,!1),i=Object.keys(t);n=r.nextNode();)i.forEach(function(e){return n.style.removeProperty(e)});return e}function T(e,t,n,r){if(t.startContainer!==t.endContainer||t.startContainer!==e&&!d(t.startContainer)){var o=f(t.commonAncestorContainer,n);if(o)b(o,t),Y(o,r),i(o,r);else if(t.startContainer===t.endContainer&&t.startContainer.nodeType===Node.TEXT_NODE&&d(l(t.startContainer))){var s=t.startContainer,a=x(s,t.startOffset,t.endOffset,r);t.selectNodeContents(a)}else{var s=c(t.commonAncestorContainer)?t.commonAncestorContainer:l(t.commonAncestorContainer);d(s)?L(t,s).map(function(e){return T(e.node,e.range,n,r)}).forEach(function(e,n,r){0===n&&t.setStart(e.startContainer,e.startOffset),n===r.length-1&&t.setEnd(e.endContainer,e.endOffset)}):(b(s,t),Y(s,r),i(s,r))}}else if(t.startContainer===e)if(e.nodeType===Node.TEXT_NODE){var a=x(e,t.startOffset,t.endOffset,r);t.selectNodeContents(a)}else L(t,e).map(function(e){return T(e.node,e.range,n,r)}).forEach(function(e,n,r){0===n&&t.setStart(e.startContainer,e.startOffset),n===r.length-1&&t.setEnd(e.endContainer,e.endOffset)});else if(c(t.startContainer)&&d(t.startContainer)){i(t.startContainer,r);var u=v(t.startContainer),h=y(t.startContainer);t.setStart(u,0),t.setStart(h,h.textContent.length),t.selectNodeContents(t.startContainer)}return t}Object.defineProperty(t,"__esModule",{value:!0});var S=n(1);t.textNodes=["SPAN","A","STRONG","EM","B","I","I18N"],t.formatNodes=["P","H1","H2","H3","H4","H5","H6"];var D=["DIV","UL","OL","LI"];D.push.apply(D,t.formatNodes),t.isRangeMisplacedInList=o,t.isHTMLElement=c,t.findClosestHTMLElement=l,t.isHTMLBlockElement=d,t.hasStyleProperty=h,t.findFirstChildTextNode=v,t.findLatestChildTextNode=y,t.isBeforeComparedNode=w,t.isAfterComparedNode=M,t.isParentOfComparedNode=k,t.explodeRangeOnChildNodes=L,t.applyCssToRange=T,t.Selection=function(e){function n(){var e=getSelection();if(e.rangeCount){var t=e.getRangeAt(0),n=[];if(r.editZone[0]===t.startContainer&&r.editZone[0]===t.endContainer)return r.editZone.children().each(function(e,t){n.push(t)}),n;if(r.editZone.find(t.startContainer.parentNode).length&&t.startContainer.parentNode!==r.editZone[0]&&(r.editZone.find(t.endContainer.parentNode).length||t.endContainer.parentNode===r.editZone[0])){if(t.startContainer===t.endContainer)if(t.startContainer.childNodes.length)for(var i=t.startOffset;i<=t.endOffset;i++)n.push(t.startContainer.childNodes[i]);else{if(t.startContainer===r.editZone[0]||t.startOffset===t.endOffset)return[];n.push(t.startContainer)}else t.startOffset<t.startContainer.textContent.length&&n.push(t.startContainer),r.editZone.find("*").each(function(e,r){!(t.intersectsNode&&t.intersectsNode(r)||!t.intersectsNode&&S.$(t.commonAncestorContainer).find(r).length>0)||r===t.startContainer.parentNode||r===t.endContainer.parentNode||r===t.endContainer||S.$(r).find(t.startContainer.parentNode).length||S.$(r).find(t.endContainer.parentNode).length||n.push(r)}),t.endContainer!==r.editZone[0]&&t.endOffset>0&&0===S.$(t.endContainer).find(t.startContainer).length&&n.push(t.endContainer);return n}}}var r=this;this.selectedElements=[],this.nextRanges=[],this.applyNextRanges=function(){var e=window.getSelection();e.removeAllRanges(),e.rangeCount>1?(this.nextRanges.forEach(function(t){e.addRange(t)}),r.instance.trigger("selectionchange",{selection:r.instance.selection}),this.nextRanges=[]):(e.addRange(this.nextRanges[0]),r.instance.trigger("selectionchange",{selection:r.instance.selection}),this.nextRanges=[])},this.changed=function(){var e=getSelection();if(0!==e.rangeCount){var t=e.getRangeAt(0),r=this.range&&this.range.startContainer===t.startContainer&&this.range.startOffset===t.startOffset&&this.range.endContainer===t.endContainer&&t.endOffset===this.range.endOffset&&e.rangeCount===this.rangeCount;r=r||0===this.editZone.find(t.startContainer).length&&this.editZone[0]!==t.startContainer;var i=n();return!r&&i&&(this.selectedElements=i||this.selectedElements),!r&&this.editZone.is(":focus")&&(this.range=t,this.rangeCount=e.rangeCount),!r}},this.selectedElements=n()||this.selectedElements,this.moveCaret=function(e,t){t||(t=0);var n=document.createRange();n.setStart(e.firstChild||e,t),this.range=n;var r=getSelection();this.rangeCount=r.rangeCount,this.selectedElements=[],r.removeAllRanges(),r.addRange(n)},this.selectNode=function(e,t,n){var r=document.createRange(),i=getSelection();(e.textContent||e.nodeName&&"IMG"===e.nodeName)&&(t||(t=0),!n&&e.textContent&&(n=(e.firstChild||e).textContent.length),1===e.nodeType&&"A"!==e.nodeName?r.selectNode(e):(r.setStart(e.firstChild||e,t),r.setEnd(e.firstChild||e,n)),this.selectedElements=[e.firstChild||e],this.range=r,i.removeAllRanges(),i.addRange(r),this.rangeCount=1)},this.wrap=function(e){r.instance.addState(r.editZone.html());var n=r.range.commonAncestorContainer,i=r.range.startOffset,o=r.range.endOffset,s=n;if(1===s.nodeType&&(s.getAttribute("contenteditable")||"TD"===s.nodeName)){var a=S.$("<div>​</div>");S.$(s).append(a),s=a[0]}if("TD"===s.parentNode.nodeName){var a=S.$("<div>​</div>");S.$(s.parentNode).append(a),a.append(s)}if(this.isCursor()||3===n.nodeType||-1!==t.textNodes.indexOf(n.nodeName)){for(e.html("​");-1!==t.textNodes.indexOf(s.nodeName)||3===s.nodeType;)if(1===s.parentNode.nodeType&&s.parentNode.getAttribute("contenteditable")||"TD"===s.parentNode.nodeName){var u=document.createElement("div");1===s.nodeType?S.$(u).html(S.$(s).html()):S.$(u).text(s.textContent),s.parentNode.insertBefore(u,s),s.parentNode.removeChild(s),s=u}else s=s.parentNode;e.html(S.$(s).html()),s.parentNode.insertBefore(e[0],s),s.parentNode.removeChild(s);var c=window.getSelection(),l=document.createRange();l.setStart(e[0].firstChild,i),l.setEnd(e[0].firstChild,o),c.removeAllRanges(),c.addRange(l)}else if(-1!==t.formatNodes.indexOf(s.nodeName)){e.html(S.$(s).html()),s.parentNode.insertBefore(e[0],s),s.parentNode.removeChild(s);var c=window.getSelection(),l=document.createRange();l.setStart(e[0],0);var o=e[0].textContent.length;e[0].childNodes.length&&(o=e[0].childNodes.length),l.setEnd(e[0],o),c.removeAllRanges(),c.addRange(l)}else for(var d=!1,h=!1,f=0;f<s.childNodes.length;f++){var p=s.childNodes[f];if((p===this.range.startContainer||1===this.range.startContainer.nodeType&&S.$(this.range.startContainer).find(p).length||1===p.nodeType&&S.$(p).find(this.range.startContainer).length)&&(d=!0),(p===this.range.endContainer||1===this.range.endContainer.nodeType&&S.$(this.range.endContainer).find(p).length||1===p.nodeType&&S.$(p).find(this.range.endContainer).length)&&(h=!0,0===this.range.endOffset))break;if(d){for(var m=S.$(e[0].outerHTML);-1!==t.textNodes.indexOf(p.nodeName)||3===p.nodeType;)p=p.parentNode;if(p.parentNode){m.html(p.innerHTML||p.textContent),p.parentNode.insertBefore(m[0],p),p.parentNode.removeChild(p);var c=window.getSelection(),l=document.createRange();l.setStart(m[0],0);var o=m[0].textContent.length;if(m[0].childNodes.length&&(o=m[0].childNodes.length),l.setEnd(m[0],o),c.removeAllRanges(),c.addRange(l),h)break}}}r.instance.addState(r.editZone.html()),setTimeout(function(){this.instance.trigger("selectionchange",{selection:this.instance.selection}),this.instance.trigger("change")}.bind(this),100)},this.isCursor=function(){var e=window.getSelection();return e.rangeCount>0&&this.instance.editZone.find(e.getRangeAt(0).startContainer).length>0&&(this.rangeCount=e.rangeCount,this.range=e.getRangeAt(0)),(1===this.rangeCount||0===this.rangeCount)&&this.range.startContainer===this.range.endContainer&&this.range.startOffset===this.range.endOffset};var i=function(e,t,n){if(t||(t=this.range.commonAncestorContainer),3===t.nodeType){var r=0;t===this.range.startContainer&&(r=this.range.startOffset);var o=document.createTextNode(t.textContent.substring(r));if(t===this.range.endContainer){o=document.createTextNode(t.textContent.substring(r,this.range.endOffset));var s=document.createTextNode(t.textContent.substring(this.range.endOffset));t.parentNode.insertBefore(s,t.nextSibling)}e.append(o),t.textContent=t.textContent.substring(0,r)}var a=!1;n&&(a=!0);for(var u=[],c=0;c<t.childNodes.length;c++){var l=t.childNodes[c];u.push(l)}for(var c=0;c<u.length;c++){var l=u[c];if(l!==this.range.startContainer){if(l.contains(this.range.startContainer)){var d=document.createElement(l.nodeName);S.$(d).attr("style",S.$(l).attr("style")),e.append(d),i(d,l),a=!0}else if(a){if(l===this.range.endContainer){if(1===l.nodeType)for(var h=this.range.endOffset,f=this.range.startOffset;f<h;f++)e.append(l.childNodes[f]);else{var o=document.createTextNode(l.textContent.substring(0,this.range.endOffset));l.textContent=l.textContent.substring(this.range.endOffset),e.append(o)}break}if(l.contains(this.range.endContainer)){var d=document.createElement(l.nodeName);S.$(d).attr("style",S.$(l).attr("style")),e.append(d),i(d,l,!0);break}e.append(l)}}else if(a=!0,0===this.range.startOffset&&e.append(l),1===l.nodeType){var p=l.childNodes.length;this.range.startContainer===this.range.endContainer&&(p=this.range.endOffset);for(var m=this.range.startOffset;m<p;m++)e.append(l.childNodes[m])}else{var o=void 0;if(this.range.startContainer===this.range.endContainer){o=document.createTextNode(l.textContent.substring(this.range.startOffset,this.range.endOffset));var s=document.createTextNode(l.textContent.substring(this.range.endOffset));l.parentNode.insertBefore(s,l.nextSibling),l.textContent=l.textContent.substring(0,this.range.startOffset)}else o=document.createTextNode(l.textContent.substring(this.range.startOffset)),l.textContent=l.textContent.substring(0,this.range.startOffset);e.append(o)}}}.bind(this);this.wrapText=function(e){if(this.instance.addState(this.editZone.html()),this.isCursor())e.html("<br />"),this.editZone.append(e),this.selectNode(e[0]);else if(this.range.startContainer===this.range.commonAncestorContainer&&this.range.startContainer===this.range.endContainer&&1===this.range.startContainer.nodeType){var t=this.range.startContainer;if(this.instance.editZone[0]===this.range.startContainer){for(var n=document.createElement("div");this.instance.editZone[0].childNodes.length;)S.$(n).append(this.instance.editZone[0].childNodes[0]);this.instance.editZone.append(n),t=n}for(;1===t.childNodes.length;)t=t.firstChild;t.parentNode.insertBefore(e[0],t),e.append(t)}else i(e),this.range.startContainer.parentNode.insertBefore(e[0],this.range.startContainer.nextSibling);this.instance.trigger("change"),this.selectNode(e[0])},this.isEmpty=function(){return!this.range||this.isCursor()},this.elementAtCaret=function(){if(!this.range||!this.editZone.is(":focus"))return S.$();var e=this.range.startContainer;return 1!==e.nodeType&&(e=e.parentNode),S.$(e)},this.moveRanges=function(e,t,n,r){window.getSelection();this.ranges.forEach(function(i){i!==e&&(i.startContainer===t&&(i.startOffset+=n,r&&(i.startContainer=r)),i.endContainer===t&&(i.endOffset+=n,r&&(i.endContainer=r)))})},this.css=function(e){var t=this;if("object"!=typeof e){if(!this.range)return;var n=this.range.commonAncestorContainer;return 1===n.nodeType?S.$(n).css(e):S.$(n.parentNode).css(e)}var i=window.getSelection();if(!this.instance.editZone.is(":focus")){this.instance.editZone[0].focus();var s=i.getRangeAt(0);this.range=s,this.rangeCount=1}if(this.instance.editZone.html()){this.ranges=[];for(var u=0;u<i.rangeCount;u++){var s=i.getRangeAt(u);this.ranges.push(s)}this.ranges.filter(function(e){return o(e)}).forEach(function(e){var t=y(e.endContainer.previousSibling);e.setStart(t,_(t)),e.setEnd(t,_(t))}),this.ranges.forEach(function(n){return T(t.instance.editZone.get(0),n,Object.keys(e)[0],e)}),i.removeAllRanges(),this.ranges.forEach(function(e){return i.addRange(e)})}else{var c=document.createElement("div"),l=document.createElement("span");l.appendChild(document.createTextNode("")),c.appendChild(l),S.$(l).css(e),this.instance.editZone.append(c);var h=document.createRange();h.setStart(l.firstChild,0),h.setEnd(l.firstChild,l.textContent.length),i.removeAllRanges(),i.addRange(h)}r.editZone.find("span").each(function(e,t){if(t.childNodes.length>1)for(var n=t.firstChild;null!==n;){var r=n.nextSibling;3===n.nodeType&&""===n.textContent&&n.parentNode.removeChild(n),n=r}if(1===t.childNodes.length&&1===t.childNodes[0].nodeType&&"SPAN"===t.childNodes[0].nodeName){for(var i=0;i<t.childNodes[0].style.length;i++){var o=t.childNodes[0].style[i],s=S.$(t.childNodes[0]).css(o);"text-decoration"===o&&(s=s.split(" ")[0]),"text-decoration-style"!==o&&"text-decoration-color"!==o&&("text-decoration-line"===o&&(o="text-decoration"),S.$(t).css(o,S.$(t.childNodes[0]).css(o)))}for(var a=window.getSelection(),u=[],i=0;i<a.rangeCount;i++){var c={startContainer:a.getRangeAt(i).startContainer,endContainer:a.getRangeAt(i).endContainer,startOffset:a.getRangeAt(i).startOffset,endOffset:a.getRangeAt(i).endOffset};c.startContainer===t.childNodes[0]&&(1===c.startContainer.nodeType&&3===t.nodeType&&1===c.startOffset&&(c.startOffset=t.textContent.length),c.startContainer=t),c.endContainer===t.childNodes[0]&&(1===c.endContainer.nodeType&&3===t.nodeType&&1===c.endOffset&&(c.endOffset=t.textContent.length),c.endContainer=t),u.push(c)}for(;t.childNodes[0].childNodes.length;)S.$(t).append(t.childNodes[0].childNodes[0]);t.removeChild(t.childNodes[0]),a.removeAllRanges(),u.forEach(function(e){var t=document.createRange();t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),a.addRange(t)})}""!==t.textContent||0!==t.childNodes.length||d(t.parentNode)&&1===t.parentNode.childNodes.length||S.$(t).remove()});for(var f=[],u=0;u<window.getSelection().rangeCount;u++)f.push(window.getSelection().getRangeAt(u));r.editZone.find("span").each(function(e,t){return a(t,f)}),r.instance.addState(r.editZone.html()),r.instance.trigger("contentupdated")},this.replaceHTML=function(e){r.instance.addState(r.editZone.html());var t=S.$("<div></div>");t.html(e+"​"),this.range?(this.range.deleteContents(),this.range.insertNode(t[0])):this.editZone.append(t),r.instance.trigger("change")},this.replaceHTMLInline=function(e){if(this.range&&this.range.startContainer===this.editZone[0]&&this.range.endContainer===this.editZone[0]){var t=S.$("<div>​</div>");t.html(this.editZone.html()),this.editZone.html(""),this.editZone.append(t);var n=window.getSelection(),i=document.createRange();i.setStart(t[0],0),n.removeAllRanges(),n.addRange(i),this.range=i}r.instance.addState(r.editZone.html());var o=S.$("<span></span>");if(o.html(e),this.range)this.range.deleteContents(),this.range.insertNode(o[0]);else{this.editZone.append(e);var n=window.getSelection(),i=document.createRange();i.setStart(o[0],o[0].childNodes.length),n.removeAllRanges(),n.addRange(i)}r.instance.trigger("change")},this.$=function(){var e=S.$();return this.selectedElements.forEach(function(t){t&&(e=1===t.nodeType?e.add(t):e.add(t.parentNode))}),e}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(901)),r(n(902)),r(n(903)),r(n(904)),r(n(905));var i=n(906);t.justifyFull=i.justifyFull,t.justifyCenter=i.justifyCenter,t.justifyLeft=i.justifyLeft,t.justifyRight=i.justifyRight,r(n(918)),r(n(919)),r(n(920)),r(n(921)),r(n(922)),r(n(923)),r(n(924)),r(n(925)),r(n(926)),r(n(927)),r(n(928)),r(n(929)),r(n(930)),r(n(931)),r(n(932)),r(n(933)),r(n(934))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undo={name:"undo",run:function(e){return{template:'<i tooltip="editor.option.undo"></i>',link:function(t,n,r){n.addClass("disabled"),n.on("click",function(){e.undo(),1===e.stateIndex?n.addClass("disabled"):n.removeClass("disabled"),e.trigger("change")}),e.on("contentupdated",function(t){1===e.stateIndex?n.addClass("disabled"):n.removeClass("disabled")})}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redo={name:"redo",run:function(e){return{template:'<i tooltip="editor.option.redo"></i>',link:function(t,n,r){n.addClass("disabled"),n.on("click",function(){e.redo(),e.stateIndex===e.states.length?n.addClass("disabled"):n.removeClass("disabled"),e.trigger("change")}),e.on("contentupdated",function(t){e.stateIndex===e.states.length?n.addClass("disabled"):n.removeClass("disabled")})}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={name:"bold",run:function(e){return{template:'<i tooltip="editor.option.bold"></i>',link:function(t,n,r){n.on("click",function(){e.editZone.is(":focus")||e.focus(),document.queryCommandState("bold")?(n.removeClass("toggled"),e.selection.css({"font-weight":"normal"})):(n.addClass("toggled"),e.selection.css({"font-weight":"bold"}))}),e.on("selectionchange",function(e){document.queryCommandState("bold")?n.addClass("toggled"):n.removeClass("toggled")})}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.italic={name:"italic",run:function(e){return{template:'<i tooltip="editor.option.italic"></i>',link:function(t,n,r){n.on("click",function(){e.editZone.is(":focus")||e.focus(),document.queryCommandState("italic")?(n.removeClass("toggled"),e.selection.css({"font-style":"normal"})):(n.addClass("toggled"),e.selection.css({"font-style":"italic"}))}),e.on("selectionchange",function(e){document.queryCommandState("italic")?n.addClass("toggled"):n.removeClass("toggled")})}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.underline={name:"underline",run:function(e){return{mobile:!1,template:'<i tooltip="editor.option.underline"></i>',link:function(t,n,r){n.on("click",function(){document.queryCommandState("underline")?(e.execCommand("underline"),n.removeClass("toggled")):(e.selection.css({"text-decoration":"underline"}),n.addClass("toggled"))}),e.on("selectionchange",function(e){document.queryCommandState("underline")?n.addClass("toggled"):n.removeClass("toggled")})}}}}},function(e,t,n){"use strict";function r(e){if(1===e.nodeType&&-1===s.textNodes.indexOf(e.nodeName))return e;if(e.attributes&&e.attributes.contenteditable&&"DIV"===e.nodeName){var t=document.createElement("div");e.appendChild(t);for(var n=0;n<e.childNodes.length;n++)t.appendChild(e.childNodes[n]);return e}return 1!==e.nodeType||-1!==s.textNodes.indexOf(e.nodeName)?r(e.parentNode):void 0}function i(e,t){var n=e.commonAncestorContainer;if(n===t)return s.explodeRangeOnChildNodes(e,t).map(function(e){return e.range}).map(function(e){var n,r=document.createRange();return n=s.isHTMLElement(e.commonAncestorContainer)&&s.isHTMLBlockElement(e.commonAncestorContainer)?e.commonAncestorContainer:a.findClosestBlockElement(e.commonAncestorContainer,t),r.setStart(n,0),r.setEnd(n,n.childNodes.length),r});var i=!1,o=document.createRange();n=r(n);for(var u=0;u<n.childNodes.length;u++){var c=r(n.childNodes[u]),l=n.childNodes[u].compareDocumentPosition(e.startContainer),d=e.startContainer.compareDocumentPosition(n.childNodes[u]);if((n.childNodes[u]===e.startContainer||s.isParentOfComparedNode(l)||s.isParentOfComparedNode(d))&&(i=!0,o.setStart(c,0)),i){var h=n.childNodes[u].compareDocumentPosition(e.endContainer),f=e.endContainer.compareDocumentPosition(n.childNodes[u]);(n.childNodes[u]===e.startContainer||s.isParentOfComparedNode(h)||s.isParentOfComparedNode(f))&&o.setEnd(c,c.childNodes.length)}}return[o]}function o(e,t,n){for(var r=[],o=[],a=0;a<e.rangeCount;a++){var u=e.getRangeAt(a);r.push(u)}r.forEach(function(e){return o.push.apply(o,i(e,t))}),o.forEach(function(e){return s.applyCssToRange(t,e,"text-align",{"text-align":n})})}Object.defineProperty(t,"__esModule",{value:!0});var s=n(899),a=n(907);t.projectRangeOnBlockElements=i,t.justifyLeft={name:"justifyLeft",run:function(e){return{template:'<i tooltip="editor.option.justify.left"></i>',link:function(t,n,r){n.addClass("toggled"),n.on("click",function(){e.editZone.is(":focus")||e.focus(),o(window.getSelection(),e.editZone.get(0),"left"),document.queryCommandState("justifyLeft")?n.addClass("toggled"):n.removeClass("toggled")}),e.on("selectionchange",function(t){document.queryCommandState("justifyLeft")&&"right"!==e.selection.css("float")&&"1"!==e.selection.css("z-index")?n.addClass("toggled"):n.removeClass("toggled")}),e.on("justify-changed",function(t){document.queryCommandState("justifyLeft")&&"right"!==e.selection.css("float")&&"1"!==e.selection.css("z-index")?n.addClass("toggled"):n.removeClass("toggled")})}}}},t.justifyCenter={name:"justifyCenter",run:function(e){return{template:'<i tooltip="editor.option.justify.center"></i>',link:function(t,n,r){n.on("click",function(){e.editZone.is(":focus")||e.focus(),document.queryCommandState("justifyCenter")?(o(window.getSelection(),e.editZone.get(0),"left"),n.removeClass("toggled")):(o(window.getSelection(),e.editZone.get(0),"center"),n.addClass("toggled"))}),e.on("selectionchange",function(t){document.queryCommandState("justifyCenter")||e.selection.css("margin-left")===e.selection.css("margin-right")&&"1"===e.selection.css("z-index")?n.addClass("toggled"):n.removeClass("toggled")}),e.on("justify-changed",function(t){document.queryCommandState("justifyCenter")||e.selection.css("margin-left")===e.selection.css("margin-right")&&"1"===e.selection.css("z-index")?n.addClass("toggled"):n.removeClass("toggled")})}}}},t.justifyRight={name:"justifyRight",run:function(e){return{template:'<i tooltip="editor.option.justify.right"></i>',link:function(t,n,r){n.on("click",function(){e.editZone.is(":focus")||e.focus(),document.queryCommandState("justifyRight")?(o(window.getSelection(),e.editZone.get(0),"left"),n.removeClass("toggled")):(o(window.getSelection(),e.editZone.get(0),"right"),n.addClass("toggled"))}),e.on("selectionchange",function(t){document.queryCommandState("justifyRight")||"right"===e.selection.css("float")?n.addClass("toggled"):n.removeClass("toggled")}),e.on("justify-changed",function(t){document.queryCommandState("justifyRight")||"right"===e.selection.css("float")?n.addClass("toggled"):n.removeClass("toggled")})}}}},t.justifyFull={mobile:!1,name:"justifyFull",run:function(e){return{template:'<i tooltip="editor.option.justify.full"></i>',link:function(t,n,r){n.on("click",function(){e.editZone.is(":focus")||e.focus(),document.queryCommandState("justifyFull")?(o(window.getSelection(),e.editZone.get(0),"left"),n.removeClass("toggled")):(o(window.getSelection(),e.editZone.get(0),"justify"),n.addClass("toggled"))}),e.on("selectionchange",function(e){document.queryCommandState("justifyFull")?n.addClass("toggled"):n.removeClass("toggled")}),e.on("justify-changed",function(e){document.queryCommandState("justifyFull")?n.addClass("toggled"):n.removeClass("toggled")})}}}}},function(e,t,n){"use strict";function r(e,t){for(var n;(e=c.findClosestHTMLElement(e))&&e!==t&&!n;)c.isHTMLBlockElement(e)&&(n=e);return n}function i(e){return e.replace(/[\u200B-\u200D\uFEFF]/g,"")}function o(e,t){return i(e.substring(0,t))+e.substring(t)}function s(e,t){var n=t.startContainer,r=t.startOffset,i=t.endContainer,s=t.endOffset,a=n.nodeValue.length;n.nodeValue=o(n.nodeValue,r);var u=a-n.nodeValue.length,c=document.createRange();return c.setStart(n,r-u),i===n?c.setEnd(i,s-u):c.setEnd(i,s),{node:e,range:c}}function a(e,t,n,o){n.addState(o.html());for(var a=[],l=0;l<t.rangeCount;l++)a.push(t.getRangeAt(l));a=a.map(function(t){var n=t,a=n.startContainer;if(a.nodeType===Node.TEXT_NODE&&(n=s(a,n).range),a=n.startContainer,a.nodeType!==Node.ELEMENT_NODE||"TD"!==a.nodeName&&"TR"!==a.nodeName){if(a!==o.get(0)){var u=void 0;if((u=c.isHTMLBlockElement(a)?a:r(a,o.get(0)))&&u.previousSibling){var l=u.previousSibling;if(0===i(u.textContent).length||c.isHTMLElement(u)&&u.querySelector(".image-container")&&0===i(u.textContent).replace(/\n\r/g,"").trim().length){if(l.nodeType===Node.TEXT_NODE)n=document.createRange(),n.setStart(l,l.textContent.length);else{var d=c.findLatestChildTextNode(l);d||(d=document.createTextNode(""),l.appendChild(d)),n=document.createRange(),n.setStart(d,d.textContent.length)}e.preventDefault(),u.parentNode.removeChild(u)}else 0===i(l.textContent).length&&0===n.startOffset&&n.startContainer===n.endContainer&&n.startOffset===n.endOffset&&(l.parentNode.removeChild(l),e.preventDefault())}}}else a.parentNode.removeChild(a);return n||t}),t.removeAllRanges(),a.forEach(function(e){return t.addRange(e)}),o.find("table").each(function(e,t){0===u.$(t).find("tr").length&&u.$(t).remove()})}Object.defineProperty(t,"__esModule",{value:!0});var u=n(908),c=n(899);t.findClosestBlockElement=r,t.onPressDelete=a},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(909)),r(n(1)),r(n(916)),r(n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(910),n(912),n(914),t.angular=window.angular,window.entcore||(window.entcore={}),window.entcore.angular=t.angular},function(e,t,n){n(911),e.exports=angular},function(e,t){/**
|
|
168
|
-
* @license AngularJS v1.
|
|
169
|
-
* (c) 2010-
|
|
168
|
+
* @license AngularJS v1.8.3
|
|
169
|
+
* (c) 2010-2020 Google LLC. http://angularjs.org
|
|
170
170
|
* License: MIT
|
|
171
171
|
*/
|
|
172
|
-
!function(e){"use strict";function t(e){if(!w(e))return mi;b(e.objectMaxDepth)&&(mi.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN),b(e.urlErrorParamsEnabled)&&A(e.urlErrorParamsEnabled)&&(mi.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function n(e){return L(e)&&e>0}function r(e,t){t=t||Error;var n="https://errors.angularjs.org/1.7.9/",r=n.replace(".","\\.")+"[\\s\\S]*",i=new RegExp(r,"g");return function(){var r,o,s=arguments[0],a=arguments[1],u="["+(e?e+":":"")+s+"] ",c=J(arguments,2).map(function(e){return Le(e,mi.objectMaxDepth)});if(u+=a.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<c.length?c[t].replace(i,""):e}),u+="\n"+n+(e?e+"/":"")+s,mi.urlErrorParamsEnabled)for(o=0,r="?";o<c.length;o++,r="&")u+=r+"p"+o+"="+encodeURIComponent(c[o]);return new t(u)}}function i(e){if(null==e||$(e))return!1;if(Y(e)||k(e)||hi&&e instanceof hi)return!0;var t="length"in Object(e)&&e.length;return L(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function o(e,t,n){var r,s;if(e)if(S(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(Y(e)||i(e)){var a="object"!=typeof e;for(r=0,s=e.length;r<s;r++)(a||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(M(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)yi.call(e,r)&&t.call(n,e[r],r,e);return e}function s(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function a(e){return function(t,n){e(n,t)}}function u(){return++Si}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var s=t[i];if(w(s)||S(s))for(var a=Object.keys(s),u=0,d=a.length;u<d;u++){var h=a[u],f=s[h];n&&w(f)?x(f)?e[h]=new Date(f.valueOf()):D(f)?e[h]=new RegExp(f):f.nodeName?e[h]=f.cloneNode(!0):I(f)?e[h]=f.clone():"__proto__"!==h&&(w(e[h])||(e[h]=Y(f)?[]:{}),l(e[h],[f],!0)):e[h]=f}}return c(e,r),e}function d(e){return l(e,wi.call(arguments,1),!1)}function h(e){return l(e,wi.call(arguments,1),!0)}function f(e){return parseInt(e,10)}function p(e,t){return d(Object.create(e),t)}function m(){}function _(e){return e}function v(e){return function(){return e}}function y(e){return S(e.toString)&&e.toString!==Li}function g(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function M(e){return null!==e&&"object"==typeof e&&!xi(e)}function k(e){return"string"==typeof e}function L(e){return"number"==typeof e}function x(e){return"[object Date]"===Li.call(e)}function Y(e){return Array.isArray(e)||e instanceof Array}function T(e){switch(Li.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function S(e){return"function"==typeof e}function D(e){return"[object RegExp]"===Li.call(e)}function $(e){return e&&e.window===e}function E(e){return e&&e.$evalAsync&&e.$watch}function O(e){return"[object File]"===Li.call(e)}function j(e){return"[object FormData]"===Li.call(e)}function C(e){return"[object Blob]"===Li.call(e)}function A(e){return"boolean"==typeof e}function P(e){return e&&S(e.then)}function H(e){return e&&L(e.length)&&$i.test(Li.call(e))}function F(e){return"[object ArrayBuffer]"===Li.call(e)}function I(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function N(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function R(e){return gi(e.nodeName||e[0]&&e[0].nodeName)}function W(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function z(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function V(e,t,r){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(Y(e))for(var o=0,a=e.length;o<a;o++)t.push(s(e[o],n));else if(M(e))for(r in e)t[r]=s(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=s(e[r],n));else for(r in e)yi.call(e,r)&&(t[r]=s(e[r],n));return c(t,i),t}function s(e,t){if(!w(e))return e;var n=u.indexOf(e);if(-1!==n)return l[n];if($(e)||E(e))throw Yi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=a(e);return void 0===o&&(o=Y(e)?[]:Object.create(xi(e)),r=!0),u.push(e),l.push(o),r?i(e,o,t):o}function a(e){switch(Li.call(e)){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 e.constructor(s(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(S(e.cloneNode))return e.cloneNode(!0)}var u=[],l=[];if(r=n(r)?r:NaN,t){if(H(t)||F(t))throw Yi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Yi("cpi","Can't copy! Source and destination are identical.");return Y(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),u.push(e),l.push(t),i(e,t,r)}return s(e,r)}function q(e,t){return e===t||e!==e&&t!==t}function B(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,s=typeof t;if(o===s&&"object"===o){if(!Y(e)){if(x(e))return!!x(t)&&q(e.getTime(),t.getTime());if(D(e))return!!D(t)&&e.toString()===t.toString();if(E(e)||E(t)||$(e)||$(t)||Y(t)||x(t)||D(t))return!1;i=ge();for(r in e)if("$"!==r.charAt(0)&&!S(e[r])){if(!B(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!S(t[r]))return!1;return!0}if(!Y(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!B(e[r],t[r]))return!1;return!0}}return!1}function U(e,t,n){return e.concat(wi.call(t,n))}function J(e,t){return wi.call(e,t||0)}function G(e,t){var n=arguments.length>2?J(arguments,2):[];return!S(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,U(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Z(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:$(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":E(n)&&(r="$SCOPE"),r}function X(e,t){if(!g(e))return L(t)||(t=t?2:null),JSON.stringify(e,Z,t)}function K(e){return k(e)?JSON.parse(e):e}function Q(e,t){e=e.replace(Ai,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Di(n)?t:n}function ee(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function te(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ee(e,n*(Q(t,r)-r))}function ne(e){e=hi(e).clone().empty();var t=hi("<div></div>").append(e).html();try{return e[0].nodeType===Ri?gi(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+gi(t)})}catch(e){return gi(t)}}function re(e){try{return decodeURIComponent(e)}catch(e){}}function ie(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=re(r),b(r)&&(i=!b(i)||re(i),yi.call(t,r)?Y(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function oe(e){var t=[];return o(e,function(e,n){Y(e)?o(e,function(e){t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}):t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}),t.length?t.join("&"):""}function se(e){return ae(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ae(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ue(e,t){var n,r,i=Pi.length;for(r=0;r<i;++r)if(n=Pi[r]+t,k(n=e.getAttribute(n)))return n;return null}function ce(t,n){var r,i,s={};if(o(Pi,function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))}),o(Pi,function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!Hi)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");s.strictDi=null!==ue(r,"strict-di"),n(r,i?[i]:[],s)}}function le(t,n,r){w(r)||(r={}),r=d({strictDi:!1},r);var i=function(){if(t=hi(t),t.injector()){var i=t[0]===e.document?"document":ne(t);throw Yi("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ht(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(e&&s.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!a.test(e.name))return i();e.name=e.name.replace(a,""),Ti.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},S(Ti.resumeDeferredBootstrap)&&Ti.resumeDeferredBootstrap()}function de(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function he(e){var t=Ti.element(e).injector();if(!t)throw Yi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function fe(e,t){return t=t||"_",e.replace(Fi,function(e,n){return(n?t:"")+e.toLowerCase()})}function pe(e,t,n){if(!e)throw Yi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function me(e,t,n){return n&&Y(e)&&(e=e[e.length-1]),pe(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function _e(e,t){if("hasOwnProperty"===e)throw Yi("badname","hasOwnProperty is not a valid {0} name",t)}function ve(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,s=i.length,a=0;a<s;a++)r=i[a],e&&(e=(o=e)[r]);return!n&&S(e)?G(o,e):e}function ye(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=hi(wi.call(e,0,i))),t.push(n));return t||e}function ge(){return Object.create(null)}function be(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!y(e)||Y(e)||x(e)?X(e):e.toString()}return e}function we(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,s){var a={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),h}}function t(e,t,n){return n||(n=u),function(i,o){return o&&S(o)&&(o.$$moduleName=r),n.push([e,t,arguments]),h}}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.",r);var u=[],c=[],l=[],d=e("$injector","invoke","push",c),h={_invokeQueue:u,_configBlocks:c,_runBlocks:l,info:function(e){if(b(e)){if(!w(e))throw i("aobj","Argument '{0}' must be an object","value");return a=e,this}return a},requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",c),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:d,run:function(e){return l.push(e),this}};return s&&d(s),h})}})}function Me(e,t){if(Y(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function ke(e,t){var r=[];return n(t)&&(e=Ti.copy(e,null,t)),JSON.stringify(e,function(e,t){if(t=Z(e,t),w(t)){if(r.indexOf(t)>=0)return"...";r.push(t)}return t})}function Le(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):g(e)?"undefined":"string"!=typeof e?ke(e,t):e}function xe(){return++Ui}function Ye(e){return Se(e.replace(Gi,"ms-"))}function Te(e,t){return t.toUpperCase()}function Se(e){return e.replace(Ji,Te)}function De(e){return!Qi.test(e)}function $e(e){var t=e.nodeType;return t===Ni||!t||t===zi}function Ee(e){for(var t in Bi[e.ng339])return!0;return!1}function Oe(e,t){var n,r,i,s,a=t.createDocumentFragment(),u=[];if(De(e))u.push(t.createTextNode(e));else{for(n=a.appendChild(t.createElement("div")),r=(eo.exec(e)||["",""])[1].toLowerCase(),i=no[r]||no._default,n.innerHTML=i[1]+e.replace(to,"<$1></$2>")+i[2],s=i[0];s--;)n=n.lastChild;u=U(u,n.childNodes),n=a.firstChild,n.textContent=""}return a.textContent="",a.innerHTML="",o(u,function(e){a.appendChild(e)}),a}function je(t,n){n=n||e.document;var r;return(r=Ki.exec(t))?[n.createElement(r[1])]:(r=Oe(t,n))?r.childNodes:[]}function Ce(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Ae(e){if(e instanceof Ae)return e;var t;if(k(e)&&(e=Ei(e),t=!0),!(this instanceof Ae)){if(t&&"<"!==e.charAt(0))throw Xi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ae(e)}t?Ue(this,je(e)):S(e)?Qe(e):Ue(this,e)}function Pe(e){return e.cloneNode(!0)}function He(e,t){!t&&$e(e)&&hi.cleanData([e]),e.querySelectorAll&&hi.cleanData(e.querySelectorAll("*"))}function Fe(e){var t;for(t in e)return!1;return!0}function Ie(e){var t=e.ng339,n=t&&Bi[t],r=n&&n.events,i=n&&n.data;i&&!Fe(i)||r&&!Fe(r)||(delete Bi[t],e.ng339=void 0)}function Ne(e,t,n,r){if(b(r))throw Xi("offargs","jqLite#off() does not support the `selector` argument");var i=We(e),s=i&&i.events,a=i&&i.handle;if(a){if(t){var u=function(t){var r=s[t];b(n)&&z(r||[],n),b(n)&&r&&r.length>0||(e.removeEventListener(t,a),delete s[t])};o(t.split(" "),function(e){u(e),Zi[e]&&u(Zi[e])})}else for(t in s)"$destroy"!==t&&e.removeEventListener(t,a),delete s[t];Ie(e)}}function Re(e,t){var n=e.ng339,r=n&&Bi[n];r&&(t?delete r.data[t]:r.data={},Ie(e))}function We(e,t){var n=e.ng339,r=n&&Bi[n];return t&&!r&&(e.ng339=n=xe(),r=Bi[n]={events:{},data:{},handle:void 0}),r}function ze(e,t,n){if($e(e)){var r,i=b(n),o=!i&&t&&!w(t),s=!t,a=We(e,!o),u=a&&a.data;if(i)u[Se(t)]=n;else{if(s)return u;if(o)return u&&u[Se(t)];for(r in t)u[Se(r)]=t[r]}}}function Ve(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function qe(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=Ei(e),r=r.replace(" "+e+" "," ")}),r!==n&&e.setAttribute("class",Ei(r))}}function Be(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=Ei(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")}),r!==n&&e.setAttribute("class",Ei(r))}}function Ue(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Je(e,t){return Ge(e,"$"+(t||"ngController")+"Controller")}function Ge(e,t,n){e.nodeType===zi&&(e=e.documentElement);for(var r=Y(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(b(n=hi.data(e,r[i])))return n;e=e.parentNode||e.nodeType===Vi&&e.host}}function Ze(e){for(He(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Xe(e,t){t||He(e);var n=e.parentNode;n&&n.removeChild(e)}function Ke(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):hi(n).on("load",t)}function Qe(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function et(e,t){var n=oo[t.toLowerCase()];return n&&so[R(e)]&&n}function tt(e){return ao[e]}function nt(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(g(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||rt;o>1&&(i=Me(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||a(e,n,i[u])}};return n.elem=e,n}function rt(e,t,n){n.call(e,t)}function it(e,t,n){var r=t.relatedTarget;r&&(r===e||ro.call(e,r))||n.call(e,t)}function ot(){this.$get=function(){return d(Ae,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ve(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Be(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),qe(e,t)}})}}function st(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function at(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function ut(e){return Function.prototype.toString.call(e)}function ct(e){var t=ut(e).replace(_o,"");return t.match(ho)||t.match(fo)}function lt(e){var t=ct(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function dt(e,t,n){var r,i,s;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw k(n)&&n||(n=e.name||lt(e)),vo("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ct(e),o(i[1].split(po),function(e){e.replace(mo,function(e,t,n){r.push(n)})})}e.$inject=r}}else Y(e)?(s=e.length-1,me(e[s],"fn"),r=e.slice(0,s)):me(e,"fn",!0);return r}function ht(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);o(t,a(e))}}function r(e,t){if(_e(e,"service"),(S(t)||Y(t))&&(t=M.instantiate(t)),!t.$get)throw vo("pget","Provider '{0}' must define $get factory method.",e);return b[e+m]=t}function i(e,t){return function(){var n=T.invoke(t,this);if(g(n))throw vo("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return r(e,{$get:!1!==n?i(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return s(e,v(t),!1)}function l(e,t){_e(e,"constant"),b[e]=t,L[e]=t}function d(e,t){var n=M.get(e+m),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function h(e){pe(g(e)||Y(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=M.get(r[0]);i[r[1]].apply(i,r[2])}}if(!y.get(e)){y.set(e,!0);try{k(e)?(t=pi(e),T.modules[e]=t,n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):S(e)?n.push(M.invoke(e)):Y(e)?n.push(M.invoke(e)):me(e,"module")}catch(t){throw Y(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),vo("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function f(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===p)throw vo("cdep","Circular dependency found: {0}",t+" <- "+_.join(" <- "));return e[t]}try{return _.unshift(t),e[t]=p,e[t]=n(t,r),e[t]}catch(n){throw e[t]===p&&delete e[t],n}finally{_.shift()}}function i(e,n,i){for(var o=[],s=ht.$$annotate(e,t,i),a=0,u=s.length;a<u;a++){var c=s[a];if("string"!=typeof c)throw vo("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:r(c,i))}return o}function o(e){if(di||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return A(t)||(t=e.$$ngIsClass=/^class\b/.test(ut(e))),t}function s(e,t,n,r){"string"==typeof n&&(r=n,n=null);var s=i(e,n,r);return Y(e)&&(e=e[e.length-1]),o(e)?(s.unshift(null),new(Function.prototype.bind.apply(e,s))):e.apply(t,s)}function a(e,t,n){var r=Y(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:s,instantiate:a,get:r,annotate:ht.$$annotate,has:function(t){return b.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=!0===t;var p={},m="Provider",_=[],y=new co,b={$provide:{provider:n(r),factory:n(s),service:n(u),value:n(c),constant:n(l),decorator:d}},M=b.$injector=f(b,function(e,t){throw Ti.isString(t)&&_.push(t),vo("unpr","Unknown provider: {0}",_.join(" <- "))}),L={},x=f(L,function(e,t){var n=M.get(e+m,t);return T.invoke(n.$get,n,void 0,e)}),T=x;b["$injector"+m]={$get:v(x)},T.modules=M.modules=ge();var D=h(e);return T=x.get("$injector"),T.strictDi=t,o(D,function(e){e&&T.invoke(e)}),T.loadNewModules=function(e){o(h(e),function(e){e&&T.invoke(e)})},T}function ft(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===R(e))return t=e,!0}),t}function o(){var e=a.yOffset;if(S(e))e=e();else if(I(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else L(e)||(e=0);return e}function s(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function a(e){e=k(e)?e:L(e)?e.toString():n.hash();var t;e?(t=u.getElementById(e))?s(t):(t=i(u.getElementsByName(e)))?s(t):"top"===e&&s(null):s(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ke(function(){r.$evalAsync(a)})}),a}]}function pt(e,t){return e||t?e?t?(Y(e)&&(e=e.join(" ")),Y(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function mt(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===go)return n}}function _t(e){k(e)&&(e=e.split(" "));var t=ge();return o(e,function(e){e.length&&(t[e]=!0)}),t}function vt(e){return w(e)?e:{}}function yt(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function gt(e){return e.replace(/#$/,"")}function bt(e,t,n,r,i){function s(){M=null,u()}function a(){v=k(),v=g(v)?null:v,B(v,Y)&&(v=Y),Y=v,y=v}function u(){var e=y;a(),b===c.url()&&e===v||(b=c.url(),y=v,o(L,function(e){e(c.url(),v)}))}var c=this,l=e.location,d=e.history,h=e.setTimeout,f=e.clearTimeout,p={},_=i(n);c.isMock=!1,c.$$completeOutstandingRequest=_.completeTask,c.$$incOutstandingRequestCount=_.incTaskCount,c.notifyWhenNoOutstandingRequests=_.notifyWhenNoPendingTasks;var v,y,b=l.href,w=t.find("base"),M=null,k=r.history?function(){try{return d.state}catch(e){}}:m;a(),c.url=function(t,n,i){if(g(i)&&(i=null),l!==e.location&&(l=e.location),d!==e.history&&(d=e.history),t){var o=y===i;if(t=Xn(t).href,b===t&&(!r.history||o))return c;var s=b&&on(b)===on(t);return b=t,y=i,!r.history||s&&o?(s||(M=t),n?l.replace(t):s?l.hash=yt(t):l.href=t,l.href!==t&&(M=t)):(d[n?"replaceState":"pushState"](i,"",t),a()),M&&(M=t),c}return gt(M||l.href)},c.state=function(){return v};var L=[],x=!1,Y=null;c.onUrlChange=function(t){return x||(r.history&&hi(e).on("popstate",s),hi(e).on("hashchange",s),x=!0),L.push(t),t},c.$$applicationDestroyed=function(){hi(e).off("hashchange popstate",s)},c.$$checkUrlChange=u,c.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},c.defer=function(e,t,n){var r;return t=t||0,n=n||_.DEFAULT_TASK_TYPE,_.incTaskCount(n),r=h(function(){delete p[r],_.completeTask(e,n)},t),p[r]=n,r},c.defer.cancel=function(e){if(p.hasOwnProperty(e)){var t=p[e];return delete p[e],f(e),_.completeTask(m,t),!0}return!1}}function wt(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new bt(e,r,t,n,i)}]}function Mt(){this.$get=function(){function e(e,n){function i(e){e!==h&&(f?f===e&&(f=e.n):f=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var s=0,a=d({},n,{id:e}),u=ge(),c=n&&n.capacity||Number.MAX_VALUE,l=ge(),h=null,f=null;return t[e]={put:function(e,t){if(!g(t)){if(c<Number.MAX_VALUE){i(l[e]||(l[e]={key:e}))}return e in u||s++,u[e]=t,s>c&&this.remove(f.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;t===h&&(h=t.p),t===f&&(f=t.n),o(t.n,t.p),delete l[e]}e in u&&(delete u[e],s--)},removeAll:function(){u=ge(),s=0,l=ge(),h=f=null},destroy:function(){u=null,a=null,l=null,delete t[e]},info:function(){return d({},a,{size:s})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function kt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Lt(){}function xt(t,n){function r(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=ge();return o(e,function(e,o){if((e=e.trim())in D)return void(i[o]=D[e]);var s=e.match(r);if(!s)throw Yo("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o},s[4]&&(D[e]=i[o])}),i}function i(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Yo("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function s(e){var t=e.charAt(0);if(!t||t!==gi(t))throw Yo("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Yo("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function u(e){var t=e.require||e.controller&&e.name;return!Y(t)&&w(t)&&o(t,function(e,n){var r=e.match(L);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function c(e,t){if(e&&(!k(e)||!/[EACM]/.test(e)))throw Yo("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var l={},h="Directive",f=/^\s*directive:\s*([\w-]+)\s+(.*)$/,y=/(([\w-]+)(?::([^;]+))?;?)/,M=N("ngSrc,ngSrcset,src,srcset"),L=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,x=/^(on[a-z]+|formaction)$/,D=ge();this.directive=function e(n,r){return pe(n,"name"),_e(n,"directive"),k(n)?(s(n),pe(r,"directiveFactory"),l.hasOwnProperty(n)||(l[n]=[],t.factory(n+h,["$injector","$exceptionHandler",function(e,t){var r=[];return o(l[n],function(i,o){try{var s=e.invoke(i);S(s)?s={compile:v(s)}:!s.compile&&s.link&&(s.compile=v(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=u(s),s.restrict=c(s.restrict,n),s.$$moduleName=i.$$moduleName,r.push(s)}catch(e){t(e)}}),r}])),l[n].push(r)):o(n,a(e)),this},this.component=function e(t,n){function r(e){function t(t){return S(t)||Y(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var r=n.template||n.templateUrl?n.template:"",s={controller:i,controllerAs:$t(n.controller)||n.controllerAs||"$ctrl",template:t(r),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return o(n,function(e,t){"$"===t.charAt(0)&&(s[t]=e)}),s}if(!k(t))return o(t,a(G(this,e))),this;var i=n.controller||function(){};return o(n,function(e,t){"$"===t.charAt(0)&&(r[t]=e,S(i)&&(i[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationWhitelist=function(e){return b(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var $=!0;this.debugInfoEnabled=function(e){return b(e)?($=e,this):$};var O=!1;this.strictComponentBindingsEnabled=function(e){return b(e)?(O=e,this):O};var j=10;this.onChangesTtl=function(e){return arguments.length?(j=e,this):j};var C=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(C=e,this):C};var P=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(P=e,this):P};var H=ge();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in H&&H[r]!==n)throw Yo("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,H[r],n);return H[r]=n,this},function(){function e(e,t){o(t,function(t){H[t.toLowerCase()]=e})}e(rs.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(rs.CSS,["*|style"]),e(rs.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(rs.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(rs.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,r,s,a,u,c,v,b){function D(){try{if(!--Fe)throw Oe=void 0,Yo("infchng","{0} $onChanges() iterations reached. Aborting!\n",j);c.$apply(function(){for(var e=0,t=Oe.length;e<t;++e)try{Oe[e]()}catch(e){r(e)}Oe=void 0})}finally{Fe++}}function F(e,t){if(!e)return e;if(!k(e))throw Yo("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Ei(e),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,o=/\s/.test(r)?i:/(,)/,s=r.split(o),a=Math.floor(s.length/2),u=0;u<a;u++){var c=2*u;n+=v.getTrustedMediaUrl(Ei(s[c])),n+=" "+Ei(s[c+1])}var l=Ei(s[2*u]).split(/\s/);return n+=v.getTrustedMediaUrl(Ei(l[0])),2===l.length&&(n+=" "+Ei(l[1])),n}function I(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function N(e,t,n){Ce.innerHTML="<span "+t+">";var r=Ce.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function W(e,t){try{e.addClass(t)}catch(e){}}function V(e,t,n,r,i){e instanceof hi||(e=hi(e));var o=Z(e,t,e,n,r,i);V.$$addScopeClass(e);var s=null;return function(t,n,r){if(!e)throw Yo("multilink","This element has already been linked.");pe(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var a=r.parentBoundTranscludeFn,u=r.transcludeControllers,c=r.futureParentElement;a&&a.$$boundTransclude&&(a=a.$$boundTransclude),s||(s=U(c));var l;if(l="html"!==s?hi(ye(s,hi("<div></div>").append(e).html())):n?io.clone.call(e):e,u)for(var d in u)l.data("$"+d+"Controller",u[d].instance);return V.$$addScopeInfo(l,t),n&&n(l,t),o&&o(t,l,l,a),n||(e=o=null),l}}function U(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&Li.call(t).match(/SVG/)?"svg":"html"}function Z(e,t,n,r,i,o){function s(e,n,r,i){var o,s,a,u,c,l,d,h,m;if(f){var _=n.length;for(m=new Array(_),c=0;c<p.length;c+=3)d=p[c],m[d]=n[d]}else m=n;for(c=0,l=p.length;c<l;)a=m[p[c++]],o=p[c++],s=p[c++],o?(o.scope?(u=e.$new(),V.$$addScopeInfo(hi(a),u)):u=e,h=o.transcludeOnThisElement?K(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?K(e,t):null,o(s,u,a,r,h)):s&&s(e,a.childNodes,void 0,i)}for(var a,u,c,l,d,h,f,p=[],m=Y(e)||e instanceof hi,_=0;_<e.length;_++)a=new I,11===di&&X(e,_,m),u=Q(e[_],[],a,0===_?r:void 0,i),c=u.length?oe(u,e[_],a,t,n,null,[],[],o):null,c&&c.scope&&V.$$addScopeClass(a.$$element),d=c&&c.terminal||!(l=e[_].childNodes)||!l.length?null:Z(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||d)&&(p.push(_,c,d),h=!0,f=f||c),o=null;return h?s:null}function X(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Ri)for(;;){if(!(r=o?i.nextSibling:e[t+1])||r.nodeType!==Ri)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}}function K(e,t,n){function r(r,i,o,s,a){return r||(r=e.$new(!1,a),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}var i=r.$$slots=ge();for(var o in t.$$slots)t.$$slots[o]?i[o]=K(e,t.$$slots[o],n):i[o]=null;return r}function Q(e,t,n,r,i){var o,s,a,u=e.nodeType,c=n.$attr;switch(u){case Ni:s=R(e),ce(t,Tt(s),"E",r,i);for(var l,d,h,f,p,m=e.attributes,_=0,v=m&&m.length;_<v;_++){var g,b=!1,M=!1,L=!1,x=!1,Y=!1;l=m[_],d=l.name,f=l.value,h=Tt(d.toLowerCase()),(p=h.match(We))?(L="Attr"===p[1],x="Prop"===p[1],Y="On"===p[1],d=d.replace(So,"").toLowerCase().substr(4+p[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(g=h.match(ze))&&le(g[1])&&(b=d,M=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),x||Y?(n[h]=f,c[h]=l.name,x?ke(e,t,h,d):Le(t,h,d)):(h=Tt(d.toLowerCase()),c[h]=d,!L&&n.hasOwnProperty(h)||(n[h]=f,et(e,h)&&(n[h]=!0)),xe(e,t,f,h,L),ce(t,h,"A",r,i,b,M))}if("input"===s&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!He)break;if(a=e.className,w(a)&&(a=a.animVal),k(a)&&""!==a)for(;o=y.exec(a);)h=Tt(o[2]),ce(t,h,"C",r,i)&&(n[h]=Ei(o[3])),a=a.substr(o.index+o[0].length);break;case Ri:ve(t,e.nodeValue);break;case Wi:if(!Ae)break;ee(e,t,n,r,i)}return t.sort(me),t}function ee(e,t,n,r,i){try{var o=f.exec(e.nodeValue);if(o){var s=Tt(o[1]);ce(t,s,"M",r,i)&&(n[s]=Ei(o[2]))}}catch(e){}}function te(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Yo("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===Ni&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return hi(r)}function re(e,t,n){return function(r,i,o,s,a){return i=te(i[0],t,n),e(r,i,o,s,a)}}function ie(e,t,n,r,i,o){var s;return e?V(t,n,r,i,o):function(){return s||(s=V(t,n,r,i,o),t=n=o=null),s.apply(this,arguments)}}function oe(t,n,i,s,a,u,c,l,h){function f(e,t,n,r){e&&(n&&(e=re(e,n,r)),e.require=m.require,e.directiveName=_,(x===m||m.$$isolateScope)&&(e=Te(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=re(t,n,r)),t.require=m.require,t.directiveName=_,(x===m||m.$$isolateScope)&&(t=Te(t,{isolateScope:!0})),l.push(t))}function p(e,t,s,a,u){function h(e,t,n,r){var i;if(E(e)||(r=n,n=t,t=e,e=void 0),j&&(i=y),n||(n=j?M.parent():M),!r)return u(e,t,i,n,H);var o=u.$$slots[r];if(o)return o(e,t,i,n,H);if(g(o))throw Yo("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ne(M))}var f,p,m,_,v,y,b,M,D,$;n===s?(D=i,M=i.$$element):(M=hi(s),D=new I(M,i)),v=t,x?_=t.$new(!0):k&&(v=t.$parent),u&&(b=h,b.$$boundTransclude=u,b.isSlotFilled=function(e){return!!u.$$slots[e]}),L&&(y=ae(M,D,b,L,_,t,x)),x&&(V.$$addScopeInfo(M,_,!0,!(T&&(T===x||T===x.$$originalDirective))),V.$$addScopeClass(M,!0),_.$$isolateBindings=x.$$isolateBindings,$=Ee(t,D,_,_.$$isolateBindings,x),$.removeWatches&&_.$on("$destroy",$.removeWatches));for(var O in y){var C=L[O],A=y[O],P=C.$$bindings.bindToController;A.instance=A(),M.data("$"+C.name+"Controller",A.instance),A.bindingInfo=Ee(v,D,A.instance,P,C)}for(o(L,function(e,t){var n=e.require;e.bindToController&&!Y(n)&&w(n)&&d(y[t].instance,se(t,n,M,y))}),o(y,function(e){var t=e.instance;if(S(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(S(t.$onInit))try{t.$onInit()}catch(e){r(e)}S(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),S(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),f=0,p=c.length;f<p;f++)m=c[f],Se(m,m.isolateScope?_:t,M,D,m.require&&se(m.directiveName,m.require,M,y),b);var H=t;for(x&&(x.template||null===x.templateUrl)&&(H=_),e&&e(H,s.childNodes,void 0,u),f=l.length-1;f>=0;f--)m=l[f],Se(m,m.isolateScope?_:t,M,D,m.require&&se(m.directiveName,m.require,M,y),b);o(y,function(e){var t=e.instance;S(t.$postLink)&&t.$postLink()})}h=h||{};for(var m,_,v,y,b,M=-Number.MAX_VALUE,k=h.newScopeDirective,L=h.controllerDirectives,x=h.newIsolateScopeDirective,T=h.templateDirective,D=h.nonTlbTranscludeDirective,$=!1,O=!1,j=h.hasElementTranscludeDirective,C=i.$$element=hi(n),A=u,P=s,H=!1,F=!1,N=0,W=t.length;N<W;N++){m=t[N];var z=m.$$start,q=m.$$end;if(z&&(C=te(n,z,q)),v=void 0,M>m.priority)break;if(b=m.scope,b&&(m.templateUrl||(w(b)?(_e("new/isolated scope",x||k,m,C),x=m):_e("new/isolated scope",x,m,C)),k=k||m),_=m.name,!H&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(var B,U=N+1;B=t[U++];)if(B.transclude&&!B.$$tlb||B.replace&&(B.templateUrl||B.template)){F=!0;break}H=!0}if(!m.templateUrl&&m.controller&&(L=L||ge(),_e("'"+_+"' controller",L[_],m,C),L[_]=m),b=m.transclude)if($=!0,m.$$tlb||(_e("transclusion",D,m,C),D=m),"element"===b)j=!0,M=m.priority,v=C,C=i.$$element=hi(V.$$createComment(_,i[_])),n=C[0],Ye(a,J(v),n),P=ie(F,v,s,M,A&&A.name,{nonTlbTranscludeDirective:D});else{var Z=ge();if(w(b)){v=e.document.createDocumentFragment();var X=ge(),K=ge();o(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,Z[t]=null,K[t]=n}),o(C.contents(),function(t){var n=X[Tt(R(t))];n?(K[n]=!0,Z[n]=Z[n]||e.document.createDocumentFragment(),Z[n].appendChild(t)):v.appendChild(t)}),o(K,function(e,t){if(!e)throw Yo("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ee in Z)if(Z[ee]){var oe=hi(Z[ee].childNodes);Z[ee]=ie(F,oe,s)}v=hi(v.childNodes)}else v=hi(Pe(n)).contents();C.empty(),P=ie(F,v,s,void 0,void 0,{needsNewScope:m.$$isolateScope||m.$$newScope}),P.$$slots=Z}if(m.template)if(O=!0,_e("template",T,m,C),T=m,b=S(m.template)?m.template(C,i):m.template,b=Re(b),m.replace){if(A=m,v=De(b)?[]:Dt(ye(m.templateNamespace,Ei(b))),n=v[0],1!==v.length||n.nodeType!==Ni)throw Yo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",_,"");Ye(a,C,n);var ce={$attr:{}},le=Q(n,[],ce),fe=t.splice(N+1,t.length-(N+1));(x||k)&&ue(le,x,k),t=t.concat(le).concat(fe),de(i,ce),W=t.length}else C.html(b);if(m.templateUrl)O=!0,_e("template",T,m,C),T=m,m.replace&&(A=m),p=he(t.splice(N,t.length-N),C,i,a,$&&P,c,l,{controllerDirectives:L,newScopeDirective:k!==m&&k,newIsolateScopeDirective:x,templateDirective:T,nonTlbTranscludeDirective:D}),W=t.length;else if(m.compile)try{y=m.compile(C,i,P);var pe=m.$$originalDirective||m;S(y)?f(null,G(pe,y),z,q):y&&f(G(pe,y.pre),G(pe,y.post),z,q)}catch(e){r(e,ne(C))}m.terminal&&(p.terminal=!0,M=Math.max(M,m.priority))}return p.scope=k&&!0===k.scope,p.transcludeOnThisElement=$,p.templateOnThisElement=O,p.transclude=P,h.hasElementTranscludeDirective=j,p}function se(e,t,n,r){var i;if(k(t)){var s=t.match(L),a=t.substring(s[0].length),u=s[1]||s[3],c="?"===s[2];if("^^"===u?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){var l="$"+a+"Controller";i="^^"===u&&n[0]&&n[0].nodeType===zi?null:u?n.inheritedData(l):n.data(l)}if(!i&&!c)throw Yo("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(Y(t)){i=[];for(var d=0,h=t.length;d<h;d++)i[d]=se(e,t[d],n,r)}else w(t)&&(i={},o(t,function(t,o){i[o]=se(e,t,n,r)}));return i||null}function ae(e,t,n,r,i,o,s){var a=ge();for(var c in r){var l=r[c],d={$scope:l===s||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},h=l.controller;"@"===h&&(h=t[l.name]);var f=u(h,d,!0,l.controllerAs);a[l.name]=f,e.data("$"+l.name+"Controller",f.instance)}return a}function ue(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=p(e[r],{$$isolateScope:t,$$newScope:n})}function ce(e,n,r,o,s,a,u){if(n===s)return null;var c=null;if(l.hasOwnProperty(n))for(var d,f=t.get(n+h),m=0,_=f.length;m<_;m++)if(d=f[m],(g(o)||o>d.priority)&&-1!==d.restrict.indexOf(r)){if(a&&(d=p(d,{$$start:a,$$end:u})),!d.$$bindings){var v=d.$$bindings=i(d,d.name);w(v.isolateScope)&&(d.$$isolateBindings=v.isolateScope)}e.push(d),c=d}return c}function le(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+h),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function de(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function he(e,t,n,i,a,u,c,l){var d,h,f=[],m=t[0],_=e.shift(),v=p(_,{templateUrl:null,transclude:null,replace:null,$$originalDirective:_}),y=S(_.templateUrl)?_.templateUrl(t,n):_.templateUrl,g=_.templateNamespace;return t.empty(),s(y).then(function(r){var s,p,b,M;if(r=Re(r),_.replace){if(b=De(r)?[]:Dt(ye(g,Ei(r))),s=b[0],1!==b.length||s.nodeType!==Ni)throw Yo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",_.name,y);p={$attr:{}},Ye(i,t,s);var k=Q(s,[],p);w(_.scope)&&ue(k,!0),e=k.concat(e),de(n,p)}else s=m,t.html(r);for(e.unshift(v),d=oe(e,s,n,a,t,_,u,c,l),o(i,function(e,n){e===s&&(i[n]=t[0])}),h=Z(t[0].childNodes,a);f.length;){var L=f.shift(),x=f.shift(),Y=f.shift(),T=f.shift(),S=t[0];if(!L.$$destroyed){if(x!==m){var D=x.className;l.hasElementTranscludeDirective&&_.replace||(S=Pe(s)),Ye(Y,hi(x),S),W(hi(S),D)}M=d.transcludeOnThisElement?K(L,d.transclude,T):T,d(h,L,S,i,M)}}f=null}).catch(function(e){T(e)&&r(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(f?f.push(t,n,r,o):(d.transcludeOnThisElement&&(o=K(t,d.transclude,i)),d(h,t,n,r,o)))}}function me(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function _e(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Yo("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,ne(r))}function ve(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&V.$$addBindingClass(t),function(e,t){var i=t.parent();n||V.$$addBindingClass(i),V.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function ye(t,n){switch(t=gi(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function be(e,t){return"srcdoc"===t?v.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?v.RESOURCE_URL:v.MEDIA_URL:"xlinkHref"===t?"image"===e?v.MEDIA_URL:"a"===e?v.URL:v.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?v.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:v.URL}function we(e,t){var n=t.toLowerCase();return H[e+"|"+n]||H["*|"+n]}function Me(e){return F(v.valueOf(e),"ng-prop-srcset")}function ke(e,t,n,r){if(x.test(r))throw Yo("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=R(e),o=we(i,r),s=_;"srcset"!==r||"img"!==i&&"source"!==i?o&&(s=v.getTrusted.bind(v,o)):s=Me,t.push({priority:100,compile:function(e,t){var i=a(t[n]),o=a(t[n],function(e){return v.valueOf(e)});return{pre:function(e,t){function n(){var n=i(e);t[0][r]=s(n)}n(),e.$watch(o,n)}}}})}function Le(e,t,n){e.push(ri(a,c,r,t,n,!1))}function xe(e,t,r,i,o){var s=R(e),a=be(s,i),u=!o,c=M[i]||o,l=n(r,u,a,c);if(l){if("multiple"===i&&"select"===s)throw Yo("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ne(e));if(x.test(i))throw Yo("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=ge()),u=o[i];u!==r&&(l=u&&n(u,!0,a,c),r=u),l&&(o[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function Ye(t,n,r){var i,o,s=n[0],a=n.length,u=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===s){t[i++]=r;for(var c=i,l=c+a-1,d=t.length;c<d;c++,l++)l<d?t[c]=t[l]:delete t[c];t.length-=a-1,t.context===s&&(t.context=r);break}u&&u.replaceChild(r,s);var h=e.document.createDocumentFragment();for(i=0;i<a;i++)h.appendChild(n[i]);for(hi.hasData(s)&&(hi.data(r,hi.data(s)),hi(s).off("$destroy")),hi.cleanData(h.querySelectorAll("*")),i=1;i<a;i++)delete n[i];n[0]=r,n.length=1}function Te(e,t){return d(function(){return e.apply(null,arguments)},e,t)}function Se(e,t,n,i,o,s){try{e(t,n,i,o,s)}catch(e){r(e,ne(n))}}function $e(e,t){if(O)throw Yo("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Ee(e,t,r,i,s){function u(t,n,i){S(r.$onChanges)&&!q(n,i)&&(Oe||(e.$$postDigest(D),Oe=[]),l||(l={},Oe.push(c)),l[t]&&(i=l[t].previousValue),l[t]=new Yt(i,n))}function c(){r.$onChanges(l),l=void 0}var l,d=[],h={};return o(i,function(i,o){var c,l,f,p,_,v=i.attrName,y=i.optional,g=i.mode;switch(g){case"@":y||yi.call(t,v)||($e(v,s.name),r[o]=t[v]=void 0),_=t.$observe(v,function(e){if(k(e)||A(e)){var t=r[o];u(o,e,t),r[o]=e}}),t.$$observers[v].$$scope=e,c=t[v],k(c)?r[o]=n(c)(e):A(c)&&(r[o]=c),h[o]=new Yt(To,r[o]),d.push(_);break;case"=":if(!yi.call(t,v)){if(y)break;$e(v,s.name),t[v]=void 0}if(y&&!t[v])break;l=a(t[v]),p=l.literal?B:q,f=l.assign||function(){throw c=r[o]=l(e),Yo("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,s.name)},c=r[o]=l(e);var b=function(t){return p(t,r[o])||(p(t,c)?f(e,t=r[o]):r[o]=t),c=t};b.$stateful=!0,_=i.collection?e.$watchCollection(t[v],b):e.$watch(a(t[v],b),null,l.literal),d.push(_);break;case"<":if(!yi.call(t,v)){if(y)break;$e(v,s.name),t[v]=void 0}if(y&&!t[v])break;l=a(t[v]);var w=l.literal,M=r[o]=l(e);h[o]=new Yt(To,r[o]),_=e[i.collection?"$watchCollection":"$watch"](l,function(e,t){if(t===e){if(t===M||w&&B(t,M))return;t=M}u(o,e,t),r[o]=e}),d.push(_);break;case"&":if(y||yi.call(t,v)||$e(v,s.name),(l=t.hasOwnProperty(v)?a(t[v]):m)===m&&y)break;r[o]=function(t){return l(e,t)}}}),{initialChanges:h,removeWatches:d.length&&function(){for(var e=0,t=d.length;e<t;++e)d[e]()}}}var Oe,je=/^\w/,Ce=e.document.createElement("div"),Ae=C,He=P,Fe=j;I.prototype={$normalize:Tt,$addClass:function(e){e&&e.length>0&&b.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&b.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=St(e,t);n&&n.length&&b.addClass(this.$$element,n);var r=St(t,e);r&&r.length&&b.removeClass(this.$$element,r)},$set:function(e,t,n,i){var s,a=this.$$element[0],u=et(a,e),c=tt(e),l=e;u?(this.$$element.prop(e,t),i=u):c&&(this[c]=t,l=c),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=fe(e,"-")),s=R(this.$$element),"img"===s&&"srcset"===e&&(this[e]=t=F(t,"$set('srcset', value)")),!1!==n&&(null===t||g(t)?this.$$element.removeAttr(i):je.test(i)?u&&!1===t?this.$$element.removeAttr(i):this.$$element.attr(i,t):N(this.$$element[0],i,t));var d=this.$$observers;d&&o(d[l],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ge()),i=r[e]||(r[e]=[]);return i.push(t),c.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||g(n[e])||t(n[e])}),function(){z(i,t)}}};var Ie=n.startSymbol(),Ne=n.endSymbol(),Re="{{"===Ie&&"}}"===Ne?_:function(e){return e.replace(/\{\{/g,Ie).replace(/}}/g,Ne)},We=/^ng(Attr|Prop|On)([A-Z].*)$/,ze=/^(.+)Start$/;return V.$$addBindingInfo=$?function(e,t){var n=e.data("$binding")||[];Y(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:m,V.$$addBindingClass=$?function(e){W(e,"ng-binding")}:m,V.$$addScopeInfo=$?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:m,V.$$addScopeClass=$?function(e,t){W(e,t?"ng-isolate-scope":"ng-scope")}:m,V.$$createComment=function(t,n){var r="";return $&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},V}]}function Yt(e,t){this.previousValue=e,this.currentValue=t}function Tt(e){return e.replace(So,"").replace(Do,function(e,t,n){return n?t.toUpperCase():t})}function St(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s===i[a])continue e;n+=(n.length>0?" ":"")+s}return n}function Dt(e){e=hi(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Wi||n.nodeType===Ri&&""===n.nodeValue.trim())&&Mi.call(e,t,1)}return e}function $t(e,t){if(t&&k(t))return t;if(k(e)){var n=Eo.exec(e);if(n)return n[3]}}function Et(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){_e(t,"controller"),w(t)?d(e,t):e[t]=n},this.$get=["$injector",function(t){function n(e,t,n,i){if(!e||!w(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,i,o,s){var a,u,c,l;if(o=!0===o,s&&k(s)&&(l=s),k(r)){if(!(u=r.match(Eo)))throw $o("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(c=u[1],l=l||u[3],!(r=e.hasOwnProperty(c)?e[c]:ve(i.$scope,c,!0)))throw $o("ctrlreg","The controller with the name '{0}' is not registered.",c);me(r,c,!0)}if(o){var h=(Y(r)?r[r.length-1]:r).prototype;return a=Object.create(h||null),l&&n(i,l,a,c||r.name),d(function(){var e=t.invoke(r,a,i,c);return e!==a&&(w(e)||S(e))&&(a=e,l&&n(i,l,a,c||r.name)),a},{instance:a,identifier:l})}return a=t.instantiate(r,i,c),l&&n(i,l,a,c||r.name),a}}]}function Ot(){this.$get=["$window",function(e){return hi(e.document)}]}function jt(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function Ct(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function At(e){return w(e)?x(e)?e.toISOString():X(e):e}function Pt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return s(e,function(e,n){null===e||g(e)||S(e)||(Y(e)?o(e,function(e){t.push(ae(n)+"="+ae(At(e)))}):t.push(ae(n)+"="+ae(At(e))))}),t.join("&")}}}function Ht(){this.$get=function(){return function(e){function t(e,r,i){Y(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!x(e)?s(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):(S(e)&&(e=e()),n.push(ae(r)+"="+(null==e?"":ae(At(e)))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Ft(e,t){if(k(e)){var n=e.replace(Ho,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf(jo);if(i||It(n))try{e=K(n)}catch(t){if(!i)return e;throw Fo("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function It(e){var t=e.match(Ao);return t&&Po[t[0]].test(e)}function Nt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=ge();return k(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(gi(Ei(e.substr(0,n))),Ei(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(gi(n),Ei(e))}),r}function Rt(e){var t;return function(n){if(t||(t=Nt(e)),n){var r=t[gi(n)];return void 0===r&&(r=null),r}return t}}function Wt(e,t,n,r){return S(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function zt(e){return 200<=e&&e<300}function Vt(){var e=this.defaults={transformResponse:[Ft],transformRequest:[function(e){return!w(e)||O(e)||C(e)||j(e)?e:X(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Me(Co),put:Me(Co),patch:Me(Co)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var n=this.interceptors=[],i=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,a,u,c,l,h,f,p){function _(t){function n(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function i(){s.$$completeOutstandingRequest(m,"$http")}function a(e,t){var n,r={};return o(e,function(e,i){S(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}function u(t){var n=t.headers,r=Wt(t.data,Rt(n),void 0,t.transformRequest);return g(r)&&o(n,function(e,t){"content-type"===gi(t)&&delete n[t]}),g(t.withCredentials)&&!g(e.withCredentials)&&(t.withCredentials=e.withCredentials),v(t,r).then(c,c)}function c(e){var t=d({},e);return t.data=Wt(e.data,e.headers,e.status,l.transformResponse),zt(e.status)?t:h.reject(t)}if(!w(t))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",t);if(!k(p.valueOf(t.url)))throw r("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",t.url);var l=d({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},t);l.headers=function(t){var n,r,i,o=e.headers,s=d({},t.headers);o=d({},o.common,o[gi(t.method)]);e:for(n in o){r=gi(n);for(i in s)if(gi(i)===r)continue e;s[n]=o[n]}return a(s,Me(t))}(t),l.method=bi(l.method),l.paramSerializer=k(l.paramSerializer)?f.get(l.paramSerializer):l.paramSerializer,s.$$incOutstandingRequestCount("$http");var _=[],y=[],b=h.resolve(l);return o(x,function(e){(e.request||e.requestError)&&_.unshift(e.request,e.requestError),(e.response||e.responseError)&&y.push(e.response,e.responseError)}),b=n(b,_),b=b.then(u),b=n(b,y),b=b.finally(i)}function v(n,r){function i(e){if(e){var n={};return o(e,function(e,r){n[r]=function(n){function r(){e(n)}t?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),n}}function s(e,n,r,i,o){function s(){c(n,e,r,i,o)}m&&(zt(e)?m.put(E,[e,n,Nt(r),i,o]):m.remove(E)),t?l.$applyAsync(s):(s(),l.$$phase||l.$apply())}function c(e,t,r,i,o){t=t>=-1?t:0,(zt(t)?x.resolve:x.reject)({data:e,status:t,headers:Rt(r),config:n,statusText:i,xhrStatus:o})}function d(e){c(e.data,e.status,Me(e.headers()),e.statusText,e.xhrStatus)}function f(){var e=_.pendingRequests.indexOf(n);-1!==e&&_.pendingRequests.splice(e,1)}var m,v,x=h.defer(),S=x.promise,D=n.headers,$="jsonp"===gi(n.method),E=n.url;if($?E=p.getTrustedResourceUrl(E):k(E)||(E=p.valueOf(E)),E=y(E,n.paramSerializer(n.params)),$&&(E=M(E,n.jsonpCallbackParam)),_.pendingRequests.push(n),S.then(f,f),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(m=w(n.cache)?n.cache:w(e.cache)?e.cache:L),m&&(v=m.get(E),b(v)?P(v)?v.then(d,d):Y(v)?c(v[1],v[0],Me(v[2]),v[3],v[4]):c(v,200,{},"OK","complete"):m.put(E,S)),g(v)){var O=T(n.url)?u()[n.xsrfCookieName||e.xsrfCookieName]:void 0;O&&(D[n.xsrfHeaderName||e.xsrfHeaderName]=O),a(n.method,E,r,s,D,n.timeout,n.withCredentials,n.responseType,i(n.eventHandlers),i(n.uploadEventHandlers))}return S}function y(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function M(e,t){var n=e.split("?");if(n.length>2)throw Fo("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return o(ie(n[1]),function(n,r){if("JSON_CALLBACK"===n)throw Fo("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw Fo("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)}),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var L=c("$http");e.paramSerializer=k(e.paramSerializer)?f.get(e.paramSerializer):e.paramSerializer;var x=[];o(n,function(e){x.unshift(k(e)?f.get(e):f.invoke(e))});var T=er(i);return _.pendingRequests=[],function(e){o(arguments,function(e){_[e]=function(t,n){return _(d({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){_[e]=function(t,n,r){return _(d({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),_.defaults=e,_}]}function qt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Bt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Ut(e,r,e.defer,t,n[0])}]}function Ut(e,t,n,r,i){function s(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=e,o.async=!0,s=function(e){o.removeEventListener("load",s),o.removeEventListener("error",s),i.body.removeChild(o),o=null;var a=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,a="error"===e.type?404:200),n&&n(a,u)},o.addEventListener("load",s),o.addEventListener("error",s),i.body.appendChild(o),s}return function(i,a,u,c,l,d,h,f,p,m){function _(e){k="timeout"===e,w&&w(),M&&M.abort()}function v(e,t,r,i,o,s){b(T)&&n.cancel(T),w=M=null,e(t,r,i,o,s)}if(a=a||e.url(),"jsonp"===gi(i))var y=r.createCallback(a),w=s(a,y,function(e,t){var n=200===e&&r.getResponse(y);v(c,e,n,"",t,"complete"),r.removeCallback(y)});else{var M=t(i,a),k=!1;M.open(i,a,!0),o(l,function(e,t){b(e)&&M.setRequestHeader(t,e)}),M.onload=function(){var e=M.statusText||"",t="response"in M?M.response:M.responseText,n=1223===M.status?204:M.status;0===n&&(n=t?200:"file"===Xn(a).protocol?404:0),v(c,n,t,M.getAllResponseHeaders(),e,"complete")};var L=function(){v(c,-1,null,null,"","error")},x=function(){v(c,-1,null,null,"",k?"timeout":"abort")},Y=function(){v(c,-1,null,null,"","timeout")};if(M.onerror=L,M.ontimeout=Y,M.onabort=x,o(p,function(e,t){M.addEventListener(t,e)}),o(m,function(e,t){M.upload.addEventListener(t,e)}),h&&(M.withCredentials=!0),f)try{M.responseType=f}catch(e){if("json"!==f)throw e}M.send(g(u)?null:u)}if(d>0)var T=n(function(){_("timeout")},d);else P(d)&&d.then(function(){_(b(d.$$timeoutId)?"timeout":"abort")})}}function Jt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function s(n){return n.replace(h,e).replace(f,t)}function a(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,h,f){function p(e){try{return e=h&&!m?i.getTrusted(h,e):i.valueOf(e),f&&!b(e)?e:be(e)}catch(e){r(Io.interr(o,e))}}var m=h===i.URL||h===i.MEDIA_URL;if(!o.length||-1===o.indexOf(e)){if(u)return;var _=s(o);m&&(_=i.getTrusted(h,_));var y=v(_);return y.exp=o,y.expressions=[],y.$$watchDelegate=a,y}f=!!f;for(var w,M,k,L,x,Y=0,T=[],S=o.length,D=[],$=[];Y<S;){if(-1===(w=o.indexOf(e,Y))||-1===(M=o.indexOf(t,w+c))){Y!==S&&D.push(s(o.substring(Y)));break}Y!==w&&D.push(s(o.substring(Y,w))),L=o.substring(w+c,M),T.push(L),Y=M+l,$.push(D.length),D.push("")}x=1===D.length&&1===$.length;var E=m&&x?void 0:p;if(k=T.map(function(e){return n(e,E)}),!u||T.length){var O=function(e){for(var t=0,n=T.length;t<n;t++){if(f&&g(e[t]))return;D[$[t]]=e[t]}return m?i.getTrusted(h,x?D[0]:D.join("")):(h&&D.length>1&&Io.throwNoconcat(o),D.join(""))};return d(function(e){var t=0,n=T.length,i=new Array(n);try{for(;t<n;t++)i[t]=k[t](e);return O(i)}catch(e){r(Io.interr(o,e))}},{exp:o,expressions:T,$$watchDelegate:function(e,t){var n;return e.$watchGroup(k,function(r,i){var o=O(r);t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,l=t.length,h=new RegExp(e.replace(/./g,o),"g"),f=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function Gt(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o},i=function(e){t.clearInterval(e),delete n[e]},o=e(r,i);return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw No("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,r=n[t];return Pn(r.promise),r.reject("canceled"),i(t),!0},o}]}function Zt(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(s,a,u,c){function l(){h?s.apply(null,f):s(p)}function d(){m?e.defer(l):r.$evalAsync(l),_.notify(p++),u>0&&p>=u&&(_.resolve(p),o(v.$$intervalId)),m||r.$apply()}var h=arguments.length>4,f=h?J(arguments,4):[],p=0,m=b(c)&&!c,_=(m?n:t).defer(),v=_.promise;return u=b(u)?u:0,v.$$intervalId=i(d,a,_,m),v}}}]}function Xt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=se(t[n].replace(/%2F/g,"/"));return t.join("/")}function Kt(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}function Qt(e,t,n){var r=oe(t),i=n?"#"+se(n):"";return Xt(e)+(r?"?"+r:"")+i}function en(e,t){var n=Xn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||zo[n.protocol]||null}function tn(e,t,n){if(qo.test(e))throw Vo("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=Xn(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=Kt(o,n),t.$$search=ie(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function nn(e,t){return e.slice(0,t.length)===t}function rn(e,t){if(nn(t,e))return t.substr(e.length)}function on(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function sn(e){return e.substr(0,on(e).lastIndexOf("/")+1)}function an(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function un(e,t,n){this.$$html5=!0,n=n||"",en(e,this),this.$$parse=function(e){var n=rn(t,e);if(!k(n))throw Vo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);tn(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s,a;return b(o=rn(e,r))?(s=o,a=n&&b(o=rn(n,o))?t+(rn("/",o)||o):e+s):b(o=rn(t,r))?a=t+o:t===r+"/"&&(a=t),a&&this.$$parse(a),!!a}}function cn(e,t,n){en(e,this),this.$$parse=function(r){var i,o=rn(e,r)||rn(t,r);g(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",g(o)&&(e=r,this.replace())):(i=rn(n,o),g(i)&&(i=o)),tn(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return nn(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return on(e)===on(t)&&(this.$$parse(t),!0)}}function ln(e,t,n){this.$$html5=!0,cn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s;return e===on(r)?o=r:(s=rn(t,r))?o=e+n+s:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$normalizeUrl=function(t){return e+n+t}}function dn(e){return function(){return this[e]}}function hn(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function fn(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return A(e)?(t.enabled=e,this):w(e)?(A(e.enabled)&&(t.enabled=e.enabled),A(e.requireBase)&&(t.requireBase=e.requireBase),(A(e.rewriteLinks)||k(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(e,t){return e===t||Xn(e).href===Xn(t).href}function u(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function c(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,d,h,f=r.baseHref(),p=r.url();if(t.enabled){if(!f&&t.requireBase)throw Vo("nobase","$location in HTML5 mode requires a <base> tag to be present!");h=an(p)+(f||"/"),d=i.history?un:ln}else h=on(p),d=cn;var m=sn(h);l=new d(h,m,"#"+e),l.$$parseLinkUrl(p,p),l.$$state=r.state();var _=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=hi(e.target);"a"!==R(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!k(i)||!g(s.attr(i))){var a=s.prop("href"),u=s.attr("href")||s.attr("xlink:href");w(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Xn(a.animVal).href),_.test(a)||!a||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(a,u)&&(e.preventDefault(),l.absUrl()!==r.url()&&n.$apply())}}}),l.absUrl()!==p&&r.url(l.absUrl(),!0);var v=!0;return r.onUrlChange(function(e,t){if(!nn(e,m))return void(s.location.href=e);n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,u(i,!1,o)):(v=!1,c(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=r.url(),t=l.absUrl(),o=r.state(),s=l.$$replace,d=!a(e,t)||l.$$html5&&i.history&&o!==l.$$state;(v||d)&&(v=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(d&&u(t,s,o===l.$$state?null:l.$$state),c(e,o)))}))}l.$$replace=!1}),l}]}function pn(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return T(e)&&(e.stack&&s?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||m;return function(){var e=[];return o(arguments,function(t){e.push(r(t))}),Function.prototype.apply.call(i,t,e)}}var s=di||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function mn(e){return e+""}function _n(e,t){return void 0!==e?e:t}function vn(e,t){return void 0===e?t:void 0===t?e:e+t}function yn(e,t){return!e(t).$stateful}function gn(e,t){switch(e.type){case Ko.MemberExpression:if(e.computed)return!1;break;case Ko.UnaryExpression:return Qo;case Ko.BinaryExpression:return"+"!==e.operator&&Qo;case Ko.CallExpression:return!1}return void 0===t?es:t}function bn(e,t,n){var r,i,s,a=e.isPure=gn(e,n);switch(e.type){case Ko.Program:r=!0,o(e.body,function(e){bn(e.expression,t,a),r=r&&e.expression.constant}),e.constant=r;break;case Ko.Literal:e.constant=!0,e.toWatch=[];break;case Ko.UnaryExpression:bn(e.argument,t,a),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ko.BinaryExpression:bn(e.left,t,a),bn(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ko.LogicalExpression:bn(e.left,t,a),bn(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ko.ConditionalExpression:bn(e.test,t,a),bn(e.alternate,t,a),bn(e.consequent,t,a),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ko.Identifier:e.constant=!1,e.toWatch=[e];break;case Ko.MemberExpression:bn(e.object,t,a),e.computed&&bn(e.property,t,a),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Ko.CallExpression:s=!!e.filter&&yn(t,e.callee.name),r=s,i=[],o(e.arguments,function(e){bn(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=s?i:[e];break;case Ko.AssignmentExpression:bn(e.left,t,a),bn(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ko.ArrayExpression:r=!0,i=[],o(e.elements,function(e){bn(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case Ko.ObjectExpression:r=!0,i=[],o(e.properties,function(e){bn(e.value,t,a),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(bn(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case Ko.ThisExpression:case Ko.LocalsExpression:e.constant=!1,e.toWatch=[]}}function wn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function Mn(e){return e.type===Ko.Identifier||e.type===Ko.MemberExpression}function kn(e){if(1===e.body.length&&Mn(e.body[0].expression))return{type:Ko.AssignmentExpression,left:e.body[0].expression,right:{type:Ko.NGValueParameter},operator:"="}}function Ln(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ko.Literal||e.body[0].expression.type===Ko.ArrayExpression||e.body[0].expression.type===Ko.ObjectExpression)}function xn(e){return e.constant}function Yn(e){this.$filter=e}function Tn(e){this.$filter=e}function Sn(e,t,n){this.ast=new Ko(e,n),this.astCompiler=n.csp?new Tn(t):new Yn(t)}function Dn(e){return S(e.valueOf)?e.valueOf():Jo.call(e)}function $n(){var e,t,n=ge(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function s(e,t){var r,o;switch(typeof e){case"string":if(e=e.trim(),o=e,!(r=n[o])){r=new Sn(new Xo(g),i,g).parse(e),n[o]=f(r)}return v(r,t);case"function":return v(e,t);default:return v(m,t)}}function a(e){return new Sn(new Xo(g),i,g).getAst(e).ast}function u(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Dn(e))&&!n)&&(e===t||e!==e&&t!==t)}function c(e,t,n,r,i){var o,s=r.inputs;if(1===s.length){var a=u;return s=s[0],e.$watch(function(e){var t=s(e);return u(t,a,s.isPure)||(o=r(e,void 0,void 0,[t]),a=t&&Dn(t)),o},t,n,i)}for(var c=[],l=[],d=0,h=s.length;d<h;d++)c[d]=u,l[d]=null;return e.$watch(function(e){for(var t=!1,n=0,i=s.length;n<i;n++){var a=s[n](e);(t||(t=!u(a,c[n],s[n].isPure)))&&(l[n]=a,c[n]=a&&Dn(a))}return t&&(o=r(e,void 0,void 0,l)),o},t,n,i)}function l(e,t,n,r,i){function o(){c(u)&&a()}function s(e,t,n,r){return u=p&&r?r[0]:l(e,t,n,r),c(u)&&e.$$postDigest(o),h(u)}var a,u,c=r.literal?d:b,l=r.$$intercepted||r,h=r.$$interceptor||_,p=r.inputs&&!l.inputs;return s.literal=r.literal,s.constant=r.constant,s.inputs=r.inputs,f(s),a=e.$watch(s,t,n,i)}function d(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}function h(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function f(e){return e.constant?e.$$watchDelegate=h:e.oneTime?e.$$watchDelegate=l:e.inputs&&(e.$$watchDelegate=c),e}function p(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}function v(e,t){if(!t)return e;e.$$interceptor&&(t=p(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,s){var a=n&&s?s[0]:e(r,i,o,s);return t(a)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map(function(e){return e.isPure===es?function(t){return e(t)}:e}))),f(r)}var y=ji().noUnsafeEval,g={csp:y,literals:V(r),isIdentifierStart:S(e)&&e,isIdentifierContinue:S(t)&&t};return s.$$getAst=a,s}]}function En(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return jn(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function On(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return jn(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function jn(e,t,n){function i(){return new s}function s(){var e=this.promise=new a;this.resolve=function(t){h(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){_(e,t)}}function a(){this.$$state={status:0}}function u(r){var i,o,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var a=0,u=s.length;a<u;++a){An(r),o=s[a][0],i=s[a][r.status];try{S(i)?h(o,i(r.value)):1===r.status?h(o,r.value):p(o,r.value)}catch(e){p(o,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--D,n&&0===D&&e(c)}}function c(){for(;!D&&$.length;){var e=$.shift();if(!Cn(e)){An(e);var n="Possibly unhandled rejection: "+Le(e.value);T(e.value)?t(e.value,n):t(n)}}}function l(t){!n||t.pending||2!==t.status||Cn(t)||(0===D&&0===$.length&&e(c),$.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++D,e(function(){u(t)}))}function h(e,t){e.$$state.status||(t===e?m(e,x("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):f(e,t))}function f(e,t){function n(t){s||(s=!0,f(e,t))}function r(t){s||(s=!0,m(e,t))}function i(t){_(e,t)}var o,s=!1;try{(w(t)||S(t))&&(o=t.then),S(o)?(e.$$state.status=-1,o.call(t,n,r,i)):(e.$$state.value=t,e.$$state.status=1,l(e.$$state))}catch(e){r(e)}}function p(e,t){e.$$state.status||m(e,t)}function m(e,t){e.$$state.value=t,e.$$state.status=2,l(e.$$state)}function _(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e(function(){for(var e,n,o=0,s=i.length;o<s;o++){n=i[o][0],e=i[o][3];try{_(n,S(e)?e(r):r)}catch(e){t(e)}}})}function v(e){var t=new a;return p(t,e),t}function y(e,t,n){var r=null;try{S(n)&&(r=n())}catch(e){return v(e)}return P(r)?r.then(function(){return t(e)},v):t(e)}function b(e,t,n,r){var i=new a;return h(i,e),i.then(t,n,r)}function M(e){var t=new a,n=0,r=Y(e)?[]:{};return o(e,function(e,i){n++,b(e).then(function(e){r[i]=e,--n||h(t,r)},function(e){p(t,e)})}),0===n&&h(t,r),t}function k(e){var t=i();return o(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise}function L(e){function t(e){h(r,e)}function n(e){p(r,e)}if(!S(e))throw x("norslvr","Expected resolverFn, got '{0}'",e);var r=new a;return e(t,n),r}var x=r("$q",TypeError),D=0,$=[];d(a.prototype,{then:function(e,t,n){if(g(e)&&g(t)&&g(n))return this;var r=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&l(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return y(t,E,e)},function(t){return y(t,v,e)},t)}});var E=b;return L.prototype=a.prototype,L.defer=i,L.reject=v,L.when=b,L.resolve=E,L.all=M,L.race=k,L}function Cn(e){return!!e.pur}function An(e){e.pur=!0}function Pn(e){e.$$state&&An(e.$$state)}function Hn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Fn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}var t=10,n=r("$rootScope"),s=null,a=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(r,c,l){function d(e){e.currentScope.$$destroyed=!0}function h(e){9===di&&(e.$$childHead&&h(e.$$childHead),e.$$nextSibling&&h(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function f(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(L.$$phase)throw n("inprog","{0} already in progress",L.$$phase);L.$$phase=e}function _(){L.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function y(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function b(){}function M(){for(;T.length;)try{T.shift()()}catch(e){r(e)}a=null}function k(){null===a&&(a=l.defer(function(){L.$apply(M)},null,"$applyAsync"))}f.prototype={constructor:f,$new:function(t,n){var r;return n=n||this,t?(r=new f,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",d),r},$watch:function(e,t,n,r){var i=c(e),o=S(t)?t:m;if(i.$$watchDelegate)return i.$$watchDelegate(this,o,n,i,e);var a=this,u=a.$$watchers,l={fn:o,last:b,get:i,exp:r||e,eq:!!n};return s=null,u||(u=a.$$watchers=[],u.$$digestWatchIndex=-1),u.unshift(l),u.$$digestWatchIndex++,v(this,1),function(){var e=z(u,l);e>=0&&(v(a,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),s=null}},$watchGroup:function(e,t){function n(){u=!1;try{c?(c=!1,t(i,i,a)):t(i,r,a)}finally{for(var n=0;n<e.length;n++)r[n]=i[n]}}var r=new Array(e.length),i=new Array(e.length),s=[],a=this,u=!1,c=!0;if(!e.length){var l=!0;return a.$evalAsync(function(){l&&t(i,i,a)}),function(){l=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var r=a.$watch(e,function(e){i[t]=e,u||(u=!0,a.$evalAsync(n))});s.push(r)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,a;if(!g(o)){if(w(o))if(i(o)){s!==f&&(s=f,_=s.length=0,d++),t=o.length,_!==t&&(d++,s.length=_=t);for(var u=0;u<t;u++)a=s[u],r=o[u],a!==a&&r!==r||a===r||(d++,s[u]=r)}else{s!==p&&(s=p={},_=0,d++),t=0;for(n in o)yi.call(o,n)&&(t++,r=o[n],a=s[n],n in s?a!==a&&r!==r||a===r||(d++,s[n]=r):(_++,s[n]=r,d++));if(_>t){d++;for(n in s)yi.call(o,n)||(_--,delete s[n])}}else s!==o&&(s=o,d++);return d}}function r(){if(m?(m=!1,t(o,o,u)):t(o,a,u),l)if(w(o))if(i(o)){a=new Array(o.length);for(var e=0;e<o.length;e++)a[e]=o[e]}else{a={};for(var n in o)yi.call(o,n)&&(a[n]=o[n])}else a=o}n.$$pure=c(e).literal,n.$stateful=!n.$$pure;var o,s,a,u=this,l=t.length>1,d=0,h=c(e,n),f=[],p={},m=!0,_=0;return this.$watch(h,r)},$digest:function(){var e,i,o,u,c,d,h,f,m,v,y,g=t,w=x.length?L:this,k=[];p("$digest"),l.$$checkUrlChange(),this===L&&null!==a&&(l.defer.cancel(a),M()),s=null;do{h=!1,m=w;for(var T=0;T<x.length;T++){try{y=x[T],u=y.fn,u(y.scope,y.locals)}catch(e){r(e)}s=null}x.length=0;e:do{if(d=!m.$$suspended&&m.$$watchers)for(d.$$digestWatchIndex=d.length;d.$$digestWatchIndex--;)try{if(e=d[d.$$digestWatchIndex])if(c=e.get,(i=c(m))===(o=e.last)||(e.eq?B(i,o):Di(i)&&Di(o))){if(e===s){h=!1;break e}}else h=!0,s=e,e.last=e.eq?V(i,null):i,u=e.fn,u(i,o===b?i:o,m),g<5&&(v=4-g,k[v]||(k[v]=[]),k[v].push({msg:S(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(e){r(e)}if(!(f=!m.$$suspended&&m.$$watchersCount&&m.$$childHead||m!==w&&m.$$nextSibling))for(;m!==w&&!(f=m.$$nextSibling);)m=m.$parent}while(m=f);if((h||x.length)&&!g--)throw _(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,k)}while(h||x.length);for(_();D<Y.length;)try{Y[D++]()}catch(e){r(e)}Y.length=D=0,l.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===L&&l.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)y(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$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=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(e,t){return c(e)(this,t)},$evalAsync:function(e,t){L.$$phase||x.length||l.defer(function(){x.length&&L.$digest()},null,"$evalAsync"),x.push({scope:this,fn:c(e),locals:t})},$$postDigest:function(e){Y.push(e)},$apply:function(e){try{p("$apply");try{return this.$eval(e)}finally{_()}}catch(e){r(e)}finally{try{L.$digest()}catch(e){throw r(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&T.push(t),e=c(e),k()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],y(i,1,e))}},$emit:function(e,t){var n,i,o,s=[],a=this,u=!1,c={name:e,targetScope:a,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=U([c],arguments,1);do{for(n=a.$$listeners[e]||s,c.currentScope=a,i=0,o=n.length;i<o;i++)if(n[i])try{n[i].apply(null,l)}catch(e){r(e)}else n.splice(i,1),i--,o--;if(u)break;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,i=n,o=n,s={name:e,targetScope:n,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return s;for(var a,u,c,l=U([s],arguments,1);i=o;){for(s.currentScope=i,a=i.$$listeners[e]||[],u=0,c=a.length;u<c;u++)if(a[u])try{a[u].apply(null,l)}catch(e){r(e)}else a.splice(u,1),u--,c--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==n&&i.$$nextSibling))for(;i!==n&&!(o=i.$$nextSibling);)i=i.$parent}return s.currentScope=null,s}};var L=new f,x=L.$$asyncQueue=[],Y=L.$$postDigestQueue=[],T=L.$$applyAsyncQueue=[],D=0;return L}]}function In(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=Xn(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}function Nn(e){return e.replace(is,Te)}function Rn(e){if("self"===e)return e;if(k(e)){if(e.indexOf("***")>-1)throw ns("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Oi(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(D(e))return new RegExp("^"+e.source+"$");throw ns("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Wn(e){var t=[];return b(e)&&o(e,function(e){t.push(Rn(e))}),t}function zn(){this.SCE_CONTEXTS=rs;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Wn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Wn(e)),t},this.$get=["$injector","$$sanitizeUri",function(n,r){function i(e,t){return"self"===e?Kn(t)||Qn(t):!!e.exec(t.href)}function o(n){var r,o,s=Xn(n.toString()),a=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],s)){a=!0;break}if(a)for(r=0,o=t.length;r<o;r++)if(i(t[r],s)){a=!1;break}return a}function s(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=h.hasOwnProperty(e)?h[e]:null;if(!n)throw ns("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||g(t)||""===t)return t;if("string"!=typeof t)throw ns("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function u(e){return e instanceof d?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||g(t)||""===t)return t;var n=h.hasOwnProperty(e)?h[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(S(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===rs.MEDIA_URL||e===rs.URL)return r(t.toString(),e===rs.MEDIA_URL);if(e===rs.RESOURCE_URL){if(o(t))return t;throw ns("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===rs.HTML)return l(t);throw ns("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw ns("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var d=s(),h={};return h[rs.HTML]=s(d),h[rs.CSS]=s(d),h[rs.MEDIA_URL]=s(d),h[rs.URL]=s(h[rs.MEDIA_URL]),h[rs.JS]=s(d),h[rs.RESOURCE_URL]=s(h[rs.URL]),{trustAs:a,getTrusted:c,valueOf:u}}]}function Vn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&di<8)throw ns("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=Me(rs);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=_),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return o(rs,function(e,t){var n=gi(t);r[Nn("parse_as_"+n)]=function(t){return i(e,t)},r[Nn("get_trusted_"+n)]=function(t){return s(e,t)},r[Nn("trust_as_"+n)]=function(t){return a(e,t)}}),r}]}function qn(){this.$get=["$window","$document",function(e,t){var n={},r=e.nw&&e.nw.process,i=!r&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!i&&e.history&&e.history.pushState,s=f((/android (\d+)/.exec(gi((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},c=u.body&&u.body.style,l=!1,d=!1;return c&&(l=!!("transition"in c||"webkitTransition"in c),d=!!("animation"in c||"webkitAnimation"in c)),{history:!(!o||s<4||a),hasEvent:function(e){if("input"===e&&di)return!1;if(g(n[e])){var t=u.createElement("div");n[e]="on"+e in t}return n[e]},csp:ji(),transitions:l,animations:d,android:s}}]}function Bn(){this.$get=v(function(e){return new Un(e)})}function Un(e){function t(t,o){o=o||d;try{t()}finally{n(o);var s=u[o],a=u[l];if(!a||!s)for(var c,h=a?i:r;c=h(o);)try{c()}catch(t){e.error(t)}}}function n(e){e=e||d,u[e]&&(u[e]--,u[l]--)}function r(){var e=c.pop();return e&&e.cb}function i(e){for(var t=c.length-1;t>=0;--t){var n=c[t];if(n.type===e)return c.splice(t,1),n.cb}}function o(e){e=e||d,u[e]=(u[e]||0)+1,u[l]=(u[l]||0)+1}function s(e,t){t=t||l,u[t]?c.push({type:t,cb:e}):e()}var a=this,u={},c=[],l=a.ALL_TASKS_TYPE="$$all$$",d=a.DEFAULT_TASK_TYPE="$$default$$";a.completeTask=t,a.incTaskCount=o,a.notifyWhenNoPendingTasks=s}function Jn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function s(a,u){function c(e){return u||(e=os("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText),t(e)),i.reject(e)}s.totalPendingRequests++,k(a)&&!g(n.get(a))||(a=o.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Y(l)?l=l.filter(function(e){return e!==Ft}):l===Ft&&(l=null),r.get(a,d({cache:n,transformResponse:l},e)).finally(function(){s.totalPendingRequests--}).then(function(e){return n.put(a,e.data)},c)}return s.totalPendingRequests=0,s}]}function Gn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=Ti.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+Oi(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else-1!==r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",s="["+r[i]+"model"+o+'"'+t+'"]',a=e.querySelectorAll(s);if(a.length)return a}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Zn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,a,u){S(o)||(u=a,a=o,o=m);var c,l=J(arguments,3),d=b(u)&&!u,h=(d?r:n).defer(),f=h.promise;return c=t.defer(function(){try{h.resolve(o.apply(null,l))}catch(e){h.reject(e),i(e)}finally{delete s[f.$$timeoutId]}d||e.$apply()},a,"$timeout"),f.$$timeoutId=c,s[c]=h,f}var s={};return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ss("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!s.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=s[n];return Pn(r.promise),r.reject("canceled"),delete s[n],t.defer.cancel(n)},o}]}function Xn(e){if(!k(e))return e;var t=e;di&&(as.setAttribute("href",t),t=as.href),as.setAttribute("href",t);var n=as.hostname;return!cs&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:as.href,protocol:as.protocol?as.protocol.replace(/:$/,""):"",host:as.host,search:as.search?as.search.replace(/^\?/,""):"",hash:as.hash?as.hash.replace(/^#/,""):"",hostname:n,port:as.port,pathname:"/"===as.pathname.charAt(0)?as.pathname:"/"+as.pathname}}function Kn(e){return tr(e,us)}function Qn(e){return tr(e,nr())}function er(e){var t=[us].concat(e.map(Xn));return function(e){var n=Xn(e);return t.some(tr.bind(null,n))}}function tr(e,t){return e=Xn(e),t=Xn(t),e.protocol===t.protocol&&e.host===t.host}function nr(){return e.document.baseURI?e.document.baseURI:(ts||(ts=e.document.createElement("a"),ts.href=".",ts=ts.cloneNode(!1)),ts.href)}function rr(){this.$get=v(e)}function ir(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,s,a,u,c,l=t(r);if(l!==o)for(o=l,e=o.split("; "),i={},a=0;a<e.length;a++)s=e[a],(u=s.indexOf("="))>0&&(c=n(s.substring(0,u)),g(i[c])&&(i[c]=n(s.substring(u+1))));return i}}function or(){this.$get=ir}function sr(e){function t(r,i){if(w(r)){var s={};return o(r,function(e,n){s[n]=t(n,e)}),s}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",dr),t("date",Yr),t("filter",ar),t("json",Tr),t("limitTo",Sr),t("lowercase",_s),t("number",hr),t("orderBy",$r),t("uppercase",vs)}function ar(){return function(e,t,n,o){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var s,a,u=lr(t);switch(u){case"function":s=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":s=ur(t,n,o,a);break;default:return e}return Array.prototype.filter.call(e,s)}}function ur(e,t,n,r){var i=w(e)&&n in e;return!0===t?t=B:S(t)||(t=function(e,t){return!g(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!y(e))&&(e=gi(""+e),t=gi(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!w(o)?cr(o,e[n],t,n,!1):cr(o,e,t,n,r)}}function cr(e,t,n,r,i,o){var s=lr(e),a=lr(t);if("string"===a&&"!"===t.charAt(0))return!cr(e,t.substring(1),n,r,i);if(Y(e))return e.some(function(e){return cr(e,t,n,r,i)});switch(s){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&cr(e[u],t,n,r,!0))return!0;return!o&&cr(e,t,n,r,!1)}if("object"===a){for(u in t){var c=t[u];if(!S(c)&&!g(c)){var l=u===r;if(!cr(l?e:e[u],c,n,r,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function lr(e){return null===e?"null":typeof e}function dr(e){var t=e.NUMBER_FORMATS;return function(e,n,r){g(n)&&(n=t.CURRENCY_SYM),g(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:mr(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function hr(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:mr(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function fr(e){var t,n,r,i,o,s=0;for((n=e.indexOf(ds))>-1&&(e=e.replace(ds,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===hs;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===hs;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>ls&&(t=t.splice(0,ls-1),s=n-1,n=1),{d:t,e:s,i:n}}function pr(e,t,n,r){var i=e.d,o=i.length-e.i;t=g(t)?Math.min(Math.max(n,o),r):+t;var s=t+e.i,a=i[s];if(s>0){i.splice(Math.max(e.i,s));for(var u=s;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,s=t+1),i[0]=0;for(var c=1;c<s;c++)i[c]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[s-1]++;for(;o<Math.max(0,t);o++)i.push(0);var d=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);d&&(i.unshift(d),e.i++)}function mr(e,t,n,r,i){if(!k(e)&&!L(e)||isNaN(e))return"";var o,s=!isFinite(e),a=!1,u=Math.abs(e)+"",c="";if(s)c="∞";else{o=fr(u),pr(o,i,t.minFrac,t.maxFrac);var l=o.d,d=o.i,h=o.e,f=[];for(a=l.reduce(function(e,t){return e&&!t},!0);d<0;)l.unshift(0),d++;d>0?f=l.splice(d,l.length):(f=l,l=[0]);var p=[];for(l.length>=t.lgSize&&p.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)p.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&p.unshift(l.join("")),c=p.join(n),f.length&&(c+=r+f.join("")),h&&(c+="e+"+h)}return e<0&&!a?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function _r(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=hs+e;return n&&(e=e.substr(e.length-t)),i+e}function vr(e,t,n,r,i){return n=n||0,function(o){var s=o["get"+e]();return(n>0||s>-n)&&(s+=n),0===s&&-12===n&&(s=12),_r(s,t,r,i)}}function yr(e,t,n){return function(r,i){var o=r["get"+e]();return i[bi((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function gr(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=_r(Math[r>0?"floor":"ceil"](r/60),2)+_r(Math.abs(r%60),2)}function br(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function wr(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Mr(e){return function(t){var n=br(t.getFullYear()),r=wr(t),i=+r-+n;return _r(1+Math.round(i/6048e5),e)}}function kr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Lr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function xr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function Yr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,s=t[8]?r.setUTCFullYear:r.setFullYear,a=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),s.call(r,f(t[1]),f(t[2])-1,f(t[3]));var u=f(t[4]||0)-i,c=f(t[5]||0)-o,l=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(r,u,c,l,d),r}return e}var n=/^(\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 s,a,u="",c=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,k(n)&&(n=ms.test(n)?f(n):t(n)),L(n)&&(n=new Date(n)),!x(n)||!isFinite(n.getTime()))return n;for(;r;)a=ps.exec(r),a?(c=U(c,a,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=Q(i,l),n=te(n,i,!0)),o(c,function(t){s=fs[t],u+=s?s(n,e.DATETIME_FORMATS,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Tr(){return function(e,t){return g(t)&&(t=2),X(e,t)}}function Sr(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):f(t),Di(t)?e:(L(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,e.length+n):n,t>=0?Dr(e,n,n+t):0===n?Dr(e,t,e.length):Dr(e,Math.max(0,n+t),n)):e)}}function Dr(e,t,n){return k(e)?e.slice(t,n):wi.call(e,t,n)}function $r(e){function t(t){return t.map(function(t){var n=1,r=_;if(S(t))r=t;else if(k(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return S(e.valueOf)&&(e=e.valueOf(),n(e))?e:(y(e)&&(e=e.toString(),n(e)),e)}function s(e,t){var n=typeof e;return null===e?n="null":"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function a(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,s=t.value;"string"===r?(o=o.toLowerCase(),s=s.toLowerCase()):"object"===r&&(w(o)&&(o=e.index),w(s)&&(s=t.index)),o!==s&&(n=o<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i?-1:r<i?-1:1;return n}return function(e,n,o,u){function c(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:d.map(function(n){return s(n.get(e),t)})}}function l(e,t){for(var n=0,r=d.length;n<r;n++){var i=f(e.predicateValues[n],t.predicateValues[n]);if(i)return i*d[n].descending*h}return(f(e.tieBreaker,t.tieBreaker)||a(e.tieBreaker,t.tieBreaker))*h}if(null==e)return e;if(!i(e))throw r("orderBy")("notarray","Expected array but received: {0}",e);Y(n)||(n=[n]),0===n.length&&(n=["+"]);var d=t(n),h=o?-1:1,f=S(u)?u:a,p=Array.prototype.map.call(e,c);return p.sort(l),e=p.map(function(e){return e.value})}}function Er(e){return S(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function Or(e,t){e.$name=t}function jr(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=bs,this.$$element=e,this.$$animate=r,Cr(this)}function Cr(e){e.$$classCache={},e.$$classCache[ia]=!(e.$$classCache[ra]=e.$$element.hasClass(ra))}function Ar(e){function t(e,t,n,r){e[t]||(e[t]={}),s(e[t],n,r)}function n(e,t,n,r){e[t]&&a(e[t],n,r),Pr(e[t])&&(e[t]=void 0)}function r(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function i(e,t,n){t=t?"-"+fe(t,"-"):"",r(e,ra+t,!0===n),r(e,ia+t,!1===n)}var o=e.clazz,s=e.set,a=e.unset;o.prototype.$setValidity=function(e,o,u){g(o)?t(this,"$pending",e,u):n(this,"$pending",e,u),A(o)?o?(a(this.$error,e,u),s(this.$$success,e,u)):(s(this.$error,e,u),a(this.$$success,e,u)):(a(this.$error,e,u),a(this.$$success,e,u)),this.$pending?(r(this,ws,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,ws,!1),this.$valid=Pr(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var c;c=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),i(this,e,c),this.$$parentForm.$setValidity(e,c,this)}}function Pr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Hr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Fr(e,t,n,r,i,o){Ir(e,t,n,r,i,o),Hr(r)}function Ir(e,t,n,r,i,o){var s=gi(t[0].type);if(!i.android){var a=!1;t.on("compositionstart",function(){a=!0}),t.on("compositionupdate",function(e){(g(e.data)||""===e.data)&&(a=!1)}),t.on("compositionend",function(){a=!1,c()})}var u,c=function(e){if(u&&(o.defer.cancel(u),u=null),!a){var i=t.val(),c=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Ei(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))t.on("input",c);else{var l=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||c(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||l(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut drop",l)}t.on("change",c),As[s]&&r.$$hasNativeValidators&&s===n.type&&t.on(Cs,function(e){if(!u){var t=this[vi],n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||c(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function Nr(e,t){if(x(e))return e;if(k(e)){Es.lastIndex=0;var n=Es.exec(e);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,u=0,c=br(r),l=7*(i-1);return t&&(o=t.getHours(),s=t.getMinutes(),a=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,c.getDate()+l,o,s,a,u)}}return NaN}function Rr(e,t){return function(n,r){var i,s;if(x(n))return n;if(k(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),xs.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),s=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},o(i,function(e,n){n<t.length&&(s[t[n]]=+e)});var a=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&a.setFullYear(s.yyyy),a}}return NaN}}function Wr(e,t,n,r){return function(i,o,s,a,u,c,l,d){function h(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function f(e){return b(e)&&!x(e)?p(e)||void 0:e}function p(e,t){var r=a.$options.getOption("timezone");v&&v!==r&&(t=ee(t,Q(v)));var i=n(e,t);return!isNaN(i)&&r&&(i=te(i,r)),i}function m(e,t){var n=r;y&&k(a.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",a.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(e,n,t);return y&&a.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}zr(i,o,s,a,e),Ir(i,o,s,a,u,c);var _,v,y="time"===e||"datetimelocal"===e;if(a.$parsers.push(function(n){return a.$isEmpty(n)?null:t.test(n)?p(n,_):void(a.$$parserName=e)}),a.$formatters.push(function(e){if(e&&!x(e))throw aa("datefmt","Expected `{0}` to be a date",e);if(h(e)){_=e;var t=a.$options.getOption("timezone");return t&&(v=t,_=te(_,t,!0)),m(e,t)}return _=null,v=null,""}),b(s.min)||s.ngMin){var w=s.min||d(s.ngMin)(i),M=f(w);a.$validators.min=function(e){return!h(e)||g(M)||n(e)>=M},s.$observe("min",function(e){e!==w&&(M=f(e),w=e,a.$validate())})}if(b(s.max)||s.ngMax){var L=s.max||d(s.ngMax)(i),Y=f(L);a.$validators.max=function(e){return!h(e)||g(Y)||n(e)<=Y},s.$observe("max",function(e){e!==L&&(Y=f(e),L=e,a.$validate())})}}}function zr(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=w(o.validity))&&r.$parsers.push(function(e){var n=t.prop(vi)||{};return n.badInput||n.typeMismatch?void(r.$$parserName=i):e})}function Vr(e){e.$parsers.push(function(t){return e.$isEmpty(t)?null:Ss.test(t)?parseFloat(t):void(e.$$parserName="number")}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!L(t))throw aa("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function qr(e){return b(e)&&!L(e)&&(e=parseFloat(e)),Di(e)?void 0:e}function Br(e){return(0|e)===e}function Ur(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function Jr(e,t,n){var r=Number(e),i=!Br(r),o=!Br(t),s=!Br(n);if(i||o||s){var a=i?Ur(r):0,u=o?Ur(t):0,c=s?Ur(n):0,l=Math.max(a,u,c),d=Math.pow(10,l);r*=d,t*=d,n*=d,i&&(r=Math.round(r)),o&&(t=Math.round(t)),s&&(n=Math.round(n))}return(r-t)%n==0}function Gr(e,t,n,r,i,o,s,a){zr(e,t,n,r,"number"),Vr(r),Ir(e,t,n,r,i,o);var u;if(b(n.min)||n.ngMin){var c=n.min||a(n.ngMin)(e);u=qr(c),r.$validators.min=function(e,t){return r.$isEmpty(t)||g(u)||t>=u},n.$observe("min",function(e){e!==c&&(u=qr(e),c=e,r.$validate())})}if(b(n.max)||n.ngMax){var l=n.max||a(n.ngMax)(e),d=qr(l);r.$validators.max=function(e,t){return r.$isEmpty(t)||g(d)||t<=d},n.$observe("max",function(e){e!==l&&(d=qr(e),l=e,r.$validate())})}if(b(n.step)||n.ngStep){var h=n.step||a(n.ngStep)(e),f=qr(h);r.$validators.step=function(e,t){return r.$isEmpty(t)||g(f)||Jr(t,u||0,f)},n.$observe("step",function(e){e!==h&&(f=qr(e),h=e,r.$validate())})}}function Zr(e,t,n,r,i,o){function s(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,function(e){e!==i&&(i=e,r(e))})}function a(e){if(d=qr(e),!Di(r.$modelValue))if(l){var n=t.val();d>n&&(n=d,t.val(n)),r.$setViewValue(n)}else r.$validate()}function u(e){if(h=qr(e),!Di(r.$modelValue))if(l){var n=t.val();h<n&&(t.val(h),n=h<d?d:h),r.$setViewValue(n)}else r.$validate()}function c(e){f=qr(e),Di(r.$modelValue)||(l?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate())}zr(e,t,n,r,"range"),Vr(r),Ir(e,t,n,r,i,o);var l=r.$$hasNativeValidators&&"range"===t[0].type,d=l?0:void 0,h=l?100:void 0,f=l?1:void 0,p=t[0].validity,m=b(n.min),_=b(n.max),v=b(n.step),y=r.$render;r.$render=l&&b(p.rangeUnderflow)&&b(p.rangeOverflow)?function(){y(),r.$setViewValue(t.val())}:y,m&&(d=qr(n.min),r.$validators.min=l?function(){return!0}:function(e,t){return r.$isEmpty(t)||g(d)||t>=d},s("min",a)),_&&(h=qr(n.max),r.$validators.max=l?function(){return!0}:function(e,t){return r.$isEmpty(t)||g(h)||t<=h},s("max",u)),v&&(f=qr(n.step),r.$validators.step=l?function(){return!p.stepMismatch}:function(e,t){return r.$isEmpty(t)||g(f)||Jr(t,d||0,f)},s("step",c))}function Xr(e,t,n,r,i,o){Ir(e,t,n,r,i,o),Hr(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Ys.test(n)}}function Kr(e,t,n,r,i,o){Ir(e,t,n,r,i,o),Hr(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Ts.test(n)}}function Qr(e,t,n,r){var i=!n.ngTrim||"false"!==Ei(n.ngTrim);g(n.name)&&t.attr("name",u());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=Ei(o)),r.$setViewValue(o,e&&e.type))};t.on("change",o),r.$render=function(){var e=n.value;i&&(e=Ei(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function ei(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw aa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function ti(e,t,n,r,i,o,s,a){var u=ei(a,e,"ngTrueValue",n.ngTrueValue,!0),c=ei(a,e,"ngFalseValue",n.ngFalseValue,!1),l=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("change",l),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return B(e,u)}),r.$parsers.push(function(e){return e?u:c})}function ni(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){return e&&e.split(" ")}function i(e){if(!e)return e;var t=e;return Y(e)?t=e.map(i).join(" "):w(e)?t=Object.keys(e).filter(function(t){return e[t]}).join(" "):k(e)||(t=e+""),t}e="ngClass"+e;var s;return["$parse",function(a){return{restrict:"AC",link:function(u,c,l){function d(e){e=p(r(e),1),l.$addClass(e)}function h(e){e=p(r(e),-1),l.$removeClass(e)}function f(e,t){var i=r(e),o=r(t),s=n(i,o),a=n(o,i),u=p(s,-1),c=p(a,1);l.$addClass(c),l.$removeClass(u)}function p(e,t){var n=[];return o(e,function(e){(t>0||y[e])&&(y[e]=(y[e]||0)+t,y[e]===+(t>0)&&n.push(e))}),n.join(" ")}function m(e){e===t?d(v):h(v),g=e}function _(e){g===t&&f(v,e),v=e}var v,y=c.data("$classCounts"),g=!0;y||(y=ge(),c.data("$classCounts",y)),"ngClass"!==e&&(s||(s=a("$index",function(e){return 1&e})),u.$watch(s,m)),u.$watch(a(l[e],i),_)}}}]}function ri(e,t,n,r,i,o){return{restrict:"A",compile:function(s,a){var u=e(a[r]);return function(e,r){r.on(i,function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)})}}}}function ii(e,t,n,r,i,o,s,a,u){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=u(n.name||"",!1)(e),this.$$parentForm=bs,this.$options=ua,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=s,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=t,Cr(this),oi(this)}function oi(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);return n===e.$modelValue||e.$modelValue!==e.$modelValue&&n!==n||e.$$setModelValue(n),n})}function si(e){this.$$options=e}function ai(e,t){o(t,function(t,n){b(e[n])||(e[n]=t)})}function ui(e,t){e.prop("selected",t),e.attr("selected",t)}function ci(e,t,n){if(e){if(k(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,ne(n));return e}}function li(e){var t=f(e);return Di(t)?-1:t}var di,hi,fi,pi,mi={objectMaxDepth:5,urlErrorParamsEnabled:!0},_i=/^\/(.+)\/([a-z]*)$/,vi="validity",yi=Object.prototype.hasOwnProperty,gi=function(e){return k(e)?e.toLowerCase():e},bi=function(e){return k(e)?e.toUpperCase():e},wi=[].slice,Mi=[].splice,ki=[].push,Li=Object.prototype.toString,xi=Object.getPrototypeOf,Yi=r("ng"),Ti=e.angular||(e.angular={}),Si=0;di=e.document.documentMode;var Di=Number.isNaN||function(e){return e!==e};m.$inject=[],_.$inject=[];var $i=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Ei=function(e){return k(e)?e.trim():e},Oi=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ji=function(){if(!b(ji.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ji.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ji.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return ji.rules},Ci=function(){if(b(Ci.name_))return Ci.name_;var t,n,r,i,o=Pi.length;for(n=0;n<o;++n)if(r=Pi[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Ci.name_=i},Ai=/:/g,Pi=["ng-","data-ng-","ng:","x-ng-"],Hi=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(e.document),Fi=/[A-Z]/g,Ii=!1,Ni=1,Ri=3,Wi=8,zi=9,Vi=11,qi={full:"1.7.9",major:1,minor:7,dot:9,codeName:"pollution-eradication"};Ae.expando="ng339";var Bi=Ae.cache={},Ui=1;Ae._data=function(e){return this.cache[e[this.expando]]||{}};var Ji=/-([a-z])/g,Gi=/^-ms-/,Zi={mouseleave:"mouseout",mouseenter:"mouseover"},Xi=r("jqLite"),Ki=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Qi=/<|&#?\w+;/,eo=/<([\w:-]+)/,to=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,no={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,"",""]};no.optgroup=no.option,no.tbody=no.tfoot=no.colgroup=no.caption=no.thead,no.th=no.td;var ro=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},io=Ae.prototype={ready:Qe,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return hi(e>=0?this[e]:this[this.length+e])},length:0,push:ki,sort:[].sort,splice:[].splice},oo={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){oo[gi(e)]=e});var so={};o("input,select,option,textarea,button,form,details".split(","),function(e){so[e]=!0});var ao={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:ze,removeData:Re,hasData:Ee,cleanData:function(e){for(var t=0,n=e.length;t<n;t++)Re(e[t]),Ne(e[t])}},function(e,t){Ae[t]=e}),o({data:ze,inheritedData:Ge,scope:function(e){return hi.data(e,"$scope")||Ge(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return hi.data(e,"$isolateScope")||hi.data(e,"$isolateScopeNoTemplate")},controller:Je,injector:function(e){return Ge(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ve,css:function(e,t,n){if(t=Ye(t),!b(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Ri&&2!==i&&i!==Wi&&e.getAttribute){var o=gi(t),s=oo[o];if(!b(n))return r=e.getAttribute(t),s&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&s?e.removeAttribute(t):e.setAttribute(t,s?o:n)}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if(g(t)){var n=e.nodeType;return n===Ni||n===Ri?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(g(t)){if(e.multiple&&"select"===R(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(g(t))return e.innerHTML;He(e,!0),e.innerHTML=t},empty:Ze},function(e,t){Ae.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Ze&&g(2===e.length&&e!==Ve&&e!==Je?t:n)){if(w(t)){for(r=0;r<o;r++)if(e===ze)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var s=e.$dv,a=g(s)?Math.min(o,1):o,u=0;u<a;u++){var c=e(this[u],t,n);s=s?s+c:c}return s}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:Re,on:function(e,t,n,r){if(b(r))throw Xi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if($e(e)){var i=We(e,!0),o=i.events,s=i.handle;s||(s=i.handle=nt(e,o));for(var a=t.indexOf(" ")>=0?t.split(" "):[t],u=a.length,c=function(t,r,i){var a=o[t];a||(a=o[t]=[],a.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,s)),a.push(n)};u--;)t=a[u],Zi[t]?(c(Zi[t],it),c(t,void 0,!0)):c(t)}},off:Ne,one:function(e,t,n){e=hi(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;He(e),o(new Ae(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===Ni&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Ni||n===Vi){t=new Ae(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===Ni){var n=e.firstChild;o(new Ae(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ce(e,hi(t).eq(0).clone()[0])},remove:Xe,detach:function(e){Xe(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r){t=new Ae(t);for(var i=0,o=t.length;i<o;i++){var s=t[i];r.insertBefore(s,n.nextSibling),n=s}}},addClass:Be,removeClass:qe,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;g(r)&&(r=!Ve(e,t)),(r?Be:qe)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Vi?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Pe,triggerHandler:function(e,t,n){var r,i,s,a=t.type||t,u=We(e),c=u&&u.events,l=c&&c[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:m,type:a,target:e},t.type&&(r=d(r,t)),i=Me(l),s=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,s)}))}},function(e,t){Ae.prototype[t]=function(t,n,r){for(var i,o=0,s=this.length;o<s;o++)g(i)?(i=e(this[o],t,n,r),b(i)&&(i=hi(i))):Ue(i,e(this[o],t,n,r));return b(i)?i:this}}),Ae.prototype.bind=Ae.prototype.on,Ae.prototype.unbind=Ae.prototype.off;var uo=Object.create(null);at.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return Di(e)?uo:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var co=at,lo=[function(){this.$get=[function(){return co}]}],ho=/^([^(]+?)=>/,fo=/^[^(]*\(\s*([^)]*)\)/m,po=/,/,mo=/^\s*(_?)(\S+?)\1\s*$/,_o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,vo=r("$injector");ht.$$annotate=dt;var yo=r("$animate"),go=1,bo=function(){this.$get=m},wo=function(){var e=new co,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=k(t)?t.split(" "):Y(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function s(){o(t,function(t){var n=e.get(t);if(n){var r=_t(t.attr("class")),i="",s="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:s+=(s.length?" ":"")+t)}),o(t,function(e){i&&Be(e,i),s&&qe(e,s)}),e.delete(t)}}),t.length=0}function a(n,o,a){var u=e.get(n)||{},c=i(u,o,!0),l=i(u,a,!1);(c||l)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(s))}return{enabled:m,on:m,off:m,pin:m,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&a(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Mo=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw yo("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=S(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,yo("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=mt(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&hi(r),i=i&&hi(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",vt(o))},move:function(n,r,i,o){return r=r&&hi(r),i=i&&hi(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",vt(o))},leave:function(t,n){return e.push(t,"leave",vt(n),function(){t.remove()})},addClass:function(t,n,r){return r=vt(r),r.addClass=pt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=vt(r),r.removeClass=pt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=vt(i),i.addClass=pt(i.addClass,n),i.removeClass=pt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=vt(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=pt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],ko=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Lo=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function s(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){r()?o(e):t(e)},this._state=0}return s.chain=function(e,t){function n(){if(r===e.length)return void t(!0);e[r](function(e){if(!1===e)return void t(!1);r++,n()})}var r=0;n()},s.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},s.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:m,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},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(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},s}]},xo=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),a||u.complete(),a=!0}),u}function o(){s.addClass&&(t.addClass(s.addClass),s.addClass=null),s.removeClass&&(t.removeClass(s.removeClass),s.removeClass=null),s.to&&(t.css(s.to),s.to=null)}var s=r||{};s.$$prepared||(s=V(s)),s.cleanupStyles&&(s.from=s.to=null),s.from&&(t.css(s.from),s.from=null);var a,u=new n;return{start:i,end:i}}}]},Yo=r("$compile"),To=new Lt;xt.$inject=["$provide","$$sanitizeUriProvider"],Yt.prototype.isFirstChange=function(){return this.previousValue===To};var So=/^((?:x|data)[:\-_])/i,Do=/[:\-_]+(.)/g,$o=r("$controller"),Eo=/^(\S+)(\s+as\s+([\w$]+))?$/,Oo=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof hi&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},jo="application/json",Co={"Content-Type":jo+";charset=utf-8"},Ao=/^\[|^\{(?!\{)/,Po={"[":/]$/,"{":/}$/},Ho=/^\)]\}',?\n/,Fo=r("$http"),Io=Ti.$interpolateMinErr=r("$interpolate");Io.throwNoconcat=function(e){throw Io("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",e)},Io.interr=function(e,t){return Io("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var No=r("$interval"),Ro=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=Ti.callbacks,n={};return{createCallback:function(r){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,s=e(i);return n[o]=t[i]=s,o},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var r=n[e];delete t[r.id],delete n[e]}}}},Wo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,zo={http:80,https:443,ftp:21},Vo=r("$location"),qo=/^\s*[\\/]{2,}/,Bo={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=Qt(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:dn("$$absUrl"),url:function(e){if(g(e))return this.$$url;var t=Wo.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:dn("$$protocol"),host:dn("$$host"),port:dn("$$port"),path:hn("$$path",function(e){return e=null!==e?e.toString():"","/"===e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(k(e)||L(e))e=e.toString(),this.$$search=ie(e);else{if(!w(e))throw Vo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=V(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:g(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:hn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([ln,cn,un],function(e){e.prototype=Object.create(Bo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==un||!this.$$html5)throw Vo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Uo=r("$parse"),Jo={}.constructor.prototype.valueOf,Go=ge();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Go[e]=!0});var Zo={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Xo=function(e){this.options=e};Xo.prototype={constructor:Xo,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=Go[t],o=Go[n],s=Go[r];if(i||o||s){var a=s?r:o?n:t;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Uo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=gi(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else{n+=Zo[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Ko=function(e,t){this.lexer=e,this.options=t};Ko.Program="Program",Ko.ExpressionStatement="ExpressionStatement",Ko.AssignmentExpression="AssignmentExpression",Ko.ConditionalExpression="ConditionalExpression",Ko.LogicalExpression="LogicalExpression",Ko.BinaryExpression="BinaryExpression",Ko.UnaryExpression="UnaryExpression",Ko.CallExpression="CallExpression",Ko.MemberExpression="MemberExpression",Ko.Identifier="Identifier",Ko.Literal="Literal",Ko.ArrayExpression="ArrayExpression",Ko.Property="Property",Ko.ObjectExpression="ObjectExpression",Ko.ThisExpression="ThisExpression",Ko.LocalsExpression="LocalsExpression",Ko.NGValueParameter="NGValueParameter",Ko.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Ko.Program,body:e}},expressionStatement:function(){return{type:Ko.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Mn(e))throw Uo("lval","Trying to assign a value to a non l-value");e={type:Ko.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Ko.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ko.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ko.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ko.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ko.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ko.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ko.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ko.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=V(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Ko.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Ko.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ko.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ko.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ko.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Ko.Identifier,name:e.text}},constant:function(){return{type:Ko.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Ko.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ko.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Ko.ObjectExpression,properties:t}},throwError:function(e,t){throw Uo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Uo("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Uo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],s=o.text;if(s===t||s===n||s===r||s===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Ko.ThisExpression},$locals:{type:Ko.LocalsExpression}}};var Qo=1,es=2;Yn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},bn(e,t.$filter);var n,r="";if(this.stage="assign",n=kn(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var s=wn(e.body);t.stage="inputs",o(s,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,mn,_n,vn);return this.state=this.stage=void 0,u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(e){return e.name}).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,s){var a,u,c,l,d,h=this;if(r=r||m,!s&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case Ko.Program:o(e.body,function(t,n){h.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case Ko.Literal:l=this.escape(e.value),this.assign(t,l),r(t||l);break;case Ko.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),l=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,l),r(l);break;case Ko.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){a=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),l="+"===e.operator?this.plus(a,u):"-"===e.operator?this.ifDefined(a,0)+e.operator+this.ifDefined(u,0):"("+a+")"+e.operator+"("+u+")",this.assign(t,l),r(l);break;case Ko.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),r(t);break;case Ko.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),r(t);break;case Ko.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),function(){h.if_("inputs"===h.stage||"s",function(){i&&1!==i&&h.if_(h.isNull(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))})},t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),r(t);break;case Ko.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,a,void 0,function(){h.if_(h.notNull(a),function(){e.computed?(u=h.nextId(),h.recurse(e.property,u),h.getStringValue(u),i&&1!==i&&h.if_(h.not(h.computedMember(a,u)),h.lazyAssign(h.computedMember(a,u),"{}")),l=h.computedMember(a,u),h.assign(t,l),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&h.if_(h.isNull(h.nonComputedMember(a,e.property.name)),h.lazyAssign(h.nonComputedMember(a,e.property.name),"{}")),l=h.nonComputedMember(a,e.property.name),h.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))},function(){h.assign(t,"undefined")}),r(t)},!!i);break;case Ko.CallExpression:t=t||this.nextId(),e.filter?(u=h.filter(e.callee.name),c=[],o(e.arguments,function(e){var t=h.nextId();h.recurse(e,t),c.push(t)}),l=u+"("+c.join(",")+")",h.assign(t,l),r(t)):(u=h.nextId(),a={},c=[],h.recurse(e.callee,u,a,function(){h.if_(h.notNull(u),function(){o(e.arguments,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){c.push(e)})}),l=a.name?h.member(a.context,a.name,a.computed)+"("+c.join(",")+")":u+"("+c.join(",")+")",h.assign(t,l)},function(){h.assign(t,"undefined")}),r(t)}));break;case Ko.AssignmentExpression:u=this.nextId(),a={},this.recurse(e.left,void 0,a,function(){h.if_(h.notNull(a.context),function(){h.recurse(e.right,u),l=h.member(a.context,a.name,a.computed)+e.operator+u,h.assign(t,l),r(t||l)})},1);break;case Ko.ArrayExpression:c=[],o(e.elements,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){c.push(e)})}),l="["+c.join(",")+"]",this.assign(t,l),r(t||l);break;case Ko.ObjectExpression:c=[],d=!1,o(e.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(a=h.nextId(),h.recurse(e.key,a)):a=e.key.type===Ko.Identifier?e.key.name:""+e.key.value,u=h.nextId(),h.recurse(e.value,u),h.assign(h.member(t,a,e.computed),u)})):(o(e.properties,function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,function(e){c.push(h.escape(t.key.type===Ko.Identifier?t.key.name:""+t.key.value)+":"+e)})}),l="{"+c.join(",")+"}",this.assign(t,l)),r(t||l);break;case Ko.ThisExpression:this.assign(t,"s"),r(t||"s");break;case Ko.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case Ko.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var s=this;return function(){s.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(k(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(L(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Uo("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Tn.prototype={compile:function(e){var t=this;bn(e,t.$filter);var n,r;(n=kn(e))&&(r=this.recurse(n));var i,s=wn(e.body);s&&(i=[],o(s,function(e,n){var r=t.recurse(e);r.isPure=e.isPure,e.input=r,i.push(r),e.watchId=n}));var a=[];o(e.body,function(e){a.push(t.recurse(e.expression))});var u=0===e.body.length?m:1===e.body.length?a[0]:function(e,t){var n;return o(a,function(r){n=r(e,t)}),n};return r&&(u.assign=function(e,t,n){return r(e,n,t)}),i&&(u.inputs=i),u},recurse:function(e,t,n){var r,i,s,a=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ko.Literal:return this.value(e.value,t);case Ko.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Ko.BinaryExpression:case Ko.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case Ko.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ko.Identifier:return a.identifier(e.name,t,n);case Ko.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case Ko.CallExpression:return s=[],o(e.arguments,function(e){s.push(a.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var a=[],u=0;u<s.length;++u)a.push(s[u](e,n,r,o));var c=i.apply(void 0,a,o);return t?{context:void 0,name:void 0,value:c}:c}:function(e,n,r,o){var a,u=i(e,n,r,o);if(null!=u.value){for(var c=[],l=0;l<s.length;++l)c.push(s[l](e,n,r,o));a=u.value.apply(u.context,c)}return t?{value:a}:a};case Ko.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,s){var a=r(e,n,o,s),u=i(e,n,o,s);return a.context[a.name]=u,t?{value:u}:u};case Ko.ArrayExpression:return s=[],o(e.elements,function(e){s.push(a.recurse(e))}),function(e,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](e,n,r,i));return t?{value:o}:o};case Ko.ObjectExpression:return s=[],o(e.properties,function(e){e.computed?s.push({key:a.recurse(e.key),computed:!0,value:a.recurse(e.value)}):s.push({key:e.key.type===Ko.Identifier?e.key.name:""+e.key.value,computed:!1,value:a.recurse(e.value)})}),function(e,n,r,i){for(var o={},a=0;a<s.length;++a)s[a].computed?o[s[a].key(e,n,r,i)]=s[a].value(e,n,r,i):o[s[a].key]=s[a].value(e,n,r,i);return t?{value:o}:o};case Ko.ThisExpression:return function(e){return t?{value:e}:e};case Ko.LocalsExpression:return function(e,n){return t?{value:n}:n};case Ko.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var s=e(n,r,i,o);return s=b(s)?+s:0,t?{value:s}:s}},"unary-":function(e,t){return function(n,r,i,o){var s=e(n,r,i,o);return s=b(s)?-s:-0,t?{value:s}:s}},"unary!":function(e,t){return function(n,r,i,o){var s=!e(n,r,i,o);return t?{value:s}:s}},"binary+":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s),u=t(r,i,o,s),c=vn(a,u);return n?{value:c}:c}},"binary-":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s),u=t(r,i,o,s),c=(b(a)?a:0)-(b(u)?u:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)*t(r,i,o,s);return n?{value:a}:a}},"binary/":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)/t(r,i,o,s);return n?{value:a}:a}},"binary%":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)%t(r,i,o,s);return n?{value:a}:a}},"binary===":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)===t(r,i,o,s);return n?{value:a}:a}},"binary!==":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)!==t(r,i,o,s);return n?{value:a}:a}},"binary==":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)==t(r,i,o,s);return n?{value:a}:a}},"binary!=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)!=t(r,i,o,s);return n?{value:a}:a}},"binary<":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)<t(r,i,o,s);return n?{value:a}:a}},"binary>":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)>t(r,i,o,s);return n?{value:a}:a}},"binary<=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)<=t(r,i,o,s);return n?{value:a}:a}},"binary>=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)>=t(r,i,o,s);return n?{value:a}:a}},"binary&&":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)&&t(r,i,o,s);return n?{value:a}:a}},"binary||":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)||t(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(e,t,n,r){return function(i,o,s,a){var u=e(i,o,s,a)?t(i,o,s,a):n(i,o,s,a);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,s){var a=i&&e in i?i:r;n&&1!==n&&a&&null==a[e]&&(a[e]={});var u=a?a[e]:void 0;return t?{context:a,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,s,a){var u,c,l=e(i,o,s,a);return null!=l&&(u=t(i,o,s,a),u=mn(u),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(e,t,n,r){return function(i,o,s,a){var u=e(i,o,s,a);r&&1!==r&&u&&null==u[t]&&(u[t]={});var c=null!=u?u[t]:void 0;return n?{context:u,name:t,value:c}:c}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Sn.prototype={constructor:Sn,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=Ln(t.ast),n.constant=xn(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return e=e.trim(),":"===e.charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var ts,ns=r("$sce"),rs={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},is=/_([a-z])/g,os=r("$templateRequest"),ss=r("$timeout"),as=e.document.createElement("a"),us=Xn(e.location.href);as.href="http://[::1]";var cs="[::1]"===as.hostname;ir.$inject=["$document"],sr.$inject=["$provide"];var ls=22,ds=".",hs="0";dr.$inject=["$locale"],hr.$inject=["$locale"];var fs={yyyy:vr("FullYear",4,0,!1,!0),yy:vr("FullYear",2,0,!0,!0),y:vr("FullYear",1,0,!1,!0),MMMM:yr("Month"),MMM:yr("Month",!0),MM:vr("Month",2,1),M:vr("Month",1,1),LLLL:yr("Month",!1,!0),dd:vr("Date",2),d:vr("Date",1),HH:vr("Hours",2),H:vr("Hours",1),hh:vr("Hours",2,-12),h:vr("Hours",1,-12),mm:vr("Minutes",2),m:vr("Minutes",1),ss:vr("Seconds",2),s:vr("Seconds",1),sss:vr("Milliseconds",3),EEEE:yr("Day"),EEE:yr("Day",!0),a:kr,Z:gr,ww:Mr(2),w:Mr(1),G:Lr,GG:Lr,GGG:Lr,GGGG:xr},ps=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,ms=/^-?\d+$/;Yr.$inject=["$locale"];var _s=v(gi),vs=v(bi);$r.$inject=["$parse"];var ys=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Li.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),gs={};o(oo,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=Tt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),gs[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(ao,function(e,t){gs[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(_i);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=Tt("ng-"+e);gs[t]=["$sce",function(n){return{priority:99,link:function(r,i,o){var s=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Li.call(i.prop("href"))&&(a="xlinkHref",o.$attr[a]="xlink:href",s=null),o.$set(t,n.getTrustedMediaUrl(o[t])),o.$observe(t,function(t){if(!t)return void("href"===e&&o.$set(a,null));o.$set(a,t),di&&s&&i.prop(s,o[a])})}}}]});var bs={$addControl:m,$getControls:v([]),$$renameControl:Or,$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m,$$setSubmitted:m},ws="ng-pending";jr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],jr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){_e(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Me(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),z(this.$$controls,e),e.$$parentForm=bs},$setDirty:function(){this.$$animate.removeClass(this.$$element,oa),this.$$animate.addClass(this.$$element,sa),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,oa,sa+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==bs;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,o(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},Ar({clazz:jr,set:function(e,t,n){var r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(z(r,n),0===r.length&&delete e[t])}});var Ms=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||m}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:jr,compile:function(n,i){n.addClass(oa).addClass(ra);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,s){var a=s[0];if(!("action"in i)){var u=function(t){e.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}(s[1]||a.$$parentForm).$addControl(a);var c=o?r(a.$name):m;o&&(c(e,a),i.$observe(o,function(t){a.$name!==t&&(c(e,void 0),a.$$parentForm.$$renameControl(a,t),(c=r(a.$name))(e,a))})),n.on("$destroy",function(){a.$$parentForm.$removeControl(a),c(e,void 0),d(a,bs)})}}}}}]},ks=Ms(),Ls=Ms(!0),xs=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ys=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ts=/^(?=.{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])?)*$/,Ss=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ds=/^(\d{4,})-(\d{2})-(\d{2})$/,$s=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Es=/^(\d{4,})-W(\d\d)$/,Os=/^(\d{4,})-(\d\d)$/,js=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Cs="keydown wheel mousedown",As=ge();o("date,datetime-local,month,time,week".split(","),function(e){As[e]=!0});var Ps={text:Fr,date:Wr("date",Ds,Rr(Ds,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Wr("datetimelocal",$s,Rr($s,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Wr("time",js,Rr(js,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Wr("week",Es,Nr,"yyyy-Www"),month:Wr("month",Os,Rr(Os,["yyyy","MM"]),"yyyy-MM"),number:Gr,url:Xr,email:Kr,radio:Qr,range:Zr,checkbox:ti,hidden:m,button:m,submit:m,reset:m,file:m},Hs=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Ps[gi(s.type)]||Ps.text)(i,o,s,a[0],t,e,n,r)}}}}],Fs=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===gi(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},Is=/^(true|false|\d+)$/,Ns=function(){function e(e,t,n){var r=b(n)?n:9===di?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Is.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},Rs=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=be(e)})}}}}],Ws=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=g(e)?"":e})}}}}],zs=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),s=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(s,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],Vs=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),qs=ni("",!0),Bs=ni("Odd",0),Us=ni("Even",1),Js=Er({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Gs=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Zs={},Xs={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Tt("ng-"+e);Zs[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return ri(n,r,i,t,e,Xs[e])}]});var Ks=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,u,c;n.$watch(i.ngIf,function(n){n?u||s(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),a={clone:n},e.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),a&&(c=ye(a.clone),e.leave(c).done(function(e){!1!==e&&(c=null)}),a=null))})}}}],Qs=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ti.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,u,c,l){var d,h,f,p=0,m=function(){h&&(h.remove(),h=null),d&&(d.$destroy(),d=null),f&&(n.leave(f).done(function(e){!1!==e&&(h=null)}),h=f,f=null)};r.$watch(o,function(o){var u=function(e){!1===e||!b(a)||a&&!r.$eval(a)||t()},h=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&h===p){var t=r.$new();c.template=e;var a=l(t,function(e){m(),n.enter(e,null,i).done(u)});d=t,f=a,d.$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),c.template=null)})}}}}],ea=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(Li.call(r[0]).match(/SVG/))return r.empty(),void t(Oe(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],ta=Er({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),na=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",s="false"!==n.ngTrim,a=s?Ei(i):i,u=function(e){if(!g(e)){var t=[];return e&&o(e.split(a),function(e){e&&t.push(s?Ei(e):e)}),t}};r.$parsers.push(u),r.$formatters.push(function(e){if(Y(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},ra="ng-valid",ia="ng-invalid",oa="ng-pristine",sa="ng-dirty",aa=r("ngModel");ii.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],ii.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return S(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){S(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw aa("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ne(this.$$element))},$render:m,$isEmpty:function(e){return g(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,sa),this.$$animate.addClass(this.$$element,oa)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,oa),this.$$animate.addClass(this.$$element,sa),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!Di(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){s===a.$$currentValidationRunId&&a.$setValidity(e,t)}function i(e){s===a.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var s=this.$$currentValidationRunId,a=this;return function(){var e=a.$$parserName;return g(a.$$parserValid)?(r(e,null),!0):(a.$$parserValid||(o(a.$validators,function(e,t){r(t,null)}),o(a.$asyncValidators,function(e,t){r(t,null)})),r(e,a.$$parserValid),a.$$parserValid)}()&&function(){var n=!0;return o(a.$validators,function(i,o){var s=Boolean(i(e,t));n=n&&s,r(o,s)}),!!n||(o(a.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var n=[],s=!0;o(a.$asyncValidators,function(i,o){var a=i(e,t);if(!P(a))throw aa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);r(o,void 0),n.push(a.then(function(){r(o,!0)},function(){s=!1,r(o,!1)}))}),n.length?a.$$q.all(n).then(function(){i(s)},m):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!g(n)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),g(n)){this.$$parserValid=!1;break}Di(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,s=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,s&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){s||(r.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");L(t[e])?t=t[e]:L(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:L(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,m))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Ar({clazz:ii,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ua,ca=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ii,priority:1,compile:function(t){return t.addClass(oa).addClass("ng-untouched").addClass(ra),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,s=r[2];s&&(i.$options=s.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){s.$setTouched()}var s=i[0];s.$$setUpdateOnEvents(),n.on("blur",function(){s.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],la=/(\s+|^)default(\s+|$)/;si.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=d({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Ei(n.replace(la,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],ai(e,this.$$options)),ai(e,ua.$$options),new si(e)}},ua=new si({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var da=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:ua,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},ha=Er({terminal:!0,priority:1e3}),fa=r("ngOptions"),pa=/^\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]+?))?$/,ma=["$compile","$document","$parse",function(t,n,r){function s(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function s(e){var t;if(!c&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var a=e.match(pa);if(!a)throw fa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ne(t));var u=a[5]||a[7],c=a[6],l=/ as /.test(a[0])&&a[1],d=a[9],h=r(a[2]?a[1]:u),f=l&&r(l),p=f||h,m=d&&r(d),_=d?function(e,t){return m(n,t)}:function(e){return st(e)},v=function(e,t){return _(e,k(e,t))},y=r(a[2]||a[1]),g=r(a[3]||""),b=r(a[4]||""),w=r(a[8]),M={},k=c?function(e,t){return M[c]=t,M[u]=e,M}:function(e){return M[u]=e,M};return{trackBy:d,getTrackByValue:v,getWatchables:r(w,function(e){var t=[];e=e||[];for(var r=s(e),i=r.length,o=0;o<i;o++){var u=e===r?o:r[o],c=e[u],l=k(c,u),d=_(c,l);if(t.push(d),a[2]||a[1]){var h=y(n,l);t.push(h)}if(a[4]){var f=b(n,l);t.push(f)}}return t}),getOptions:function(){for(var e=[],t={},r=w(n)||[],i=s(r),a=i.length,u=0;u<a;u++){var c=r===i?u:i[u],l=r[c],h=k(l,c),f=p(n,h),m=_(f,h),M=y(n,h),L=g(n,h),x=b(n,h),Y=new o(m,f,M,L,x);e.push(Y),t[m]=Y}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return d?V(e.viewValue):e.viewValue}}}}}function a(e,r,i,a){function l(e,t){var n=u.cloneNode(!1);t.appendChild(n),h(e,n)}function d(e){var t=M.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function h(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function f(){var e=M&&p.readValue();if(M)for(var t=M.items.length-1;t>=0;t--){var n=M.items[t];Xe(b(n.group)?n.element.parentNode:n.element)}M=k.getOptions();var i={};if(M.items.forEach(function(e){var t;b(e.group)?(t=i[e.group],t||(t=c.cloneNode(!1),L.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),l(e,t)):l(e,L)}),r[0].appendChild(L),m.$render(),!m.$isEmpty(e)){var o=p.readValue();(k.trackBy||_?B(e,o):e===o)||(m.$setViewValue(o),m.$render())}}for(var p=a[0],m=a[1],_=i.multiple,v=0,y=r.children(),g=y.length;v<g;v++)if(""===y[v].value){p.hasEmptyOption=!0,p.emptyOption=y.eq(v);break}r.empty();var w=!!p.emptyOption;hi(u.cloneNode(!1)).val("?");var M,k=s(i.ngOptions,r,e),L=n[0].createDocumentFragment();p.generateUnknownOptionValue=function(e){return"?"},_?(p.writeValue=function(e){if(M){var t=e&&e.map(d)||[];M.items.forEach(function(e){e.element.selected&&!W(t,e)&&(e.element.selected=!1)})}},p.readValue=function(){var e=r.val()||[],t=[];return o(e,function(e){var n=M.selectValueMap[e];n&&!n.disabled&&t.push(M.getViewValueFromOption(n))}),t},k.trackBy&&e.$watchCollection(function(){if(Y(m.$viewValue))return m.$viewValue.map(function(e){return k.getTrackByValue(e)})},function(){m.$render()})):(p.writeValue=function(e){if(M){var t=r[0].options[r[0].selectedIndex],n=M.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(p.removeUnknownOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):p.selectUnknownOrEmptyOption(e)}},p.readValue=function(){var e=M.selectValueMap[r.val()];return e&&!e.disabled?(p.unselectEmptyOption(),p.removeUnknownOption(),M.getViewValueFromOption(e)):null},k.trackBy&&e.$watch(function(){return k.getTrackByValue(m.$viewValue)},function(){m.$render()})),w&&(t(p.emptyOption)(e),r.prepend(p.emptyOption),p.emptyOption[0].nodeType===Wi?(p.hasEmptyOption=!1,p.registerOption=function(e,t){""===t.val()&&(p.hasEmptyOption=!0,p.emptyOption=t,p.emptyOption.removeClass("ng-scope"),m.$render(),t.on("$destroy",function(){var e=p.$isEmptyOptionSelected();p.hasEmptyOption=!1,p.emptyOption=void 0,e&&m.$render()}))}):p.emptyOption.removeClass("ng-scope")),e.$watchCollection(k.getWatchables,f)}var u=e.document.createElement("option"),c=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=m},post:a}}}],_a=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(s,a,u){function c(e){a.text(e||"")}var l,d=u.count,h=u.$attr.when&&a.attr(u.$attr.when),f=u.offset||0,p=s.$eval(h)||{},_={},v=t.startSymbol(),y=t.endSymbol(),b=v+d+"-"+f+y,w=Ti.noop;o(u,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+gi(n[2]);p[r]=a.attr(u.$attr[t])}}),o(p,function(e,n){_[n]=t(e.replace(r,b))}),s.$watch(d,function(t){var r=parseFloat(t),i=Di(r);if(i||r in p||(r=e.pluralCat(r-f)),!(r===l||i&&Di(l))){w();var o=_[r];g(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=m,c()):w=s.$watch(o,c),l=r}})}}}],va=r("ngRef"),ya=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=Tt(R(t)),i=e(n.ngRef),o=i.assign||function(){throw va("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,s){var a;if(s.hasOwnProperty("ngRefRead")){if("$element"===s.ngRefRead)a=t;else if(!(a=t.data("$"+s.ngRefRead+"Controller")))throw va("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',s.ngRefRead,n.ngRef)}else a=t.data("$"+r+"Controller");a=a||t,o(e,a),t.on("$destroy",function(){i(e)===a&&o(e,null)})}}}}],ga=["$parse","$animate","$compile",function(e,t,n){var s=r("ngRepeat"),a=function(e,t,n,r,i,o,s){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===s-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]},l=function(e,t,n){return st(n)},d=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,h){var f=h.ngRepeat,p=n.$$createComment("end ngRepeat",f),m=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var _=m[1],v=m[2],y=m[3],g=m[4];if(!(m=_.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",_);var b=m[3]||m[1],w=m[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var M;if(g){var k={$id:st},L=e(g);M=function(e,t,n,r){return w&&(k[w]=t),k[b]=n,k.$index=r,L(e,k)}}return function(e,n,r,h,m){var _=ge();e.$watchCollection(v,function(r){var h,v,g,L,x,Y,T,S,D,$,E,O,j=n[0],C=ge();if(y&&(e[y]=r),i(r))D=r,S=M||l;else{S=M||d,D=[];for(var A in r)yi.call(r,A)&&"$"!==A.charAt(0)&&D.push(A)}for(L=D.length,E=new Array(L),h=0;h<L;h++)if(x=r===D?h:D[h],Y=r[x],T=S(e,x,Y,h),_[T])$=_[T],delete _[T],C[T]=$,E[h]=$;else{if(C[T])throw o(E,function(e){e&&e.scope&&(_[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,T,Y);E[h]={id:T,scope:void 0,clone:void 0},C[T]=!0}k&&(k[b]=void 0);for(var P in _){if($=_[P],O=ye($.clone),t.leave(O),O[0].parentNode)for(h=0,v=O.length;h<v;h++)O[h].$$NG_REMOVED=!0;$.scope.$destroy()}for(h=0;h<L;h++)if(x=r===D?h:D[h],Y=r[x],$=E[h],$.scope){g=j;do{g=g.nextSibling}while(g&&g.$$NG_REMOVED);u($)!==g&&t.move(ye($.clone),null,j),j=c($),a($.scope,h,b,Y,w,x,L)}else m(function(e,n){$.scope=n;var r=p.cloneNode(!1);e[e.length++]=r,t.enter(e,null,j),j=r,$.clone=e,C[$.id]=$,a($.scope,h,b,Y,w,x,L)});_=C})}}}}],ba=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],wa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ma=Er(function(e,t,n){e.$watchCollection(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)})}),ka=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,s){var a=i.ngSwitch||i.on,u=[],c=[],l=[],d=[],h=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(a,function(n){for(var r,i;l.length;)e.cancel(l.pop());for(r=0,i=d.length;r<i;++r){var a=ye(c[r].clone);d[r].$destroy();(l[r]=e.leave(a)).done(h(l,r))}c.length=0,d.length=0,(u=s.cases["!"+n]||s.cases["?"])&&o(u,function(n){n.transclude(function(r,i){d.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var s={clone:r};c.push(s),e.enter(r,o.parent(),o)})})})}}}],La=Er({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),xa=Er({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ya=r("ngTransclude"),Ta=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function s(e,n){e.length&&u(e)?t.append(e):(a(),n.$destroy())}function a(){n(e,function(e){t.append(e)})}function u(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Ri||r.nodeValue.trim())return!0}}if(!o)throw Ya("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ne(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;o(s,null,c),c&&!o.isSlotFilled(c)&&a()}}}}],Sa=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Da={$setViewValue:m,$render:m},$a=["$element","$scope",function(t,n){function r(){a||(a=!0,n.$$postDigest(function(){a=!1,o.ngModelCtrl.$render()}))}function i(e){u||(u=!0,n.$$postDigest(function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,s=new co;o.selectValueMap={},o.ngModelCtrl=Da,o.multiple=!1,o.unknownOption=hi(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),ui(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),ui(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+st(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),ui(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&ui(o.emptyOption,!1)},n.$on("$destroy",function(){o.renderUnknownOption=m}),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&ui(hi(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=st(e);t.val(r in o.selectValueMap?r:e);var i=t[0].options[t[0].selectedIndex];ui(hi(i),!0)}else o.selectUnknownOrEmptyOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==Wi){_e(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=s.get(e)||0;s.set(e,n+1),r()}},o.removeOption=function(e){var t=s.get(e);t&&(1===t?(s.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):s.set(e,t-1))},o.hasOption=function(e){return!!s.get(e)},o.$hasEmptyOption=function(){return o.hasEmptyOption},o.$isUnknownOptionSelected=function(){return t[0].options[0]===o.unknownOption[0]},o.$isEmptyOptionSelected=function(){return o.hasEmptyOption&&t[0].options[t[0].selectedIndex]===o.emptyOption[0]},o.selectUnknownOrEmptyOption=function(e){null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)};var a=!1,u=!1;o.registerOption=function(e,t,n,s,a){if(n.$attr.ngValue){var u,c;n.$observe("value",function(e){var n,r=t.prop("selected");b(c)&&(o.removeOption(u),delete o.selectValueMap[c],n=!0),c=st(e),u=e,o.selectValueMap[c]=e,o.addOption(e,t),t.attr("value",c),n&&r&&i()})}else s?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");b(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()}):a?e.$watch(a,function(e,r){n.$set("value",e);var s=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&s&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],Ea=function(){function e(e,t,n,r){var i=r[0],s=r[1];if(!s)return void(i.registerOption=m);if(i.ngModelCtrl=s,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){s.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(W(e,t.value)||W(e,i.selectValueMap[t.value]));n!==t.selected&&ui(hi(t),n)})};var a,u=NaN;e.$watch(function(){u!==s.$viewValue||B(a,s.$viewValue)||(a=Me(s.$viewValue),s.$render()),u=s.$viewValue}),s.$isEmpty=function(e){return!e||0===e.length}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:$a,priority:1,link:{pre:e,post:t}}},Oa=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),s=o.data("$selectController")||o.parent().data("$selectController");s&&s.registerOption(e,t,n,r,i)}}}}],ja=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",function(e){o!==e&&(o=e,i.$validate())})}}}}],Ca=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&_i.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var s=n.pattern;n.ngPattern?s=i(e):r=n.pattern;var a=ci(s,r,t);n.$observe("pattern",function(e){var n=a;a=ci(e,r,t),(n&&n.toString())!==(a&&a.toString())&&o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||g(a)||a.test(t)}}}}}}],Aa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),s=li(o);r.$observe("maxlength",function(e){o!==e&&(s=li(e),o=e,i.$validate())}),i.$validators.maxlength=function(e,t){return s<0||i.$isEmpty(t)||t.length<=s}}}}}],Pa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),s=li(o)||-1;r.$observe("minlength",function(e){o!==e&&(s=li(e)||-1,o=e,i.$validate())}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=s}}}}}];if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load AngularJS more than once."));!function(){var t;if(!Ii){var n=Ci();fi=g(n)?e.jQuery:n?e[n]:void 0,fi&&fi.fn.on?(hi=fi,d(fi.fn,{scope:io.scope,isolateScope:io.isolateScope,controller:io.controller,injector:io.injector,inheritedData:io.inheritedData})):hi=Ae,t=hi.cleanData,hi.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(hi._data(r)||{}).events)&&n.$destroy&&hi(r).triggerHandler("$destroy");t(e)},Ti.element=hi,Ii=!0}}(),function(n){d(n,{errorHandlingConfig:t,bootstrap:le,copy:V,extend:d,merge:h,equals:B,element:hi,forEach:o,injector:ht,noop:m,bind:G,toJson:X,fromJson:K,identity:_,isUndefined:g,isDefined:b,isString:k,isFunction:S,isObject:w,isNumber:L,isElement:I,isArray:Y,version:qi,isDate:x,callbacks:{$$counter:0},getTestability:he,reloadWithDebugInfo:de,$$minErr:r,$$csp:ji,$$encodeUriSegment:se,$$encodeUriQuery:ae,$$lowercase:gi,$$stringify:be,$$uppercase:bi}),pi=we(e),pi("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:In}),e.provider("$compile",xt).directive({a:ys,input:Hs,textarea:Hs,form:ks,script:Sa,select:Ea,option:Oa,ngBind:Rs,ngBindHtml:zs,ngBindTemplate:Ws,ngClass:qs,ngClassEven:Us,ngClassOdd:Bs,ngCloak:Js,ngController:Gs,ngForm:Ls,ngHide:wa,ngIf:Ks,ngInclude:Qs,ngInit:ta,ngNonBindable:ha,ngPluralize:_a,ngRef:ya,ngRepeat:ga,ngShow:ba,ngStyle:Ma,ngSwitch:ka,ngSwitchWhen:La,ngSwitchDefault:xa,ngOptions:ma,ngTransclude:Ta,ngModel:ca,ngList:na,ngChange:Vs,pattern:Ca,ngPattern:Ca,required:ja,ngRequired:ja,minlength:Pa,ngMinlength:Pa,maxlength:Aa,ngMaxlength:Aa,ngValue:Ns,ngModelOptions:da}).directive({ngInclude:ea,input:Fs}).directive(gs).directive(Zs),e.provider({$anchorScroll:ft,$animate:Mo,$animateCss:xo,$$animateJs:bo,$$animateQueue:wo,$$AnimateRunner:Lo,$$animateAsyncRun:ko,$browser:wt,$cacheFactory:Mt,$controller:Et,$document:Ot,$$isDocumentHidden:jt,$exceptionHandler:Ct,$filter:sr,$$forceReflow:Oo,$interpolate:Jt,$interval:Gt,$$intervalFactory:Zt,$http:Vt,$httpParamSerializer:Pt,$httpParamSerializerJQLike:Ht,$httpBackend:Bt,$xhrFactory:qt,$jsonpCallbacks:Ro,$location:fn,$log:pn,$parse:$n,$rootScope:Fn,$q:En,$$q:On,$sce:Vn,$sceDelegate:zn,$sniffer:qn,$$taskTrackerFactory:Bn,$templateCache:kt,$templateRequest:Jn,$$testability:Gn,$timeout:Zn,$window:rr,$$rAF:Hn,$$jqLite:ot,$$Map:lo,$$cookieReader:or})}]).info({angularVersion:"1.7.9"})}(Ti),Ti.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.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(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),hi(function(){ce(e.document,le)})}(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(e,t,n){n(913),e.exports="ngRoute"},function(e,t){/**
|
|
173
|
-
* @license AngularJS v1.
|
|
174
|
-
* (c) 2010-
|
|
172
|
+
!function(e){"use strict";function t(e){if(!w(e))return _i;b(e.objectMaxDepth)&&(_i.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN),b(e.urlErrorParamsEnabled)&&A(e.urlErrorParamsEnabled)&&(_i.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function n(e){return L(e)&&e>0}function r(e,t){t=t||Error;var n="https://errors.angularjs.org/1.8.3/",r=n.replace(".","\\.")+"[\\s\\S]*",i=new RegExp(r,"g");return function(){var r,o,s=arguments[0],a=arguments[1],u="["+(e?e+":":"")+s+"] ",c=J(arguments,2).map(function(e){return xe(e,_i.objectMaxDepth)});if(u+=a.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<c.length?c[t].replace(i,""):e}),u+="\n"+n+(e?e+"/":"")+s,_i.urlErrorParamsEnabled)for(o=0,r="?";o<c.length;o++,r="&")u+=r+"p"+o+"="+encodeURIComponent(c[o]);return new t(u)}}function i(e){if(null==e||$(e))return!1;if(Y(e)||k(e)||fi&&e instanceof fi)return!0;var t="length"in Object(e)&&e.length;return L(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function o(e,t,n){var r,s;if(e)if(S(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(Y(e)||i(e)){var a="object"!=typeof e;for(r=0,s=e.length;r<s;r++)(a||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(M(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)gi.call(e,r)&&t.call(n,e[r],r,e);return e}function s(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function a(e){return function(t,n){e(n,t)}}function u(){return++Di}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var s=t[i];if(w(s)||S(s))for(var a=Object.keys(s),u=0,d=a.length;u<d;u++){var h=a[u],f=s[h];n&&w(f)?x(f)?e[h]=new Date(f.valueOf()):D(f)?e[h]=new RegExp(f):f.nodeName?e[h]=f.cloneNode(!0):I(f)?e[h]=f.clone():"__proto__"!==h&&(w(e[h])||(e[h]=Y(f)?[]:{}),l(e[h],[f],!0)):e[h]=f}}return c(e,r),e}function d(e){return l(e,Mi.call(arguments,1),!1)}function h(e){return l(e,Mi.call(arguments,1),!0)}function f(e){return parseInt(e,10)}function p(e,t){return d(Object.create(e),t)}function m(){}function _(e){return e}function v(e){return function(){return e}}function y(e){return S(e.toString)&&e.toString!==xi}function g(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function M(e){return null!==e&&"object"==typeof e&&!Yi(e)}function k(e){return"string"==typeof e}function L(e){return"number"==typeof e}function x(e){return"[object Date]"===xi.call(e)}function Y(e){return Array.isArray(e)||e instanceof Array}function T(e){switch(xi.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function S(e){return"function"==typeof e}function D(e){return"[object RegExp]"===xi.call(e)}function $(e){return e&&e.window===e}function E(e){return e&&e.$evalAsync&&e.$watch}function O(e){return"[object File]"===xi.call(e)}function j(e){return"[object FormData]"===xi.call(e)}function C(e){return"[object Blob]"===xi.call(e)}function A(e){return"boolean"==typeof e}function P(e){return e&&S(e.then)}function H(e){return e&&L(e.length)&&Ei.test(xi.call(e))}function F(e){return"[object ArrayBuffer]"===xi.call(e)}function I(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function N(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function R(e){return bi(e.nodeName||e[0]&&e[0].nodeName)}function W(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function z(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function V(e,t,r){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(Y(e))for(var o=0,a=e.length;o<a;o++)t.push(s(e[o],n));else if(M(e))for(r in e)t[r]=s(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=s(e[r],n));else for(r in e)gi.call(e,r)&&(t[r]=s(e[r],n));return c(t,i),t}function s(e,t){if(!w(e))return e;var n=u.indexOf(e);if(-1!==n)return l[n];if($(e)||E(e))throw Ti("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=a(e);return void 0===o&&(o=Y(e)?[]:Object.create(Yi(e)),r=!0),u.push(e),l.push(o),r?i(e,o,t):o}function a(e){switch(xi.call(e)){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 e.constructor(s(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(S(e.cloneNode))return e.cloneNode(!0)}var u=[],l=[];if(r=n(r)?r:NaN,t){if(H(t)||F(t))throw Ti("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Ti("cpi","Can't copy! Source and destination are identical.");return Y(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),u.push(e),l.push(t),i(e,t,r)}return s(e,r)}function q(e,t){return e===t||e!==e&&t!==t}function B(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,s=typeof t;if(o===s&&"object"===o){if(!Y(e)){if(x(e))return!!x(t)&&q(e.getTime(),t.getTime());if(D(e))return!!D(t)&&e.toString()===t.toString();if(E(e)||E(t)||$(e)||$(t)||Y(t)||x(t)||D(t))return!1;i=be();for(r in e)if("$"!==r.charAt(0)&&!S(e[r])){if(!B(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!S(t[r]))return!1;return!0}if(!Y(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!B(e[r],t[r]))return!1;return!0}}return!1}function U(e,t,n){return e.concat(Mi.call(t,n))}function J(e,t){return Mi.call(e,t||0)}function G(e,t){var n=arguments.length>2?J(arguments,2):[];return!S(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,U(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Z(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:$(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":E(n)&&(r="$SCOPE"),r}function X(e,t){if(!g(e))return L(t)||(t=t?2:null),JSON.stringify(e,Z,t)}function K(e){return k(e)?JSON.parse(e):e}function Q(e,t){e=e.replace(Pi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return $i(n)?t:n}function ee(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function te(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ee(e,n*(Q(t,r)-r))}function ne(e){e=fi(e).clone().empty();var t=fi("<div></div>").append(e).html();try{return e[0].nodeType===Wi?bi(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+bi(t)})}catch(e){return bi(t)}}function re(e){try{return decodeURIComponent(e)}catch(e){}}function ie(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=re(r),b(r)&&(i=!b(i)||re(i),gi.call(t,r)?Y(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function oe(e){var t=[];return o(e,function(e,n){Y(e)?o(e,function(e){t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}):t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}),t.length?t.join("&"):""}function se(e){return ae(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ae(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ue(e,t){var n,r,i=Hi.length;for(r=0;r<i;++r)if(n=Hi[r]+t,k(n=e.getAttribute(n)))return n;return null}function ce(t,n){var r,i,s={};if(o(Hi,function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))}),o(Hi,function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!Fi)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");s.strictDi=null!==ue(r,"strict-di"),n(r,i?[i]:[],s)}}function le(t,n,r){w(r)||(r={}),r=d({strictDi:!1},r);var i=function(){if(t=fi(t),t.injector()){var i=t[0]===e.document?"document":ne(t);throw Ti("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ft(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(e&&s.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!a.test(e.name))return i();e.name=e.name.replace(a,""),Si.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},S(Si.resumeDeferredBootstrap)&&Si.resumeDeferredBootstrap()}function de(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function he(e){var t=Si.element(e).injector();if(!t)throw Ti("test","no injector found for element argument to getTestability");return t.get("$$testability")}function fe(e,t){return t=t||"_",e.replace(Ii,function(e,n){return(n?t:"")+e.toLowerCase()})}function pe(){Pe.legacyXHTMLReplacement=!0}function me(e,t,n){if(!e)throw Ti("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function _e(e,t,n){return n&&Y(e)&&(e=e[e.length-1]),me(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function ve(e,t){if("hasOwnProperty"===e)throw Ti("badname","hasOwnProperty is not a valid {0} name",t)}function ye(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,s=i.length,a=0;a<s;a++)r=i[a],e&&(e=(o=e)[r]);return!n&&S(e)?G(o,e):e}function ge(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=fi(Mi.call(e,0,i))),t.push(n));return t||e}function be(){return Object.create(null)}function we(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!y(e)||Y(e)||x(e)?X(e):e.toString()}return e}function Me(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,s){var a={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),h}}function t(e,t,n){return n||(n=u),function(i,o){return o&&S(o)&&(o.$$moduleName=r),n.push([e,t,arguments]),h}}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.",r);var u=[],c=[],l=[],d=e("$injector","invoke","push",c),h={_invokeQueue:u,_configBlocks:c,_runBlocks:l,info:function(e){if(b(e)){if(!w(e))throw i("aobj","Argument '{0}' must be an object","value");return a=e,this}return a},requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",c),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:d,run:function(e){return l.push(e),this}};return s&&d(s),h})}})}function ke(e,t){if(Y(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function Le(e,t){var r=[];return n(t)&&(e=Si.copy(e,null,t)),JSON.stringify(e,function(e,t){if(t=Z(e,t),w(t)){if(r.indexOf(t)>=0)return"...";r.push(t)}return t})}function xe(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):g(e)?"undefined":"string"!=typeof e?Le(e,t):e}function Ye(){return++Ji}function Te(e){return De(e.replace(Zi,"ms-"))}function Se(e,t){return t.toUpperCase()}function De(e){return e.replace(Gi,Se)}function $e(e){return!eo.test(e)}function Ee(e){var t=e.nodeType;return t===Ri||!t||t===Vi}function Oe(e){for(var t in Ui[e.ng339])return!0;return!1}function je(t,n){var r,i,s,a,u,c=n.createDocumentFragment(),l=[];if($e(t))l.push(n.createTextNode(t));else{if(r=c.appendChild(n.createElement("div")),i=(to.exec(t)||["",""])[1].toLowerCase(),a=Pe.legacyXHTMLReplacement?t.replace(no,"<$1></$2>"):t,hi<10)for(s=io[i]||io._default,r.innerHTML=s[1]+a+s[2],u=s[0];u--;)r=r.firstChild;else{for(s=ro[i]||[],u=s.length;--u>-1;)r.appendChild(e.document.createElement(s[u])),r=r.firstChild;r.innerHTML=a}l=U(l,r.childNodes),r=c.firstChild,r.textContent=""}return c.textContent="",c.innerHTML="",o(l,function(e){c.appendChild(e)}),c}function Ce(t,n){n=n||e.document;var r;return(r=Qi.exec(t))?[n.createElement(r[1])]:(r=je(t,n))?r.childNodes:[]}function Ae(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Pe(e){if(e instanceof Pe)return e;var t;if(k(e)&&(e=Oi(e),t=!0),!(this instanceof Pe)){if(t&&"<"!==e.charAt(0))throw Ki("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Pe(e)}t?Je(this,Ce(e)):S(e)?et(e):Je(this,e)}function He(e){return e.cloneNode(!0)}function Fe(e,t){!t&&Ee(e)&&fi.cleanData([e]),e.querySelectorAll&&fi.cleanData(e.querySelectorAll("*"))}function Ie(e){var t;for(t in e)return!1;return!0}function Ne(e){var t=e.ng339,n=t&&Ui[t],r=n&&n.events,i=n&&n.data;i&&!Ie(i)||r&&!Ie(r)||(delete Ui[t],e.ng339=void 0)}function Re(e,t,n,r){if(b(r))throw Ki("offargs","jqLite#off() does not support the `selector` argument");var i=ze(e),s=i&&i.events,a=i&&i.handle;if(a){if(t){var u=function(t){var r=s[t];b(n)&&z(r||[],n),b(n)&&r&&r.length>0||(e.removeEventListener(t,a),delete s[t])};o(t.split(" "),function(e){u(e),Xi[e]&&u(Xi[e])})}else for(t in s)"$destroy"!==t&&e.removeEventListener(t,a),delete s[t];Ne(e)}}function We(e,t){var n=e.ng339,r=n&&Ui[n];r&&(t?delete r.data[t]:r.data={},Ne(e))}function ze(e,t){var n=e.ng339,r=n&&Ui[n];return t&&!r&&(e.ng339=n=Ye(),r=Ui[n]={events:{},data:{},handle:void 0}),r}function Ve(e,t,n){if(Ee(e)){var r,i=b(n),o=!i&&t&&!w(t),s=!t,a=ze(e,!o),u=a&&a.data;if(i)u[De(t)]=n;else{if(s)return u;if(o)return u&&u[De(t)];for(r in t)u[De(r)]=t[r]}}}function qe(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Be(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=Oi(e),r=r.replace(" "+e+" "," ")}),r!==n&&e.setAttribute("class",Oi(r))}}function Ue(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=Oi(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")}),r!==n&&e.setAttribute("class",Oi(r))}}function Je(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Ge(e,t){return Ze(e,"$"+(t||"ngController")+"Controller")}function Ze(e,t,n){e.nodeType===Vi&&(e=e.documentElement);for(var r=Y(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(b(n=fi.data(e,r[i])))return n;e=e.parentNode||e.nodeType===qi&&e.host}}function Xe(e){for(Fe(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ke(e,t){t||Fe(e);var n=e.parentNode;n&&n.removeChild(e)}function Qe(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):fi(n).on("load",t)}function et(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function tt(e,t){var n=lo[t.toLowerCase()];return n&&ho[R(e)]&&n}function nt(e){return fo[e]}function rt(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(g(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||it;o>1&&(i=ke(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||a(e,n,i[u])}};return n.elem=e,n}function it(e,t,n){n.call(e,t)}function ot(e,t,n){var r=t.relatedTarget;r&&(r===e||uo.call(e,r))||n.call(e,t)}function st(){this.$get=function(){return d(Pe,{hasClass:function(e,t){return e.attr&&(e=e[0]),qe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ue(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Be(e,t)}})}}function at(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function ut(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function ct(e){return Function.prototype.toString.call(e)}function lt(e){var t=ct(e).replace(wo,"");return t.match(vo)||t.match(yo)}function dt(e){var t=lt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ht(e,t,n){var r,i,s;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw k(n)&&n||(n=e.name||dt(e)),Mo("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=lt(e),o(i[1].split(go),function(e){e.replace(bo,function(e,t,n){r.push(n)})})}e.$inject=r}}else Y(e)?(s=e.length-1,_e(e[s],"fn"),r=e.slice(0,s)):_e(e,"fn",!0);return r}function ft(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);o(t,a(e))}}function r(e,t){if(ve(e,"service"),(S(t)||Y(t))&&(t=M.instantiate(t)),!t.$get)throw Mo("pget","Provider '{0}' must define $get factory method.",e);return b[e+m]=t}function i(e,t){return function(){var n=T.invoke(t,this);if(g(n))throw Mo("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return r(e,{$get:!1!==n?i(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return s(e,v(t),!1)}function l(e,t){ve(e,"constant"),b[e]=t,L[e]=t}function d(e,t){var n=M.get(e+m),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function h(e){me(g(e)||Y(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=M.get(r[0]);i[r[1]].apply(i,r[2])}}if(!y.get(e)){y.set(e,!0);try{k(e)?(t=mi(e),T.modules[e]=t,n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):S(e)?n.push(M.invoke(e)):Y(e)?n.push(M.invoke(e)):_e(e,"module")}catch(t){throw Y(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Mo("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function f(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===p)throw Mo("cdep","Circular dependency found: {0}",t+" <- "+_.join(" <- "));return e[t]}try{return _.unshift(t),e[t]=p,e[t]=n(t,r),e[t]}catch(n){throw e[t]===p&&delete e[t],n}finally{_.shift()}}function i(e,n,i){for(var o=[],s=ft.$$annotate(e,t,i),a=0,u=s.length;a<u;a++){var c=s[a];if("string"!=typeof c)throw Mo("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:r(c,i))}return o}function o(e){if(hi||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return A(t)||(t=e.$$ngIsClass=/^class\b/.test(ct(e))),t}function s(e,t,n,r){"string"==typeof n&&(r=n,n=null);var s=i(e,n,r);return Y(e)&&(e=e[e.length-1]),o(e)?(s.unshift(null),new(Function.prototype.bind.apply(e,s))):e.apply(t,s)}function a(e,t,n){var r=Y(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:s,instantiate:a,get:r,annotate:ft.$$annotate,has:function(t){return b.hasOwnProperty(t+m)||e.hasOwnProperty(t)}}}t=!0===t;var p={},m="Provider",_=[],y=new mo,b={$provide:{provider:n(r),factory:n(s),service:n(u),value:n(c),constant:n(l),decorator:d}},M=b.$injector=f(b,function(e,t){throw Si.isString(t)&&_.push(t),Mo("unpr","Unknown provider: {0}",_.join(" <- "))}),L={},x=f(L,function(e,t){var n=M.get(e+m,t);return T.invoke(n.$get,n,void 0,e)}),T=x;b["$injector"+m]={$get:v(x)},T.modules=M.modules=be();var D=h(e);return T=x.get("$injector"),T.strictDi=t,o(D,function(e){e&&T.invoke(e)}),T.loadNewModules=function(e){o(h(e),function(e){e&&T.invoke(e)})},T}function pt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===R(e))return t=e,!0}),t}function o(){var e=a.yOffset;if(S(e))e=e();else if(I(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else L(e)||(e=0);return e}function s(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function a(e){e=k(e)?e:L(e)?e.toString():n.hash();var t;e?(t=u.getElementById(e))?s(t):(t=i(u.getElementsByName(e)))?s(t):"top"===e&&s(null):s(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Qe(function(){r.$evalAsync(a)})}),a}]}function mt(e,t){return e||t?e?t?(Y(e)&&(e=e.join(" ")),Y(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function _t(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Lo)return n}}function vt(e){k(e)&&(e=e.split(" "));var t=be();return o(e,function(e){e.length&&(t[e]=!0)}),t}function yt(e){return w(e)?e:{}}function gt(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function bt(e){return e.replace(/#$/,"")}function wt(e,t,n,r,i){function s(){M=null,u()}function a(){v=k(),v=g(v)?null:v,B(v,Y)&&(v=Y),Y=v,y=v}function u(){var e=y;a(),b===c.url()&&e===v||(b=c.url(),y=v,o(L,function(e){e(c.url(),v)}))}var c=this,l=e.location,d=e.history,h=e.setTimeout,f=e.clearTimeout,p={},_=i(n);c.isMock=!1,c.$$completeOutstandingRequest=_.completeTask,c.$$incOutstandingRequestCount=_.incTaskCount,c.notifyWhenNoOutstandingRequests=_.notifyWhenNoPendingTasks;var v,y,b=l.href,w=t.find("base"),M=null,k=r.history?function(){try{return d.state}catch(e){}}:m;a(),c.url=function(t,n,i){if(g(i)&&(i=null),l!==e.location&&(l=e.location),d!==e.history&&(d=e.history),t){var o=y===i;if(t=Kn(t).href,b===t&&(!r.history||o))return c;var s=b&&sn(b)===sn(t);return b=t,y=i,!r.history||s&&o?(s||(M=t),n?l.replace(t):s?l.hash=gt(t):l.href=t,l.href!==t&&(M=t)):(d[n?"replaceState":"pushState"](i,"",t),a()),M&&(M=t),c}return bt(M||l.href)},c.state=function(){return v};var L=[],x=!1,Y=null;c.onUrlChange=function(t){return x||(r.history&&fi(e).on("popstate",s),fi(e).on("hashchange",s),x=!0),L.push(t),t},c.$$applicationDestroyed=function(){fi(e).off("hashchange popstate",s)},c.$$checkUrlChange=u,c.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},c.defer=function(e,t,n){var r;return t=t||0,n=n||_.DEFAULT_TASK_TYPE,_.incTaskCount(n),r=h(function(){delete p[r],_.completeTask(e,n)},t),p[r]=n,r},c.defer.cancel=function(e){if(p.hasOwnProperty(e)){var t=p[e];return delete p[e],f(e),_.completeTask(m,t),!0}return!1}}function Mt(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new wt(e,r,t,n,i)}]}function kt(){this.$get=function(){function e(e,n){function i(e){e!==h&&(f?f===e&&(f=e.n):f=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var s=0,a=d({},n,{id:e}),u=be(),c=n&&n.capacity||Number.MAX_VALUE,l=be(),h=null,f=null;return t[e]={put:function(e,t){if(!g(t)){if(c<Number.MAX_VALUE){i(l[e]||(l[e]={key:e}))}return e in u||s++,u[e]=t,s>c&&this.remove(f.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;t===h&&(h=t.p),t===f&&(f=t.n),o(t.n,t.p),delete l[e]}e in u&&(delete u[e],s--)},removeAll:function(){u=be(),s=0,l=be(),h=f=null},destroy:function(){u=null,a=null,l=null,delete t[e]},info:function(){return d({},a,{size:s})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function Lt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function xt(){}function Yt(t,n){function r(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=be();return o(e,function(e,o){if((e=e.trim())in D)return void(i[o]=D[e]);var s=e.match(r);if(!s)throw Eo("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o},s[4]&&(D[e]=i[o])}),i}function i(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Eo("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function s(e){var t=e.charAt(0);if(!t||t!==bi(t))throw Eo("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Eo("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function u(e){var t=e.require||e.controller&&e.name;return!Y(t)&&w(t)&&o(t,function(e,n){var r=e.match(L);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function c(e,t){if(e&&(!k(e)||!/[EACM]/.test(e)))throw Eo("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var l={},h="Directive",f=/^\s*directive:\s*([\w-]+)\s+(.*)$/,y=/(([\w-]+)(?::([^;]+))?;?)/,M=N("ngSrc,ngSrcset,src,srcset"),L=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,x=/^(on[a-z]+|formaction)$/,D=be();this.directive=function e(n,r){return me(n,"name"),ve(n,"directive"),k(n)?(s(n),me(r,"directiveFactory"),l.hasOwnProperty(n)||(l[n]=[],t.factory(n+h,["$injector","$exceptionHandler",function(e,t){var r=[];return o(l[n],function(i,o){try{var s=e.invoke(i);S(s)?s={compile:v(s)}:!s.compile&&s.link&&(s.compile=v(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=u(s),s.restrict=c(s.restrict,n),s.$$moduleName=i.$$moduleName,r.push(s)}catch(e){t(e)}}),r}])),l[n].push(r)):o(n,a(e)),this},this.component=function e(t,n){function r(e){function t(t){return S(t)||Y(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var r=n.template||n.templateUrl?n.template:"",s={controller:i,controllerAs:Et(n.controller)||n.controllerAs||"$ctrl",template:t(r),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return o(n,function(e,t){"$"===t.charAt(0)&&(s[t]=e)}),s}if(!k(t))return o(t,a(G(this,e))),this;var i=n.controller||function(){};return o(n,function(e,t){"$"===t.charAt(0)&&(r[t]=e,S(i)&&(i[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(e){return b(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return b(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var $=!0;this.debugInfoEnabled=function(e){return b(e)?($=e,this):$};var O=!1;this.strictComponentBindingsEnabled=function(e){return b(e)?(O=e,this):O};var j=10;this.onChangesTtl=function(e){return arguments.length?(j=e,this):j};var C=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(C=e,this):C};var P=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(P=e,this):P};var H=be();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in H&&H[r]!==n)throw Eo("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,H[r],n);return H[r]=n,this},function(){function e(e,t){o(t,function(t){H[t.toLowerCase()]=e})}e(us.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(us.CSS,["*|style"]),e(us.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(us.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(us.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,r,s,a,u,c,v,b){function D(){try{if(!--Fe)throw Oe=void 0,Eo("infchng","{0} $onChanges() iterations reached. Aborting!\n",j);c.$apply(function(){for(var e=0,t=Oe.length;e<t;++e)try{Oe[e]()}catch(e){r(e)}Oe=void 0})}finally{Fe++}}function F(e,t){if(!e)return e;if(!k(e))throw Eo("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Oi(e),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,o=/\s/.test(r)?i:/(,)/,s=r.split(o),a=Math.floor(s.length/2),u=0;u<a;u++){var c=2*u;n+=v.getTrustedMediaUrl(Oi(s[c])),n+=" "+Oi(s[c+1])}var l=Oi(s[2*u]).split(/\s/);return n+=v.getTrustedMediaUrl(Oi(l[0])),2===l.length&&(n+=" "+Oi(l[1])),n}function I(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function N(e,t,n){Ce.innerHTML="<span "+t+">";var r=Ce.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function W(e,t){try{e.addClass(t)}catch(e){}}function V(e,t,n,r,i){e instanceof fi||(e=fi(e));var o=Z(e,t,e,n,r,i);V.$$addScopeClass(e);var s=null;return function(t,n,r){if(!e)throw Eo("multilink","This element has already been linked.");me(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var a=r.parentBoundTranscludeFn,u=r.transcludeControllers,c=r.futureParentElement;a&&a.$$boundTransclude&&(a=a.$$boundTransclude),s||(s=U(c));var l;if(l="html"!==s?fi(ye(s,fi("<div></div>").append(e).html())):n?co.clone.call(e):e,u)for(var d in u)l.data("$"+d+"Controller",u[d].instance);return V.$$addScopeInfo(l,t),n&&n(l,t),o&&o(t,l,l,a),n||(e=o=null),l}}function U(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&xi.call(t).match(/SVG/)?"svg":"html"}function Z(e,t,n,r,i,o){function s(e,n,r,i){var o,s,a,u,c,l,d,h,m;if(f){var _=n.length;for(m=new Array(_),c=0;c<p.length;c+=3)d=p[c],m[d]=n[d]}else m=n;for(c=0,l=p.length;c<l;)a=m[p[c++]],o=p[c++],s=p[c++],o?(o.scope?(u=e.$new(),V.$$addScopeInfo(fi(a),u)):u=e,h=o.transcludeOnThisElement?K(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?K(e,t):null,o(s,u,a,r,h)):s&&s(e,a.childNodes,void 0,i)}for(var a,u,c,l,d,h,f,p=[],m=Y(e)||e instanceof fi,_=0;_<e.length;_++)a=new I,11===hi&&X(e,_,m),u=Q(e[_],[],a,0===_?r:void 0,i),c=u.length?oe(u,e[_],a,t,n,null,[],[],o):null,c&&c.scope&&V.$$addScopeClass(a.$$element),d=c&&c.terminal||!(l=e[_].childNodes)||!l.length?null:Z(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||d)&&(p.push(_,c,d),h=!0,f=f||c),o=null;return h?s:null}function X(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Wi)for(;;){if(!(r=o?i.nextSibling:e[t+1])||r.nodeType!==Wi)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}}function K(e,t,n){function r(r,i,o,s,a){return r||(r=e.$new(!1,a),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}var i=r.$$slots=be();for(var o in t.$$slots)t.$$slots[o]?i[o]=K(e,t.$$slots[o],n):i[o]=null;return r}function Q(e,t,n,r,i){var o,s,a,u=e.nodeType,c=n.$attr;switch(u){case Ri:s=R(e),ce(t,St(s),"E",r,i);for(var l,d,h,f,p,m=e.attributes,_=0,v=m&&m.length;_<v;_++){var g,b=!1,M=!1,L=!1,x=!1,Y=!1;l=m[_],d=l.name,f=l.value,h=St(d.toLowerCase()),(p=h.match(We))?(L="Attr"===p[1],x="Prop"===p[1],Y="On"===p[1],d=d.replace(jo,"").toLowerCase().substr(4+p[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(g=h.match(ze))&&le(g[1])&&(b=d,M=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),x||Y?(n[h]=f,c[h]=l.name,x?ke(e,t,h,d):Le(t,h,d)):(h=St(d.toLowerCase()),c[h]=d,!L&&n.hasOwnProperty(h)||(n[h]=f,tt(e,h)&&(n[h]=!0)),xe(e,t,f,h,L),ce(t,h,"A",r,i,b,M))}if("input"===s&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Pe)break;if(a=e.className,w(a)&&(a=a.animVal),k(a)&&""!==a)for(;o=y.exec(a);)h=St(o[2]),ce(t,h,"C",r,i)&&(n[h]=Oi(o[3])),a=a.substr(o.index+o[0].length);break;case Wi:ve(t,e.nodeValue);break;case zi:if(!Ae)break;ee(e,t,n,r,i)}return t.sort(pe),t}function ee(e,t,n,r,i){try{var o=f.exec(e.nodeValue);if(o){var s=St(o[1]);ce(t,s,"M",r,i)&&(n[s]=Oi(o[2]))}}catch(e){}}function te(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Eo("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===Ri&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return fi(r)}function re(e,t,n){return function(r,i,o,s,a){return i=te(i[0],t,n),e(r,i,o,s,a)}}function ie(e,t,n,r,i,o){var s;return e?V(t,n,r,i,o):function(){return s||(s=V(t,n,r,i,o),t=n=o=null),s.apply(this,arguments)}}function oe(t,n,i,s,a,u,c,l,h){function f(e,t,n,r){e&&(n&&(e=re(e,n,r)),e.require=m.require,e.directiveName=_,(x===m||m.$$isolateScope)&&(e=Te(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=re(t,n,r)),t.require=m.require,t.directiveName=_,(x===m||m.$$isolateScope)&&(t=Te(t,{isolateScope:!0})),l.push(t))}function p(e,t,s,a,u){function h(e,t,n,r){var i;if(E(e)||(r=n,n=t,t=e,e=void 0),j&&(i=y),n||(n=j?M.parent():M),!r)return u(e,t,i,n,H);var o=u.$$slots[r];if(o)return o(e,t,i,n,H);if(g(o))throw Eo("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ne(M))}var f,p,m,_,v,y,b,M,D,$;n===s?(D=i,M=i.$$element):(M=fi(s),D=new I(M,i)),v=t,x?_=t.$new(!0):k&&(v=t.$parent),u&&(b=h,b.$$boundTransclude=u,b.isSlotFilled=function(e){return!!u.$$slots[e]}),L&&(y=ae(M,D,b,L,_,t,x)),x&&(V.$$addScopeInfo(M,_,!0,!(T&&(T===x||T===x.$$originalDirective))),V.$$addScopeClass(M,!0),_.$$isolateBindings=x.$$isolateBindings,$=Ee(t,D,_,_.$$isolateBindings,x),$.removeWatches&&_.$on("$destroy",$.removeWatches));for(var O in y){var C=L[O],A=y[O],P=C.$$bindings.bindToController;A.instance=A(),M.data("$"+C.name+"Controller",A.instance),A.bindingInfo=Ee(v,D,A.instance,P,C)}for(o(L,function(e,t){var n=e.require;e.bindToController&&!Y(n)&&w(n)&&d(y[t].instance,se(t,n,M,y))}),o(y,function(e){var t=e.instance;if(S(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(S(t.$onInit))try{t.$onInit()}catch(e){r(e)}S(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),S(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),f=0,p=c.length;f<p;f++)m=c[f],Se(m,m.isolateScope?_:t,M,D,m.require&&se(m.directiveName,m.require,M,y),b);var H=t;for(x&&(x.template||null===x.templateUrl)&&(H=_),e&&e(H,s.childNodes,void 0,u),f=l.length-1;f>=0;f--)m=l[f],Se(m,m.isolateScope?_:t,M,D,m.require&&se(m.directiveName,m.require,M,y),b);o(y,function(e){var t=e.instance;S(t.$postLink)&&t.$postLink()})}h=h||{};for(var m,_,v,y,b,M=-Number.MAX_VALUE,k=h.newScopeDirective,L=h.controllerDirectives,x=h.newIsolateScopeDirective,T=h.templateDirective,D=h.nonTlbTranscludeDirective,$=!1,O=!1,j=h.hasElementTranscludeDirective,C=i.$$element=fi(n),A=u,P=s,H=!1,F=!1,N=0,W=t.length;N<W;N++){m=t[N];var z=m.$$start,q=m.$$end;if(z&&(C=te(n,z,q)),v=void 0,M>m.priority)break;if(b=m.scope,b&&(m.templateUrl||(w(b)?(_e("new/isolated scope",x||k,m,C),x=m):_e("new/isolated scope",x,m,C)),k=k||m),_=m.name,!H&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(var B,U=N+1;B=t[U++];)if(B.transclude&&!B.$$tlb||B.replace&&(B.templateUrl||B.template)){F=!0;break}H=!0}if(!m.templateUrl&&m.controller&&(L=L||be(),_e("'"+_+"' controller",L[_],m,C),L[_]=m),b=m.transclude)if($=!0,m.$$tlb||(_e("transclusion",D,m,C),D=m),"element"===b)j=!0,M=m.priority,v=C,C=i.$$element=fi(V.$$createComment(_,i[_])),n=C[0],Ye(a,J(v),n),P=ie(F,v,s,M,A&&A.name,{nonTlbTranscludeDirective:D});else{var Z=be();if(w(b)){v=e.document.createDocumentFragment();var X=be(),K=be();o(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,Z[t]=null,K[t]=n}),o(C.contents(),function(t){var n=X[St(R(t))];n?(K[n]=!0,Z[n]=Z[n]||e.document.createDocumentFragment(),Z[n].appendChild(t)):v.appendChild(t)}),o(K,function(e,t){if(!e)throw Eo("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ee in Z)if(Z[ee]){var oe=fi(Z[ee].childNodes);Z[ee]=ie(F,oe,s)}v=fi(v.childNodes)}else v=fi(He(n)).contents();C.empty(),P=ie(F,v,s,void 0,void 0,{needsNewScope:m.$$isolateScope||m.$$newScope}),P.$$slots=Z}if(m.template)if(O=!0,_e("template",T,m,C),T=m,b=S(m.template)?m.template(C,i):m.template,b=Re(b),m.replace){if(A=m,v=$e(b)?[]:$t(ye(m.templateNamespace,Oi(b))),n=v[0],1!==v.length||n.nodeType!==Ri)throw Eo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",_,"");Ye(a,C,n);var ce={$attr:{}},le=Q(n,[],ce),fe=t.splice(N+1,t.length-(N+1));(x||k)&&ue(le,x,k),t=t.concat(le).concat(fe),de(i,ce),W=t.length}else C.html(b);if(m.templateUrl)O=!0,_e("template",T,m,C),T=m,m.replace&&(A=m),p=he(t.splice(N,t.length-N),C,i,a,$&&P,c,l,{controllerDirectives:L,newScopeDirective:k!==m&&k,newIsolateScopeDirective:x,templateDirective:T,nonTlbTranscludeDirective:D}),W=t.length;else if(m.compile)try{y=m.compile(C,i,P);var pe=m.$$originalDirective||m;S(y)?f(null,G(pe,y),z,q):y&&f(G(pe,y.pre),G(pe,y.post),z,q)}catch(e){r(e,ne(C))}m.terminal&&(p.terminal=!0,M=Math.max(M,m.priority))}return p.scope=k&&!0===k.scope,p.transcludeOnThisElement=$,p.templateOnThisElement=O,p.transclude=P,h.hasElementTranscludeDirective=j,p}function se(e,t,n,r){var i;if(k(t)){var s=t.match(L),a=t.substring(s[0].length),u=s[1]||s[3],c="?"===s[2];if("^^"===u?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){var l="$"+a+"Controller";i="^^"===u&&n[0]&&n[0].nodeType===Vi?null:u?n.inheritedData(l):n.data(l)}if(!i&&!c)throw Eo("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(Y(t)){i=[];for(var d=0,h=t.length;d<h;d++)i[d]=se(e,t[d],n,r)}else w(t)&&(i={},o(t,function(t,o){i[o]=se(e,t,n,r)}));return i||null}function ae(e,t,n,r,i,o,s){var a=be();for(var c in r){var l=r[c],d={$scope:l===s||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},h=l.controller;"@"===h&&(h=t[l.name]);var f=u(h,d,!0,l.controllerAs);a[l.name]=f,e.data("$"+l.name+"Controller",f.instance)}return a}function ue(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=p(e[r],{$$isolateScope:t,$$newScope:n})}function ce(e,n,r,o,s,a,u){if(n===s)return null;var c=null;if(l.hasOwnProperty(n))for(var d,f=t.get(n+h),m=0,_=f.length;m<_;m++)if(d=f[m],(g(o)||o>d.priority)&&-1!==d.restrict.indexOf(r)){if(a&&(d=p(d,{$$start:a,$$end:u})),!d.$$bindings){var v=d.$$bindings=i(d,d.name);w(v.isolateScope)&&(d.$$isolateBindings=v.isolateScope)}e.push(d),c=d}return c}function le(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+h),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function de(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function he(e,t,n,i,a,u,c,l){var d,h,f=[],m=t[0],_=e.shift(),v=p(_,{templateUrl:null,transclude:null,replace:null,$$originalDirective:_}),y=S(_.templateUrl)?_.templateUrl(t,n):_.templateUrl,g=_.templateNamespace;return t.empty(),s(y).then(function(r){var s,p,b,M;if(r=Re(r),_.replace){if(b=$e(r)?[]:$t(ye(g,Oi(r))),s=b[0],1!==b.length||s.nodeType!==Ri)throw Eo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",_.name,y);p={$attr:{}},Ye(i,t,s);var k=Q(s,[],p);w(_.scope)&&ue(k,!0),e=k.concat(e),de(n,p)}else s=m,t.html(r);for(e.unshift(v),d=oe(e,s,n,a,t,_,u,c,l),o(i,function(e,n){e===s&&(i[n]=t[0])}),h=Z(t[0].childNodes,a);f.length;){var L=f.shift(),x=f.shift(),Y=f.shift(),T=f.shift(),S=t[0];if(!L.$$destroyed){if(x!==m){var D=x.className;l.hasElementTranscludeDirective&&_.replace||(S=He(s)),Ye(Y,fi(x),S),W(fi(S),D)}M=d.transcludeOnThisElement?K(L,d.transclude,T):T,d(h,L,S,i,M)}}f=null}).catch(function(e){T(e)&&r(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(f?f.push(t,n,r,o):(d.transcludeOnThisElement&&(o=K(t,d.transclude,i)),d(h,t,n,r,o)))}}function pe(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function _e(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Eo("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,ne(r))}function ve(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&V.$$addBindingClass(t),function(e,t){var i=t.parent();n||V.$$addBindingClass(i),V.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function ye(t,n){switch(t=bi(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ge(e,t){return"srcdoc"===t?v.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?v.RESOURCE_URL:v.MEDIA_URL:"xlinkHref"===t?"image"===e?v.MEDIA_URL:"a"===e?v.URL:v.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?v.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:v.URL}function we(e,t){var n=t.toLowerCase();return H[e+"|"+n]||H["*|"+n]}function Me(e){return F(v.valueOf(e),"ng-prop-srcset")}function ke(e,t,n,r){if(x.test(r))throw Eo("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=R(e),o=we(i,r),s=_;"srcset"!==r||"img"!==i&&"source"!==i?o&&(s=v.getTrusted.bind(v,o)):s=Me,t.push({priority:100,compile:function(e,t){var i=a(t[n]),o=a(t[n],function(e){return v.valueOf(e)});return{pre:function(e,t){function n(){var n=i(e);t[0][r]=s(n)}n(),e.$watch(o,n)}}}})}function Le(e,t,n){e.push(ii(a,c,r,t,n,!1))}function xe(e,t,r,i,o){var s=R(e),a=ge(s,i),u=!o,c=M[i]||o,l=n(r,u,a,c);if(l){if("multiple"===i&&"select"===s)throw Eo("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ne(e));if(x.test(i))throw Eo("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=be()),u=o[i];u!==r&&(l=u&&n(u,!0,a,c),r=u),l&&(o[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function Ye(t,n,r){var i,o,s=n[0],a=n.length,u=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===s){t[i++]=r;for(var c=i,l=c+a-1,d=t.length;c<d;c++,l++)l<d?t[c]=t[l]:delete t[c];t.length-=a-1,t.context===s&&(t.context=r);break}u&&u.replaceChild(r,s);var h=e.document.createDocumentFragment();for(i=0;i<a;i++)h.appendChild(n[i]);for(fi.hasData(s)&&(fi.data(r,fi.data(s)),fi(s).off("$destroy")),fi.cleanData(h.querySelectorAll("*")),i=1;i<a;i++)delete n[i];n[0]=r,n.length=1}function Te(e,t){return d(function(){return e.apply(null,arguments)},e,t)}function Se(e,t,n,i,o,s){try{e(t,n,i,o,s)}catch(e){r(e,ne(n))}}function De(e,t){if(O)throw Eo("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Ee(e,t,r,i,s){function u(t,n,i){S(r.$onChanges)&&!q(n,i)&&(Oe||(e.$$postDigest(D),Oe=[]),l||(l={},Oe.push(c)),l[t]&&(i=l[t].previousValue),l[t]=new Tt(i,n))}function c(){r.$onChanges(l),l=void 0}var l,d=[],h={};return o(i,function(i,o){var c,l,f,p,_,v=i.attrName,y=i.optional,g=i.mode;switch(g){case"@":y||gi.call(t,v)||(De(v,s.name),r[o]=t[v]=void 0),_=t.$observe(v,function(e){if(k(e)||A(e)){var t=r[o];u(o,e,t),r[o]=e}}),t.$$observers[v].$$scope=e,c=t[v],k(c)?r[o]=n(c)(e):A(c)&&(r[o]=c),h[o]=new Tt(Oo,r[o]),d.push(_);break;case"=":if(!gi.call(t,v)){if(y)break;De(v,s.name),t[v]=void 0}if(y&&!t[v])break;l=a(t[v]),p=l.literal?B:q,f=l.assign||function(){throw c=r[o]=l(e),Eo("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,s.name)},c=r[o]=l(e);var b=function(t){return p(t,r[o])||(p(t,c)?f(e,t=r[o]):r[o]=t),c=t};b.$stateful=!0,_=i.collection?e.$watchCollection(t[v],b):e.$watch(a(t[v],b),null,l.literal),d.push(_);break;case"<":if(!gi.call(t,v)){if(y)break;De(v,s.name),t[v]=void 0}if(y&&!t[v])break;l=a(t[v]);var w=l.literal,M=r[o]=l(e);h[o]=new Tt(Oo,r[o]),_=e[i.collection?"$watchCollection":"$watch"](l,function(e,t){if(t===e){if(t===M||w&&B(t,M))return;t=M}u(o,e,t),r[o]=e}),d.push(_);break;case"&":if(y||gi.call(t,v)||De(v,s.name),(l=t.hasOwnProperty(v)?a(t[v]):m)===m&&y)break;r[o]=function(t){return l(e,t)}}}),{initialChanges:h,removeWatches:d.length&&function(){for(var e=0,t=d.length;e<t;++e)d[e]()}}}var Oe,je=/^\w/,Ce=e.document.createElement("div"),Ae=C,Pe=P,Fe=j;I.prototype={$normalize:St,$addClass:function(e){e&&e.length>0&&b.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&b.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Dt(e,t);n&&n.length&&b.addClass(this.$$element,n);var r=Dt(t,e);r&&r.length&&b.removeClass(this.$$element,r)},$set:function(e,t,n,i){var s,a=this.$$element[0],u=tt(a,e),c=nt(e),l=e;u?(this.$$element.prop(e,t),i=u):c&&(this[c]=t,l=c),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=fe(e,"-")),s=R(this.$$element),"img"===s&&"srcset"===e&&(this[e]=t=F(t,"$set('srcset', value)")),!1!==n&&(null===t||g(t)?this.$$element.removeAttr(i):je.test(i)?u&&!1===t?this.$$element.removeAttr(i):this.$$element.attr(i,t):N(this.$$element[0],i,t));var d=this.$$observers;d&&o(d[l],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=be()),i=r[e]||(r[e]=[]);return i.push(t),c.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||g(n[e])||t(n[e])}),function(){z(i,t)}}};var Ie=n.startSymbol(),Ne=n.endSymbol(),Re="{{"===Ie&&"}}"===Ne?_:function(e){return e.replace(/\{\{/g,Ie).replace(/}}/g,Ne)},We=/^ng(Attr|Prop|On)([A-Z].*)$/,ze=/^(.+)Start$/;return V.$$addBindingInfo=$?function(e,t){var n=e.data("$binding")||[];Y(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:m,V.$$addBindingClass=$?function(e){W(e,"ng-binding")}:m,V.$$addScopeInfo=$?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:m,V.$$addScopeClass=$?function(e,t){W(e,t?"ng-isolate-scope":"ng-scope")}:m,V.$$createComment=function(t,n){var r="";return $&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},V}]}function Tt(e,t){this.previousValue=e,this.currentValue=t}function St(e){return e.replace(jo,"").replace(Co,function(e,t,n){return n?t.toUpperCase():t})}function Dt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s===i[a])continue e;n+=(n.length>0?" ":"")+s}return n}function $t(e){e=fi(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===zi||n.nodeType===Wi&&""===n.nodeValue.trim())&&ki.call(e,t,1)}return e}function Et(e,t){if(t&&k(t))return t;if(k(e)){var n=Po.exec(e);if(n)return n[3]}}function Ot(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){ve(t,"controller"),w(t)?d(e,t):e[t]=n},this.$get=["$injector",function(t){function n(e,t,n,i){if(!e||!w(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,i,o,s){var a,u,c,l;if(o=!0===o,s&&k(s)&&(l=s),k(r)){if(!(u=r.match(Po)))throw Ao("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(c=u[1],l=l||u[3],!(r=e.hasOwnProperty(c)?e[c]:ye(i.$scope,c,!0)))throw Ao("ctrlreg","The controller with the name '{0}' is not registered.",c);_e(r,c,!0)}if(o){var h=(Y(r)?r[r.length-1]:r).prototype;return a=Object.create(h||null),l&&n(i,l,a,c||r.name),d(function(){var e=t.invoke(r,a,i,c);return e!==a&&(w(e)||S(e))&&(a=e,l&&n(i,l,a,c||r.name)),a},{instance:a,identifier:l})}return a=t.instantiate(r,i,c),l&&n(i,l,a,c||r.name),a}}]}function jt(){this.$get=["$window",function(e){return fi(e.document)}]}function Ct(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function At(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Pt(e){return w(e)?x(e)?e.toISOString():X(e):e}function Ht(){this.$get=function(){return function(e){if(!e)return"";var t=[];return s(e,function(e,n){null===e||g(e)||S(e)||(Y(e)?o(e,function(e){t.push(ae(n)+"="+ae(Pt(e)))}):t.push(ae(n)+"="+ae(Pt(e))))}),t.join("&")}}}function Ft(){this.$get=function(){return function(e){function t(e,r,i){Y(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!x(e)?s(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):(S(e)&&(e=e()),n.push(ae(r)+"="+(null==e?"":ae(Pt(e)))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function It(e,t){if(k(e)){var n=e.replace(Wo,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf(Fo);if(i||Nt(n))try{e=K(n)}catch(t){if(!i)return e;throw zo("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function Nt(e){var t=e.match(No);return t&&Ro[t[0]].test(e)}function Rt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=be();return k(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(bi(Oi(e.substr(0,n))),Oi(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(bi(n),Oi(e))}),r}function Wt(e){var t;return function(n){if(t||(t=Rt(e)),n){var r=t[bi(n)];return void 0===r&&(r=null),r}return t}}function zt(e,t,n,r){return S(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Vt(e){return 200<=e&&e<300}function qt(){var e=this.defaults={transformResponse:[It],transformRequest:[function(e){return!w(e)||O(e)||C(e)||j(e)?e:X(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ke(Io),put:ke(Io),patch:ke(Io)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var n=this.interceptors=[],i=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,a,u,c,l,h,f,p){function _(t){function n(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function i(){s.$$completeOutstandingRequest(m,"$http")}function a(e,t){var n,r={};return o(e,function(e,i){S(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}function u(t){var n=t.headers,r=zt(t.data,Wt(n),void 0,t.transformRequest);return g(r)&&o(n,function(e,t){"content-type"===bi(t)&&delete n[t]}),g(t.withCredentials)&&!g(e.withCredentials)&&(t.withCredentials=e.withCredentials),v(t,r).then(c,c)}function c(e){var t=d({},e);return t.data=zt(e.data,e.headers,e.status,l.transformResponse),Vt(e.status)?t:h.reject(t)}if(!w(t))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",t);if(!k(p.valueOf(t.url)))throw r("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",t.url);var l=d({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},t);l.headers=function(t){var n,r,i,o=e.headers,s=d({},t.headers);o=d({},o.common,o[bi(t.method)]);e:for(n in o){r=bi(n);for(i in s)if(bi(i)===r)continue e;s[n]=o[n]}return a(s,ke(t))}(t),l.method=wi(l.method),l.paramSerializer=k(l.paramSerializer)?f.get(l.paramSerializer):l.paramSerializer,s.$$incOutstandingRequestCount("$http");var _=[],y=[],b=h.resolve(l);return o(x,function(e){(e.request||e.requestError)&&_.unshift(e.request,e.requestError),(e.response||e.responseError)&&y.push(e.response,e.responseError)}),b=n(b,_),b=b.then(u),b=n(b,y),b=b.finally(i)}function v(n,r){function i(e){if(e){var n={};return o(e,function(e,r){n[r]=function(n){function r(){e(n)}t?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),n}}function s(e,n,r,i,o){function s(){c(n,e,r,i,o)}m&&(Vt(e)?m.put(E,[e,n,Rt(r),i,o]):m.remove(E)),t?l.$applyAsync(s):(s(),l.$$phase||l.$apply())}function c(e,t,r,i,o){t=t>=-1?t:0,(Vt(t)?x.resolve:x.reject)({data:e,status:t,headers:Wt(r),config:n,statusText:i,xhrStatus:o})}function d(e){c(e.data,e.status,ke(e.headers()),e.statusText,e.xhrStatus)}function f(){var e=_.pendingRequests.indexOf(n);-1!==e&&_.pendingRequests.splice(e,1)}var m,v,x=h.defer(),S=x.promise,D=n.headers,$="jsonp"===bi(n.method),E=n.url;if($?E=p.getTrustedResourceUrl(E):k(E)||(E=p.valueOf(E)),E=y(E,n.paramSerializer(n.params)),$&&(E=M(E,n.jsonpCallbackParam)),_.pendingRequests.push(n),S.then(f,f),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(m=w(n.cache)?n.cache:w(e.cache)?e.cache:L),m&&(v=m.get(E),b(v)?P(v)?v.then(d,d):Y(v)?c(v[1],v[0],ke(v[2]),v[3],v[4]):c(v,200,{},"OK","complete"):m.put(E,S)),g(v)){var O=T(n.url)?u()[n.xsrfCookieName||e.xsrfCookieName]:void 0;O&&(D[n.xsrfHeaderName||e.xsrfHeaderName]=O),a(n.method,E,r,s,D,n.timeout,n.withCredentials,n.responseType,i(n.eventHandlers),i(n.uploadEventHandlers))}return S}function y(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function M(e,t){var n=e.split("?");if(n.length>2)throw zo("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return o(ie(n[1]),function(n,r){if("JSON_CALLBACK"===n)throw zo("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw zo("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)}),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var L=c("$http");e.paramSerializer=k(e.paramSerializer)?f.get(e.paramSerializer):e.paramSerializer;var x=[];o(n,function(e){x.unshift(k(e)?f.get(e):f.invoke(e))});var T=tr(i);return _.pendingRequests=[],function(e){o(arguments,function(e){_[e]=function(t,n){return _(d({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){_[e]=function(t,n,r){return _(d({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),_.defaults=e,_}]}function Bt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Ut(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Jt(e,r,e.defer,t,n[0])}]}function Jt(e,t,n,r,i){function s(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=e,o.async=!0,s=function(e){o.removeEventListener("load",s),o.removeEventListener("error",s),i.body.removeChild(o),o=null;var a=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,a="error"===e.type?404:200),n&&n(a,u)},o.addEventListener("load",s),o.addEventListener("error",s),i.body.appendChild(o),s}return function(i,a,u,c,l,d,h,f,p,m){function _(e){k="timeout"===e,w&&w(),M&&M.abort()}function v(e,t,r,i,o,s){b(T)&&n.cancel(T),w=M=null,e(t,r,i,o,s)}if(a=a||e.url(),"jsonp"===bi(i))var y=r.createCallback(a),w=s(a,y,function(e,t){var n=200===e&&r.getResponse(y);v(c,e,n,"",t,"complete"),r.removeCallback(y)});else{var M=t(i,a),k=!1;M.open(i,a,!0),o(l,function(e,t){b(e)&&M.setRequestHeader(t,e)}),M.onload=function(){var e=M.statusText||"",t="response"in M?M.response:M.responseText,n=1223===M.status?204:M.status;0===n&&(n=t?200:"file"===Kn(a).protocol?404:0),v(c,n,t,M.getAllResponseHeaders(),e,"complete")};var L=function(){v(c,-1,null,null,"","error")},x=function(){v(c,-1,null,null,"",k?"timeout":"abort")},Y=function(){v(c,-1,null,null,"","timeout")};if(M.onerror=L,M.ontimeout=Y,M.onabort=x,o(p,function(e,t){M.addEventListener(t,e)}),o(m,function(e,t){M.upload.addEventListener(t,e)}),h&&(M.withCredentials=!0),f)try{M.responseType=f}catch(e){if("json"!==f)throw e}M.send(g(u)?null:u)}if(d>0)var T=n(function(){_("timeout")},d);else P(d)&&d.then(function(){_(b(d.$$timeoutId)?"timeout":"abort")})}}function Gt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function s(n){return n.replace(h,e).replace(f,t)}function a(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,h,f){function p(e){try{return e=h&&!m?i.getTrusted(h,e):i.valueOf(e),f&&!b(e)?e:we(e)}catch(e){r(Vo.interr(o,e))}}var m=h===i.URL||h===i.MEDIA_URL;if(!o.length||-1===o.indexOf(e)){if(u)return;var _=s(o);m&&(_=i.getTrusted(h,_));var y=v(_);return y.exp=o,y.expressions=[],y.$$watchDelegate=a,y}f=!!f;for(var w,M,k,L,x,Y=0,T=[],S=o.length,D=[],$=[];Y<S;){if(-1===(w=o.indexOf(e,Y))||-1===(M=o.indexOf(t,w+c))){Y!==S&&D.push(s(o.substring(Y)));break}Y!==w&&D.push(s(o.substring(Y,w))),L=o.substring(w+c,M),T.push(L),Y=M+l,$.push(D.length),D.push("")}x=1===D.length&&1===$.length;var E=m&&x?void 0:p;if(k=T.map(function(e){return n(e,E)}),!u||T.length){var O=function(e){for(var t=0,n=T.length;t<n;t++){if(f&&g(e[t]))return;D[$[t]]=e[t]}return m?i.getTrusted(h,x?D[0]:D.join("")):(h&&D.length>1&&Vo.throwNoconcat(o),D.join(""))};return d(function(e){var t=0,n=T.length,i=new Array(n);try{for(;t<n;t++)i[t]=k[t](e);return O(i)}catch(e){r(Vo.interr(o,e))}},{exp:o,expressions:T,$$watchDelegate:function(e,t){var n;return e.$watchGroup(k,function(r,i){var o=O(r);t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,l=t.length,h=new RegExp(e.replace(/./g,o),"g"),f=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function Zt(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o},i=function(e){t.clearInterval(e),delete n[e]},o=e(r,i);return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw qo("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,r=n[t];return Hn(r.promise),r.reject("canceled"),i(t),!0},o}]}function Xt(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(s,a,u,c){function l(){h?s.apply(null,f):s(p)}function d(){m?e.defer(l):r.$evalAsync(l),_.notify(p++),u>0&&p>=u&&(_.resolve(p),o(v.$$intervalId)),m||r.$apply()}var h=arguments.length>4,f=h?J(arguments,4):[],p=0,m=b(c)&&!c,_=(m?n:t).defer(),v=_.promise;return u=b(u)?u:0,v.$$intervalId=i(d,a,_,m),v}}}]}function Kt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=se(t[n].replace(/%2F/g,"/"));return t.join("/")}function Qt(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}function en(e,t,n){var r=oe(t),i=n?"#"+se(n):"";return Kt(e)+(r?"?"+r:"")+i}function tn(e,t){var n=Kn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||Jo[n.protocol]||null}function nn(e,t,n){if(Zo.test(e))throw Go("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=Kn(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=Qt(o,n),t.$$search=ie(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function rn(e,t){return e.slice(0,t.length)===t}function on(e,t){if(rn(t,e))return t.substr(e.length)}function sn(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function an(e){return e.substr(0,sn(e).lastIndexOf("/")+1)}function un(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function cn(e,t,n){this.$$html5=!0,n=n||"",tn(e,this),this.$$parse=function(e){var n=on(t,e);if(!k(n))throw Go("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);nn(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s,a;return b(o=on(e,r))?(s=o,a=n&&b(o=on(n,o))?t+(on("/",o)||o):e+s):b(o=on(t,r))?a=t+o:t===r+"/"&&(a=t),a&&this.$$parse(a),!!a}}function ln(e,t,n){tn(e,this),this.$$parse=function(r){var i,o=on(e,r)||on(t,r);g(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",g(o)&&(e=r,this.replace())):(i=on(n,o),g(i)&&(i=o)),nn(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return rn(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return sn(e)===sn(t)&&(this.$$parse(t),!0)}}function dn(e,t,n){this.$$html5=!0,ln.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s;return e===sn(r)?o=r:(s=on(t,r))?o=e+n+s:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$normalizeUrl=function(t){return e+n+t}}function hn(e){return function(){return this[e]}}function fn(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function pn(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return A(e)?(t.enabled=e,this):w(e)?(A(e.enabled)&&(t.enabled=e.enabled),A(e.requireBase)&&(t.requireBase=e.requireBase),(A(e.rewriteLinks)||k(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(e,t){return e===t||Kn(e).href===Kn(t).href}function u(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function c(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,d,h,f=r.baseHref(),p=r.url();if(t.enabled){if(!f&&t.requireBase)throw Go("nobase","$location in HTML5 mode requires a <base> tag to be present!");h=un(p)+(f||"/"),d=i.history?cn:dn}else h=sn(p),d=ln;var m=an(h);l=new d(h,m,"#"+e),l.$$parseLinkUrl(p,p),l.$$state=r.state();var _=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=fi(e.target);"a"!==R(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!k(i)||!g(s.attr(i))){var a=s.prop("href"),u=s.attr("href")||s.attr("xlink:href");w(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Kn(a.animVal).href),_.test(a)||!a||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(a,u)&&(e.preventDefault(),l.absUrl()!==r.url()&&n.$apply())}}}),l.absUrl()!==p&&r.url(l.absUrl(),!0);var v=!0;return r.onUrlChange(function(e,t){if(!rn(e,m))return void(s.location.href=e);n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,u(i,!1,o)):(v=!1,c(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=r.url(),t=l.absUrl(),o=r.state(),s=l.$$replace,d=!a(e,t)||l.$$html5&&i.history&&o!==l.$$state;(v||d)&&(v=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(d&&u(t,s,o===l.$$state?null:l.$$state),c(e,o)))}))}l.$$replace=!1}),l}]}function mn(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return T(e)&&(e.stack&&s?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||m;return function(){var e=[];return o(arguments,function(t){e.push(r(t))}),Function.prototype.apply.call(i,t,e)}}var s=hi||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function _n(e){return e+""}function vn(e,t){return void 0!==e?e:t}function yn(e,t){return void 0===e?t:void 0===t?e:e+t}function gn(e,t){return!e(t).$stateful}function bn(e,t){switch(e.type){case rs.MemberExpression:if(e.computed)return!1;break;case rs.UnaryExpression:return is;case rs.BinaryExpression:return"+"!==e.operator&&is;case rs.CallExpression:return!1}return void 0===t?os:t}function wn(e,t,n){var r,i,s,a=e.isPure=bn(e,n);switch(e.type){case rs.Program:r=!0,o(e.body,function(e){wn(e.expression,t,a),r=r&&e.expression.constant}),e.constant=r;break;case rs.Literal:e.constant=!0,e.toWatch=[];break;case rs.UnaryExpression:wn(e.argument,t,a),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case rs.BinaryExpression:wn(e.left,t,a),wn(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case rs.LogicalExpression:wn(e.left,t,a),wn(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case rs.ConditionalExpression:wn(e.test,t,a),wn(e.alternate,t,a),wn(e.consequent,t,a),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case rs.Identifier:e.constant=!1,e.toWatch=[e];break;case rs.MemberExpression:wn(e.object,t,a),e.computed&&wn(e.property,t,a),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case rs.CallExpression:s=!!e.filter&&gn(t,e.callee.name),r=s,i=[],o(e.arguments,function(e){wn(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=s?i:[e];break;case rs.AssignmentExpression:wn(e.left,t,a),wn(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case rs.ArrayExpression:r=!0,i=[],o(e.elements,function(e){wn(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case rs.ObjectExpression:r=!0,i=[],o(e.properties,function(e){wn(e.value,t,a),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(wn(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case rs.ThisExpression:case rs.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Mn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function kn(e){return e.type===rs.Identifier||e.type===rs.MemberExpression}function Ln(e){if(1===e.body.length&&kn(e.body[0].expression))return{type:rs.AssignmentExpression,left:e.body[0].expression,right:{type:rs.NGValueParameter},operator:"="}}function xn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===rs.Literal||e.body[0].expression.type===rs.ArrayExpression||e.body[0].expression.type===rs.ObjectExpression)}function Yn(e){return e.constant}function Tn(e){this.$filter=e}function Sn(e){this.$filter=e}function Dn(e,t,n){this.ast=new rs(e,n),this.astCompiler=n.csp?new Sn(t):new Tn(t)}function $n(e){return S(e.valueOf)?e.valueOf():Qo.call(e)}function En(){var e,t,n=be(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function s(e,t){var r,o;switch(typeof e){case"string":if(e=e.trim(),o=e,!(r=n[o])){r=new Dn(new ns(g),i,g).parse(e),n[o]=f(r)}return v(r,t);case"function":return v(e,t);default:return v(m,t)}}function a(e){return new Dn(new ns(g),i,g).getAst(e).ast}function u(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=$n(e))&&!n)&&(e===t||e!==e&&t!==t)}function c(e,t,n,r,i){var o,s=r.inputs;if(1===s.length){var a=u;return s=s[0],e.$watch(function(e){var t=s(e);return u(t,a,s.isPure)||(o=r(e,void 0,void 0,[t]),a=t&&$n(t)),o},t,n,i)}for(var c=[],l=[],d=0,h=s.length;d<h;d++)c[d]=u,l[d]=null;return e.$watch(function(e){for(var t=!1,n=0,i=s.length;n<i;n++){var a=s[n](e);(t||(t=!u(a,c[n],s[n].isPure)))&&(l[n]=a,c[n]=a&&$n(a))}return t&&(o=r(e,void 0,void 0,l)),o},t,n,i)}function l(e,t,n,r,i){function o(){c(u)&&a()}function s(e,t,n,r){return u=p&&r?r[0]:l(e,t,n,r),c(u)&&e.$$postDigest(o),h(u)}var a,u,c=r.literal?d:b,l=r.$$intercepted||r,h=r.$$interceptor||_,p=r.inputs&&!l.inputs;return s.literal=r.literal,s.constant=r.constant,s.inputs=r.inputs,f(s),a=e.$watch(s,t,n,i)}function d(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}function h(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function f(e){return e.constant?e.$$watchDelegate=h:e.oneTime?e.$$watchDelegate=l:e.inputs&&(e.$$watchDelegate=c),e}function p(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}function v(e,t){if(!t)return e;e.$$interceptor&&(t=p(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,s){var a=n&&s?s[0]:e(r,i,o,s);return t(a)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map(function(e){return e.isPure===os?function(t){return e(t)}:e}))),f(r)}var y=Ci().noUnsafeEval,g={csp:y,literals:V(r),isIdentifierStart:S(e)&&e,isIdentifierContinue:S(t)&&t};return s.$$getAst=a,s}]}function On(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Cn(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function jn(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Cn(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Cn(e,t,n){function i(){return new s}function s(){var e=this.promise=new a;this.resolve=function(t){h(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){_(e,t)}}function a(){this.$$state={status:0}}function u(r){var i,o,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var a=0,u=s.length;a<u;++a){Pn(r),o=s[a][0],i=s[a][r.status];try{S(i)?h(o,i(r.value)):1===r.status?h(o,r.value):p(o,r.value)}catch(e){p(o,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--D,n&&0===D&&e(c)}}function c(){for(;!D&&$.length;){var e=$.shift();if(!An(e)){Pn(e);var n="Possibly unhandled rejection: "+xe(e.value);T(e.value)?t(e.value,n):t(n)}}}function l(t){!n||t.pending||2!==t.status||An(t)||(0===D&&0===$.length&&e(c),$.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++D,e(function(){u(t)}))}function h(e,t){e.$$state.status||(t===e?m(e,x("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):f(e,t))}function f(e,t){function n(t){s||(s=!0,f(e,t))}function r(t){s||(s=!0,m(e,t))}function i(t){_(e,t)}var o,s=!1;try{(w(t)||S(t))&&(o=t.then),S(o)?(e.$$state.status=-1,o.call(t,n,r,i)):(e.$$state.value=t,e.$$state.status=1,l(e.$$state))}catch(e){r(e)}}function p(e,t){e.$$state.status||m(e,t)}function m(e,t){e.$$state.value=t,e.$$state.status=2,l(e.$$state)}function _(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e(function(){for(var e,n,o=0,s=i.length;o<s;o++){n=i[o][0],e=i[o][3];try{_(n,S(e)?e(r):r)}catch(e){t(e)}}})}function v(e){var t=new a;return p(t,e),t}function y(e,t,n){var r=null;try{S(n)&&(r=n())}catch(e){return v(e)}return P(r)?r.then(function(){return t(e)},v):t(e)}function b(e,t,n,r){var i=new a;return h(i,e),i.then(t,n,r)}function M(e){var t=new a,n=0,r=Y(e)?[]:{};return o(e,function(e,i){n++,b(e).then(function(e){r[i]=e,--n||h(t,r)},function(e){p(t,e)})}),0===n&&h(t,r),t}function k(e){var t=i();return o(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise}function L(e){function t(e){h(r,e)}function n(e){p(r,e)}if(!S(e))throw x("norslvr","Expected resolverFn, got '{0}'",e);var r=new a;return e(t,n),r}var x=r("$q",TypeError),D=0,$=[];d(a.prototype,{then:function(e,t,n){if(g(e)&&g(t)&&g(n))return this;var r=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&l(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return y(t,E,e)},function(t){return y(t,v,e)},t)}});var E=b;return L.prototype=a.prototype,L.defer=i,L.reject=v,L.when=b,L.resolve=E,L.all=M,L.race=k,L}function An(e){return!!e.pur}function Pn(e){e.pur=!0}function Hn(e){e.$$state&&Pn(e.$$state)}function Fn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function In(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}var t=10,n=r("$rootScope"),s=null,a=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(r,c,l){function d(e){e.currentScope.$$destroyed=!0}function h(e){9===hi&&(e.$$childHead&&h(e.$$childHead),e.$$nextSibling&&h(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function f(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(L.$$phase)throw n("inprog","{0} already in progress",L.$$phase);L.$$phase=e}function _(){L.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function y(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function b(){}function M(){for(;T.length;)try{T.shift()()}catch(e){r(e)}a=null}function k(){null===a&&(a=l.defer(function(){L.$apply(M)},null,"$applyAsync"))}f.prototype={constructor:f,$new:function(t,n){var r;return n=n||this,t?(r=new f,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",d),r},$watch:function(e,t,n,r){var i=c(e),o=S(t)?t:m;if(i.$$watchDelegate)return i.$$watchDelegate(this,o,n,i,e);var a=this,u=a.$$watchers,l={fn:o,last:b,get:i,exp:r||e,eq:!!n};return s=null,u||(u=a.$$watchers=[],u.$$digestWatchIndex=-1),u.unshift(l),u.$$digestWatchIndex++,v(this,1),function(){var e=z(u,l);e>=0&&(v(a,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),s=null}},$watchGroup:function(e,t){function n(){u=!1;try{c?(c=!1,t(i,i,a)):t(i,r,a)}finally{for(var n=0;n<e.length;n++)r[n]=i[n]}}var r=new Array(e.length),i=new Array(e.length),s=[],a=this,u=!1,c=!0;if(!e.length){var l=!0;return a.$evalAsync(function(){l&&t(i,i,a)}),function(){l=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var r=a.$watch(e,function(e){i[t]=e,u||(u=!0,a.$evalAsync(n))});s.push(r)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,a;if(!g(o)){if(w(o))if(i(o)){s!==f&&(s=f,_=s.length=0,d++),t=o.length,_!==t&&(d++,s.length=_=t);for(var u=0;u<t;u++)a=s[u],r=o[u],a!==a&&r!==r||a===r||(d++,s[u]=r)}else{s!==p&&(s=p={},_=0,d++),t=0;for(n in o)gi.call(o,n)&&(t++,r=o[n],a=s[n],n in s?a!==a&&r!==r||a===r||(d++,s[n]=r):(_++,s[n]=r,d++));if(_>t){d++;for(n in s)gi.call(o,n)||(_--,delete s[n])}}else s!==o&&(s=o,d++);return d}}function r(){if(m?(m=!1,t(o,o,u)):t(o,a,u),l)if(w(o))if(i(o)){a=new Array(o.length);for(var e=0;e<o.length;e++)a[e]=o[e]}else{a={};for(var n in o)gi.call(o,n)&&(a[n]=o[n])}else a=o}n.$$pure=c(e).literal,n.$stateful=!n.$$pure;var o,s,a,u=this,l=t.length>1,d=0,h=c(e,n),f=[],p={},m=!0,_=0;return this.$watch(h,r)},$digest:function(){var e,i,o,u,c,d,h,f,m,v,y,g=t,w=x.length?L:this,k=[];p("$digest"),l.$$checkUrlChange(),this===L&&null!==a&&(l.defer.cancel(a),M()),s=null;do{h=!1,m=w;for(var T=0;T<x.length;T++){try{y=x[T],u=y.fn,u(y.scope,y.locals)}catch(e){r(e)}s=null}x.length=0;e:do{if(d=!m.$$suspended&&m.$$watchers)for(d.$$digestWatchIndex=d.length;d.$$digestWatchIndex--;)try{if(e=d[d.$$digestWatchIndex])if(c=e.get,(i=c(m))===(o=e.last)||(e.eq?B(i,o):$i(i)&&$i(o))){if(e===s){h=!1;break e}}else h=!0,s=e,e.last=e.eq?V(i,null):i,u=e.fn,u(i,o===b?i:o,m),g<5&&(v=4-g,k[v]||(k[v]=[]),k[v].push({msg:S(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(e){r(e)}if(!(f=!m.$$suspended&&m.$$watchersCount&&m.$$childHead||m!==w&&m.$$nextSibling))for(;m!==w&&!(f=m.$$nextSibling);)m=m.$parent}while(m=f);if((h||x.length)&&!g--)throw _(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,k)}while(h||x.length);for(_();D<Y.length;)try{Y[D++]()}catch(e){r(e)}Y.length=D=0,l.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===L&&l.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)y(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$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=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(e,t){return c(e)(this,t)},$evalAsync:function(e,t){L.$$phase||x.length||l.defer(function(){x.length&&L.$digest()},null,"$evalAsync"),x.push({scope:this,fn:c(e),locals:t})},$$postDigest:function(e){Y.push(e)},$apply:function(e){try{p("$apply");try{return this.$eval(e)}finally{_()}}catch(e){r(e)}finally{try{L.$digest()}catch(e){throw r(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&T.push(t),e=c(e),k()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],y(i,1,e))}},$emit:function(e,t){var n,i,o,s=[],a=this,u=!1,c={name:e,targetScope:a,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=U([c],arguments,1);do{for(n=a.$$listeners[e]||s,c.currentScope=a,i=0,o=n.length;i<o;i++)if(n[i])try{n[i].apply(null,l)}catch(e){r(e)}else n.splice(i,1),i--,o--;if(u)break;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,i=n,o=n,s={name:e,targetScope:n,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return s;for(var a,u,c,l=U([s],arguments,1);i=o;){for(s.currentScope=i,a=i.$$listeners[e]||[],u=0,c=a.length;u<c;u++)if(a[u])try{a[u].apply(null,l)}catch(e){r(e)}else a.splice(u,1),u--,c--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==n&&i.$$nextSibling))for(;i!==n&&!(o=i.$$nextSibling);)i=i.$parent}return s.currentScope=null,s}};var L=new f,x=L.$$asyncQueue=[],Y=L.$$postDigestQueue=[],T=L.$$applyAsyncQueue=[],D=0;return L}]}function Nn(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=Kn(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}function Rn(e){return e.replace(cs,Se)}function Wn(e){if("self"===e)return e;if(k(e)){if(e.indexOf("***")>-1)throw as("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=ji(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(D(e))return new RegExp("^"+e.source+"$");throw as("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function zn(e){var t=[];return b(e)&&o(e,function(e){t.push(Wn(e))}),t}function Vn(){this.SCE_CONTEXTS=us;var e=["self"],t=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=zn(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(t=zn(e)),t},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(n,r){function i(e,t){return"self"===e?Qn(t)||er(t):!!e.exec(t.href)}function o(n){var r,o,s=Kn(n.toString()),a=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],s)){a=!0;break}if(a)for(r=0,o=t.length;r<o;r++)if(i(t[r],s)){a=!1;break}return a}function s(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=h.hasOwnProperty(e)?h[e]:null;if(!n)throw as("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||g(t)||""===t)return t;if("string"!=typeof t)throw as("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function u(e){return e instanceof d?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||g(t)||""===t)return t;var n=h.hasOwnProperty(e)?h[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(S(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===us.MEDIA_URL||e===us.URL)return r(t.toString(),e===us.MEDIA_URL);if(e===us.RESOURCE_URL){if(o(t))return t;throw as("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===us.HTML)return l(t);throw as("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw as("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var d=s(),h={};return h[us.HTML]=s(d),h[us.CSS]=s(d),h[us.MEDIA_URL]=s(d),h[us.URL]=s(h[us.MEDIA_URL]),h[us.JS]=s(d),h[us.RESOURCE_URL]=s(h[us.URL]),{trustAs:a,getTrusted:c,valueOf:u}}]}function qn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&hi<8)throw as("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=ke(us);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=_),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return o(us,function(e,t){var n=bi(t);r[Rn("parse_as_"+n)]=function(t){return i(e,t)},r[Rn("get_trusted_"+n)]=function(t){return s(e,t)},r[Rn("trust_as_"+n)]=function(t){return a(e,t)}}),r}]}function Bn(){this.$get=["$window","$document",function(e,t){var n={},r=e.nw&&e.nw.process,i=!r&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!i&&e.history&&e.history.pushState,s=f((/android (\d+)/.exec(bi((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},c=u.body&&u.body.style,l=!1,d=!1;return c&&(l=!!("transition"in c||"webkitTransition"in c),d=!!("animation"in c||"webkitAnimation"in c)),{history:!(!o||s<4||a),hasEvent:function(e){if("input"===e&&hi)return!1;if(g(n[e])){var t=u.createElement("div");n[e]="on"+e in t}return n[e]},csp:Ci(),transitions:l,animations:d,android:s}}]}function Un(){this.$get=v(function(e){return new Jn(e)})}function Jn(e){function t(t,o){o=o||d;try{t()}finally{n(o);var s=u[o],a=u[l];if(!a||!s)for(var c,h=a?i:r;c=h(o);)try{c()}catch(t){e.error(t)}}}function n(e){e=e||d,u[e]&&(u[e]--,u[l]--)}function r(){var e=c.pop();return e&&e.cb}function i(e){for(var t=c.length-1;t>=0;--t){var n=c[t];if(n.type===e)return c.splice(t,1),n.cb}}function o(e){e=e||d,u[e]=(u[e]||0)+1,u[l]=(u[l]||0)+1}function s(e,t){t=t||l,u[t]?c.push({type:t,cb:e}):e()}var a=this,u={},c=[],l=a.ALL_TASKS_TYPE="$$all$$",d=a.DEFAULT_TASK_TYPE="$$default$$";a.completeTask=t,a.incTaskCount=o,a.notifyWhenNoPendingTasks=s}function Gn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function s(a,u){function c(e){return u||(e=ls("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText),t(e)),i.reject(e)}s.totalPendingRequests++,k(a)&&!g(n.get(a))||(a=o.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Y(l)?l=l.filter(function(e){return e!==It}):l===It&&(l=null),r.get(a,d({cache:n,transformResponse:l},e)).finally(function(){s.totalPendingRequests--}).then(function(e){return n.put(a,e.data)},c)}return s.totalPendingRequests=0,s}]}function Zn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=Si.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+ji(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else-1!==r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",s="["+r[i]+"model"+o+'"'+t+'"]',a=e.querySelectorAll(s);if(a.length)return a}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Xn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,a,u){S(o)||(u=a,a=o,o=m);var c,l=J(arguments,3),d=b(u)&&!u,h=(d?r:n).defer(),f=h.promise;return c=t.defer(function(){try{h.resolve(o.apply(null,l))}catch(e){h.reject(e),i(e)}finally{delete s[f.$$timeoutId]}d||e.$apply()},a,"$timeout"),f.$$timeoutId=c,s[c]=h,f}var s={};return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ds("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!s.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=s[n];return Hn(r.promise),r.reject("canceled"),delete s[n],t.defer.cancel(n)},o}]}function Kn(e){if(!k(e))return e;var t=e;hi&&(hs.setAttribute("href",t),t=hs.href),hs.setAttribute("href",t);var n=hs.hostname;return!ps&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:hs.href,protocol:hs.protocol?hs.protocol.replace(/:$/,""):"",host:hs.host,search:hs.search?hs.search.replace(/^\?/,""):"",hash:hs.hash?hs.hash.replace(/^#/,""):"",hostname:n,port:hs.port,pathname:"/"===hs.pathname.charAt(0)?hs.pathname:"/"+hs.pathname}}function Qn(e){return nr(e,fs)}function er(e){return nr(e,rr())}function tr(e){var t=[fs].concat(e.map(Kn));return function(e){var n=Kn(e);return t.some(nr.bind(null,n))}}function nr(e,t){return e=Kn(e),t=Kn(t),e.protocol===t.protocol&&e.host===t.host}function rr(){return e.document.baseURI?e.document.baseURI:(ss||(ss=e.document.createElement("a"),ss.href=".",ss=ss.cloneNode(!1)),ss.href)}function ir(){this.$get=v(e)}function or(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,s,a,u,c,l=t(r);if(l!==o)for(o=l,e=o.split("; "),i={},a=0;a<e.length;a++)s=e[a],(u=s.indexOf("="))>0&&(c=n(s.substring(0,u)),g(i[c])&&(i[c]=n(s.substring(u+1))));return i}}function sr(){this.$get=or}function ar(e){function t(r,i){if(w(r)){var s={};return o(r,function(e,n){s[n]=t(n,e)}),s}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",hr),t("date",Tr),t("filter",ur),t("json",Sr),t("limitTo",Dr),t("lowercase",ws),t("number",fr),t("orderBy",Er),t("uppercase",Ms)}function ur(){return function(e,t,n,o){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var s,a,u=dr(t);switch(u){case"function":s=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":s=cr(t,n,o,a);break;default:return e}return Array.prototype.filter.call(e,s)}}function cr(e,t,n,r){var i=w(e)&&n in e;return!0===t?t=B:S(t)||(t=function(e,t){return!g(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!y(e))&&(e=bi(""+e),t=bi(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!w(o)?lr(o,e[n],t,n,!1):lr(o,e,t,n,r)}}function lr(e,t,n,r,i,o){var s=dr(e),a=dr(t);if("string"===a&&"!"===t.charAt(0))return!lr(e,t.substring(1),n,r,i);if(Y(e))return e.some(function(e){return lr(e,t,n,r,i)});switch(s){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&lr(e[u],t,n,r,!0))return!0;return!o&&lr(e,t,n,r,!1)}if("object"===a){for(u in t){var c=t[u];if(!S(c)&&!g(c)){var l=u===r;if(!lr(l?e:e[u],c,n,r,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function dr(e){return null===e?"null":typeof e}function hr(e){var t=e.NUMBER_FORMATS;return function(e,n,r){g(n)&&(n=t.CURRENCY_SYM),g(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:_r(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function fr(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:_r(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function pr(e){var t,n,r,i,o,s=0;for((n=e.indexOf(_s))>-1&&(e=e.replace(_s,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===vs;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===vs;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>ms&&(t=t.splice(0,ms-1),s=n-1,n=1),{d:t,e:s,i:n}}function mr(e,t,n,r){var i=e.d,o=i.length-e.i;t=g(t)?Math.min(Math.max(n,o),r):+t;var s=t+e.i,a=i[s];if(s>0){i.splice(Math.max(e.i,s));for(var u=s;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,s=t+1),i[0]=0;for(var c=1;c<s;c++)i[c]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[s-1]++;for(;o<Math.max(0,t);o++)i.push(0);var d=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);d&&(i.unshift(d),e.i++)}function _r(e,t,n,r,i){if(!k(e)&&!L(e)||isNaN(e))return"";var o,s=!isFinite(e),a=!1,u=Math.abs(e)+"",c="";if(s)c="∞";else{o=pr(u),mr(o,i,t.minFrac,t.maxFrac);var l=o.d,d=o.i,h=o.e,f=[];for(a=l.reduce(function(e,t){return e&&!t},!0);d<0;)l.unshift(0),d++;d>0?f=l.splice(d,l.length):(f=l,l=[0]);var p=[];for(l.length>=t.lgSize&&p.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)p.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&p.unshift(l.join("")),c=p.join(n),f.length&&(c+=r+f.join("")),h&&(c+="e+"+h)}return e<0&&!a?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function vr(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=vs+e;return n&&(e=e.substr(e.length-t)),i+e}function yr(e,t,n,r,i){return n=n||0,function(o){var s=o["get"+e]();return(n>0||s>-n)&&(s+=n),0===s&&-12===n&&(s=12),vr(s,t,r,i)}}function gr(e,t,n){return function(r,i){var o=r["get"+e]();return i[wi((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function br(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=vr(Math[r>0?"floor":"ceil"](r/60),2)+vr(Math.abs(r%60),2)}function wr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Mr(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function kr(e){return function(t){var n=wr(t.getFullYear()),r=Mr(t),i=+r-+n;return vr(1+Math.round(i/6048e5),e)}}function Lr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function xr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Yr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function Tr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,s=t[8]?r.setUTCFullYear:r.setFullYear,a=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),s.call(r,f(t[1]),f(t[2])-1,f(t[3]));var u=f(t[4]||0)-i,c=f(t[5]||0)-o,l=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(r,u,c,l,d),r}return e}var n=/^(\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 s,a,u="",c=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,k(n)&&(n=bs.test(n)?f(n):t(n)),L(n)&&(n=new Date(n)),!x(n)||!isFinite(n.getTime()))return n;for(;r;)a=gs.exec(r),a?(c=U(c,a,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=Q(i,l),n=te(n,i,!0)),o(c,function(t){s=ys[t],u+=s?s(n,e.DATETIME_FORMATS,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Sr(){return function(e,t){return g(t)&&(t=2),X(e,t)}}function Dr(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):f(t),$i(t)?e:(L(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,e.length+n):n,t>=0?$r(e,n,n+t):0===n?$r(e,t,e.length):$r(e,Math.max(0,n+t),n)):e)}}function $r(e,t,n){return k(e)?e.slice(t,n):Mi.call(e,t,n)}function Er(e){function t(t){return t.map(function(t){var n=1,r=_;if(S(t))r=t;else if(k(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return S(e.valueOf)&&(e=e.valueOf(),n(e))?e:(y(e)&&(e=e.toString(),n(e)),e)}function s(e,t){var n=typeof e;return null===e?n="null":"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function a(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,s=t.value;"string"===r?(o=o.toLowerCase(),s=s.toLowerCase()):"object"===r&&(w(o)&&(o=e.index),w(s)&&(s=t.index)),o!==s&&(n=o<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i?-1:r<i?-1:1;return n}return function(e,n,o,u){function c(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:d.map(function(n){return s(n.get(e),t)})}}function l(e,t){for(var n=0,r=d.length;n<r;n++){var i=f(e.predicateValues[n],t.predicateValues[n]);if(i)return i*d[n].descending*h}return(f(e.tieBreaker,t.tieBreaker)||a(e.tieBreaker,t.tieBreaker))*h}if(null==e)return e;if(!i(e))throw r("orderBy")("notarray","Expected array but received: {0}",e);Y(n)||(n=[n]),0===n.length&&(n=["+"]);var d=t(n),h=o?-1:1,f=S(u)?u:a,p=Array.prototype.map.call(e,c);return p.sort(l),e=p.map(function(e){return e.value})}}function Or(e){return S(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function jr(e,t){e.$name=t}function Cr(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=xs,this.$$element=e,this.$$animate=r,Ar(this)}function Ar(e){e.$$classCache={},e.$$classCache[ca]=!(e.$$classCache[ua]=e.$$element.hasClass(ua))}function Pr(e){function t(e,t,n,r){e[t]||(e[t]={}),s(e[t],n,r)}function n(e,t,n,r){e[t]&&a(e[t],n,r),Hr(e[t])&&(e[t]=void 0)}function r(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function i(e,t,n){t=t?"-"+fe(t,"-"):"",r(e,ua+t,!0===n),r(e,ca+t,!1===n)}var o=e.clazz,s=e.set,a=e.unset;o.prototype.$setValidity=function(e,o,u){g(o)?t(this,"$pending",e,u):n(this,"$pending",e,u),A(o)?o?(a(this.$error,e,u),s(this.$$success,e,u)):(s(this.$error,e,u),a(this.$$success,e,u)):(a(this.$error,e,u),a(this.$$success,e,u)),this.$pending?(r(this,Ys,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,Ys,!1),this.$valid=Hr(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var c;c=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),i(this,e,c),this.$$parentForm.$setValidity(e,c,this)}}function Hr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Fr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Ir(e,t,n,r,i,o){Nr(e,t,n,r,i,o),Fr(r)}function Nr(e,t,n,r,i,o){var s=bi(t[0].type);if(!i.android){var a=!1;t.on("compositionstart",function(){a=!0}),t.on("compositionupdate",function(e){(g(e.data)||""===e.data)&&(a=!1)}),t.on("compositionend",function(){a=!1,c()})}var u,c=function(e){if(u&&(o.defer.cancel(u),u=null),!a){var i=t.val(),c=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Oi(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))t.on("input",c);else{var l=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||c(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||l(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut drop",l)}t.on("change",c),Ns[s]&&r.$$hasNativeValidators&&s===n.type&&t.on(Is,function(e){if(!u){var t=this[yi],n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||c(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function Rr(e,t){if(x(e))return e;if(k(e)){Ps.lastIndex=0;var n=Ps.exec(e);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,u=0,c=wr(r),l=7*(i-1);return t&&(o=t.getHours(),s=t.getMinutes(),a=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,c.getDate()+l,o,s,a,u)}}return NaN}function Wr(e,t){return function(n,r){var i,s;if(x(n))return n;if(k(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),$s.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),s=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},o(i,function(e,n){n<t.length&&(s[t[n]]=+e)});var a=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&a.setFullYear(s.yyyy),a}}return NaN}}function zr(e,t,n,r){return function(i,o,s,a,u,c,l,d){function h(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function f(e){return b(e)&&!x(e)?p(e)||void 0:e}function p(e,t){var r=a.$options.getOption("timezone");v&&v!==r&&(t=ee(t,Q(v)));var i=n(e,t);return!isNaN(i)&&r&&(i=te(i,r)),i}function m(e,t){var n=r;y&&k(a.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",a.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(e,n,t);return y&&a.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}Vr(i,o,s,a,e),Nr(i,o,s,a,u,c);var _,v,y="time"===e||"datetimelocal"===e;if(a.$parsers.push(function(n){return a.$isEmpty(n)?null:t.test(n)?p(n,_):void(a.$$parserName=e)}),a.$formatters.push(function(e){if(e&&!x(e))throw ha("datefmt","Expected `{0}` to be a date",e);if(h(e)){_=e;var t=a.$options.getOption("timezone");return t&&(v=t,_=te(_,t,!0)),m(e,t)}return _=null,v=null,""}),b(s.min)||s.ngMin){var w=s.min||d(s.ngMin)(i),M=f(w);a.$validators.min=function(e){return!h(e)||g(M)||n(e)>=M},s.$observe("min",function(e){e!==w&&(M=f(e),w=e,a.$validate())})}if(b(s.max)||s.ngMax){var L=s.max||d(s.ngMax)(i),Y=f(L);a.$validators.max=function(e){return!h(e)||g(Y)||n(e)<=Y},s.$observe("max",function(e){e!==L&&(Y=f(e),L=e,a.$validate())})}}}function Vr(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=w(o.validity))&&r.$parsers.push(function(e){var n=t.prop(yi)||{};return n.badInput||n.typeMismatch?void(r.$$parserName=i):e})}function qr(e){e.$parsers.push(function(t){return e.$isEmpty(t)?null:js.test(t)?parseFloat(t):void(e.$$parserName="number")}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!L(t))throw ha("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Br(e){return b(e)&&!L(e)&&(e=parseFloat(e)),$i(e)?void 0:e}function Ur(e){return(0|e)===e}function Jr(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function Gr(e,t,n){var r=Number(e),i=!Ur(r),o=!Ur(t),s=!Ur(n);if(i||o||s){var a=i?Jr(r):0,u=o?Jr(t):0,c=s?Jr(n):0,l=Math.max(a,u,c),d=Math.pow(10,l);r*=d,t*=d,n*=d,i&&(r=Math.round(r)),o&&(t=Math.round(t)),s&&(n=Math.round(n))}return(r-t)%n==0}function Zr(e,t,n,r,i,o,s,a){Vr(e,t,n,r,"number"),qr(r),Nr(e,t,n,r,i,o);var u;if(b(n.min)||n.ngMin){var c=n.min||a(n.ngMin)(e);u=Br(c),r.$validators.min=function(e,t){return r.$isEmpty(t)||g(u)||t>=u},n.$observe("min",function(e){e!==c&&(u=Br(e),c=e,r.$validate())})}if(b(n.max)||n.ngMax){var l=n.max||a(n.ngMax)(e),d=Br(l);r.$validators.max=function(e,t){return r.$isEmpty(t)||g(d)||t<=d},n.$observe("max",function(e){e!==l&&(d=Br(e),l=e,r.$validate())})}if(b(n.step)||n.ngStep){var h=n.step||a(n.ngStep)(e),f=Br(h);r.$validators.step=function(e,t){return r.$isEmpty(t)||g(f)||Gr(t,u||0,f)},n.$observe("step",function(e){e!==h&&(f=Br(e),h=e,r.$validate())})}}function Xr(e,t,n,r,i,o){function s(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,function(e){e!==i&&(i=e,r(e))})}function a(e){if(d=Br(e),!$i(r.$modelValue))if(l){var n=t.val();d>n&&(n=d,t.val(n)),r.$setViewValue(n)}else r.$validate()}function u(e){if(h=Br(e),!$i(r.$modelValue))if(l){var n=t.val();h<n&&(t.val(h),n=h<d?d:h),r.$setViewValue(n)}else r.$validate()}function c(e){f=Br(e),$i(r.$modelValue)||(l?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate())}Vr(e,t,n,r,"range"),qr(r),Nr(e,t,n,r,i,o);var l=r.$$hasNativeValidators&&"range"===t[0].type,d=l?0:void 0,h=l?100:void 0,f=l?1:void 0,p=t[0].validity,m=b(n.min),_=b(n.max),v=b(n.step),y=r.$render;r.$render=l&&b(p.rangeUnderflow)&&b(p.rangeOverflow)?function(){y(),r.$setViewValue(t.val())}:y,m&&(d=Br(n.min),r.$validators.min=l?function(){return!0}:function(e,t){return r.$isEmpty(t)||g(d)||t>=d},s("min",a)),_&&(h=Br(n.max),r.$validators.max=l?function(){return!0}:function(e,t){return r.$isEmpty(t)||g(h)||t<=h},s("max",u)),v&&(f=Br(n.step),r.$validators.step=l?function(){return!p.stepMismatch}:function(e,t){return r.$isEmpty(t)||g(f)||Gr(t,d||0,f)},s("step",c))}function Kr(e,t,n,r,i,o){Nr(e,t,n,r,i,o),Fr(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Es.test(n)}}function Qr(e,t,n,r,i,o){Nr(e,t,n,r,i,o),Fr(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Os.test(n)}}function ei(e,t,n,r){var i=!n.ngTrim||"false"!==Oi(n.ngTrim);g(n.name)&&t.attr("name",u());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=Oi(o)),r.$setViewValue(o,e&&e.type))};t.on("change",o),r.$render=function(){var e=n.value;i&&(e=Oi(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function ti(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw ha("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function ni(e,t,n,r,i,o,s,a){var u=ti(a,e,"ngTrueValue",n.ngTrueValue,!0),c=ti(a,e,"ngFalseValue",n.ngFalseValue,!1),l=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("change",l),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return B(e,u)}),r.$parsers.push(function(e){return e?u:c})}function ri(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){return e&&e.split(" ")}function i(e){if(!e)return e;var t=e;return Y(e)?t=e.map(i).join(" "):w(e)?t=Object.keys(e).filter(function(t){return e[t]}).join(" "):k(e)||(t=e+""),t}e="ngClass"+e;var s;return["$parse",function(a){return{restrict:"AC",link:function(u,c,l){function d(e){e=p(r(e),1),l.$addClass(e)}function h(e){e=p(r(e),-1),l.$removeClass(e)}function f(e,t){var i=r(e),o=r(t),s=n(i,o),a=n(o,i),u=p(s,-1),c=p(a,1);l.$addClass(c),l.$removeClass(u)}function p(e,t){var n=[];return o(e,function(e){(t>0||y[e])&&(y[e]=(y[e]||0)+t,y[e]===+(t>0)&&n.push(e))}),n.join(" ")}function m(e){e===t?d(v):h(v),g=e}function _(e){g===t&&f(v,e),v=e}var v,y=c.data("$classCounts"),g=!0;y||(y=be(),c.data("$classCounts",y)),"ngClass"!==e&&(s||(s=a("$index",function(e){return 1&e})),u.$watch(s,m)),u.$watch(a(l[e],i),_)}}}]}function ii(e,t,n,r,i,o){return{restrict:"A",compile:function(s,a){var u=e(a[r]);return function(e,r){r.on(i,function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)})}}}}function oi(e,t,n,r,i,o,s,a,u){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=u(n.name||"",!1)(e),this.$$parentForm=xs,this.$options=fa,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=s,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=t,Ar(this),si(this)}function si(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);return n===e.$modelValue||e.$modelValue!==e.$modelValue&&n!==n||e.$$setModelValue(n),n})}function ai(e){this.$$options=e}function ui(e,t){o(t,function(t,n){b(e[n])||(e[n]=t)})}function ci(e,t){e.prop("selected",t),e.attr("selected",t)}function li(e,t,n){if(e){if(k(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,ne(n));return e}}function di(e){var t=f(e);return $i(t)?-1:t}var hi,fi,pi,mi,_i={objectMaxDepth:5,urlErrorParamsEnabled:!0},vi=/^\/(.+)\/([a-z]*)$/,yi="validity",gi=Object.prototype.hasOwnProperty,bi=function(e){return k(e)?e.toLowerCase():e},wi=function(e){return k(e)?e.toUpperCase():e},Mi=[].slice,ki=[].splice,Li=[].push,xi=Object.prototype.toString,Yi=Object.getPrototypeOf,Ti=r("ng"),Si=e.angular||(e.angular={}),Di=0;hi=e.document.documentMode;var $i=Number.isNaN||function(e){return e!==e};m.$inject=[],_.$inject=[];var Ei=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Oi=function(e){return k(e)?e.trim():e},ji=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ci=function(){if(!b(Ci.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Ci.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else Ci.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return Ci.rules},Ai=function(){if(b(Ai.name_))return Ai.name_;var t,n,r,i,o=Hi.length;for(n=0;n<o;++n)if(r=Hi[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Ai.name_=i},Pi=/:/g,Hi=["ng-","data-ng-","ng:","x-ng-"],Fi=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(e.document),Ii=/[A-Z]/g,Ni=!1,Ri=1,Wi=3,zi=8,Vi=9,qi=11,Bi={full:"1.8.3",major:1,minor:8,dot:3,codeName:"ultimate-farewell"};Pe.expando="ng339";var Ui=Pe.cache={},Ji=1;Pe._data=function(e){return this.cache[e[this.expando]]||{}};var Gi=/-([a-z])/g,Zi=/^-ms-/,Xi={mouseleave:"mouseout",mouseenter:"mouseover"},Ki=r("jqLite"),Qi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,eo=/<|&#?\w+;/,to=/<([\w:-]+)/,no=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ro={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ro.tbody=ro.tfoot=ro.colgroup=ro.caption=ro.thead,ro.th=ro.td;var io={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var oo in ro){var so=ro[oo],ao=so.slice().reverse();io[oo]=[ao.length,"<"+ao.join("><")+">","</"+so.join("></")+">"]}io.optgroup=io.option;var uo=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},co=Pe.prototype={ready:et,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return fi(e>=0?this[e]:this[this.length+e])},length:0,push:Li,sort:[].sort,splice:[].splice},lo={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){lo[bi(e)]=e});var ho={};o("input,select,option,textarea,button,form,details".split(","),function(e){ho[e]=!0});var fo={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Ve,removeData:We,hasData:Oe,cleanData:function(e){for(var t=0,n=e.length;t<n;t++)We(e[t]),Re(e[t])}},function(e,t){Pe[t]=e}),o({data:Ve,inheritedData:Ze,scope:function(e){return fi.data(e,"$scope")||Ze(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return fi.data(e,"$isolateScope")||fi.data(e,"$isolateScopeNoTemplate")},controller:Ge,injector:function(e){return Ze(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:qe,css:function(e,t,n){if(t=Te(t),!b(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Wi&&2!==i&&i!==zi&&e.getAttribute){var o=bi(t),s=lo[o];if(!b(n))return r=e.getAttribute(t),s&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&s?e.removeAttribute(t):e.setAttribute(t,s?o:n)}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if(g(t)){var n=e.nodeType;return n===Ri||n===Wi?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(g(t)){if(e.multiple&&"select"===R(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(g(t))return e.innerHTML;Fe(e,!0),e.innerHTML=t},empty:Xe},function(e,t){Pe.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Xe&&g(2===e.length&&e!==qe&&e!==Ge?t:n)){if(w(t)){for(r=0;r<o;r++)if(e===Ve)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var s=e.$dv,a=g(s)?Math.min(o,1):o,u=0;u<a;u++){var c=e(this[u],t,n);s=s?s+c:c}return s}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:We,on:function(e,t,n,r){if(b(r))throw Ki("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Ee(e)){var i=ze(e,!0),o=i.events,s=i.handle;s||(s=i.handle=rt(e,o));for(var a=t.indexOf(" ")>=0?t.split(" "):[t],u=a.length,c=function(t,r,i){var a=o[t];a||(a=o[t]=[],a.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,s)),a.push(n)};u--;)t=a[u],Xi[t]?(c(Xi[t],ot),c(t,void 0,!0)):c(t)}},off:Re,one:function(e,t,n){e=fi(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Fe(e),o(new Pe(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===Ri&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Ri||n===qi){t=new Pe(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===Ri){var n=e.firstChild;o(new Pe(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ae(e,fi(t).eq(0).clone()[0])},remove:Ke,detach:function(e){Ke(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r){t=new Pe(t);for(var i=0,o=t.length;i<o;i++){var s=t[i];r.insertBefore(s,n.nextSibling),n=s}}},addClass:Ue,removeClass:Be,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;g(r)&&(r=!qe(e,t)),(r?Ue:Be)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==qi?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:He,triggerHandler:function(e,t,n){var r,i,s,a=t.type||t,u=ze(e),c=u&&u.events,l=c&&c[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:m,type:a,target:e},t.type&&(r=d(r,t)),i=ke(l),s=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,s)}))}},function(e,t){Pe.prototype[t]=function(t,n,r){for(var i,o=0,s=this.length;o<s;o++)g(i)?(i=e(this[o],t,n,r),b(i)&&(i=fi(i))):Je(i,e(this[o],t,n,r));return b(i)?i:this}}),Pe.prototype.bind=Pe.prototype.on,Pe.prototype.unbind=Pe.prototype.off;var po=Object.create(null);ut.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return $i(e)?po:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var mo=ut,_o=[function(){this.$get=[function(){return mo}]}],vo=/^([^(]+?)=>/,yo=/^[^(]*\(\s*([^)]*)\)/m,go=/,/,bo=/^\s*(_?)(\S+?)\1\s*$/,wo=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Mo=r("$injector");ft.$$annotate=ht;var ko=r("$animate"),Lo=1,xo=function(){this.$get=m},Yo=function(){var e=new mo,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=k(t)?t.split(" "):Y(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function s(){o(t,function(t){var n=e.get(t);if(n){var r=vt(t.attr("class")),i="",s="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:s+=(s.length?" ":"")+t)}),o(t,function(e){i&&Ue(e,i),s&&Be(e,s)}),e.delete(t)}}),t.length=0}function a(n,o,a){var u=e.get(n)||{},c=i(u,o,!0),l=i(u,a,!1);(c||l)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(s))}return{enabled:m,on:m,off:m,pin:m,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&a(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},To=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw ko("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=S(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,ko("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=_t(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&fi(r),i=i&&fi(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",yt(o))},move:function(n,r,i,o){return r=r&&fi(r),i=i&&fi(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",yt(o))},leave:function(t,n){return e.push(t,"leave",yt(n),function(){t.remove()})},addClass:function(t,n,r){return r=yt(r),r.addClass=mt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=yt(r),r.removeClass=mt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=yt(i),i.addClass=mt(i.addClass,n),i.removeClass=mt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=yt(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=mt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],So=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Do=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function s(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){r()?o(e):t(e)},this._state=0}return s.chain=function(e,t){function n(){if(r===e.length)return void t(!0);e[r](function(e){if(!1===e)return void t(!1);r++,n()})}var r=0;n()},s.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},s.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:m,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},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(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},s}]},$o=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),a||u.complete(),a=!0}),u}function o(){s.addClass&&(t.addClass(s.addClass),s.addClass=null),s.removeClass&&(t.removeClass(s.removeClass),s.removeClass=null),s.to&&(t.css(s.to),s.to=null)}var s=r||{};s.$$prepared||(s=V(s)),s.cleanupStyles&&(s.from=s.to=null),s.from&&(t.css(s.from),s.from=null);var a,u=new n;return{start:i,end:i}}}]},Eo=r("$compile"),Oo=new xt;Yt.$inject=["$provide","$$sanitizeUriProvider"],Tt.prototype.isFirstChange=function(){return this.previousValue===Oo};var jo=/^((?:x|data)[:\-_])/i,Co=/[:\-_]+(.)/g,Ao=r("$controller"),Po=/^(\S+)(\s+as\s+([\w$]+))?$/,Ho=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof fi&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Fo="application/json",Io={"Content-Type":Fo+";charset=utf-8"},No=/^\[|^\{(?!\{)/,Ro={"[":/]$/,"{":/}$/},Wo=/^\)]\}',?\n/,zo=r("$http"),Vo=Si.$interpolateMinErr=r("$interpolate");Vo.throwNoconcat=function(e){throw Vo("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",e)},Vo.interr=function(e,t){return Vo("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var qo=r("$interval"),Bo=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=Si.callbacks,n={};return{createCallback:function(r){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,s=e(i);return n[o]=t[i]=s,o},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var r=n[e];delete t[r.id],delete n[e]}}}},Uo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Jo={http:80,https:443,ftp:21},Go=r("$location"),Zo=/^\s*[\\/]{2,}/,Xo={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=en(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:hn("$$absUrl"),url:function(e){if(g(e))return this.$$url;var t=Uo.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:hn("$$protocol"),host:hn("$$host"),port:hn("$$port"),path:fn("$$path",function(e){return e=null!==e?e.toString():"","/"===e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(k(e)||L(e))e=e.toString(),this.$$search=ie(e);else{if(!w(e))throw Go("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=V(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:g(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:fn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([dn,ln,cn],function(e){e.prototype=Object.create(Xo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==cn||!this.$$html5)throw Go("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Ko=r("$parse"),Qo={}.constructor.prototype.valueOf,es=be();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){es[e]=!0});var ts={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ns=function(e){this.options=e};ns.prototype={constructor:ns,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=es[t],o=es[n],s=es[r];if(i||o||s){var a=s?r:o?n:t;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Ko("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=bi(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else{n+=ts[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var rs=function(e,t){this.lexer=e,this.options=t};rs.Program="Program",rs.ExpressionStatement="ExpressionStatement",rs.AssignmentExpression="AssignmentExpression",rs.ConditionalExpression="ConditionalExpression",rs.LogicalExpression="LogicalExpression",rs.BinaryExpression="BinaryExpression",rs.UnaryExpression="UnaryExpression",rs.CallExpression="CallExpression",rs.MemberExpression="MemberExpression",rs.Identifier="Identifier",rs.Literal="Literal",rs.ArrayExpression="ArrayExpression",rs.Property="Property",rs.ObjectExpression="ObjectExpression",rs.ThisExpression="ThisExpression",rs.LocalsExpression="LocalsExpression",rs.NGValueParameter="NGValueParameter",rs.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:rs.Program,body:e}},expressionStatement:function(){return{type:rs.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!kn(e))throw Ko("lval","Trying to assign a value to a non l-value");e={type:rs.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:rs.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:rs.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:rs.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:rs.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:rs.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:rs.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:rs.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:rs.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=V(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:rs.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:rs.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:rs.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:rs.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:rs.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:rs.Identifier,name:e.text}},constant:function(){return{type:rs.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:rs.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:rs.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:rs.ObjectExpression,properties:t}},throwError:function(e,t){throw Ko("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Ko("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Ko("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],s=o.text;if(s===t||s===n||s===r||s===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:rs.ThisExpression},$locals:{type:rs.LocalsExpression}}};var is=1,os=2;Tn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},wn(e,t.$filter);var n,r="";if(this.stage="assign",n=Ln(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var s=Mn(e.body);t.stage="inputs",o(s,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,_n,vn,yn);return this.state=this.stage=void 0,u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(e){return e.name}).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,s){var a,u,c,l,d,h=this;if(r=r||m,!s&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case rs.Program:o(e.body,function(t,n){h.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case rs.Literal:l=this.escape(e.value),this.assign(t,l),r(t||l);break;case rs.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),l=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,l),r(l);break;case rs.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){a=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),l="+"===e.operator?this.plus(a,u):"-"===e.operator?this.ifDefined(a,0)+e.operator+this.ifDefined(u,0):"("+a+")"+e.operator+"("+u+")",this.assign(t,l),r(l);break;case rs.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),r(t);break;case rs.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),r(t);break;case rs.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),function(){h.if_("inputs"===h.stage||"s",function(){i&&1!==i&&h.if_(h.isNull(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))})},t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),r(t);break;case rs.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,a,void 0,function(){h.if_(h.notNull(a),function(){e.computed?(u=h.nextId(),h.recurse(e.property,u),h.getStringValue(u),i&&1!==i&&h.if_(h.not(h.computedMember(a,u)),h.lazyAssign(h.computedMember(a,u),"{}")),l=h.computedMember(a,u),h.assign(t,l),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&h.if_(h.isNull(h.nonComputedMember(a,e.property.name)),h.lazyAssign(h.nonComputedMember(a,e.property.name),"{}")),l=h.nonComputedMember(a,e.property.name),h.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))},function(){h.assign(t,"undefined")}),r(t)},!!i);break;case rs.CallExpression:t=t||this.nextId(),e.filter?(u=h.filter(e.callee.name),c=[],o(e.arguments,function(e){var t=h.nextId();h.recurse(e,t),c.push(t)}),l=u+"("+c.join(",")+")",h.assign(t,l),r(t)):(u=h.nextId(),a={},c=[],h.recurse(e.callee,u,a,function(){h.if_(h.notNull(u),function(){o(e.arguments,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){c.push(e)})}),l=a.name?h.member(a.context,a.name,a.computed)+"("+c.join(",")+")":u+"("+c.join(",")+")",h.assign(t,l)},function(){h.assign(t,"undefined")}),r(t)}));break;case rs.AssignmentExpression:u=this.nextId(),a={},this.recurse(e.left,void 0,a,function(){h.if_(h.notNull(a.context),function(){h.recurse(e.right,u),l=h.member(a.context,a.name,a.computed)+e.operator+u,h.assign(t,l),r(t||l)})},1);break;case rs.ArrayExpression:c=[],o(e.elements,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){c.push(e)})}),l="["+c.join(",")+"]",this.assign(t,l),r(t||l);break;case rs.ObjectExpression:c=[],d=!1,o(e.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(a=h.nextId(),h.recurse(e.key,a)):a=e.key.type===rs.Identifier?e.key.name:""+e.key.value,u=h.nextId(),h.recurse(e.value,u),h.assign(h.member(t,a,e.computed),u)})):(o(e.properties,function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,function(e){c.push(h.escape(t.key.type===rs.Identifier?t.key.name:""+t.key.value)+":"+e)})}),l="{"+c.join(",")+"}",this.assign(t,l)),r(t||l);break;case rs.ThisExpression:this.assign(t,"s"),r(t||"s");break;case rs.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case rs.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var s=this;return function(){s.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(k(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(L(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Ko("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Sn.prototype={compile:function(e){var t=this;wn(e,t.$filter);var n,r;(n=Ln(e))&&(r=this.recurse(n));var i,s=Mn(e.body);s&&(i=[],o(s,function(e,n){var r=t.recurse(e);r.isPure=e.isPure,e.input=r,i.push(r),e.watchId=n}));var a=[];o(e.body,function(e){a.push(t.recurse(e.expression))});var u=0===e.body.length?m:1===e.body.length?a[0]:function(e,t){var n;return o(a,function(r){n=r(e,t)}),n};return r&&(u.assign=function(e,t,n){return r(e,n,t)}),i&&(u.inputs=i),u},recurse:function(e,t,n){var r,i,s,a=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case rs.Literal:return this.value(e.value,t);case rs.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case rs.BinaryExpression:case rs.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case rs.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case rs.Identifier:return a.identifier(e.name,t,n);case rs.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case rs.CallExpression:return s=[],o(e.arguments,function(e){s.push(a.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var a=[],u=0;u<s.length;++u)a.push(s[u](e,n,r,o));var c=i.apply(void 0,a,o);return t?{context:void 0,name:void 0,value:c}:c}:function(e,n,r,o){var a,u=i(e,n,r,o);if(null!=u.value){for(var c=[],l=0;l<s.length;++l)c.push(s[l](e,n,r,o));a=u.value.apply(u.context,c)}return t?{value:a}:a};case rs.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,s){var a=r(e,n,o,s),u=i(e,n,o,s);return a.context[a.name]=u,t?{value:u}:u};case rs.ArrayExpression:return s=[],o(e.elements,function(e){s.push(a.recurse(e))}),function(e,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](e,n,r,i));return t?{value:o}:o};case rs.ObjectExpression:return s=[],o(e.properties,function(e){e.computed?s.push({key:a.recurse(e.key),computed:!0,value:a.recurse(e.value)}):s.push({key:e.key.type===rs.Identifier?e.key.name:""+e.key.value,computed:!1,value:a.recurse(e.value)})}),function(e,n,r,i){for(var o={},a=0;a<s.length;++a)s[a].computed?o[s[a].key(e,n,r,i)]=s[a].value(e,n,r,i):o[s[a].key]=s[a].value(e,n,r,i);return t?{value:o}:o};case rs.ThisExpression:return function(e){return t?{value:e}:e};case rs.LocalsExpression:return function(e,n){return t?{value:n}:n};case rs.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var s=e(n,r,i,o);return s=b(s)?+s:0,t?{value:s}:s}},"unary-":function(e,t){return function(n,r,i,o){var s=e(n,r,i,o);return s=b(s)?-s:-0,t?{value:s}:s}},"unary!":function(e,t){return function(n,r,i,o){var s=!e(n,r,i,o);return t?{value:s}:s}},"binary+":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s),u=t(r,i,o,s),c=yn(a,u);return n?{value:c}:c}},"binary-":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s),u=t(r,i,o,s),c=(b(a)?a:0)-(b(u)?u:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)*t(r,i,o,s);return n?{value:a}:a}},"binary/":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)/t(r,i,o,s);return n?{value:a}:a}},"binary%":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)%t(r,i,o,s);return n?{value:a}:a}},"binary===":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)===t(r,i,o,s);return n?{value:a}:a}},"binary!==":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)!==t(r,i,o,s);return n?{value:a}:a}},"binary==":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)==t(r,i,o,s);return n?{value:a}:a}},"binary!=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)!=t(r,i,o,s);return n?{value:a}:a}},"binary<":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)<t(r,i,o,s);return n?{value:a}:a}},"binary>":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)>t(r,i,o,s);return n?{value:a}:a}},"binary<=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)<=t(r,i,o,s);return n?{value:a}:a}},"binary>=":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)>=t(r,i,o,s);return n?{value:a}:a}},"binary&&":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)&&t(r,i,o,s);return n?{value:a}:a}},"binary||":function(e,t,n){return function(r,i,o,s){var a=e(r,i,o,s)||t(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(e,t,n,r){return function(i,o,s,a){var u=e(i,o,s,a)?t(i,o,s,a):n(i,o,s,a);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,s){var a=i&&e in i?i:r;n&&1!==n&&a&&null==a[e]&&(a[e]={});var u=a?a[e]:void 0;return t?{context:a,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,s,a){var u,c,l=e(i,o,s,a);return null!=l&&(u=t(i,o,s,a),u=_n(u),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(e,t,n,r){return function(i,o,s,a){var u=e(i,o,s,a);r&&1!==r&&u&&null==u[t]&&(u[t]={});var c=null!=u?u[t]:void 0;return n?{context:u,name:t,value:c}:c}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Dn.prototype={constructor:Dn,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=xn(t.ast),n.constant=Yn(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return e=e.trim(),":"===e.charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var ss,as=r("$sce"),us={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},cs=/_([a-z])/g,ls=r("$templateRequest"),ds=r("$timeout"),hs=e.document.createElement("a"),fs=Kn(e.location.href);hs.href="http://[::1]";var ps="[::1]"===hs.hostname;or.$inject=["$document"],ar.$inject=["$provide"];var ms=22,_s=".",vs="0";hr.$inject=["$locale"],fr.$inject=["$locale"];var ys={yyyy:yr("FullYear",4,0,!1,!0),yy:yr("FullYear",2,0,!0,!0),y:yr("FullYear",1,0,!1,!0),MMMM:gr("Month"),MMM:gr("Month",!0),MM:yr("Month",2,1),M:yr("Month",1,1),LLLL:gr("Month",!1,!0),dd:yr("Date",2),d:yr("Date",1),HH:yr("Hours",2),H:yr("Hours",1),hh:yr("Hours",2,-12),h:yr("Hours",1,-12),mm:yr("Minutes",2),m:yr("Minutes",1),ss:yr("Seconds",2),s:yr("Seconds",1),sss:yr("Milliseconds",3),EEEE:gr("Day"),EEE:gr("Day",!0),a:Lr,Z:br,ww:kr(2),w:kr(1),G:xr,GG:xr,GGG:xr,GGGG:Yr},gs=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,bs=/^-?\d+$/;Tr.$inject=["$locale"];var ws=v(bi),Ms=v(wi);Er.$inject=["$parse"];var ks=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===xi.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Ls={};o(lo,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=St("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Ls[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(fo,function(e,t){Ls[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(vi);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=St("ng-"+e);Ls[t]=["$sce",function(n){return{priority:99,link:function(r,i,o){var s=e,a=e;"href"===e&&"[object SVGAnimatedString]"===xi.call(i.prop("href"))&&(a="xlinkHref",o.$attr[a]="xlink:href",s=null),o.$set(t,n.getTrustedMediaUrl(o[t])),o.$observe(t,function(t){if(!t)return void("href"===e&&o.$set(a,null));o.$set(a,t),hi&&s&&i.prop(s,o[a])})}}}]});var xs={$addControl:m,$getControls:v([]),$$renameControl:jr,$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m,$$setSubmitted:m},Ys="ng-pending";Cr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Cr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){ve(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return ke(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),z(this.$$controls,e),e.$$parentForm=xs},$setDirty:function(){this.$$animate.removeClass(this.$$element,la),this.$$animate.addClass(this.$$element,da),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,la,da+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==xs;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,o(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},Pr({clazz:Cr,set:function(e,t,n){var r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(z(r,n),0===r.length&&delete e[t])}});var Ts=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||m}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Cr,compile:function(n,i){n.addClass(la).addClass(ua);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,s){var a=s[0];if(!("action"in i)){var u=function(t){e.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}(s[1]||a.$$parentForm).$addControl(a);var c=o?r(a.$name):m;o&&(c(e,a),i.$observe(o,function(t){a.$name!==t&&(c(e,void 0),a.$$parentForm.$$renameControl(a,t),(c=r(a.$name))(e,a))})),n.on("$destroy",function(){a.$$parentForm.$removeControl(a),c(e,void 0),d(a,xs)})}}}}}]},Ss=Ts(),Ds=Ts(!0),$s=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Es=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Os=/^(?=.{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])?)*$/,js=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Cs=/^(\d{4,})-(\d{2})-(\d{2})$/,As=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ps=/^(\d{4,})-W(\d\d)$/,Hs=/^(\d{4,})-(\d\d)$/,Fs=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Is="keydown wheel mousedown",Ns=be();o("date,datetime-local,month,time,week".split(","),function(e){Ns[e]=!0});var Rs={text:Ir,date:zr("date",Cs,Wr(Cs,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":zr("datetimelocal",As,Wr(As,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:zr("time",Fs,Wr(Fs,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:zr("week",Ps,Rr,"yyyy-Www"),month:zr("month",Hs,Wr(Hs,["yyyy","MM"]),"yyyy-MM"),number:Zr,url:Kr,email:Qr,radio:ei,range:Xr,checkbox:ni,hidden:m,button:m,submit:m,reset:m,file:m},Ws=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Rs[bi(s.type)]||Rs.text)(i,o,s,a[0],t,e,n,r)}}}}],zs=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===bi(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},Vs=/^(true|false|\d+)$/,qs=function(){function e(e,t,n){var r=b(n)?n:9===hi?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Vs.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},Bs=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=we(e)})}}}}],Us=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=g(e)?"":e})}}}}],Js=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),s=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(s,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],Gs=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Zs=ri("",!0),Xs=ri("Odd",0),Ks=ri("Even",1),Qs=Or({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),ea=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ta={},na={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=St("ng-"+e);ta[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return ii(n,r,i,t,e,na[e])}]});var ra=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,u,c;n.$watch(i.ngIf,function(n){n?u||s(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),a={clone:n},e.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),a&&(c=ge(a.clone),e.leave(c).done(function(e){!1!==e&&(c=null)}),a=null))})}}}],ia=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Si.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,u,c,l){var d,h,f,p=0,m=function(){h&&(h.remove(),h=null),d&&(d.$destroy(),d=null),f&&(n.leave(f).done(function(e){!1!==e&&(h=null)}),h=f,f=null)};r.$watch(o,function(o){var u=function(e){!1===e||!b(a)||a&&!r.$eval(a)||t()},h=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&h===p){var t=r.$new();c.template=e;var a=l(t,function(e){m(),n.enter(e,null,i).done(u)});d=t,f=a,d.$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),c.template=null)})}}}}],oa=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(xi.call(r[0]).match(/SVG/))return r.empty(),void t(je(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],sa=Or({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),aa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",s="false"!==n.ngTrim,a=s?Oi(i):i,u=function(e){if(!g(e)){var t=[];return e&&o(e.split(a),function(e){e&&t.push(s?Oi(e):e)}),t}};r.$parsers.push(u),r.$formatters.push(function(e){if(Y(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},ua="ng-valid",ca="ng-invalid",la="ng-pristine",da="ng-dirty",ha=r("ngModel");oi.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],oi.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return S(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){S(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw ha("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ne(this.$$element))},$render:m,$isEmpty:function(e){return g(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,da),this.$$animate.addClass(this.$$element,la)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,la),this.$$animate.addClass(this.$$element,da),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!$i(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){s===a.$$currentValidationRunId&&a.$setValidity(e,t)}function i(e){s===a.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var s=this.$$currentValidationRunId,a=this;return function(){var e=a.$$parserName;return g(a.$$parserValid)?(r(e,null),!0):(a.$$parserValid||(o(a.$validators,function(e,t){r(t,null)}),o(a.$asyncValidators,function(e,t){r(t,null)})),r(e,a.$$parserValid),a.$$parserValid)}()&&function(){var n=!0;return o(a.$validators,function(i,o){var s=Boolean(i(e,t));n=n&&s,r(o,s)}),!!n||(o(a.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var n=[],s=!0;o(a.$asyncValidators,function(i,o){var a=i(e,t);if(!P(a))throw ha("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);r(o,void 0),n.push(a.then(function(){r(o,!0)},function(){s=!1,r(o,!1)}))}),n.length?a.$$q.all(n).then(function(){i(s)},m):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!g(n)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),g(n)){this.$$parserValid=!1;break}$i(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,s=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,s&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){s||(r.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");L(t[e])?t=t[e]:L(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:L(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,m))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Pr({clazz:oi,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var fa,pa=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:oi,priority:1,compile:function(t){return t.addClass(la).addClass("ng-untouched").addClass(ua),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,s=r[2];s&&(i.$options=s.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){s.$setTouched()}var s=i[0];s.$$setUpdateOnEvents(),n.on("blur",function(){s.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],ma=/(\s+|^)default(\s+|$)/;ai.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=d({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Oi(n.replace(ma,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],ui(e,this.$$options)),ui(e,fa.$$options),new ai(e)}},fa=new ai({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var _a=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:fa,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},va=Or({terminal:!0,priority:1e3}),ya=r("ngOptions"),ga=/^\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]+?))?$/,ba=["$compile","$document","$parse",function(t,n,r){function s(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function s(e){var t;if(!c&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var a=e.match(ga);if(!a)throw ya("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ne(t));var u=a[5]||a[7],c=a[6],l=/ as /.test(a[0])&&a[1],d=a[9],h=r(a[2]?a[1]:u),f=l&&r(l),p=f||h,m=d&&r(d),_=d?function(e,t){return m(n,t)}:function(e){return at(e)},v=function(e,t){return _(e,k(e,t))},y=r(a[2]||a[1]),g=r(a[3]||""),b=r(a[4]||""),w=r(a[8]),M={},k=c?function(e,t){return M[c]=t,M[u]=e,M}:function(e){return M[u]=e,M};return{trackBy:d,getTrackByValue:v,getWatchables:r(w,function(e){var t=[];e=e||[];for(var r=s(e),i=r.length,o=0;o<i;o++){var u=e===r?o:r[o],c=e[u],l=k(c,u),d=_(c,l);if(t.push(d),a[2]||a[1]){var h=y(n,l);t.push(h)}if(a[4]){var f=b(n,l);t.push(f)}}return t}),getOptions:function(){for(var e=[],t={},r=w(n)||[],i=s(r),a=i.length,u=0;u<a;u++){var c=r===i?u:i[u],l=r[c],h=k(l,c),f=p(n,h),m=_(f,h),M=y(n,h),L=g(n,h),x=b(n,h),Y=new o(m,f,M,L,x);e.push(Y),t[m]=Y}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return d?V(e.viewValue):e.viewValue}}}}}function a(e,r,i,a){function l(e,t){var n=u.cloneNode(!1);t.appendChild(n),h(e,n)}function d(e){var t=M.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function h(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function f(){var e=M&&p.readValue();if(M)for(var t=M.items.length-1;t>=0;t--){var n=M.items[t];Ke(b(n.group)?n.element.parentNode:n.element)}M=k.getOptions();var i={};if(M.items.forEach(function(e){var t;b(e.group)?(t=i[e.group],t||(t=c.cloneNode(!1),L.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),l(e,t)):l(e,L)}),r[0].appendChild(L),m.$render(),!m.$isEmpty(e)){var o=p.readValue();(k.trackBy||_?B(e,o):e===o)||(m.$setViewValue(o),m.$render())}}for(var p=a[0],m=a[1],_=i.multiple,v=0,y=r.children(),g=y.length;v<g;v++)if(""===y[v].value){p.hasEmptyOption=!0,p.emptyOption=y.eq(v);break}r.empty();var w=!!p.emptyOption;fi(u.cloneNode(!1)).val("?");var M,k=s(i.ngOptions,r,e),L=n[0].createDocumentFragment();p.generateUnknownOptionValue=function(e){return"?"},_?(p.writeValue=function(e){if(M){var t=e&&e.map(d)||[];M.items.forEach(function(e){e.element.selected&&!W(t,e)&&(e.element.selected=!1)})}},p.readValue=function(){var e=r.val()||[],t=[];return o(e,function(e){var n=M.selectValueMap[e];n&&!n.disabled&&t.push(M.getViewValueFromOption(n))}),t},k.trackBy&&e.$watchCollection(function(){if(Y(m.$viewValue))return m.$viewValue.map(function(e){return k.getTrackByValue(e)})},function(){m.$render()})):(p.writeValue=function(e){if(M){var t=r[0].options[r[0].selectedIndex],n=M.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(p.removeUnknownOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):p.selectUnknownOrEmptyOption(e)}},p.readValue=function(){var e=M.selectValueMap[r.val()];return e&&!e.disabled?(p.unselectEmptyOption(),p.removeUnknownOption(),M.getViewValueFromOption(e)):null},k.trackBy&&e.$watch(function(){return k.getTrackByValue(m.$viewValue)},function(){m.$render()})),w&&(t(p.emptyOption)(e),r.prepend(p.emptyOption),p.emptyOption[0].nodeType===zi?(p.hasEmptyOption=!1,p.registerOption=function(e,t){""===t.val()&&(p.hasEmptyOption=!0,p.emptyOption=t,p.emptyOption.removeClass("ng-scope"),m.$render(),t.on("$destroy",function(){var e=p.$isEmptyOptionSelected();p.hasEmptyOption=!1,p.emptyOption=void 0,e&&m.$render()}))}):p.emptyOption.removeClass("ng-scope")),e.$watchCollection(k.getWatchables,f)}var u=e.document.createElement("option"),c=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=m},post:a}}}],wa=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(s,a,u){function c(e){a.text(e||"")}var l,d=u.count,h=u.$attr.when&&a.attr(u.$attr.when),f=u.offset||0,p=s.$eval(h)||{},_={},v=t.startSymbol(),y=t.endSymbol(),b=v+d+"-"+f+y,w=Si.noop;o(u,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+bi(n[2]);p[r]=a.attr(u.$attr[t])}}),o(p,function(e,n){_[n]=t(e.replace(r,b))}),s.$watch(d,function(t){var r=parseFloat(t),i=$i(r);if(i||r in p||(r=e.pluralCat(r-f)),!(r===l||i&&$i(l))){w();var o=_[r];g(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=m,c()):w=s.$watch(o,c),l=r}})}}}],Ma=r("ngRef"),ka=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=St(R(t)),i=e(n.ngRef),o=i.assign||function(){throw Ma("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,s){var a;if(s.hasOwnProperty("ngRefRead")){if("$element"===s.ngRefRead)a=t;else if(!(a=t.data("$"+s.ngRefRead+"Controller")))throw Ma("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',s.ngRefRead,n.ngRef)}else a=t.data("$"+r+"Controller");a=a||t,o(e,a),t.on("$destroy",function(){i(e)===a&&o(e,null)})}}}}],La=["$parse","$animate","$compile",function(e,t,n){var s=r("ngRepeat"),a=function(e,t,n,r,i,o,s){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===s-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]},l=function(e,t,n){return at(n)},d=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,h){var f=h.ngRepeat,p=n.$$createComment("end ngRepeat",f),m=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var _=m[1],v=m[2],y=m[3],g=m[4];if(!(m=_.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",_);var b=m[3]||m[1],w=m[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var M;if(g){var k={$id:at},L=e(g);M=function(e,t,n,r){return w&&(k[w]=t),k[b]=n,k.$index=r,L(e,k)}}return function(e,n,r,h,m){var _=be();e.$watchCollection(v,function(r){var h,v,g,L,x,Y,T,S,D,$,E,O,j=n[0],C=be();if(y&&(e[y]=r),i(r))D=r,S=M||l;else{S=M||d,D=[];for(var A in r)gi.call(r,A)&&"$"!==A.charAt(0)&&D.push(A)}for(L=D.length,E=new Array(L),h=0;h<L;h++)if(x=r===D?h:D[h],Y=r[x],T=S(e,x,Y,h),_[T])$=_[T],delete _[T],C[T]=$,E[h]=$;else{if(C[T])throw o(E,function(e){e&&e.scope&&(_[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,T,Y);E[h]={id:T,scope:void 0,clone:void 0},C[T]=!0}k&&(k[b]=void 0);for(var P in _){if($=_[P],O=ge($.clone),t.leave(O),O[0].parentNode)for(h=0,v=O.length;h<v;h++)O[h].$$NG_REMOVED=!0;$.scope.$destroy()}for(h=0;h<L;h++)if(x=r===D?h:D[h],Y=r[x],$=E[h],$.scope){g=j;do{g=g.nextSibling}while(g&&g.$$NG_REMOVED);u($)!==g&&t.move(ge($.clone),null,j),j=c($),a($.scope,h,b,Y,w,x,L)}else m(function(e,n){$.scope=n;var r=p.cloneNode(!1);e[e.length++]=r,t.enter(e,null,j),j=r,$.clone=e,C[$.id]=$,a($.scope,h,b,Y,w,x,L)});_=C})}}}}],xa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ya=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ta=Or(function(e,t,n){e.$watchCollection(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)})}),Sa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,s){var a=i.ngSwitch||i.on,u=[],c=[],l=[],d=[],h=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(a,function(n){for(var r,i;l.length;)e.cancel(l.pop());for(r=0,i=d.length;r<i;++r){var a=ge(c[r].clone);d[r].$destroy();(l[r]=e.leave(a)).done(h(l,r))}c.length=0,d.length=0,(u=s.cases["!"+n]||s.cases["?"])&&o(u,function(n){n.transclude(function(r,i){d.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var s={clone:r};c.push(s),e.enter(r,o.parent(),o)})})})}}}],Da=Or({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),$a=Or({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ea=r("ngTransclude"),Oa=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function s(e,n){e.length&&u(e)?t.append(e):(a(),n.$destroy())}function a(){n(e,function(e){t.append(e)})}function u(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Wi||r.nodeValue.trim())return!0}}if(!o)throw Ea("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ne(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;o(s,null,c),c&&!o.isSlotFilled(c)&&a()}}}}],ja=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Ca={$setViewValue:m,$render:m},Aa=["$element","$scope",function(t,n){function r(){a||(a=!0,n.$$postDigest(function(){a=!1,o.ngModelCtrl.$render()}))}function i(e){u||(u=!0,n.$$postDigest(function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,s=new mo;o.selectValueMap={},o.ngModelCtrl=Ca,o.multiple=!1,o.unknownOption=fi(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),ci(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),ci(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+at(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),ci(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&ci(o.emptyOption,!1)},n.$on("$destroy",function(){o.renderUnknownOption=m}),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&ci(fi(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=at(e);t.val(r in o.selectValueMap?r:e);var i=t[0].options[t[0].selectedIndex];ci(fi(i),!0)}else o.selectUnknownOrEmptyOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==zi){ve(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=s.get(e)||0;s.set(e,n+1),r()}},o.removeOption=function(e){var t=s.get(e);t&&(1===t?(s.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):s.set(e,t-1))},o.hasOption=function(e){return!!s.get(e)},o.$hasEmptyOption=function(){return o.hasEmptyOption},o.$isUnknownOptionSelected=function(){return t[0].options[0]===o.unknownOption[0]},o.$isEmptyOptionSelected=function(){return o.hasEmptyOption&&t[0].options[t[0].selectedIndex]===o.emptyOption[0]},o.selectUnknownOrEmptyOption=function(e){null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)};var a=!1,u=!1;o.registerOption=function(e,t,n,s,a){if(n.$attr.ngValue){var u,c;n.$observe("value",function(e){var n,r=t.prop("selected");b(c)&&(o.removeOption(u),delete o.selectValueMap[c],n=!0),c=at(e),u=e,o.selectValueMap[c]=e,o.addOption(e,t),t.attr("value",c),n&&r&&i()})}else s?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");b(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()}):a?e.$watch(a,function(e,r){n.$set("value",e);var s=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&s&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],Pa=function(){function e(e,t,n,r){var i=r[0],s=r[1];if(!s)return void(i.registerOption=m);if(i.ngModelCtrl=s,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){s.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(W(e,t.value)||W(e,i.selectValueMap[t.value]));n!==t.selected&&ci(fi(t),n)})};var a,u=NaN;e.$watch(function(){u!==s.$viewValue||B(a,s.$viewValue)||(a=ke(s.$viewValue),s.$render()),u=s.$viewValue}),s.$isEmpty=function(e){return!e||0===e.length}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Aa,priority:1,link:{pre:e,post:t}}},Ha=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),s=o.data("$selectController")||o.parent().data("$selectController");s&&s.registerOption(e,t,n,r,i)}}}}],Fa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",function(e){o!==e&&(o=e,i.$validate())})}}}}],Ia=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&vi.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var s=n.pattern;n.ngPattern?s=i(e):r=n.pattern;var a=li(s,r,t);n.$observe("pattern",function(e){var n=a;a=li(e,r,t),(n&&n.toString())!==(a&&a.toString())&&o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||g(a)||a.test(t)}}}}}}],Na=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),s=di(o);r.$observe("maxlength",function(e){o!==e&&(s=di(e),o=e,i.$validate())}),i.$validators.maxlength=function(e,t){return s<0||i.$isEmpty(t)||t.length<=s}}}}}],Ra=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),s=di(o)||-1;r.$observe("minlength",function(e){o!==e&&(s=di(e)||-1,o=e,i.$validate())}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=s}}}}}];if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load AngularJS more than once."));!function(){var t;if(!Ni){var n=Ai();pi=g(n)?e.jQuery:n?e[n]:void 0,pi&&pi.fn.on?(fi=pi,d(pi.fn,{scope:co.scope,isolateScope:co.isolateScope,controller:co.controller,injector:co.injector,inheritedData:co.inheritedData})):fi=Pe,t=fi.cleanData,fi.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(fi._data(r)||{}).events)&&n.$destroy&&fi(r).triggerHandler("$destroy");t(e)},Si.element=fi,Ni=!0}}(),function(n){d(n,{errorHandlingConfig:t,bootstrap:le,copy:V,extend:d,merge:h,equals:B,element:fi,forEach:o,injector:ft,noop:m,bind:G,toJson:X,fromJson:K,identity:_,isUndefined:g,isDefined:b,isString:k,isFunction:S,isObject:w,isNumber:L,isElement:I,isArray:Y,version:Bi,isDate:x,callbacks:{$$counter:0},getTestability:he,reloadWithDebugInfo:de,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:pe,$$minErr:r,$$csp:Ci,$$encodeUriSegment:se,$$encodeUriQuery:ae,$$lowercase:bi,$$stringify:we,$$uppercase:wi}),mi=Me(e),mi("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Nn}),e.provider("$compile",Yt).directive({a:ks,input:Ws,textarea:Ws,form:Ss,script:ja,select:Pa,option:Ha,ngBind:Bs,ngBindHtml:Js,ngBindTemplate:Us,ngClass:Zs,ngClassEven:Ks,ngClassOdd:Xs,ngCloak:Qs,ngController:ea,ngForm:Ds,ngHide:Ya,ngIf:ra,ngInclude:ia,ngInit:sa,ngNonBindable:va,ngPluralize:wa,ngRef:ka,ngRepeat:La,ngShow:xa,ngStyle:Ta,ngSwitch:Sa,ngSwitchWhen:Da,ngSwitchDefault:$a,ngOptions:ba,ngTransclude:Oa,ngModel:pa,ngList:aa,ngChange:Gs,pattern:Ia,ngPattern:Ia,required:Fa,ngRequired:Fa,minlength:Ra,ngMinlength:Ra,maxlength:Na,ngMaxlength:Na,ngValue:qs,ngModelOptions:_a}).directive({ngInclude:oa,input:zs}).directive(Ls).directive(ta),e.provider({$anchorScroll:pt,$animate:To,$animateCss:$o,$$animateJs:xo,$$animateQueue:Yo,$$AnimateRunner:Do,$$animateAsyncRun:So,$browser:Mt,$cacheFactory:kt,$controller:Ot,$document:jt,$$isDocumentHidden:Ct,$exceptionHandler:At,$filter:ar,$$forceReflow:Ho,$interpolate:Gt,$interval:Zt,$$intervalFactory:Xt,$http:qt,$httpParamSerializer:Ht,$httpParamSerializerJQLike:Ft,$httpBackend:Ut,$xhrFactory:Bt,$jsonpCallbacks:Bo,$location:pn,$log:mn,$parse:En,$rootScope:In,$q:On,$$q:jn,$sce:qn,$sceDelegate:Vn,$sniffer:Bn,$$taskTrackerFactory:Un,$templateCache:Lt,$templateRequest:Gn,$$testability:Zn,$timeout:Xn,$window:ir,$$rAF:Fn,$$jqLite:st,$$Map:_o,$$cookieReader:sr})}]).info({angularVersion:"1.8.3"})}(Si),Si.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.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(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),fi(function(){ce(e.document,le)})}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@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;}'))},function(e,t,n){n(913),e.exports="ngRoute"},function(e,t){/**
|
|
173
|
+
* @license AngularJS v1.8.3
|
|
174
|
+
* (c) 2010-2020 Google LLC. http://angularjs.org
|
|
175
175
|
* License: MIT
|
|
176
176
|
*/
|
|
177
|
-
!function(e,t){"use strict";function n(e,t){if(c(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(l(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function r(e,t){var n=[],r=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,t,r,i){var o="?"===i||"*?"===i,s="*"===i||"*?"===i;return n.push({name:r,optional:o}),t=t||"",(o?"(?:"+t:t+"(?:")+(s?"(.+?)":"([^/]+)")+(o?"?)?":")")}).replace(/([/$*])/g,"\\$1");return t.ignoreTrailingSlashes&&(r=r.replace(/\/+$/,"")+"/*"),{keys:n,regexp:new RegExp("^"+r+"(?:[?#]|$)",t.caseInsensitiveMatch?"i":"")}}function i(){function e(e,n){return t.extend(Object.create(e),n)}c=t.isArray,l=t.isObject,d=t.isDefined,h=t.noop;var i={};this.when=function(e,o){var s=n(o);if(t.isUndefined(s.reloadOnUrl)&&(s.reloadOnUrl=!0),t.isUndefined(s.reloadOnSearch)&&(s.reloadOnSearch=!0),t.isUndefined(s.caseInsensitiveMatch)&&(s.caseInsensitiveMatch=this.caseInsensitiveMatch),i[e]=t.extend(s,{originalPath:e},e&&r(e,s)),e){var a="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/";i[a]=t.extend({originalPath:e,redirectTo:e},r(a,s))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},f=!0,this.eagerInstantiationEnabled=function(e){return d(e)?(f=e,this):f},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(n,r,o,s,a,u,c,l){function d(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,s=i.length;o<s;++o){var a=n[o-1],u=i[o];a&&u&&(r[a.name]=u)}return r}function f(e){var t=Y.current;k=b(),(L=w(k,t))||!t&&!k||n.$broadcast("$routeChangeStart",k,t).defaultPrevented&&e&&e.preventDefault()}function p(){var e=Y.current,r=k;if(L)e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e);else if(r||e){x=!1,Y.current=r;var i=s.resolve(r);l.$$incOutstandingRequestCount("$route"),i.then(_).then(v).then(function(s){return s&&i.then(y).then(function(i){r===Y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))})}).catch(function(t){r===Y.current&&n.$broadcast("$routeChangeError",r,e,t)}).finally(function(){l.$$completeOutstandingRequest(h,"$route")})}}function _(e){var n={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(t.isString(e.redirectTo))n.path=M(e.redirectTo,e.params),n.search=e.params,n.hasRedirection=!0;else{var i=r.path(),o=r.search(),u=e.redirectTo(e.pathParams,i,o);t.isDefined(u)&&(n.url=u,n.hasRedirection=!0)}else if(e.resolveRedirectTo)return s.resolve(a.invoke(e.resolveRedirectTo)).then(function(e){return t.isDefined(e)&&(n.url=e,n.hasRedirection=!0),n});return n}function v(e){var t=!0;if(e.route!==Y.current)t=!1;else if(e.hasRedirection){var n=r.url(),i=e.url;i?r.url(i).replace():i=r.path(e.path).search(e.search).replace().url(),i!==n&&(t=!1)}return t}function y(e){if(e){var n=t.extend({},e.resolve);t.forEach(n,function(e,r){n[r]=t.isString(e)?a.get(e):a.invoke(e,null,null,r)});var r=g(e);return t.isDefined(r)&&(n.$template=r),s.all(n)}}function g(e){var n,r;return t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(r=e.templateUrl)&&(t.isFunction(r)&&(r=r(e.params)),t.isDefined(r)&&(e.loadedTemplateUrl=c.valueOf(r),n=u(r))),n}function b(){var n,o;return t.forEach(i,function(i,s){!o&&(n=d(r.path(),i))&&(o=e(i,{params:t.extend({},r.search(),n),pathParams:n}),o.$$route=i)}),o||i[null]&&e(i[null],{params:{},pathParams:{}})}function w(e,n){return!x&&e&&n&&e.$$route===n.$$route&&(!e.reloadOnUrl||!e.reloadOnSearch&&t.equals(e.pathParams,n.pathParams))}function M(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var k,L,x=!1,Y={routes:i,reload:function(){x=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,x=!1}};n.$evalAsync(function(){f(e),e.defaultPrevented||p()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw m("norout","Tried updating route with no current route");e=t.extend({},this.current.params,e),r.path(M(this.current.$$route.originalPath,e)),r.search(e)}};return n.$on("$locationChangeStart",f),n.$on("$locationChangeSuccess",p),Y}]}function o(e){f&&e.get("$route")}function s(){this.$get=function(){return{}}}function a(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,u){function c(){f&&(r.cancel(f),f=null),d&&(d.$destroy(),d=null),h&&(f=r.leave(h),f.done(function(e){!1!==e&&(f=null)}),h=null)}function l(){var s=e.current&&e.current.locals,a=s&&s.$template;if(t.isDefined(a)){var l=i.$new(),f=e.current,_=u(l,function(e){r.enter(e,null,h||o).done(function(e){!1===e||!t.isDefined(p)||p&&!i.$eval(p)||n()}),c()});h=_,d=f.scope=l,d.$emit("$viewContentLoaded"),d.$eval(m)}else c()}var d,h,f,p=s.autoscroll,m=s.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function u(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=e(i.contents());if(o.controller){s.$scope=r;var u=t(o.controller,s);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=s,a(r)}}}var c,l,d,h,f,p=t.module("ngRoute",[]).info({angularVersion:"1.
|
|
178
|
-
* @license AngularJS v1.
|
|
179
|
-
* (c) 2010-
|
|
177
|
+
!function(e,t){"use strict";function n(e,t){if(c(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(l(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function r(e,t){var n=[],r=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,t,r,i){var o="?"===i||"*?"===i,s="*"===i||"*?"===i;return n.push({name:r,optional:o}),t=t||"",(o?"(?:"+t:t+"(?:")+(s?"(.+?)":"([^/]+)")+(o?"?)?":")")}).replace(/([/$*])/g,"\\$1");return t.ignoreTrailingSlashes&&(r=r.replace(/\/+$/,"")+"/*"),{keys:n,regexp:new RegExp("^"+r+"(?:[?#]|$)",t.caseInsensitiveMatch?"i":"")}}function i(){function e(e,n){return t.extend(Object.create(e),n)}c=t.isArray,l=t.isObject,d=t.isDefined,h=t.noop;var i={};this.when=function(e,o){var s=n(o);if(t.isUndefined(s.reloadOnUrl)&&(s.reloadOnUrl=!0),t.isUndefined(s.reloadOnSearch)&&(s.reloadOnSearch=!0),t.isUndefined(s.caseInsensitiveMatch)&&(s.caseInsensitiveMatch=this.caseInsensitiveMatch),i[e]=t.extend(s,{originalPath:e},e&&r(e,s)),e){var a="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/";i[a]=t.extend({originalPath:e,redirectTo:e},r(a,s))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},f=!0,this.eagerInstantiationEnabled=function(e){return d(e)?(f=e,this):f},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(n,r,o,s,a,u,c,l){function d(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,s=i.length;o<s;++o){var a=n[o-1],u=i[o];a&&u&&(r[a.name]=u)}return r}function f(e){var t=Y.current;k=b(),(L=w(k,t))||!t&&!k||n.$broadcast("$routeChangeStart",k,t).defaultPrevented&&e&&e.preventDefault()}function p(){var e=Y.current,r=k;if(L)e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e);else if(r||e){x=!1,Y.current=r;var i=s.resolve(r);l.$$incOutstandingRequestCount("$route"),i.then(_).then(v).then(function(s){return s&&i.then(y).then(function(i){r===Y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))})}).catch(function(t){r===Y.current&&n.$broadcast("$routeChangeError",r,e,t)}).finally(function(){l.$$completeOutstandingRequest(h,"$route")})}}function _(e){var n={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(t.isString(e.redirectTo))n.path=M(e.redirectTo,e.params),n.search=e.params,n.hasRedirection=!0;else{var i=r.path(),o=r.search(),u=e.redirectTo(e.pathParams,i,o);t.isDefined(u)&&(n.url=u,n.hasRedirection=!0)}else if(e.resolveRedirectTo)return s.resolve(a.invoke(e.resolveRedirectTo)).then(function(e){return t.isDefined(e)&&(n.url=e,n.hasRedirection=!0),n});return n}function v(e){var t=!0;if(e.route!==Y.current)t=!1;else if(e.hasRedirection){var n=r.url(),i=e.url;i?r.url(i).replace():i=r.path(e.path).search(e.search).replace().url(),i!==n&&(t=!1)}return t}function y(e){if(e){var n=t.extend({},e.resolve);t.forEach(n,function(e,r){n[r]=t.isString(e)?a.get(e):a.invoke(e,null,null,r)});var r=g(e);return t.isDefined(r)&&(n.$template=r),s.all(n)}}function g(e){var n,r;return t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(r=e.templateUrl)&&(t.isFunction(r)&&(r=r(e.params)),t.isDefined(r)&&(e.loadedTemplateUrl=c.valueOf(r),n=u(r))),n}function b(){var n,o;return t.forEach(i,function(i,s){!o&&(n=d(r.path(),i))&&(o=e(i,{params:t.extend({},r.search(),n),pathParams:n}),o.$$route=i)}),o||i[null]&&e(i[null],{params:{},pathParams:{}})}function w(e,n){return!x&&e&&n&&e.$$route===n.$$route&&(!e.reloadOnUrl||!e.reloadOnSearch&&t.equals(e.pathParams,n.pathParams))}function M(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var k,L,x=!1,Y={routes:i,reload:function(){x=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,x=!1}};n.$evalAsync(function(){f(e),e.defaultPrevented||p()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw m("norout","Tried updating route with no current route");e=t.extend({},this.current.params,e),r.path(M(this.current.$$route.originalPath,e)),r.search(e)}};return n.$on("$locationChangeStart",f),n.$on("$locationChangeSuccess",p),Y}]}function o(e){f&&e.get("$route")}function s(){this.$get=function(){return{}}}function a(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,u){function c(){f&&(r.cancel(f),f=null),d&&(d.$destroy(),d=null),h&&(f=r.leave(h),f.done(function(e){!1!==e&&(f=null)}),h=null)}function l(){var s=e.current&&e.current.locals,a=s&&s.$template;if(t.isDefined(a)){var l=i.$new(),f=e.current,_=u(l,function(e){r.enter(e,null,h||o).done(function(e){!1===e||!t.isDefined(p)||p&&!i.$eval(p)||n()}),c()});h=_,d=f.scope=l,d.$emit("$viewContentLoaded"),d.$eval(m)}else c()}var d,h,f,p=s.autoscroll,m=s.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function u(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=e(i.contents());if(o.controller){s.$scope=r;var u=t(o.controller,s);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=s,a(r)}}}var c,l,d,h,f,p=t.module("ngRoute",[]).info({angularVersion:"1.8.3"}).provider("$route",i).run(o),m=t.$$minErr("ngRoute");o.$inject=["$injector"],p.provider("$routeParams",s),p.directive("ngView",a),p.directive("ngView",u),a.$inject=["$route","$anchorScroll","$animate"],u.$inject=["$compile","$controller","$route"]}(window,window.angular)},function(e,t,n){n(915),e.exports="ngSanitize"},function(e,t){/**
|
|
178
|
+
* @license AngularJS v1.8.3
|
|
179
|
+
* (c) 2010-2020 Google LLC. http://angularjs.org
|
|
180
180
|
* License: MIT
|
|
181
181
|
*/
|
|
182
|
-
!function(e,t){"use strict";function n(){function n(e,t){return r(e.split(","),t)}function r(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?c(e[n]):e[n]]=!0;return r}function m(e,t){t&&t.length&&o(e,r(t))}function _(e,t){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e);var n=I(e);if(!n)return"";var r=5;do{if(0===r)throw p("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=I(e)}while(e!==n.innerHTML);for(var i=n.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),v(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=w("nextSibling",i))))for(;null==o&&(i=w("parentNode",i))!==n;)o=w("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)}function v(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function y(e){return e.replace(/&/g,"&").replace(L,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(x,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function g(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=c(e),!n&&j[e]&&(n=e),n||!0!==C[e]||(r("<"),r(e),s(i,function(n,i){var o=c(i),s="img"===e&&"src"===o||"background"===o;!0!==F[o]||!0===A[o]&&!t(n,s)||(r(" "),r(i),r('="'),r(y(n)),r('"'))}),r(">"))},end:function(e){e=c(e),n||!0!==C[e]||!0===Y[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(y(e))}}}function b(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],s=o.name.toLowerCase();"xmlns:ns1"!==s&&0!==s.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var a=t.firstChild;a&&b(a),t=w("nextSibling",t)}}function w(e,t){var n=t[e];if(n&&d.call(t,n))throw p("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var M=!1,k=!1;this.$get=["$$sanitizeUri",function(e){return M=!0,k&&o(C,O),function(t){var n=[];return h(t,f(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return u(e)?(k=e,this):k},this.addValidElements=function(e){return M||(a(e)&&(e={htmlElements:e}),m(O,e.svgElements),m(Y,e.htmlVoidElements),m(C,e.htmlVoidElements),m(C,e.htmlElements)),this},this.addValidAttrs=function(e){return M||o(F,r(e,!0)),this},i=t.bind,o=t.extend,s=t.forEach,a=t.isArray,u=t.isDefined,c=t.$$lowercase,l=t.noop,h=_,f=g,d=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var L=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^#-~ |!])/g,Y=n("area,br,col,hr,img,wbr"),T=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),S=n("rp,rt"),D=o({},S,T),$=o({},T,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),E=o({},S,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),O=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),j=n("script,style"),C=o({},Y,$,E,D),A=n("background,cite,href,longdesc,src,xlink:href,xml:base"),P=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),H=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),F=o({},A,H,P),I=function(e,t){function n(t){t="<remove></remove>"+t;try{
|
|
182
|
+
!function(e,t){"use strict";function n(){function n(e,t){return r(e.split(","),t)}function r(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?c(e[n]):e[n]]=!0;return r}function m(e,t){t&&t.length&&o(e,r(t))}function _(e,t){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e);var n=I(e);if(!n)return"";var r=5;do{if(0===r)throw p("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=I(e)}while(e!==n.innerHTML);for(var i=n.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),v(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=w("nextSibling",i))))for(;null==o&&(i=w("parentNode",i))!==n;)o=w("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)}function v(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function y(e){return e.replace(/&/g,"&").replace(L,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(x,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function g(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=c(e),!n&&j[e]&&(n=e),n||!0!==C[e]||(r("<"),r(e),s(i,function(n,i){var o=c(i),s="img"===e&&"src"===o||"background"===o;!0!==F[o]||!0===A[o]&&!t(n,s)||(r(" "),r(i),r('="'),r(y(n)),r('"'))}),r(">"))},end:function(e){e=c(e),n||!0!==C[e]||!0===Y[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(y(e))}}}function b(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],s=o.name.toLowerCase();"xmlns:ns1"!==s&&0!==s.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var a=t.firstChild;a&&b(a),t=w("nextSibling",t)}}function w(e,t){var n=t[e];if(n&&d.call(t,n))throw p("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var M=!1,k=!1;this.$get=["$$sanitizeUri",function(e){return M=!0,k&&o(C,O),function(t){var n=[];return h(t,f(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return u(e)?(k=e,this):k},this.addValidElements=function(e){return M||(a(e)&&(e={htmlElements:e}),m(O,e.svgElements),m(Y,e.htmlVoidElements),m(C,e.htmlVoidElements),m(C,e.htmlElements)),this},this.addValidAttrs=function(e){return M||o(F,r(e,!0)),this},i=t.bind,o=t.extend,s=t.forEach,a=t.isArray,u=t.isDefined,c=t.$$lowercase,l=t.noop,h=_,f=g,d=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var L=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^#-~ |!])/g,Y=n("area,br,col,hr,img,wbr"),T=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),S=n("rp,rt"),D=o({},S,T),$=o({},T,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),E=o({},S,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),O=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),j=n("script,style"),C=o({},Y,$,E,D),A=n("background,cite,href,longdesc,src,xlink:href,xml:base"),P=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),H=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),F=o({},A,H,P),I=function(e,t){function n(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}function r(e){return o.innerHTML=e,t.documentMode&&b(o),o}if(function(){try{return!!n("")}catch(e){return!1}}())return n;if(!t||!t.implementation)throw p("noinert","Can't create an inert html document");var i=t.implementation.createHTMLDocument("inert"),o=(i.documentElement||i.getDocumentElement()).querySelector("body");return r}(e,e.document)}function r(e){var t=[];return f(t,l).chars(e),t.join("")}var i,o,s,a,u,c,l,d,h,f,p=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n).info({angularVersion:"1.8.3"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),s=t.isDefined,a=t.isFunction,u=t.isObject,c=t.isString;return function(t,l,d){function h(e){e&&y.push(r(e))}if(null==t||""===t)return t;if(!c(t))throw o("notstring","Expected string but received: {0}",t);for(var f,p,m,_=a(d)?d:u(d)?function(){return d}:function(){return{}},v=t,y=[];f=v.match(n);)p=f[0],f[2]||f[4]||(p=(f[3]?"http://":"mailto:")+p),m=f.index,h(v.substr(0,m)),function(e,t){var n,r=_(e);y.push("<a ");for(n in r)y.push(n+'="'+r[n]+'" ');!s(l)||"target"in r||y.push('target="',l,'" '),y.push('href="',e.replace(/"/g,"""),'">'),h(t),y.push("</a>")}(p,f[0].replace(i,"")),v=v.substring(m+f[0].length);return h(v),e(y.join(""))}}])}(window,window.angular)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moment=n(409),t.frLocales={calendar:{lastDay:"[Hier à] HH[h]mm",sameDay:"[Aujourd'hui à] HH[h]mm",nextDay:"dddd D MMMM YYYY",lastWeek:"dddd D MMMM YYYY",nextWeek:"dddd D MMMM YYYY",sameElse:"dddd D MMMM YYYY"}},n(917),window.entcore||(window.entcore={}),window.entcore.moment=t.moment,window.moment=t.moment,window.currentLanguage&&("fr"===window.currentLanguage?t.moment.locale(window.currentLanguage,t.frLocales):t.moment.locale(window.currentLanguage))},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";
|
|
183
183
|
//! moment.js locale configuration
|
|
184
184
|
function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}
|
|
185
185
|
//! moment.js locale configuration
|